f1feb9282a4cdf01008dc3adfb1d13e47ac8a19b
[platform/upstream/glibc.git] / ChangeLog
1 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
2
3         * NEWS: Add 2.24 fixed bugs.
4         * po/libc.pot: Regenerate.
5
6 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
7
8         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9         [$(subdir) = math] (libm-sysdep_routines): Remove.
10         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
11         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12         s_truncf-vis3, s_trunc-vis3.
13         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
15         file.
16         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
17         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
18         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
19         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
20         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
21         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
22         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
23         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
25         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
26         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
27         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
28         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
29         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
30         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
31         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
32         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
33         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
35         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
36         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
37         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
38         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
39         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
40         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
41         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
42         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
43         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
44         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
45         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
46         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
47         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
48         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
49         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
50         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
51         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
52         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
53         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
54         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
55         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
56         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
57         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
58         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
59
60 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
61
62         [BZ #20384]
63         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
64         test-double-libmvec-sincos-avx-main.o,
65         test-double-libmvec-sincos-avx2-main.o,
66         test-double-libmvec-sincos-main.o,
67         test-float-libmvec-sincosf-avx-main.o,
68         test-float-libmvec-sincosf-avx2-main.o and
69         test-float-libmvec-sincosf-main.o.
70         test-float-libmvec-sincosf-avx512-main.o.
71         ($(objpfx)test-double-libmvec-sincos): Also link with
72         $(objpfx)test-double-libmvec-sincos-main.o.
73         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
74         $(objpfx)test-double-libmvec-sincos-avx-main.o.
75         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
76         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
77         ($(objpfx)test-float-libmvec-sincosf): Also link with
78         $(objpfx)test-float-libmvec-sincosf-main.o.
79         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
80         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
81         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
82         test-double-libmvec-sincos-avx512-main.o and
83         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
84         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
85         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
86         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
87         (CFLAGS-test-double-libmvec-sincos.c): Removed.
88         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
89         (CFLAGS-test-double-libmvec-sincos-main.c): New.
90         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
91         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
92         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
93         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
94         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
95         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
96         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
97         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
98         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
99         -DREQUIRE_AVX2.
100         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
101         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
102         -DREQUIRE_AVX512F.
103         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
104         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
105         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
106         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
107         file.
108         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
109         Likewise.
110         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
111         Likewise.
112         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
113         Likewise.
114         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
115         Likewise.
116         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
117         Likewise.
118         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
119         Likewise.
120         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
121         Likewise.
122
123 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
124
125         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
126
127 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
128
129         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
130         and typo in a comment about AT_HWCAP entry.
131
132 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
133
134         * sysdeps/aarch64/libm-test-ulps: Updated.
135
136 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
137
138         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
139         of r13 as it is not restored in mvcle case.
140
141 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
142
143         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
144         Rename "ret" to "__ret".
145         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
146         inline_syscall5, inline_syscall6): Likewise.
147
148 2016-07-19   Will Newton  <will.newton@gmail.com>
149
150         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
151         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
152         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
153         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
154         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
155
156 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
157
158         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
159         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
160         -mfpmath=387 with $(rtld-CFLAGS).
161         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
162         $(rtld-CFLAGS).
163
164 2016-07-18   Ross Burton  <ross.burton@intel.com>
165              Khem Raj  <raj.khem@gmail.com>
166
167         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
168         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
169         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
170         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
171         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
172         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
173         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
174         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
175         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
176         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
177         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
178         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
179         R_METAG_TLS_DTPOFF): New.
180
181 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
182             Matt Clay  <mclay@lycos.com>
183
184         [BZ #20357]
185         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
186         to call __mpsin/__mpcos and to negate values.
187         * math/auto-libm-test-in: Add test.
188         * math/auto-libm-test-out: Regenerate.
189
190 2016-07-18  Zack Weinberg  <zackw@panix.com>
191
192         * grp/Makefile: Don't install the internal header grp-merge.h.
193
194 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
195
196         * sysdeps/aarch64/libm-test-ulps: Regenerated.
197
198 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
199
200         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
201
202 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
203
204         [BZ #15368]
205         * sysdeps/unix/sysv/linux/nptl-signals.h
206         (__nptl_clear_internal_signals): New function.
207         (__libc_signal_block_all): Likewise.
208         (__libc_signal_block_app): Likewise.
209         (__libc_signal_restore_set): Likewise.
210         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
211         implementation.
212         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
213         the cached pid/tid value in pthread structure.
214
215 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
216
217         [BZ #20347]
218         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
219
220 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
221
222         [BZ #20348]
223         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
224         preadv64, pwrite64 and pwritev64.
225
226 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
227
228         [BZ #20350]
229         * posix/tst-preadwrite.c: Renamed to ...
230         * posix/tst-preadwrite-common.c: This.
231         (PREAD): Removed.
232         (PWRITE): Likewise.
233         (STRINGIFY): Likewise.
234         (STRINGIFY2): Likewise.
235         (do_prepare): Make it static and remove function arguments.
236         (do_test): Likewise.
237         (PREPARE): Updated.
238         (TEST_FUNCTION): New.
239         (name): Make it static.
240         (fd): Likewise.
241         (do_prepare): Use create_temp_file.
242         (do_test): Renamed to ...
243         (do_test_with_offset): This.  Make it static and accept offset.
244         Properly check return value of PWRITE and PREAD.  Return bytes
245         read.  Don't close fd nor unlink name.
246         * posix/tst-preadwrite.c: Rewrite.
247         * posix/tst-preadwrite64.c: Likewise.
248
249 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
250
251         [BZ #20309]
252         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
253         -mtls-dialect=gnu2 works.
254         * configure: Regenerated.
255         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
256         (tests): Add tst-gnu2-tls1.
257         (modules-names): Add tst-gnu2-tls1mod.
258         ($(objpfx)tst-gnu2-tls1): New.
259         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
260         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
261         * elf/tst-gnu2-tls1.c: New file.
262         * elf/tst-gnu2-tls1mod.c: Likewise.
263         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
264         bytes for push in the PLT entry to align the stack.
265
266 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
267
268         [BZ #20349]
269         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
270
271 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
272
273         [BZ #18707]
274         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
275         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
276
277 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
278
279         * sysdeps/unix/sysv/linux/sysdep.h
280         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
281         guards.
282         * misc/tst-preadvwritev-common.c: New file.
283         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
284         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
285         a check for files larger than 2GB.
286
287         * sysdeps/unix/sysv/linux/mips/kernel-features.h
288         (__ASSUME_OFF_DIFF_OFF64): Remove define.
289         * sysdeps/unix/sysv/linux/pread.c
290         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
291         __OFF_T_MATCHES_OFF64_T.
292         * sysdeps/unix/sysv/linux/pread64.c
293         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
294         * sysdeps/unix/sysv/linux/preadv.c
295         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
296         * sysdeps/unix/sysv/linux/preadv64.c
297         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
298         * sysdeps/unix/sysv/linux/pwrite.c
299         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
300         * sysdeps/unix/sysv/linux/pwrite64.c
301         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
302         * sysdeps/unix/sysv/linux/pwritev.c
303         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
304         * sysdeps/unix/sysv/linux/pwritev64.c
305         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
306
307 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
308
309         * sysdeps/unix/sysv/linux/tile/kernel-features.h
310         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
311
312 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
313
314         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
315
316 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
317
318         [BZ #20240]
319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
320         (CFLAGS-s_modf-ppc32.c): New variable.
321         (CFLAGS-s_modff-ppc32.c): Likewise.
322         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
323         (CFLAGS-s_modf-ppc64.c): Likewise.
324         (CFLAGS-s_modff-ppc64.c): Likewise.
325
326 2016-07-07  Andreas Schwab  <schwab@suse.de>
327
328         [BZ #20263]
329         * nptl/tst-robust10.c: New test.
330         * nptl/Makefile (tests): Add tst-robust10.
331
332 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
333
334         [BZ #20263]
335         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
336
337 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
338
339         * sysdeps/s390/linkmap.h (struct link_map_machine):
340         Remove member gotplt and add member jmprel.
341         * sysdeps/s390/s390-32/dl-machine.h
342         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
343         instead of gotplt with &got[3].
344         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
345         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
346
347 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
348
349         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
350
351 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
352
353         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
354         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
355         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
356         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
357         * libio/vtables.c (_IO_vtable_check)
358         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
359         * libio/libioP.h (IO_set_accept_foreign_vtables)
360         [!PTR_MANGLE]: Do not call PTR_MANGLE.
361
362 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
363
364         [BZ #20314]
365         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
366         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
367         $(common-objpfx)cmath.
368         ($(common-objpfx)cstdlib): New target.
369         ($(common-objpfx)cmath): Likewise.
370
371 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
372
373         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
374
375 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
376
377         [BZ #20327]
378         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
379         are not part of the string.
380
381 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
382
383         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
384         * nptl/tst-cancel4-common.h (fifoname): New variable.
385         (fifofd): Likewise.
386         (cl_fifo): New function.
387         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
388         SIGINT.
389         (tf_open): Add early cancel test.
390
391 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
392
393         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
394
395 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
396
397         * sysdeps/generic/ldsodefs.h
398         (dl_symbol_visibility_binds_local_p): New inline function.
399         * elf/dl-addr.c (determine_info): Treat hidden and internal
400         symbols as local.
401         * elf/dl-lookup.c (do_lookup_x): Likewise.
402         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
403
404 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
405
406         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
407         invalid exception for a sNaN input.
408         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
409         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
410         (__nearbyint_vis3): Likewise
411         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
412         (__nearbyintf_vis3): Likewise
413         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
414         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
415         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
416         Likewise.
417         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
418         Likewise.
419
420 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
421
422         [BZ #20139]
423         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
424         (HAVE_AVX512DQ_ASM_SUPPORT): This.
425         * sysdeps/x86_64/configure.ac: Require assembler from binutils
426         2.24 or above.
427         (HAVE_AVX512_ASM_SUPPORT): Removed.
428         (HAVE_AVX512DQ_ASM_SUPPORT): New.
429         * sysdeps/x86_64/configure: Regenerated.
430         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
431         check unconditional.
432         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
433         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
434         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
435         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
436         Likewise.
437         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
438         Likewise.
439         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
440         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
441         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
442         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
443         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
444         Likewise.
445         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
446         Likewise.
447         * sysdeps/x86_64/multiarch/memset.S: Likewise.
448         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
449         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
450         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
451         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
452         Likewise.
453         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
454         Likewise.
455         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
456         Likewise.
457         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
458         Likewise.
459         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
460         Likewise.
461         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
462         Likewise.
463         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
464         Likewise.
465         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
466         Likewise.
467         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
468         Likewise.
469         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
470         Likewise.
471         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
472         Likewise.
473
474 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
475
476         [BZ #20024]
477         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
478         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
479         of this implementation of vector function.
480         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
481         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
482         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
483         Likewise.
484         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
485         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
486         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
487         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
488         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
489         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
490         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
491         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
492         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
493         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
494         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
495         for testing vector sincos with fixed ABI.
496         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
497         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
498         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
499         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
500         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
501         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
502         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
503         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
504         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
505         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
506         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
507         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
508         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
509         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
510         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
511         * sysdeps/x86_64/fpu/Makefile: Added new tests.
512
513 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
514
515         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
516
517 2016-06-30  Anton Blanchard  <anton@samba.org>
518
519         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
520         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
521         s_sinf-ppc64.
522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
525         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
526
527 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
528
529         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
530         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
531         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
532         e_expf-ppc64.
533         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
534         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
535         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
536         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
537
538 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
539
540         [BZ #20277]
541         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
542         when SHARED is defined.
543
544 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
545
546         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
547         (index_arch_Prefer_ERMS): Likewise.
548         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
549         __memcpy_erms for Prefer_ERMS.
550         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
551         (__memmove_erms): Enabled for libc.a.
552         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
553         __memmove_erms or Prefer_ERMS.
554         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
555         __mempcpy_erms for Prefer_ERMS.
556         * sysdeps/x86_64/multiarch/memset.S (memset): Return
557         __memset_erms for Prefer_ERMS.
558
559 2016-06-30  Andreas Schwab  <schwab@suse.de>
560
561         [BZ #20262]
562         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
563         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
564         of memory.
565
566 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
567
568         [BZ #18645]
569         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
570         (test-extras): Add tst-cleanupx4aux.
571         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
572         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
573         tst-cleanupx4aux.o.
574         * nptl/tst-cleanupx4aux.c: New file.
575
576 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
577
578         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
579
580 2016-06-29  Andreas Schwab  <schwab@suse.de>
581
582         [BZ #20260]
583         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
584         address before the beginning of the string as an integer to avoid
585         array-bounds warning.
586
587 2016-06-28  Richard Henderson  <rth@redhat.com>
588
589         * elf/elf.h (EM_BPF): New.
590         (EM_NUM): Update.
591         (R_BPF_NONE, R_BPF_MAP_FD): New.
592
593         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
594         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
595         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
596         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
597         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
598         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
599         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
600         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
601         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
602         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
603         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
604         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
605         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
606         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
607         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
608         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
609         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
610         (EM_NUM): Update.
611
612 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
613
614         [BZ #18960]
615         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
616         Set _nl_current_LC_CATEGORY_used to two instead of one.
617
618 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
619
620         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
621         (do_test): ... this.
622         (TEST_FUNCTION): New macro.
623          Include test-skeleton.c.
624         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
625         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
626
627 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
628
629         [BZ #15479]
630         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
631         floating-point environment rather than just control word.
632         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
633         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
634         floating-point environment, with "invalid" exceptions merged in,
635         rather than just control word.
636         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
637         * math/libm-test.inc (trunc_test_data): Do not allow spurious
638         "inexact" exceptions.
639
640         [BZ #15479]
641         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
642         floating-point environment rather than just control word.
643         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
644         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
645         floating-point environment, with "invalid" exceptions merged in,
646         rather than just control word.
647         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
648         * math/libm-test.inc (floor_test_data): Do not allow spurious
649         "inexact" exceptions.
650
651         [BZ #15479]
652         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
653         floating-point environment rather than just control word.
654         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
655         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
656         floating-point environment, with "invalid" exceptions merged in,
657         rather than just control word.
658         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
659         * math/libm-test.inc (ceil_test_data): Do not allow spurious
660         "inexact" exceptions.
661
662 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
663
664         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
665         __libc_vfork.
666         (__vfork) [IS_IN (libc)]: Remove alias.
667         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
668         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
669         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
670
671 2016-06-24  Torvald Riegel  <triegel@redhat.com>
672
673         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
674         of atomic_compare_and_exchange_bool_rel.
675         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
676         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
677         catomic_compare_and_exchange_bool_rel): Remove.
678         * sysdeps/aarch64/atomic-machine.h
679         (atomic_compare_and_exchange_bool_rel): Likewise.
680         * sysdeps/alpha/atomic-machine.h
681         (atomic_compare_and_exchange_bool_rel): Likewise.
682         * sysdeps/arm/atomic-machine.h
683         (atomic_compare_and_exchange_bool_rel): Likewise.
684         * sysdeps/mips/atomic-machine.h
685         (atomic_compare_and_exchange_bool_rel): Likewise.
686         * sysdeps/microblaze/atomic-machine.h
687         ( __arch_compare_and_exchange_bool_8_rel,
688         __arch_compare_and_exchange_bool_16_rel): Likewise.
689         * sysdeps/powerpc/atomic-machine.h
690         ( __arch_compare_and_exchange_bool_8_rel,
691         __arch_compare_and_exchange_bool_16_rel): Likewise.
692         * sysdeps/powerpc/powerpc32/atomic-machine.h
693         ( __arch_compare_and_exchange_bool_32_rel,
694         __arch_compare_and_exchange_bool_64_rel): Likewise.
695         * sysdeps/powerpc/powerpc64/atomic-machine.h
696         ( __arch_compare_and_exchange_bool_32_rel,
697         __arch_compare_and_exchange_bool_64_rel): Likewise.
698         * sysdeps/tile/atomic-machine.h
699         (atomic_compare_and_exchange_bool_rel): Likewise.
700
701 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
702
703         [BZ #20296]
704         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
705         when either argument is a NaN.
706         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
707         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
708
709         * math/libm-test.inc (snan_value_ld): New macro.
710         (isgreater_test_data): Add sNaN tests.
711         (isgreaterequal_test_data): Likewise.
712         (isless_test_data): Likewise.
713         (islessequal_test_data): Likewise.
714         (islessgreater_test_data): Likewise.
715         (isunordered_test_data): Likewise.
716         (nextafter_test_data): Likewise.
717         (nexttoward_test_data): Likewise.
718         (remainder_test_data): Likewise.
719         (remquo_test_data): Likewise.
720         (significand_test_data): Likewise.
721         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
722
723 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
724
725         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
726         environment macros are defined.
727         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
728
729 2016-06-23  Florian Weimer  <fweimer@redhat.com>
730
731         [BZ #20191]
732         Implement vtable verification in libio.
733         * Makerules (shlib.lds): Place __libc_IO_vtables section.
734         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
735         * debug/vdprintf_chk.c (__vdprintf_chk): Call
736         _IO_new_file_init_internal instead of _IO_file_init.
737         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
738         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
739         * libio/Makefile (routines): Add vtables.
740         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
741         (_IO_init): Remove, not for internal use.
742         (_IO_init_internal): Declare, internal replacement for _IO_init.
743         (_IO_file_init): Remove, not for internal use.
744         (_IO_new_file_init): Remove, not for internal use.
745         (_IO_new_file_init_internal): Declare, internal replacement for
746         _IO_new_file_init.
747         (_IO_old_file_init): Remove, not for internal use.
748         (_IO_old_file_init_internal): Declare, internal replacement for
749         _IO_old_file_init.
750         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
751         internal use.
752         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
753         Declare.
754         (libio_vtable): New macro.
755         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
756         functions.
757         * libio/fileops.c (_IO_new_file_init_internal): Rename from
758         _IO_new_file_init.
759         (_IO_new_file_init): New externally visible wrapper which disables
760         vtable verification.
761         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
762         Define as vtables.
763         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
764         (_IO_init): New externally visible wrapper which disables
765         vtable verification.
766         * libio/iofdopen.c (_IO_new_fdopen): Call
767         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
768         comment.
769         * libio/iofopen.c (__fopen_internal): Call
770         _IO_new_file_init_internal instead of _IO_file_init.
771         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
772         Define as vtables.
773         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
774         _IO_new_file_init_internal instead of _IO_file_init.
775         * libio/iopopen.c (_IO_new_popen): Likewise.
776         (_IO_proc_jumps): Define as vtable.
777         * libio/iovdprintf.c (_IO_vdprintf): Call
778         _IO_new_file_init_internal instead of _IO_file_init.
779         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
780         (__open_memstream): Call _IO_init_internal instead of _IO_init.
781         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
782         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
783         _IO_old_file_init.
784         (_IO_old_file_init): New externally visible wrapper which disables
785         vtable verification.
786         (_IO_old_file_jumps): Define as vtable.
787         * libio/oldiofdopen.c (_IO_old_fdopen): Call
788         _IO_old_file_init_internal instead of _IO_old_file_init.
789         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
790         * libio/oldiopopen.c (_IO_old_popen): Likewise.
791         (_IO_old_proc_jumps): Define as vtable.
792         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
793         Define as vtables.
794         * libio/vtables.c: New file.
795         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
796         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
797         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
798         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
799         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
800         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
801         instead of _IO_init.
802
803 2016-06-23  Florian Weimer  <fweimer@redhat.com>
804
805         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
806
807 2016-06-23  Florian Weimer  <fweimer@redhat.com>
808
809         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
810         potentially unused.
811
812 2016-06-22  Florian Weimer  <fweimer@redhat.com>
813
814         * test-skeleton.c (write_message): New function.
815         * malloc/tst-mallocfork2.c (write_message): Remove.
816         * debug/tst-longjmp_chk2.c (write_indented): New function.
817         (write_message): Remove.
818         (stackoverflow_handler): Call write_indented.
819
820 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
821
822         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
823         "inexact" exceptions after fnstenv.
824         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
825         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
826         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
827
828 2015-06-22  Zack Weinberg  <zackw@panix.com>
829
830         * sysdeps/generic/bits/hwcap.h: Moved to ...
831         * bits/hwcap.h: Here.
832
833 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
834
835         * sysdeps/aarch64/memcpy.S (memcpy):
836         Further tuning for performance.
837
838 2016-06-21  Florian Weimer  <fweimer@redhat.com>
839
840         [BZ #20284]
841         * malloc/arena.c (reused_arena): Do not return NULL if we start
842         out with a non-corrupted arena.
843
844 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
845
846         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
847         * misc/tst-preadvwritev.c: New file.
848         * misc/tst-preadvwritev64.c: Likewise.
849         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
850         usage.
851         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
852         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
853         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
854         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
855
856 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
857
858         [BZ #19654]
859         * sysdeps/x86_64/fpu/Makefile: Added new tests.
860         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
861         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
862         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
863         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
864         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
865         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
866         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
867         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
868         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
869         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
870         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
871         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
872         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
873         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
874         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
875         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
876         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
877         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
878         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
879         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
880         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
881         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
882         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
883         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
884         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
885
886 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
887
888         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
889         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
890
891 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
892
893         * sysdeps/aarch64/memcpy.S (memcpy):
894         Rewrite of optimized memcpy and memmove.
895         * sysdeps/aarch64/memmove.S (memmove): Remove
896         memmove code (merged into memcpy.S).
897
898 2016-06-20  Florian Weimer  <fweimer@redhat.com>
899
900         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
901         * sysdeps/generic/dl-dtv.h: New file.
902         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
903         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
904         (dtv_t): Remove.
905         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
906         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
907         (dtv_t): Remove.
908         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
909         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
910         (dtv_t): Remove.
911         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
912         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
913         (dtv_t): Remove.
914         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
915         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
916         (dtv_t): Remove.
917         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
918         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
919         (dtv_t): Remove.
920         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
921         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
922         (dtv_t): Remove.
923         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
924         (dtv_t): Remove.
925         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
926         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
927         (dtv_t): Remove.
928         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
929         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
930         (dtv_t): Remove.
931         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
932         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
933         (dtv_t): Remove.
934         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
935         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
936         (dtv_t): Remove.
937         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
938         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
939         (dtv_t): Remove.
940         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
941         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
942         (dtv_t): Remove.
943         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
944         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
945         (dtv_t): Remove.
946         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
947         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
948         (dtv_t): Remove.
949
950 2016-06-20  Florian Weimer  <fweimer@redhat.com>
951
952         Revert symbol poisoning of  __malloc_initialize_hook.
953         * include/stdc-predef.h (__malloc_initialize_hook): Remove
954         poisoning.
955         * malloc/Makefile: Remove un-poisoning.
956         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
957         instead of old__malloc_initialize_hook.
958         * malloc/malloc-hooks.h: Likewise.
959         * malloc/malloc.c: Likewise.
960         * malloc/mcheck-init.c: Likewise.
961
962 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
963
964         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
965
966 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
967
968         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
969         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
970         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
971         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
972
973 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
974
975         * NEWS: Mention addition of nextup and nextdown.
976         * manual/arith.texi: Document nextup and nextdown.
977         * manual/libm-err-tab.pl: Add nextup and nextdown.
978         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
979         * math/Versions (libm): Add GLIBC_2.24.
980         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
981         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
982         Add new test.
983         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
984         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
985         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
986         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
987         (nextup_test_data): Likewise.
988         (nextdown_test_data): Likewise.
989         * math/s_nextdown.c: New file.
990         * math/s_nextdownf.c: Likewise.
991         * math/s_nextdownl.c: Likewise.
992         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
993         F(nextup): New function.
994         F(nextdown): Likewise.
995         * math/tgmath.h: Add nextup and nextdown.
996         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
997         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
998         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
999         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
1000         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
1001         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
1002         Add nextup and nextdown.
1003         (CFLAGS-nldbl-nextup.c): New variable.
1004         (CFLAGS-nldbl-nextdown.c): Likewise.
1005         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
1006         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
1007         * sysdeps/nacl/libm.abilist: Update.
1008         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1009         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1010         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1011         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1012         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1013         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1014         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1015         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1016         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1017         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1018         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1019         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
1021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1022         Likewise.
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
1025         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1026         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1027         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1028         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1030         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
1031         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
1032         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1033         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1034         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
1035         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1036
1037 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1038
1039         * manual/pattern.texi: Fix typos & grammar errors.
1040
1041 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1042
1043         * manual/search.texi: Fix typos & grammar errors.
1044
1045 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1046
1047         * manual/message.texi: Fix typos & grammar errors.
1048
1049 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
1050
1051         * manual/contrib.texi: Fix spelling typos.
1052         * manual/crypt.texi: Likewise.
1053         * manual/filesys.texi: Likewise.
1054         * manual/locale.texi: Likewise.
1055         * manual/message.texi: Likewise.
1056         * manual/nss.texi: Likewise.
1057         * manual/string.texi: Likewise.
1058
1059 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1060
1061         * manual/locale.texi: Fix typos & grammar errors.
1062
1063 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1064
1065         * manual/charset.texi: Fix typos & grammar errors.
1066
1067 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1068
1069         * manual/string.texi: Fix typos.
1070
1071 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1072
1073         * manual/ctype.texi: Fix typos.
1074
1075 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
1076
1077         * manual/memory.texi: Fix various typos & grammar errors.
1078
1079 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
1080
1081         [BZ #20255]
1082         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
1083         * math/libm-test.inc (fdim_test_data): Add another test.
1084
1085         [BZ #6796]
1086         [BZ #20255]
1087         [BZ #20256]
1088         * math/s_fdim.c: Include <math_private.h>.
1089         (__fdim): Use math_narrow_eval on result.
1090         * math/s_fdimf.c: Include <math_private.h>.
1091         (__fdimf): Use math_narrow_eval on result.
1092         * sysdeps/i386/fpu/s_fdim.S: Remove file.
1093         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
1094         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
1095         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
1096         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
1097         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
1098         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
1099         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
1100         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
1101         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
1102         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
1103         * math/libm-test.inc (fdim_test_data): Expect errno setting on
1104         overflow.  Add sNaN tests.
1105
1106         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
1107         fpclassify.
1108         * math/s_fdimf.c (__fdimf): Likewise.
1109         * math/s_fdiml.c (__fdiml): Likewise.
1110
1111 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1112
1113         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
1114         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
1115         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1116         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
1117         ifunc'ed strcasecmp/strncasecmp.
1118         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
1119         [EALIGN]: Removed.
1120         [END]: Likewise.
1121         [__strcasecmp]: Define instead of the above to control symbol name.
1122         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
1123         for __strcasecmp_power8.
1124         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
1125         for __strncasecmp_power8.
1126         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
1127         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
1128         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1129         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
1130         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
1131         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
1132
1133 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
1134
1135         [BZ #20252]
1136         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
1137         arguments when second argument is a NaN.
1138         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
1139         qNaN tests.
1140
1141         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
1142         (conj_test_data): Likewise.
1143         (copysign_test_data): Likewise.
1144         (creal_test_data): Likewise.
1145         (fma_test_data): Likewise.
1146         (fmod_test_data): Likewise.
1147
1148         [BZ #20250]
1149         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
1150         itself.
1151         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
1152         zero input to itself.
1153         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
1154         Likewise.
1155         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
1156         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
1157         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1158         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
1159         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
1160
1161 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1162
1163         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
1164         * nptl/tst-cancel4-common.c: New file.
1165         * nptl/tst-cancel4-common.h: Likewise.
1166         * nptl/tst-cancel4.c: Move common definitions to
1167         tst-cancel4-common.{c,h} file.
1168         * nptl/tst-cancel4_1.c: New test.
1169         * nptl/tst-cancel4_2.c: New test.
1170
1171 2016-06-13  Florian Weimer  <fweimer@redhat.com>
1172
1173         [BZ #20248]
1174         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
1175         (write_message): New function.
1176         (stackoverflow_handler): Call it instead of printf, to avoid
1177         excessive stack usage by printf.
1178         (do_test): Restore SIGSEGV, SIGBUS default handlers.
1179
1180 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1181
1182         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
1183         (prio_inherit_missing): Remove define.
1184         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1185         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1186         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
1187         Likewise.
1188         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1189         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1190         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1191         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1192         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1193         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1194
1195 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1196
1197         [BZ #19670]
1198         [BZ #19672]
1199
1200         * io/test-lfs.c (do_prepare): Use xmalloc.
1201         * io/tst-fcntl.c (do_prepare): Likewise.
1202         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1203         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1204         * login/tst-utmp.c (do_prepare): Likewise.
1205         * posix/tst-exec.c (do_prepare): Likewise.
1206         * posix/tst-pathconf.c (prepare): Likewise.
1207         * posix/tst-spawn.c (do_prepare): Likewise.
1208         * posix/tst-truncate.c (do_prepare): Likewise.
1209         * rt/tst-aio.c (do_prepare): Likewise.
1210         * rt/tst-aio64.c (do_prepare): Likewise.
1211
1212 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1213
1214         [BZ #20237]
1215         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1216         (get*ent): Set entidx to NULL during initialization.  If entidx is
1217         NULL, start iteration from the beginning.
1218
1219 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1220
1221         * malloc/malloc.c (musable): Return correct size for dumped fake
1222         mmapped chunk.
1223
1224 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1225
1226         [BZ #20222]
1227         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1228         (_IO_cookie_write): Likewise.
1229         (_IO_cookie_seek): Likewise.
1230         (_IO_cookie_close): Likewise.
1231         (_IO_old_cookie_seek): Likewise.
1232         (set_callbacks): New function.
1233         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1234
1235 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1236
1237         * locale/programs/localedef.c (oldstyle_tables): Remove.
1238         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1239
1240 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1241
1242         [BZ #20240]
1243         * math/Makefile (CFLAGS-s_modf.c): New variable.
1244         (CFLAGS-s_modff.c): Likewise.
1245         (CFLAGS-s_modfl.c): Likewise.
1246         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1247
1248 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1249
1250         [BZ #20215]
1251         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1252         [!__GNUC_PREREQ (3,2)]: Likewise.
1253
1254 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1255
1256         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1257         (msghdr.msg_controllen): Likewise.
1258         (cmsghdr.cmsg_len): Likewise.
1259         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1260         ptw-oldsendmsg.
1261         (CFLAGS-oldrecvmsg.c): Remove rule.
1262         (CFLAGS-oldsendmsg.c): Likewise.
1263         (CFLAGS-recvmsg.c): Add rule.
1264         (CFLAGS-sendmsg.c): Likewise.
1265         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1266         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1267         (CFLAGS-recvmsg.c): Remove rule.
1268         (CFLAGS-sendmsg.c): Likewise.
1269         (CFLAGS-oldrecvmsg.c): Likewise.
1270         (CFLAGS-oldsendmsg.c): Likewise.
1271         (CFLAGS-recvmmsg.c): Likewise.
1272         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1273         to kernel defined interfaces.
1274         (msghdr.msg_controllen): Likewise.
1275         (cmsghdr.cmsg_len): Likewise.
1276         (msghdr.__glibc_reserved1): Remove member.
1277         (msghdr.__glibc_reserved2): Likewise.
1278         (cmsghdr.__glibc_reserved1): Likewise.
1279         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1280         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1281         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1282         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1283         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1284         version.
1285         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1286         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1287         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1288         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1289         Remove recvmsg and sendmsg.
1290         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1291         Likewise.
1292         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1293         Likewise.
1294         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1295         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1296         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1297         Likewise.
1298         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1299         Likewise.
1300         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1301         [libc] (GLIBC_2.24): Likewise.
1302         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1303         Likewise.
1304         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1305         Likewise.
1306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1307         [libc] (GLIBC_2.24): Likewise.
1308         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1309         Likewise.
1310         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1311         Likewise.
1312         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1313         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1314         Likewise.
1315         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1316         Likewise.
1317         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1318         Likewise.
1319         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1320         Likewise.
1321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1322         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1323         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1324         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1325         version for {recv,send,recm,sendm}msg.
1326         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1327         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1328         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1329         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1331         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1332         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1333         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1334         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1335         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1336         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1337         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1339         Likewise.
1340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1341         Likewise.
1342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1344         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1345         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1346         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1348         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1352         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1353         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1354         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1355
1356 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1357
1358         [BZ #19564]
1359         Remove __malloc_initialize_hook from the API.
1360         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1361         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1362         #pragma GCC poison.
1363         * malloc/malloc-hooks.h: New file.
1364         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1365         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1366         (old__malloc_initialize_hook): Rename from
1367         __malloc_initialize_hook to evade poisoning.  Turn into compat
1368         symbol.
1369         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1370         __malloc_initialize_hook.
1371         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1372         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1373         * manual/memory.texi (Hooks for Malloc): Remove
1374         __malloc_initialize_hook.  Adjust hook example.
1375
1376 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1377
1378         [BZ #20235]
1379         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1380         itself.
1381         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1382         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1383
1384         [BZ #20234]
1385         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1386         infinity or NaN input to itself.
1387
1388         [BZ #20233]
1389         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1390         to itself.
1391
1392         [BZ #20232]
1393         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1394         itself.
1395
1396 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1397
1398         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1399         __libc_start_main via GOT.
1400
1401 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1402
1403         * sysdeps/x86_64/memcopy.h: New file.
1404         * sysdeps/x86_64/wordcopy.c: Likewise.
1405
1406 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1407
1408         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1409         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1410         <cstdlib>.
1411         (optimization_barrier): New.
1412         (do_test): Use it.  Call quick_exit in the global namespace.
1413         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1414         instead of <cstdlib>, <thread>.
1415         (optimization_barrier): New.
1416         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1417         Call quick_exit in the global namespace.
1418         (do_test): Call optimization_barrier.  Use pthread_create,
1419         pthread_join instead of std::thread.
1420
1421 2016-06-09  Andreas Schwab  <schwab@suse.de>
1422
1423         [BZ #19755]
1424         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1425         new entries in auto-propagate mode.
1426         * nscd/grpcache.c (cache_addgr): Likewise.
1427
1428 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1429
1430         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1431         New functions.
1432         (add_temp_file): Use them.
1433
1434 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1435
1436         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1437
1438 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1439
1440         [BZ #20229]
1441         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1442         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1443         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1444
1445         [BZ #20228]
1446         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1447         itself.
1448         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1449         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1450
1451         [BZ #20227]
1452         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1453         itself.
1454         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1455         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1456         * math/libm-test.inc (log_test_data): Add sNaN tests.
1457
1458         [BZ #20226]
1459         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1460         itself.
1461         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1462         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1463         (exp10_test_data): Likewise.
1464         (expm1_test_data): Likewise.
1465
1466         [BZ #20225]
1467         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1468         itself.
1469         * math/s_ldexpf.c (__ldexpf): Likewise.
1470         * math/s_ldexpl.c (__ldexpl): Likewise.
1471         * math/w_scalbln.c (__w_scalbln): Likewise.
1472         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1473         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1474         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1475         (scalbln_test_data): Likewise.
1476
1477         [BZ #20224]
1478         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1479         argument to itself.
1480         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1481
1482 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1483
1484         [BZ #19776]
1485         * sysdeps/x86_64/memcpy.S: Make it dummy.
1486         * sysdeps/x86_64/mempcpy.S: Likewise.
1487         * sysdeps/x86_64/memmove.S: New file.
1488         * sysdeps/x86_64/memmove_chk.S: Likewise.
1489         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1490         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1491         * sysdeps/x86_64/memmove.c: Removed.
1492         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1493         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1494         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1495         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1496         Likewise.
1497         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1498         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1499         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1500         memcpy-sse2-unaligned, memmove-avx-unaligned,
1501         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1502         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1503         (__libc_ifunc_impl_list): Replace
1504         __memmove_chk_avx512_unaligned_2 with
1505         __memmove_chk_avx512_unaligned.  Remove
1506         __memmove_chk_avx_unaligned_2.  Replace
1507         __memmove_chk_sse2_unaligned_2 with
1508         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1509         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1510         with __memmove_avx512_unaligned.  Replace
1511         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1512         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1513         with __memcpy_chk_avx512_unaligned.  Remove
1514         __memcpy_chk_avx_unaligned_2.  Replace
1515         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1516         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1517         Replace __memcpy_avx512_unaligned_2 with
1518         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1519         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1520         with __mempcpy_chk_avx512_unaligned.  Remove
1521         __mempcpy_chk_avx_unaligned_2.  Replace
1522         __mempcpy_chk_sse2_unaligned_2 with
1523         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1524         Replace __mempcpy_avx512_unaligned_2 with
1525         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1526         Replace __mempcpy_sse2_unaligned_2 with
1527         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1528         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1529         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1530         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1531         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1532         (ENTRY): Removed.
1533         (END): Likewise.
1534         (ENTRY_CHK): Likewise.
1535         (libc_hidden_builtin_def): Likewise.
1536         Don't include ../memcpy.S.
1537         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1538         __memcpy_chk_avx512_unaligned_erms and
1539         __memcpy_chk_avx512_unaligned.  Use
1540         __memcpy_chk_avx_unaligned_erms and
1541         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1542         Default to __memcpy_chk_sse2_unaligned.
1543         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1544         Change function suffix from unaligned_2 to unaligned.
1545         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1546         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1547         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1548         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1549         (ENTRY): Removed.
1550         (END): Likewise.
1551         (ENTRY_CHK): Likewise.
1552         (libc_hidden_builtin_def): Likewise.
1553         Don't include ../mempcpy.S.
1554         (mempcpy): New.  Add a weak alias.
1555         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1556         __mempcpy_chk_avx512_unaligned_erms and
1557         __mempcpy_chk_avx512_unaligned.  Use
1558         __mempcpy_chk_avx_unaligned_erms and
1559         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1560         Default to __mempcpy_chk_sse2_unaligned.
1561
1562 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1563
1564         [BZ #19881]
1565         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1566         into ...
1567         * sysdeps/x86_64/memset.S: This.
1568         (__bzero): Removed.
1569         (__memset_tail): Likewise.
1570         (__memset_chk): Likewise.
1571         (memset): Likewise.
1572         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1573         defined.
1574         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1575         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1576         (__memset_zero_constant_len_parameter): Check SHARED instead of
1577         PIC.
1578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1579         memset-avx2 and memset-sse2-unaligned-erms.
1580         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1581         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1582         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1583         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1584         (__bzero): Enabled.
1585         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1586         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1587         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1588         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1589         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1590         (memset): Removed.
1591         (__memset_chk): Likewise.
1592         (MEMSET_SYMBOL): New.
1593         (libc_hidden_builtin_def): Replace __memset_sse2 with
1594         __memset_sse2_unaligned.
1595         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1596         __memset_chk_sse2 and __memset_chk_avx2 with
1597         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1598         Use __memset_chk_sse2_unaligned_erms or
1599         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1600         __memset_chk_avx512_unaligned_erms and
1601         __memset_chk_avx512_unaligned.
1602
1603 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1604
1605         * math/gen-auto-libm-test.c (fp_format_desc): remove
1606         suffix member.
1607         (output_generic_value): Remove usage of suffix member,
1608         and the resulting unuse of the fp_format argument.
1609         (output_for_one_input_case): Remove unused fp_format
1610         parameter.
1611
1612         * math/auto-libm-test-out: Regenerate.
1613
1614         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1615         usage with TEST_COND_ibm128.
1616         (TEST_COND_flt_32): Remove.
1617         (TEST_COND_dbl_64): Remove.
1618         (TEST_COND_ldbl_96_intel): Remove.
1619         (TEST_COND_ldbl_96_m68k): Remove.
1620         (TEST_COND_ldbl_128): Remove.
1621
1622 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1623
1624         * auto-libm-test-in:
1625         Replace flt-32 usage with binary32.
1626         Replace dbl-64 usage with binary64.
1627         Replace ldbl-intel-96 usage with intel96.
1628         Replace ldbl-m68k-96 usage with m68k96.
1629         Replace ldbl-128ibm usage with ibm128.
1630         Replace ldbl-128 usage with binary128.
1631
1632         * auto-libm-test-out: Regenerate.
1633
1634 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1635
1636         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1637         (parse_ulps): Dynamically generate type name matching
1638         string from all_floats.
1639         (get_ulps): Generate the ulps as an array instead.
1640         (output_ulps): Dynamically compose the type based
1641         on the number of supported formats, and print
1642         the indices as type specific helper macros.
1643
1644         * math/libm-test.inc: Remove comment about CHOOSE.
1645         (ulp_data): Generate the type in libm-test-ulps.h.
1646         (ULP_IDX): New macro.
1647         (find_ulps): Update usage of max_ulp.
1648
1649         * math/test-double-vlen2.h (CHOOSE): Remove.
1650         * math/test-double-vlen4.h (CHOOSE): Likewise.
1651         * math/test-double-vlen8.h (CHOOSE): Likewise.
1652         * math/test-float.c (CHOOSE): Likewise.
1653         * math/test-float-finite.c (CHOOSE): Likewise.
1654         * math/test-double.c (CHOOSE): Likewise.
1655         * math/test-double-finite.c (CHOOSE): Likewise.
1656         * math/test-idouble.c (CHOOSE): Likewise.
1657         * math/test-ifloat.c (CHOOSE): Likewise.
1658         * math/test-ildoubl.c (CHOOSE): Likewise.
1659         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1660         * math/test-ldouble.c (CHOOSE): Likewise.
1661
1662         * math/test-float.h (TEST_FLOAT): Remove.
1663         * math/test-double.h (TEST_DOUBLE): Likewise.
1664         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1665
1666 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1667
1668         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1669         (parse_args): Strip C suffix from floating point literals
1670         typed with 'f' and wrap them with LIT().
1671
1672         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1673         (test_ff_f_data_nexttoward): Rename to
1674         (test_fj_f_data): New struct.
1675         (nexttoward_test_data): Relabel tests as
1676         TEST_fj_f instead of TEST_ff_f.
1677
1678 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1679
1680         Emacs bug 23726.
1681         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1682         (__libc_realloc): Correct size computation for dumped fake mmapped
1683         chunks.
1684
1685 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1686
1687         [BZ #20219]
1688         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1689         to itself.
1690         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1691
1692         [BZ #20218]
1693         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1694         to itself.
1695         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1696
1697 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1698
1699         [BZ #20195]
1700         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1701         check to ...
1702         (init_cpu_features): Here.
1703
1704 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1705
1706         [BZ #20214]
1707         * sysdeps/unix/sysv/linux/bits/in.h
1708         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1709          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1710         Define to 1.
1711         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1712          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1713         Define to 0.
1714         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1715         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1716
1717 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1718
1719         [BZ #20198]
1720         * stdlib/Makefile (tests): Add tst-quick_exit, and
1721         tst-thread-quick_exit.
1722         [ifeq ($(have-cxx-thread_local),yes)]
1723         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1724         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1725         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1726         (LDLIBS-tst-thread-quick_exit): Likewise.
1727         [ifneq ($(have-cxx-thread_local),yes)]
1728         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1729         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1730         If run_dtors is true call __call_tls_dtors.
1731         (exit): Call __run_exit_handlers with run_dtors set to true.
1732         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1733         definition.
1734         * stdlib/quick_exit.c (quick_exit): Remove function.
1735         (__new_quick_exit): New function.
1736         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1737         function.
1738         * stdlib/tst-quick_exit.cc: New file.
1739         * stdlib/tst-thread-quick_exit.cc: New file.
1740         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1741         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1742         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1743         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1744         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1745         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1746         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1747         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1748         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1749         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1750         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1751         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1752         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1753         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1754         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1755         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1760         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1761         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1762         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1763         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1764         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1767         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1768         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1769         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1770
1771 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1772
1773         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1774         a typo in comments.
1775
1776 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1777
1778         [BZ #20213]
1779         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1780         argument to itself.
1781         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1782
1783 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1784
1785         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1786         required flags.
1787         (CFLAGS-pwritev64.c): Likewise.
1788         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1789         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1790         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1791         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1792         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1793         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1794         syscall from auto-generation.
1795         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1796         [WORDSIZE == 64] (pwritev64): Remove macro.
1797         [!PWRITEV] (PWRITEV): Likewise.
1798         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1799         [!PWRITEV] (PWRITE): Likewise.
1800         [!PWRITEV] (OFF_T): Likewise.
1801         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1802         (LO_HI_LONG): Remove macro.
1803         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1804         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1805         (PWRITEV): Remove macro.
1806         (PWRITEV_REPLACEMENTE): Likewise.
1807         (PWRITE): Likewise.
1808         (OFF_T): Likewise.
1809         (pwritev64): New function.
1810         * nptl/tst-cancel4.c (tf_writev): Add test.
1811
1812         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1813         required flags.
1814         (CFLAGS-preadv64.c): Likewise.
1815         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1816         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1817         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1818         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1819         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1820         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1821         syscall from auto-generation.
1822         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1823         [WORDSIZE == 64] (preadv64): Remove macro.
1824         [!PREADV] (PREADV): Likewise.
1825         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1826         [!PREADV] (PREAD): Likewise.
1827         [!PREADV] (OFF_T): Likewise.
1828         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1829         (LO_HI_LONG): Remove macro.
1830         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1831         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1832         (PREADV): Remove macro.
1833         (PREADV_REPLACEMENTE): Likewise.
1834         (PREAD): Likewise.
1835         (OFF_T): Likewise.
1836         (preadv64): New function.
1837         * nptl/tst-cancel4.c (tf_preadv): Add test.
1838
1839 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1840
1841         [BZ #20212]
1842         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1843         argument to itself.
1844         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1845
1846 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1847
1848         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1849         New symbol defined as libc_hidden_def.
1850         (strcasestr): Became a weak alias to __strcasestr.
1851         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1852         according to multi-arch support.  Move __stpncpy hidden
1853         definition from here to...
1854         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1855         symbol stpncpy.
1856         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1857         libc_hidden_builtin_def.
1858         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1859         memset symbol to use when multi-arch support is available.
1860
1861 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1862
1863         * dlfcn/tst-rec-dlopen.c: Include string.h.
1864
1865 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1866
1867         * manual/install.texi: Remove mention of --without-tls
1868         * INSTALL: Regenerate.
1869
1870 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1871
1872         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1873         Remove.
1874         (call_function, interposed_malloc_called): New variables.
1875         (malloc): New function.
1876         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1877         and clear call_function as needed.
1878
1879 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1880
1881         * include/wchar.h (__wmemset): Use __typeof.
1882
1883 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1884
1885         * include/wchar.h (__wmemset): Declare function without typeof.
1886
1887 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1888
1889         [BZ #20205]
1890         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1891         exponent when incrementing negative subnormal with low mantissa
1892         word zero.
1893         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1894         Add another test.
1895
1896 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1897
1898         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1899         __wmemset instead of wmemset.
1900
1901 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1902
1903         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1904         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1905         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1906         __USE_KERNEL_IPV6_DEFS to 0.
1907         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1908         Update comment.
1909
1910 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1911
1912         [BZ #19861]
1913         Do not use IFUNC resolver with potentially unrelocated symbol.
1914         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1915         (DEFINE_FORK): Remove macro and inline definition.
1916         (fork_alias): Renamed from fork_ifunc.
1917         (__fork_alias): Renamed from __fork_ifunc.
1918
1919 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1920
1921         [BZ 19653]
1922         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1923         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1924
1925 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1926
1927         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1928         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1929         i386-linux-gnu).
1930         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1931         Set to no.
1932         * sysdeps/mach/hurd/configure: Refresh.
1933
1934 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1935
1936         [BZ #20178]
1937         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1938         on failure instead of exit.
1939
1940 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1941
1942         [BZ #3629]
1943         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1944         of POSIX.1-2008.
1945
1946 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1947
1948         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1949           Use PLT entry for calling _hurd_self_sigstate.
1950
1951 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1952
1953         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1954         available logical processors with SMT level type sharing L2
1955         cache for Intel processors.
1956
1957 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1958
1959         [BZ #20160]
1960         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1961         argument to itself before returning the result.
1962         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1963         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1964         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1965         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1966         Likewise.
1967         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1968         Likewise.
1969         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1970         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1971         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1972         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1973         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1974         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1975
1976         [BZ #20160]
1977         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1978         argument to itself before returning the result.
1979         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1980         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1981         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1982         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1983         Likewise.
1984         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1985         Likewise.
1986         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1987         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1988         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1989         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1990         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1991         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1992
1993 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1994
1995         * libm-test.inc: Replace usage of M_El with
1996         (lit_e): New macro.
1997
1998 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1999
2000         * libm-test.inc: Replace usage of M_PI_4l with
2001         (lit_pi_4_d): New macro.
2002
2003 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2004
2005         * libm-test.inc: Replace usage of M_PIl with
2006         (lit_pi): New macro.
2007
2008 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2009
2010         * libm-test.inc: Replace usage of M_PI2l with
2011         (lit_pi_2_d): New macro.
2012
2013         * math/test-double.h (LITM): New macro.
2014         * math/test-float.h (LITM): Likewise.
2015         * math/test-ldouble.h (LITM): Likewise.
2016
2017 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2018
2019         * libm-test.inc (M_PI_34l): Rename to
2020         (lit_pi_3_m_4_d): New Macro.
2021         (M_PI_34_LOG10El): Rename to
2022         (lit_pi_3_m_4_ln10_m_d): New Macro.
2023         (M_PI2_LOG10El): Rename to
2024         (lit_pi_2_ln10_m_d):  New Macro.
2025         (M_PI4_LOG10El): Rename to
2026         (lit_pi_4_ln10_m_d):  New Macro.
2027         (M_PI_LOG10El): Rename to
2028         (lit_pi_ln10_d):  New Macro.
2029
2030 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
2031
2032         [BZ #20157]
2033         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
2034         determine whether to negate low half if [_ARCH_PPCGR], and integer
2035         comparison otherwise.
2036         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
2037         determine whether to negate low half.
2038
2039         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
2040         (NO_TEST_INLINE_DOUBLE): Likewise.
2041         (TEST_COND_x86_64): Likewise.
2042         (TEST_COND_x86): Likewise.
2043         (M_PI_6l): Likewise.
2044
2045 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2046
2047         * math/libm-test.inc:
2048         (TEST_FLOAT): Change usage to TEST_COND_binary32.
2049         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
2050         (TEST_LDOUBLE): Update usage to evaluate as true if
2051         the guarded tests match the property being tested.
2052         (LDBL_MAX_EXP): Change to MAX_EXP.
2053         (LDBL_MIN_EXP): Change to MIN_EXP.
2054         (LDBL_MANT_DIG): Change to MANT_DIG, except for
2055         nexttoward tests.
2056
2057 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2058
2059         * math/libm-test.inc:
2060         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
2061         (TYPE_MIN): Likewise.
2062         (TYPE_TRUE_MIN): Likewise.
2063         (TYPE_MAX): Likewise.
2064         (MIN_EXP): Likewise.
2065         (MAX_EXP): Likewise.
2066         (MANT_DIG): Likewise.
2067
2068         (FSTR_MAX): New macro.
2069         (__CONCATX): Likewise.
2070         (QTYPE_STR): Likewise.
2071         (TEST_COND_binary32): Likewise.
2072         (TEST_COND_binary64): Likewise.
2073         (TEST_COND_binary128): Likewise.
2074         (TEST_COND_ibm128): Likewise.
2075         (TEST_COND_intel96): Likewise.
2076         (TEST_COND_m68k96): Likewise.
2077
2078         (TEST_COND_flt_32): Redefine as equivalent format test macro.
2079         (TEST_COND_dbl_64): Likewise.
2080         (TEST_COND_ldbl_96_intel): Likewise.
2081         (TEST_COND_ldbl_96_m68k): Likewise.
2082         (TEST_COND_ldbl_128): Likewise.
2083         (TEST_COND_ldbl_128ibm): Likewise.
2084
2085         (plus_zero): Redefine using LIT macro.
2086         (minus_zero): Likewise.
2087         (plus_infty): Redefine as (INF).
2088         (minux_infty): Redefine as (-INF).
2089         (max_value): Redefine as TYPE_MAX.
2090         (min_value): Redefine as TYPE_MIN.
2091         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
2092
2093         (print_float): Refactor to use snprintf to convert FLOAT values
2094         to string. This brings it closer to dropin replacement of strtof
2095         for the TS 18661 defined types.
2096         (update_stats): Likewise.
2097         (print_complex_function_ulps): Likewise.
2098         (print_max_error): Likewise.
2099         (print_complex_max_error): Likewise.
2100         (check_float_internal): Likewise.
2101
2102         * math/test-float.h (PREFIX): New macro.
2103         (LIT): Likewise.
2104         (TYPE_STR): Likewise.
2105         (FTOSTR): Likewise.
2106
2107         * math/test-double.h (PREFIX): New macro.
2108         (LIT): Likewise.
2109         (TYPE_STR): Likewise.
2110         (FTOSTR): Likewise.
2111
2112         * math/test-ldouble.h (PREFIX): New macro.
2113         (LIT): Likewise.
2114         (TYPE_STR): Likewise.
2115         (FTOSTR): Likewise.
2116
2117 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
2118
2119         [BZ #20156]
2120         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
2121         to itself when zero or not finite.
2122         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
2123         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
2124         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
2125         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
2126
2127 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
2128
2129         [BZ #20153]
2130         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
2131         x * x + x for infinities and NaNs.
2132
2133         [BZ #20151]
2134         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
2135         argument to itself before returning result.
2136         (__ieee754_y0l): Likewise.
2137         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2138         (__ieee754_y1l).
2139
2140         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
2141         (atan_test_data): Likewise.
2142         (ceil_test_data): Likewise.
2143         (cos_test_data): Likewise.
2144         (cosh_test_data): Likewise.
2145         (erf_test_data): Likewise.
2146         (exp2_test_data): Likewise.
2147         (fabs_test_data): Likewise.
2148         (floor_test_data): Likewise.
2149         (ilogb_test_data): Likewise.
2150         (j0_test_data): Likewise.
2151         (j1_test_data): Likewise.
2152         (jn_test_data): Likewise.
2153         (lgamma_test_data): Likewise.
2154         (lrint_test_data): Likewise.
2155         (llrint_test_data): Likewise.
2156         (logb_test_data): Likewise.
2157         (lround_test_data): Likewise.
2158         (llround_test_data): Likewise.
2159         (nearbyint_test_data): Likewise.
2160         (rint_test_data): Likewise.
2161         (round_test_data): Likewise.
2162         (sin_test_data): Likewise.
2163         (sincos_test_data): Likewise.
2164         (sinh_test_data): Likewise.
2165         (sqrt_test_data): Likewise.
2166         (tan_test_data): Likewise.
2167         (tanh_test_data): Likewise.
2168         (tgamma_test_data): Likewise.
2169         (trunc_test_data): Likewise.
2170         (y0_test_data): Likewise.
2171         (y1_test_data): Likewise.
2172         (yn_test_data): Likewise.
2173
2174         * math/libm-test.inc: Update comment about NaN testing.
2175         (TEST_SNAN): New macro.
2176         (snan_value): Likewise.
2177         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
2178         (fpclassify_test_data): Add sNaN tests.
2179         (isfinite_test_data): Likewise.
2180         (isinf_test_data): Likewise.
2181         (isnan_test_data): Likewise.
2182         (isnormal_test_data): Likewise.
2183         (issignaling_test_data): Likewise.
2184         (signbit_test_data): Likewise.
2185         * math/gen-libm-test.pl (%beautify): Add snan_value.
2186         (show_exceptions): Add argument $test_snan.
2187         (parse_args): Handle snan_value as non-finite.  Update call to
2188         show_exceptions.
2189         * math/Makefile (libm-test-no-inline-cflags): Add
2190         -fsignaling-nans.
2191
2192 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2193
2194         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
2195         (CFLAGS-oldsendmsg.c): Add rule.
2196         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
2197         Correct recvmsg symbol name.
2198         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
2199         Likewise.
2200
2201 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2202
2203         * sysdeps/unix/sysv/linux/Makefile
2204         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2205         oldsendmmsg.
2206         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2207         sendmmsg.
2208         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2209         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2210         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2211         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2213         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2214         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2216         Likewise.
2217         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2218         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2219         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2220         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2221         iovlen and controllen fields to adjust to POSIX specification.
2222         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2223
2224         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2225         and change to correct expected type.
2226         (msghdr.msg_controllen): Likewise.
2227         (cmsghdr.cmsg_len): Likewise.
2228         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2229         expected POSIX assumption about the size.
2230         (msghdr.msg_controllen): Likewise.
2231         (msghdr.__glibc_reserved1): Likewise.
2232         (msghdr.__glibc_reserved2): Likewise.
2233         (cmsghdr.cmsg_len): Likewise.
2234         (cmsghdr.__glibc_reserved1): Likewise.
2235         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2236         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2237         (CFLAGS-sendmsg.c): Remove rule.
2238         (CFLAGS-recvmsg.c): Likewise.
2239         (CFLAGS-oldsendmsg.c): Add rule.
2240         (CFLAGS-oldrecvmsg.c): Likewise.
2241         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2242         recvmsg and sendmsg.
2243         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2244         Likewise.
2245         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2246         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2247         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2248         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2249         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2250         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2251         Likewise.
2252         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2253         Likewise.
2254         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2255         Likewise.
2256         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2257         Likewise.
2258         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2259         Likewise.
2260         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2261         Likewise.
2262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2263         (GLIBC_2.24): Likewise.
2264         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2265         Likewise.
2266         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2267         Likewise.
2268         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2269         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2270         Likewise.
2271         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2272         Likewise.
2273         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2274         Likewise.
2275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2276         (GLIBC_2.24): Likewise.
2277         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2278         Likewise.
2279         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2280         Likewise.
2281         * sysdeps/unix/sysv/linux/Makefile
2282         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2283         (CFLAGS-sendmsg.c): Add rule.
2284         (CFLAGS-recvmsg.c): Likewise.
2285         (CFLAGS-oldsendmsg.c): Likewise.
2286         (CFLAGS-oldrecvmsg.c): Likewise.
2287         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2288         initialization.
2289         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2290         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2291         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2292         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2293         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2294         iovlen and controllen fields to adjust to POSIX specification.
2295         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2296         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2297         added recvmsg and sendmsg.
2298         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2299         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2300         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2301         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2302         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2303         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2304         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2305         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2306         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2307         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2308         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2309         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2311         Likewise.
2312         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2314         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2315         Likewise.
2316         Likewise.
2317         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2318         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2319         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2320         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2321         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2322         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2323         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2324         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2325         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2326         Likewise.
2327         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2328         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2329
2330         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2331         from auto-generation.
2332         (sendmsg): Likewise.
2333         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2334         (sendmsg): Likewise.
2335         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2336         (sendmsg): Likewise.
2337         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2338         (sendmsg): Likewise.
2339         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2340         (sendmsg): Likewise.
2341         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2342         (sendmsg): Likewise.
2343         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2344         Likewise.
2345         (sendmsg): Likewise.
2346         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2347         (sendmsg): Likewise.
2348         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2349         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2350         Remove.
2351         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2352         Likewise.
2353         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2354         Undefine.
2355         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2356         Likewise.
2357         * sysdeps/unix/sysv/linux/kernel-features.h
2358         (__ASSUME_SENDMSG_SYSCALL): Define.
2359         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2360         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2361         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2362         Remove.
2363         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2364         Likewise.
2365         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2366         Undefine.
2367         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2368         Likewise.
2369         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2370         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2371         Remove.
2372         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2373         Likewise.
2374         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2375         Undefine.
2376         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2377         Likewise.
2378         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2379         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2380         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2381         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2382         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2383         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2384         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2385         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2386         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2387
2388 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2389
2390         * stdlib/gen-tst-strtod-round.c: Add backslash to
2391         compile command in comment.
2392         (printfp): Remove the literal suffix, and define an infinite
2393         value as INF to avoid expansion clash with INFINITY.
2394         (round_str): Remove the literal suffix.
2395         (round_for_all): Likewise, remove the now duplicate ldbl-64
2396         entry, and remove some magic constants.
2397
2398         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2399         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2400         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2401         (_CONCAT): New macro.
2402         (CONCAT): Likewise.
2403         (CHOOSE_ld): Likewise.
2404         (CHOOSE_f): Likewise.
2405         (CHOOSE_d): Likewise.
2406         (FTYPE_MEMBER): Likewise.
2407         (BOOL_MEMBER): Likewise.
2408         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2409         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2410         (_XNTRY): Likewise.
2411         (XNTRY): Likewise.
2412         (_ENTRY): Likewise.
2413         (ENTRY): Likewise.
2414         (test_exactness): Generate members via macro.
2415         (test_results): Likewise.
2416         (test): Update members.
2417         (TEST): Redefine using new macros.
2418         (INF): New macro.
2419         (fetestmodes): New structure.
2420         (do_test): Refactor to be type generic.
2421         (test_in_one_mode): Refactor duplicate code into
2422         (GEN_ONE_TEST): New macro.
2423
2424         * stdlib/tst-strtod-round-data.h: Regenerate.
2425
2426         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2427         Extend to pass additional arbitrary parameters to
2428         generators.
2429
2430 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2431
2432         [BZ #15479]
2433         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2434         floating-point state after first floating-point operation on
2435         input.  Restore full floating-point state instead of just rounding
2436         mode.
2437         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2438         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2439         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2440         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2441         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2442
2443         [BZ #15479]
2444         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2445         floating-point state after first floating-point operation on
2446         input.  Restore full floating-point state instead of just rounding
2447         mode.
2448         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2449         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2450         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2451         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2452         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2453
2454 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2455
2456         [BZ #19727]
2457         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2458         valid high surrogate.
2459         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2460         of an utf16 surrogate.
2461         * iconv/gconv_simple.c (BODY): Likewise.
2462         * iconvdata/bug-iconv12.c: New file.
2463         * iconvdata/Makefile (tests): Add bug-iconv12.
2464
2465 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2466
2467         [BZ #19726]
2468         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2469         outptrp in case of an illegal input.
2470         * iconv/tst-iconv6.c: New file.
2471         * iconv/Makefile (tests): Add tst-iconv6.
2472
2473 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2474
2475         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2476         an error in case of a value in range of an utf16 low surrogate.
2477
2478 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2479
2480         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2481         an error in case of a value in range of an utf16 low surrogate.
2482
2483 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2484
2485         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2486         Move to ...
2487         * sysdeps/s390/Makefile: ... here.
2488         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2489         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2490         (BRANCH_ON_COUNT): New define.
2491         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2492         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2493         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2494         run on s390-32, too.
2495         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2496         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2497         run on s390-32, too.
2498         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2499         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2500         run on s390-32, too.
2501
2502 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2503
2504         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2505         etf3eh or new vector loop-variant.
2506
2507 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2508
2509         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2510         etf3eh or new vector loop-variant.
2511
2512 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2513
2514         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2515         or new vector loop-variant.
2516
2517 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2518
2519         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2520         Rename to TR_LOOP and usage of tr instead of troo instruction.
2521
2522 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2523
2524         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2525         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2526
2527 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2528
2529         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2530         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2531         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2532         New override define.
2533         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2534
2535 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2536
2537         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2538         * sysdeps/s390/configure.ac: Add test for S390 vector register
2539         support in gcc.
2540         * sysdeps/s390/configure: Regenerated.
2541
2542 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2543
2544         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2545         Install file from $(objpfx)gconv-modules.
2546         ($(objpfx)gconv-modules): Concatenate architecture specific file
2547         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2548         * sysdeps/s390/gconv-modules: New file.
2549         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2550         Deleted.
2551         ($(objpfx)gconv-modules-s390): Deleted.
2552         (sysdeps-gconv-modules): New variable.
2553
2554 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2555
2556         [BZ #15479]
2557         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2558         of immediate operand to rounding instruction.
2559         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2560         Likewise.
2561         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2562         Likewise.
2563         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2564         Likewise.
2565
2566 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2567
2568         * math/libm-test.inc (MIN_EXP): Directly define as
2569         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2570
2571 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2572
2573         * math/libm-test.inc (MANT_DIG): Directly define as
2574         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2575
2576 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2577
2578         * stdlib/gen-tst-strtod-round.c (main):
2579           Change usage to more closely match the generated
2580           output.  Add usage and compilation instructions.
2581           (string_to_fp): Add and use FILE* parameter as
2582           output target.
2583           (print_fp): Likewise.
2584           (round_str): Likewise.
2585           (round_for_all): Likewise.
2586         * stdlib/tst-strtod-round.c (tests): Move into
2587         * stdlib/tst-strtod-round-data.h: New file.
2588
2589 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2590
2591         [BZ #15479]
2592         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2593         (__round): Do not force "inexact" exception.
2594         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2595         variable.
2596         (__round): Do not force "inexact" exception.
2597         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2598         (__roundf): Do not force "inexact" exception.
2599         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2600         (__roundl): Do not force "inexact" exception.
2601         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2602         (__roundl): Do not force "inexact" exception.
2603         * math/libm-test.inc (round_test_data): Do not allow spurious
2604         "inexact" exceptions.
2605
2606         [BZ #15479]
2607         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2608         exception in comment.
2609         (huge): Remove variable.
2610         (__floor): Do not force "inexact" exception.
2611         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2612         "inexact" exception in comment.
2613         (huge): Remove variable.
2614         (__floor): Do not force "inexact" exception.
2615         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2616         exception in comment.
2617         (huge): Remove variable.
2618         (__floorf): Do not force "inexact" exception.
2619         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2620         exception in comment.
2621         (huge): Remove variable.
2622         (__floorl): Do not force "inexact" exception.
2623
2624         [BZ #15479]
2625         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2626         exception in comment.
2627         (huge): Remove variable.
2628         (__ceil): Do not force "inexact" exception.
2629         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2630         "inexact" exception in comment.
2631         (huge): Remove variable.
2632         (__ceil): Do not force "inexact" exception.
2633         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2634         (__ceilf): Do not force "inexact" exception.
2635         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2636         exception in comment.
2637         (huge): Remove variable.
2638         (__ceill): Do not force "inexact" exception.
2639
2640 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2641
2642         * config.h.in (BIND_NOW): New.
2643         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2644         * configure: Regenerated.
2645         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2646         indirect branch via the GOT slot.
2647
2648 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2649
2650         [BZ #19765]
2651         * sysdeps/s390/mempcpy.S: New File.
2652         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2653         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2654         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2655         Add mempcpy variants.
2656         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2657         (memcpy): Adjust to be usable from mempcpy entry point.
2658         (__memcpy_mvcle): Likewise.
2659         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2660         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2661         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2662         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2663         (__memcpy_z10): Likewise.
2664         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2665
2666 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2667
2668         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2669         Remove __GI_ symbol.
2670         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2671         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2672         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2673         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2674         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2675         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2676
2677 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2678
2679         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2680         Use cghi instead of chi to compare 64bit value.
2681
2682 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2683
2684         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2685         Jump to 1MB check before executing mvc-loop.
2686
2687 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2688
2689         [BZ #6527]
2690         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2691         unconditionally.
2692         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2693
2694 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2695
2696         * stdlib/tst-strtod6.c (do_test): Use new type generic
2697         invocation of the test function.
2698         (test): Refactor into ...
2699         (TEST_STRTOD): New macro base function.
2700
2701 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2702
2703         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2704         (TEST_STRTOD): New macro.
2705         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2706
2707 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2708
2709         * stdlib/tst-strtod6.c (do_test): Use new type generic
2710         invocation of the test function.
2711         (test): Refactor into ...
2712         (TEST_STRTOD): New macro base function.
2713
2714 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2715
2716         CVE-2016-4429
2717         [BZ #20112]
2718         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2719         payload.
2720
2721 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2722
2723         [BZ #20111]
2724         * bits/sockaddr.h (_SS_SIZE): Define.
2725         * bits/socket.h (_SS_SIZE): Remove.
2726         (_SS_PADSIZE): Adjust to account for all padding.
2727         (struct sockaddr_storage): Update comment.  Avoid implicit
2728         padding.
2729         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2730         (_SS_PADSIZE): Adjust to account for all padding.
2731         (struct sockaddr_storage): Update comment.  Avoid implicit
2732         padding.
2733         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2734         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2735         (_SS_PADSIZE): Adjust to account for all padding.
2736         (struct sockaddr_storage): Update comment.  Avoid implicit
2737         padding.
2738         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2739         __SS_SIZE is 126 in this version.
2740         * inet/tst-sockaddr.c: New file.
2741         * inet/Makefile (tests): Add tst-sockaddr.c
2742         (tst-sockaddr.c): Compile with non-strict aliasing.
2743
2744 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2745
2746         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2747         [XPG3 || XPG4].
2748         (NL_ARGMAX): Also expect for [XPG3].
2749         (NL_LANGMAX): Likewise.
2750         (NL_MSGMAX): Likewise.
2751         (NL_NMAX): Likewise.
2752         (NL_SETMAX): Likewise.
2753         (NL_TEXTMAX): Likewise.
2754         (NZERO): Likewise.
2755         (TMP_MAX): Likewise.
2756         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2757         variable.
2758
2759         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2760         (PF_MAX): Update value.
2761         (AF_KCM): New macro.
2762         (SOL_NETBEUI): Likewise.
2763         (SOL_LLC): Likewise.
2764         (SOL_DCCP): Likewise.
2765         (SOL_NETLINK): Likewise.
2766         (SOL_TIPC): Likewise.
2767         (SOL_RXRPC): Likewise.
2768         (SOL_PPPOL2TP): Likewise.
2769         (SOL_BLUETOOTH): Likewise.
2770         (SOL_PNPIPE): Likewise.
2771         (SOL_RDS): Likewise.
2772         (SOL_IUCV): Likewise.
2773         (SOL_CAIF): Likewise.
2774         (SOL_ALG): Likewise.
2775         (SOL_NFC): Likewise.
2776         (SOL_KCM): Likewise.
2777         (MSG_BATCH): New enum value and macro.
2778
2779 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         [BZ #18185]
2782         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2783         sharing L2 cache to 2 for Knights Landing.
2784
2785 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2786
2787         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2788         (FTW_DP): Do not expect for [XPG3 || XPG4].
2789         (FTW_SL): Do not expect for [XPG3].
2790         (FTW_SLN): Likewise.
2791         (FTW_PHYS): Likewise.
2792         (FTW_MOUNT): Likewise.
2793         (FTW_DEPTH): Likewise.
2794         (FTW_CHDIR): Likewise.
2795         (nftw): Likewise.
2796         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2797         variable.
2798
2799 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2800
2801         * manual/errno.texi: Fix various typos & grammar errors.
2802
2803 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2804
2805         * manual/intro.texi: Fix duplicated typo.
2806
2807 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2808
2809         [BZ #13304]
2810         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2811         <float.h>, <math_private.h> and <stdlib.h>.
2812         (add_split): New function.
2813         (mul_split): Likewise.
2814         (ext_val): New typedef.
2815         (store_ext_val): New function.
2816         (mul_ext_val): New function.
2817         (compare): New function.
2818         (add_split_ext): New function.
2819         (__fmal): After checking for Inf, NaN and zero, compute result as
2820         an exact sum of scaled double values in round-to-nearest before
2821         adding those up and adjusting for other rounding modes.
2822         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2823         tests of fma.
2824         * math/auto-libm-test-out: Regenerated.
2825
2826 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2827
2828         [BZ #20119]
2829         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2830         processor level type mask for CPUID with EAX == 11.
2831
2832 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2833
2834         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2835         logical threads if the HTT bit is 0.
2836         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2837         (index_cpu_HTT): Likewise.
2838         (reg_HTT): Likewise.
2839
2840 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2841
2842         [BZ #20115]
2843         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2844         Remove alignments on jump targets.
2845
2846 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2847
2848         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2849         (getpwent): Likewise.
2850         (setpwent): Likewise.
2851         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2852         variable.
2853
2854         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2855         (remque): Likewise.
2856         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2857         variable.
2858
2859 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2860
2861         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2862         not being tested.
2863
2864 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2865
2866         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2867         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2868         call.
2869         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2870         (__condvar_cleanup1): Likewise.
2871
2872 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2873
2874         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2875         New
2876         (__pthread_unwind): Renamed to ...
2877         (PTHREAD_UNWIND): This.
2878         (__pthread_enable_asynccancel): Replace
2879         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2880
2881 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2882
2883         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2884         (CLONE_NEWCGROUP): New macro.
2885
2886         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2887         (Q_GETNEXTQUOTA): New macro.
2888
2889 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2890
2891         [BZ #19907]
2892         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2893         buffer updated by the previous run.
2894         * string/test-memcpy.c (do_one_test): Likewise.
2895         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2896         * string/test-memmove.c (do_one_test): Likewise.
2897
2898 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2899
2900         [BZ #20094]
2901         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2902         not [__USE_XOPEN].
2903         (unlockpt): Likewise.
2904         (ptsname): Likewise.
2905         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2906         variable.
2907
2908         [BZ #20076]
2909         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2910         instead of [__USE_UNIX98].
2911         (S_ISSOCK): Likewise.
2912         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2913         variable.
2914
2915         [BZ #20074]
2916         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2917         [__USE_POSIX].
2918         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2919         variable.
2920
2921         [BZ #20051]
2922         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2923         (ttyslot): Do not declare.
2924         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2925         (ttyslot): New prototype.
2926         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2927         variable.
2928         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2929
2930 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2931
2932         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2933
2934 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2935
2936         Fix race condition in tst-mallocfork2, use fewer resources.
2937         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2938         to current process group.
2939         (signal_sender): Yield in the non-sleeping case.
2940
2941 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2942
2943         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2944         (ecvt): Likewise.
2945         (fcvt): Likewise.
2946         (gcvt): Likewise.
2947         (getsubopt): Likewise.
2948         (grantpt): Likewise.
2949         (initstate): Likewise.
2950         (l64a): Likewise.
2951         (mktemp): Likewise.
2952         (mkstemp): Likewise.
2953         (ptsname): Likewise.
2954         (random): Likewise.
2955         (realpath): Likewise.
2956         (setstate): Likewise.
2957         (srandom): Likewise.
2958         (ttyslot): Likewise.
2959         (unlockpt): Likewise.
2960         (valloc): Likewise.
2961
2962         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2963         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2964         variable.
2965
2966 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2967
2968         [BZ #20072]
2969         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2970         init_cpu_features only if SHARED is defined.
2971         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2972
2973 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2974
2975         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2976         non-inclusive caches on Intel processors.
2977
2978 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2979
2980         * malloc/malloc.c (dumped_main_arena_start)
2981         (dumped_main_arena_end): New variables.
2982         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2983         (do_check_chunk): Skip dumped fake mmapped chunks.
2984         (munmap_chunk): Likewise.
2985         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2986         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2987         mmapped chunks.
2988         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2989         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2990         and dumped_main_arena_end to cover the dumped heap.
2991
2992 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2993
2994         * conform/data/time.h-data (getdate_err): Do not expect for
2995         [XPG3].
2996         (getdate): Likewise.
2997         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2998         variable.
2999
3000         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
3001         (F_ULOCK): Likewise.
3002         (F_TEST): Likewise.
3003         (F_TLOCK): Likewise.
3004         (useconds_t): Likewise.
3005         (intptr_t): Do not expect for [XPG3] or [XPG4].
3006         (brk): Do not expect for [XPG3]
3007         (fchown): Likewise.
3008         (fchdir): Likewise.
3009         (ftruncate): Likewise.
3010         (getdtablesize): Likewise.
3011         (gethostid): Likewise.
3012         (getpagesize): Likewise.
3013         (getpgid): Likewise.
3014         (getsid): Likewise.
3015         (getwd): Likewise.
3016         (lchown): Likewise.
3017         (lockf): Likewise.
3018         (readlink): Likewise.
3019         (sbrk): Likewise.
3020         (setpgrp): Likewise.
3021         (setregid): Likewise.
3022         (setreuid): Likewise.
3023         (symlink): Likewise.
3024         (sync): Likewise.
3025         (truncate): Likewise.
3026         (ualarm): Likewise.
3027         (usleep): Likewise.
3028         (vfork): Likewise.
3029         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
3030         variable.
3031
3032         [BZ #20054]
3033         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
3034         not [__USE_UNIX98].
3035         * conform/data/unistd.h-data (gethostname): Do not expect for
3036         [XPG3].
3037
3038         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
3039         [!POSIX] (S_IFBLK): Likewise.
3040         [!POSIX] (S_IFCHR): Likewise.
3041         [!POSIX] (S_IFIFO): Likewise.
3042         [!POSIX] (S_IFREG): Likewise.
3043         [!POSIX] (S_IFDIR): Likewise.
3044         [!POSIX] (S_IFLNK): Likewise.
3045         [!POSIX] (S_IFSOCK): Likewise.
3046         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
3047         variable.
3048         (test-xfail-XPG4/fcntl.h/conform): Likewise.
3049
3050 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
3051
3052         * sysdeps/aarch64/memset.S (__memset):
3053         Rewrite of optimized memset.
3054
3055 2016-05-12  Florian Weimer  <fweimer@redhat.com>
3056
3057         [BZ #19703]
3058         Partially async-signal-safe fork for single-threaded processes.
3059         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
3060         variable.  Do not acquire and reset/release malloc and libio locks
3061         in single-threaded processes.
3062         * malloc/tst-mallocfork2.c: New file.
3063         * malloc/Makefile (tests): Add it.
3064
3065 2016-05-12  Florian Weimer  <fweimer@redhat.com>
3066
3067         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
3068         argument.  Use scratch buffer instead of extend_alloca.
3069         (gethosts): Use scratch buffer instead of extend_alloca.
3070         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
3071         extend_alloca.
3072         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
3073
3074 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
3075
3076         [BZ #20055]
3077         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
3078         instead of [__USE_UNIX98].
3079         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
3080         [__USE_UNIX98].
3081         * conform/data/termios.h-data (tcgetsid): Do not expect for
3082         [XPG3].
3083         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
3084         variable.
3085         (test-xfail-XPG4/termios.h/conform): Likewise.
3086
3087 2016-05-11  Florian Weimer  <fweimer@redhat.com>
3088
3089         Do not use mcheck in localedef.
3090         * locale/programs/localedef.c (turn_on_mcheck)
3091         (__malloc_initialize_hook): Remove.
3092
3093 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3094
3095         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
3096         * sysdeps/s390/s390-64/Makefile: Likewise.
3097
3098 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3099
3100         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
3101         Remove ifunc-defines.sym.
3102         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
3103         Likewise.
3104         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
3105         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
3106         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
3107         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
3108         rtld-global-offsets.sym.
3109         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
3110         * sysdeps/x86/cpu-features-offsets.sym: This.
3111         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
3112         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
3113
3114 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
3115
3116         [BZ #20073]
3117         * io/sys/stat.h (fchmod): Declare for
3118         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
3119         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
3120         variable.
3121
3122         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
3123         [XPG3] (S_IFSOCK): Likewise.
3124         [XPG3] (S_ISVTX): Likewise.
3125         [XPG3] (S_ISLNK): Likewise.
3126         [XPG3] (S_ISSOCK): Likewise.
3127         [XPG3] (fchmod): Likewise.
3128         [XPG3] (lstat): Likewise.
3129         [XPG3] (mknod): Likewise.
3130
3131         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
3132         [XPG3].  Expect type long and XFAIL for [XPG4].
3133         (st_blocks): Likewise.
3134
3135         [BZ #20044]
3136         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
3137         (pthread_atfork): New prototype.
3138         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
3139         variable.
3140
3141         [BZ #20043]
3142         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
3143         prototype.
3144
3145 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3146
3147         [BZ #20017]
3148         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
3149         gmtime.
3150
3151 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3152
3153         [BZ #19994]
3154         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
3155         flag in _res.options.
3156
3157 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
3158
3159         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
3160         [XPG3 || XPG4].
3161         (blksize_t): Likewise.
3162         (clockid_t): Likewise.
3163         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
3164         variable.
3165         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3166
3167 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
3168
3169         * sysdeps/unix/sysv/linux/s390/init-first.c:
3170         Add VDSO_SYMBOL(getcpu).
3171         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
3172         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
3173         Add VDSO_SYMBOL(getcpu).
3174         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3175         New define HAVE_GETCPU_VSYSCALL.
3176         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3177
3178 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3179
3180         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
3181         instead of <sysdeps/x86_64/cacheinfo.c>.
3182         * sysdeps/x86_64/cacheinfo.c: Moved to ...
3183         * sysdeps/x86/cacheinfo.c: Here.
3184
3185 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3186
3187         * malloc/malloc-internal.h: Adjust header file guard.
3188
3189 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3190
3191         [BZ #19787]
3192         * inet/getnameinfo.c (check_sprintf_result): New function.
3193         (CHECKED_SNPRINTF): New macro.
3194         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
3195         to the host buffer.
3196         (gni_host_local): Use checked_copy to copy the host name.
3197         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
3198         (gni_serv_local): Use checked_copy to copy the service name.
3199         (getnameinfo): Remove unnecessary truncation of result buffers.
3200
3201 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3202
3203         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3204         in case of inet_ntop failure.
3205
3206 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3207
3208         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3209         avoid long lines.
3210         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3211         variables.
3212         (gni_host_inet, gni_host_local): Add comment.
3213         (gni_host): Add comment.  Use temporary to avoid long lines.
3214
3215 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3216
3217         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3218         registers specifiers where general purpose registers specifiers should
3219         have been used.
3220
3221 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3222
3223         [BZ #19779]
3224         CVE-2016-1234
3225         Avoid copying names of directory entries.
3226         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3227         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3228         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3229         (struct readdir_result): New type.
3230         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3231         (GL_READDIR): New macros.
3232         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3233         (convert_dirent, convert_dirent64): New functions.
3234         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3235         convert_dirent64.  Adjust references to the readdir result.
3236         * sysdeps/unix/sysv/linux/i386/glob64.c:
3237         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3238         * posix/bug-glob2.c (LONG_NAME): Define.
3239         (filesystem): Add LONG_NAME.
3240         (my_DIR): Increase the size of room_for_dirent.
3241
3242 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3243
3244         [BZ #20041]
3245         * misc/sys/select.h (__need_timespec): Only define if
3246         [__USE_XOPEN2K].
3247         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3248         variable.
3249         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3250         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3251         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3252
3253 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3254             Segher Boessenkool  <segher@gcc.gnu.org>
3255
3256         [BZ #20004]
3257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3258         (__novec_swapcontext): Add missing load.
3259
3260 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3261
3262         [BZ #20023]
3263         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3264         <time.h>.
3265         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3266         variable.
3267         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3268
3269 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3270
3271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3272         flags CLONE_VM compare.
3273
3274 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3275
3276         [BZ #20031]
3277         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3278         completely empty.
3279
3280 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3281
3282         [BZ #19573]
3283         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3284         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3285         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3286         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3287         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3288         (hesiod_free_list): Mark as hidden.
3289         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3290         res_set, res_get.
3291         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3292         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3293         (hesiod_init): Remove obsolete res_ninit call.
3294         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3295         (hesiod_bind): Do not call init.
3296         (get_txt_records): Use res_mkquery, res_send instead of
3297         res_nmkquery, res_nsend.
3298         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3299         instead of _nss_hesiod_init.
3300         (_nss_hesiod_initgroups_dyn): Likewise.
3301         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3302         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3303         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3304
3305 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3306
3307         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3308         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3309
3310 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3311
3312         * hesiod/hesiod.h: Remove RCS keyword.
3313         * hesiod/hesiod_p.h: Likewise.
3314
3315         * hesiod/hesiod.c: Likewise.
3316
3317 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3318
3319         [BZ #12450]
3320         * locale/iso-639.def: Add Samogitian/sgs.
3321
3322 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3323
3324         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3325
3326         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3327
3328 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3329             Carlos O'Donell  <carlos@redhat.com>
3330
3331         [BZ #19072]
3332         * grp/Makefile (headers): Add grp-merge.h
3333         (routines): Add grp-merge.
3334         * grp/getgrgid_r.c: Include grp-merge.h.
3335         (DEEPCOPY_FN): Define.
3336         (MERGE_FN): Define.
3337         * grp/getgrname_r.c: Include grp-merge.h.
3338         (DEEPCOPY_FN): Define.
3339         (MERGE_FN): Define.
3340         * grp/grp-merge.c: New file.
3341         * grp/grp-merge.h: New file.
3342         * include/grp-merge.h: New file.
3343         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3344         __copy_grp@GLIBC_PRIVATE.
3345         * manual/nss.texi (Actions in the NSS configuration): Describe
3346         return, continue, and merge.
3347         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3348         (DEEPCOPY_FN): Define.
3349         (MERGE_FN): Define.
3350         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3351         (DEEPCOPY_FN): Define.
3352         (MERGE_FN): Define.
3353         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3354         [!MERGE_FN]: Define __merge_einval.
3355         (CHECK_MERGE): Define.
3356         (REENTRANT_NAME): Process merge if do_merge is true.
3357         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3358         (__nss_getent_r): Likewise.
3359         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3360         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3361
3362 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3363
3364         [BZ #20012]
3365         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3366         length to calculate the buffer to read.
3367         (fmemopen_write): Set the buffer position based on bytes written.
3368         (fmemopen_seek): Return EINVAL for invalid whence modes.
3369
3370         [BZ #19957]
3371         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3372         tst-getpid2.
3373         (test): Add tst-clone2.
3374         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3375         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3376         pid/tid fields for CLONE_VM.
3377         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3378         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3379         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3380         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3381         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3382         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3383         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3384         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3386         Likewise.
3387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3388         Likewise.
3389         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3390         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3391         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3392         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3393         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3394         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3395         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3396         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3397
3398 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3399
3400         [BZ #19642]
3401         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3402         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3403         (gni_serv_local, gni_serv): New functions extracted from
3404         getnameinfo.
3405         (getnameinfo): Call gni_host and gni_serv to perform the
3406         processing.  Always free scratch buffer.
3407
3408 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3409
3410         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3411         remaining bytes in the dest string, with zeros.
3412
3413 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3414
3415         [BZ #20010]
3416         CVE-2016-3706
3417         * sysdeps/posix/getaddrinfo.c
3418         (convert_hostent_to_gaih_addrtuple): New function.
3419         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3420         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3421         AF_INET data.
3422
3423 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3424
3425         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3426         callback function gl_readdir.
3427         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3428         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3429         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3430         memcpy to copy the name.
3431         * manual/pattern.texi (Calling Glob): Document requirements for
3432         implementations of the gl_readdir callback function.
3433         * manual/examples/mkdirent.c: New example.
3434         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3435         per the manual guidance.
3436         * posix/tst-gnuglob.c (my_readdir): Likewise.
3437
3438 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3439
3440         [BZ #20014]
3441         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3442         not [__USE_POSIX].
3443         (getchar_unlocked): Likewise.
3444         (putc_unlocked): Likewise.
3445         (putchar_unlocked): Likewise.
3446         (flockfile): Likewise.
3447         (ftrylockfile): Likewise.
3448         (funlockfile): Likewise.
3449         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3450         variable.
3451         (test-xfail-XPG4/stdio.h/conform): Likewise.
3452
3453         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3454         Expect constant.
3455         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3456         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3457         variable.
3458         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3459         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3460
3461         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3462         [__USE_LARGEFILE64] (off64_t): Likewise.
3463         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3464         variable.
3465
3466 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3467
3468         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3469
3470 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3471
3472         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3473         * resolv/res_init.c: Likewise.
3474         * resolv/res_mkquery.c: Likewise.
3475
3476 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3477
3478         * resolv/res_init.c (isascii): Do not define.  Use definition in
3479         <ctype.h>.
3480         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3481         (LOG_AUTH): Remove.
3482         (SPRINTF): Remove, adjust caller.
3483         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3484
3485 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3486
3487         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3488         SUNSECURITY conditional.
3489         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3490
3491 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3492
3493         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3494         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3495         Remove BSD-related preprocessor conditionals.
3496         * conf/portability.h: Remove.
3497
3498 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3499
3500         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3501         * resolv/res_data.c: Likewise.
3502
3503 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3504
3505         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3506         * resolv/res_data.c: Remove code conditional on ultrix.
3507
3508 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3509
3510         * resolv/res_init.c (RFC1535): Do not define.  Remove
3511         RFC1535 preprocessor conditionals.
3512         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3513         because there configuration options which make the resolver
3514         behavior different.
3515
3516 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3517
3518         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3519         RESOLVSORT preprocessor conditionals.
3520         * resolv/nss_dns/dns-host.c: Likewise.
3521         * resolv/res_init.c: Likewise.
3522
3523 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3524
3525         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3526         is never defined.
3527
3528 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3529
3530         * inet/inet_lnaof.c: Remove SCSS keyword.
3531         * inet/inet_mkadr.c: Likewise.
3532         * inet/inet_net.c: Likewise.
3533         * inet/inet_netof.c: Likewise.
3534         * inet/rcmd.c: Likewise.
3535         * inet/rexec.c: Likewise.
3536         * inet/ruserpass.c: Likewise.
3537
3538 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3539
3540         * resolv/inet_addr.c: Remove _LIBC conditionals.
3541         * resolv/res_data.c: Likewise.
3542         * resolv/res_init.c: Likewise.
3543         * resolv/res_mkquery.c: Likewise.
3544         * resolv/res_libc.c: Update comment.
3545         * resolv/README: Update.
3546
3547 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3548
3549         * resolv/gethnamaddr.c: Remove SCSS keyword.
3550         * resolv/herror.c: Likewise.
3551         * resolv/inet_addr.c: Likewise.
3552         * resolv/inet_net_ntop.c: Likewise.
3553         * resolv/inet_net_pton.c: Likewise.
3554         * resolv/inet_neta.c: Likewise.
3555         * resolv/inet_ntop.c: Likewise.
3556         * resolv/inet_pton.c: Likewise.
3557         * resolv/ns_date.c: Remove RCS keyword.
3558         * resolv/ns_name.c: Likewise.
3559         * resolv/ns_netint.c: Likewise.
3560         * resolv/ns_parse.c: Likewise.
3561         * resolv/ns_print.c: Likewise.
3562         * resolv/ns_samedomain.c: Likewise.
3563         * resolv/ns_ttl.c: Likewise.
3564         * resolv/nsap_addr.c: Likewise.
3565         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3566         * resolv/res_data.c: Remove RCS keyword.
3567         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3568         * resolv/res_init.c: Likewise.
3569         * resolv/res_mkquery.c: Likewise.
3570         * resolv/res_query.c: Likewise.
3571         * resolv/res_send.c: Likewise.
3572
3573 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3574
3575         * conform/data/stdio.h-data (fdopen): Expect also for
3576         [XPG3 || XPG4].
3577
3578         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3579         (fseeko): Likewise.
3580         (ftello): Likewise.
3581         (ftrylockfile): Likewise.
3582         (funlockfile): Likewise.
3583         (getc_unlocked): Likewise.
3584         (getchar_unlocked): Likewise.
3585         (putc_unlocked): Likewise.
3586         (putchar_unlocked): Likewise.
3587
3588 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3589
3590         [BZ #19868]
3591         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3592         DNS packet syntax checks (which were not needed before).  Skip
3593         over non-PTR records.
3594
3595 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3596
3597         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3598         definition.  Include <stddef.h> instead.
3599
3600 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3601
3602         [BZ #19831]
3603         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3604         function.
3605         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3606         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3607
3608 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3609
3610         [BZ #19862]
3611         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3612         (getanswer_r): Do not call syslog.
3613         (gaih_getanswer_slice): Likewise.
3614         * resolv/gethnamaddr.c (AskedForGot): Remove.
3615         (getanswer): Do not call syslog.
3616         (gethostbyaddr): Likewise.
3617
3618 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3619
3620         * conform/data/signal.h-data (union sigval): Expect also if
3621         [XOPEN2K].
3622         (struct sigevent): Likewise.
3623         (SIGEV_NONE): Likewise.
3624         (SIGEV_SIGNAL): Likewise.
3625         (SIGEV_THREAD): Likewise.
3626         (SIGRTMIN): Likewise.
3627         (SIGRTMAX): Likewise.
3628         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3629         variable.
3630         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3631
3632 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3633
3634         [BZ #19830]
3635         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3636         (gaih_getanswer_slice): Likewise.
3637         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3638         Also check for availability of RR metadata.
3639
3640 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3641
3642         [BZ #19825]
3643         * resolv/res_send.c (send_vc): Remove early *resplen2
3644         initialization.  Set *resplen2 on socket error.  Call
3645         close_and_return_error for other errors.
3646
3647 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3648
3649         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3650         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3651         (SCM_IUCV_TRGCLS): New define.
3652
3653 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3654
3655         [BZ #20005]
3656         * libio/fmemopen.c (fmemopen_write): Update internal position after
3657         write.
3658         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3659         * stdio-common/tst-fmemopen4.c: New file..
3660
3661 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3662
3663         [BZ #19996]
3664         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3665         not [__USE_XOPEN2K].
3666         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3667         variable.
3668
3669         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3670         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3671         variable.
3672
3673         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3674         [__USE_XOPEN2K8].
3675         [__USE_LARGEFILE64] (off64_t): Likewise.
3676         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3677         variable.
3678
3679 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3680
3681         [BZ #19989]
3682         * libio/stdio.h (cuserid): Do not declare if
3683         [__USE_XOPEN2K && !__USE_GNU].
3684         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3685         variable.
3686
3687 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3688
3689         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3690         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3691         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3692         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3693         ifunc'ed strcspn.
3694         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3695         [EALIGN]: Removed.
3696         [END]: Likewise
3697         [STRSPN]: Define instead of the above to control symbol name.
3698         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3699         New file.
3700         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3701         Likewise.
3702         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3703         Likewise.
3704         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3705         Likewise.
3706         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3707         [INITIAL_MASK]: New macro.
3708         [STRCSPN]: Likewise.
3709         [UPDATE_MASK]: Likewise.
3710         [USE_AS_STRCSPN]: Lisewise.
3711
3712 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3713
3714         [BZ #19931]
3715         * stdio-common/tst-vfprintf-width-prec.c: New file.
3716         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3717         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3718         (generated): Add mtrace-related files.
3719         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3720         (tst-%-mem.out): New pattern rule, replaces
3721         tst-printf-bz18872-mem.out.
3722         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3723         specifier, deallocate any previously allocated work buffer.
3724
3725 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3726
3727         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3728         Add nop before __startcontext, add explaining comments.
3729
3730 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3731
3732         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3733         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3734         completely different API.
3735
3736         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3737         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3738         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3739         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3740         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3741         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3742         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3743         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3744         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3745         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3746
3747 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3748
3749         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3750
3751 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3752
3753         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3754         when it is the default of 0.
3755
3756 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3757
3758         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3759         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3760         (sysdep_routines): Add new strcasestr targets.
3761         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3762         (__libc_ifunc_impl_list): Likewise.
3763         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3764         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3765         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3766         * sysdeps/powerpc/powerpc64/power8/Makefile:
3767         New file to add strcasestr-ppc64 to sysdep_routines.
3768         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3769         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3770
3771 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3772
3773         * benchtests/Makefile (wcsmbs-benchset): Include only for
3774         native builds and runs.
3775         (LOCALES): Likewise.
3776         (bench-build): Build timing-type here instead of the bench
3777         target.  Generate locale only for native builds.
3778         * benchtests/README: Add note for cross-building.
3779
3780         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3781
3782         * benchtests/README: Update README to include instructions on
3783         using bench-build.
3784
3785         * Makefile.in (bench-build): New target.
3786         * Rules (PHONY): Add bench-build target.
3787         * benchtests/Makefile (bench): Depend on bench-build.
3788         (bench-build): New target.
3789
3790 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3791
3792         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3793         profil_reply_port.
3794         (profile_waiter): Do not initialize profil_reply_port.
3795         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3796         frequency instead of tick length in us.
3797
3798 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3799
3800         [BZ #18712]
3801         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3802         (__old_mempcpy_small): Likewise.
3803         (__old_strcpy_small): Likewise.
3804         (__old_stpcpy_small): Likewise.
3805         (__old_strpbrk_c2): Fix compat symbol name.
3806         (__old_strpbrk_c3): Likewise.
3807         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3808         (__mempcpy_small): Remove.
3809         (__strcpy_small): Remove.
3810         (__stpcpy_small): Remove.
3811
3812 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3813
3814         [BZ #19400]
3815         * locale/iso-639.def: Add the Talossan/tzl language.
3816
3817 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3818
3819         [BZ #16983]
3820         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3821         comment.  Add "ln" to strchr check on postal_fmt.
3822
3823 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3824
3825         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3826         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3827         tel_dom_fmt.
3828
3829 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3830
3831         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3832         (sysdep_routines): Added __strlen_power8.
3833         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3834         __strlen_power8 entry.
3835         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3836         Implementation for POWER8.
3837         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3838         for __strlen_power8.
3839         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3840         Implementation for POWER8.
3841
3842 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3843
3844         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3845
3846 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3847
3848         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3849         Goldmont and Airmont processors.
3850
3851 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3852
3853         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3854         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3855         (__STRING2_SMALL_GET32): Remove.
3856         (memset): Remove.
3857         (__memset_1): Remove.
3858         (__memset_gc): Remove.
3859         (__mempcpy): Remove.
3860         (mempcpy): Remove.
3861         (__mempcpy_args): Remove.
3862         (strchr): Remove.
3863         (strcpy): Remove.
3864         (strcpy_args): Remove.
3865         (__stpcpy_args): Remove.
3866         (__strcmp_cc): Remove.
3867         (__strcmp_gc): Remove.
3868         (strstr): Remove.
3869
3870 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3871
3872         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3873         * nis/nis_call.c (nis_server_cache_add): Likewise.
3874
3875 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3876
3877         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3878
3879 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3880
3881         * malloc/arena.c (__malloc_fork_lock_parent)
3882         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3883         internal_function attribute.
3884
3885 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3886
3887         * stdio-common/printf_fp.c (__printf_fp_l):
3888         Rename ___printf_fp_l to __printf_fp_l and
3889         remove strong alias. Use libc_hidden_def instead
3890         of ldbl_hidden_def macro.
3891
3892 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3893
3894         Remove malloc hooks from fork handler.  They are no longer needed
3895         because malloc runs right before fork, and no malloc calls from
3896         other fork handlers are not possible anymore.
3897         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3898         declarations.
3899         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3900         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3901         (atfork_recursive_cntr): Remove.
3902         (__malloc_fork_lock_parent): Do not override malloc hooks and
3903         thread_arena.
3904         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3905         thread_arena.
3906         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3907         thread_arena instead of save_arena.
3908
3909 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3910
3911         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3912         (thread_atfork, thread_atfork_static): Remove.
3913         * sysdeps/mach/hurd/malloc-machine.h:
3914         (thread_atfork, thread_atfork_static): Remove.
3915
3916 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3917
3918         [BZ #19431]
3919         Run the malloc fork handler as late as possible to avoid deadlocks.
3920         * malloc/malloc-internal.h: New file.
3921         * malloc/malloc.c: Include it.
3922         * malloc/arena.c (ATFORK_MEM): Remove.
3923         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3924         Update comment.
3925         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3926         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3927         Remove outdated comment.
3928         (ptmalloc_init): Do not call thread_atfork.  Remove
3929         thread_atfork_static.
3930         * malloc/tst-malloc-fork-deadlock.c: New file.
3931         * Makefile (tests): Add tst-malloc-fork-deadlock.
3932         (tst-malloc-fork-deadlock): Link against libpthread.
3933         * manual/memory.texi (Aligned Memory Blocks): Update safety
3934         annotation comments.
3935         * sysdeps/nptl/fork.c (__libc_fork): Call
3936         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3937         __malloc_fork_unlock_child.
3938         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3939
3940 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3941
3942         [BZ #19613]
3943         Remove union wait.
3944         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3945         (w_stopsig, w_stopval): Remove.
3946         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3947         stat_loc argument.
3948         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3949         (__WAIT_STATUS_DEFN): Remove.
3950         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3951         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3952         (wait, wait3, wait4): Use int * for the stat_loc argument.
3953         * posix/wait.c (__wait): Likewise.
3954         * posix/wait3.c (__wait3): Likewise.
3955         * posix/wait4.c (__wait4): Likewise.
3956         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3957         (__WAIT_STATUS_DEFN): Remove.
3958         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3959         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3960         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3961         argument.
3962         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3963         * sysdeps/posix/wait3.c (__wait3): Likewise.
3964         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3965         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3966         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3967         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3968         stat_loc argument.
3969         * manual/process.texi (BSD Wait Functions): Remove union wait.
3970
3971 2016-04-13  Andreas Schwab  <schwab@suse.de>
3972
3973         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3974         (test-extras): Add tst-tlsalign-vars.
3975         * math/Makefile: Wrap long lines.
3976         (libm-vec-test-wrappers): Define.
3977         (test-extras): Add $(libm-vec-test-wrappers).
3978         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3979         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3980         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3981         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3982         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3983         (extra-test-objs): Add corresponding objects.
3984
3985 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         [BZ #19928]
3988         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3989         New.
3990         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3991         times of shared cache size.
3992         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3993         (VMOVNT): New.
3994         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3995         (VMOVNT): Likewise.
3996         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3997         (VMOVNT): Likewise.
3998         (VMOVU): Changed to movups for smaller code sizes.
3999         (VMOVA): Changed to movaps for smaller code sizes.
4000         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
4001         comments.
4002         (PREFETCH): New.
4003         (PREFETCH_SIZE): Likewise.
4004         (PREFETCHED_LOAD_SIZE): Likewise.
4005         (PREFETCH_ONE_SET): Likewise.
4006         Rewrite to use forward and backward loops, which move 4 vector
4007         registers at a time, to support overlapping addresses and use
4008         non temporal store if size is above the threshold and there is
4009         no overlap between destination and source.
4010
4011 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
4012
4013         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
4014         Include dl-vdso.
4015         * sysdeps/unix/sysv/linux/mips/Versions: Add
4016         __vdso_clock_gettime.
4017         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
4018         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
4019         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
4020         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
4021         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
4022         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
4023         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
4024         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
4025         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4026
4027 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4028
4029         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
4030         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
4031         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
4032         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
4033         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4034         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
4036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
4037         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
4038         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
4039         syscalls generation.
4040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4041         [__NR_pwrite64] (__NR_write): Remove define.
4042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4043         [__NR_pwrite64] (__NR_write): Remove define.
4044         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
4045         Remove define.
4046         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
4047         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
4048         Remove define.
4049         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
4050         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
4051         Linux implementation as base.
4052         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
4053
4054         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
4055         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
4056         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
4057         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
4058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
4059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
4060         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
4061         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
4062         syscall generation.
4063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4064         [__NR_pread64] (__NR_pread): Remove define.
4065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4066         [__NR_pread64] (__NR_pread): Likewise.
4067         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
4068         define.
4069         (__libc_pread): Use SYSCALL_LL macro on offset argument.
4070         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
4071         Remove define.
4072         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
4073         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
4074         Linux implementation as base.
4075         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
4076         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4077         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4078
4079         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
4080         definition.
4081         (__ALIGNMENT_COUNT): Likewise.
4082         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
4083         (__ALIGNMENT_COUNT): Likewise.
4084         (SYSCALL_LL): New define.
4085         (SYSCALL_LL64): Likewise.
4086         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
4087         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
4088         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
4089         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
4090
4091         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4092         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
4093         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4094         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
4095         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4096         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
4097
4098 2016-04-11  Florian Weimer  <fweimer@redhat.com>
4099
4100         [BZ #19865]
4101         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
4102         original buffer before retry.
4103
4104 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4105
4106         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
4107         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
4108         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
4109         GLRO(dl_auxv) list.
4110         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
4111         including <ldsodefs.h>.
4112         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
4113
4114 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
4115
4116         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
4117         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
4118         $(CPPFLAGS).
4119
4120 2016-04-09  Khem Raj  <raj.khem@gmail.com>
4121
4122         [BZ #17950]
4123         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
4124         Add -mfpmath=387.
4125
4126 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
4127
4128         * sysdeps/i386/configure.ac: Change == to = when calling test.
4129         * sysdeps/x86_64/configure.ac: Likewise.
4130         * sysdeps/i386/configure: Regenerated.
4131         * sysdeps/x86_64/configure: Likewise.
4132
4133 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
4134
4135         [BZ #16137]
4136         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
4137         * benchtests/bench-strcoll.c (input_files): Likewise.
4138         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
4139         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
4140         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
4141
4142 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
4143
4144         [BZ #19929]
4145         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
4146         [__USE_XOPEN2K8 && !__USE_GNU].
4147         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
4148         variable.
4149
4150         [BZ #19925]
4151         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
4152         define if [!__USE_MISC && __USE_XOPEN2K].
4153         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
4154         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
4155         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
4156         Likewise.
4157         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
4158         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
4159         variable.
4160         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4161
4162 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4163
4164         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
4165         (sysdep_routines): Add new strspn targets.
4166         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4167         (__libc_ifunc_impl_list): Add strspn.
4168         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
4169         New file.
4170         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
4171         Likewise.
4172         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
4173         Likewise.
4174         * sysdeps/powerpc/powerpc64/power8/strspn.S:
4175         Likewise.
4176
4177 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4178
4179         * misc/hsearch_r.c: Include <limits.h>.
4180
4181 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4182
4183         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
4184
4185 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4186
4187         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4188         (MEMCPY_SYMBOL): New.
4189         (MEMPCPY_SYMBOL): Likewise.
4190         (MEMMOVE_CHK_SYMBOL): Likewise.
4191         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
4192         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
4193         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
4194         Provide alias for memcpy in libc.a and ld.so.
4195
4196 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4197
4198         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4199         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
4200         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4201         Disabled fro now.
4202         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4203         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4204
4205 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4206
4207         * benchtests/Makefile (string-benchset): Add memcpy-large,
4208         memmove-large and memset-large.
4209         * benchtests/bench-memcpy-large.c: New file.
4210         * benchtests/bench-memmove-large.c: Likewise.
4211         * benchtests/bench-memmove-large.c: Likewise.
4212         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4213
4214 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4215
4216         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4217         32-bit displacement to avoid long nop between instructions.
4218
4219 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4220
4221         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4222         a comment on VMOVU and VMOVA.
4223
4224 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4225
4226         [BZ #19633]
4227         Use specified locale for number formatting in strfmon_l.
4228         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4229         (__nl_lookup_word): New inline functions.
4230         * include/printf.h (__print_fp_l): Declare.
4231         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4232         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4233         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4234         (___printf_fp): New function.
4235         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4236         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4237         * stdlib/tst-strfmon_l.c (do_test): New test.
4238         * stdlib/Makefile (tests): Add kt.
4239         (LOCALES): Build additional locales.
4240         (tst-strfmon_l.out): Require locales.
4241
4242 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4243
4244         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4245         if not in libc.
4246         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4247         Likewise.
4248         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4249         Likewise.
4250         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4251         Likewise.
4252
4253 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4254
4255         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4256         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4257         with unaligned_erms.
4258         (__memmove_erms): Skip if source == destination.
4259         (__memmove_unaligned_erms): Don't check source == destination
4260         first.
4261
4262 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4263
4264         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4265         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4266
4267 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4268
4269         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4270         * string/strspn.c (strspn): Likewise.
4271
4272 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4273
4274         * benchtests/bench-memset.c (do_test): Support 64-byte
4275         alignment.
4276         (test_main): Test 64-byte alignment.
4277
4278 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4279
4280         * benchtests/bench-memmove.c (test_main): Test 64-byte
4281         alignment.
4282
4283 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4284
4285         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4286
4287 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4288
4289         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4290         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4291         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4292
4293         * string/strpbrk.c (strpbrk): Rewrite function.
4294         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4295         (__strpbrk_c2): Likewise.
4296         (__strpbrk_c3): Likewise.
4297         * string/string-inlines.c
4298         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4299         Likewise.
4300         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4301         Likewise.
4302
4303         * string/strspn.c (strcspn): Rewrite function.
4304         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4305         (__strspn_c1): Remove inline function.
4306         (__strspn_c2): Likewise.
4307         (__strspn_c3): Likewise.
4308         * string/string-inlines.c
4309         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4310         compatibility symbol.
4311         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4312         Likewise.
4313         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4314         Likewise.
4315         * string/string-inlines.c: Include generic version.
4316
4317 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4318             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4319
4320         * string/Version (libc): Add GLIBC_2.24.
4321         * string/strcspn.c (strcspn): Rewrite function.
4322         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4323         (__strcspn_c1): Remove inline function.
4324         (__strcspn_c2): Likewise.
4325         (__strcspn_c3): Likewise.
4326         * string/string-inline.c
4327         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4328         compatibility symbol.
4329         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4330         Likewise.
4331         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4332         Likewise.
4333         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4334
4335 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4336
4337         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4338         Use ahi instead of aghi to adjust stack pointer.
4339
4340 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4341
4342         [BZ #19853]
4343         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4344         TEST to take significant digits as second parameter.
4345         [TEST]: Redefine in terms of TEST_N taking 30
4346         significant digits.
4347         (do_test): Add test case to demonstrate precision
4348         failure in the ldbl-128ibm printf.
4349         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4350         (__mpn_extract_long_double): Carry 7 extra intermediate
4351         bits of precision to aide computing difference when
4352         signs differ.
4353
4354 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4355
4356         [BZ #19881]
4357         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4358         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4359         memset-avx512-unaligned-erms.
4360         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4361         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4362         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4363         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4364         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4365         __memset_sse2_unaligned_erms, __memset_erms,
4366         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4367         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4368         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4369         file.
4370         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4371         Likewise.
4372         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4373         Likewise.
4374         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4375         Likewise.
4376
4377 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4378
4379         [BZ #19776]
4380         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4381         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4382         memmove-avx512-unaligned-erms.
4383         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4384         (__libc_ifunc_impl_list): Test
4385         __memmove_chk_avx512_unaligned_2,
4386         __memmove_chk_avx512_unaligned_erms,
4387         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4388         __memmove_chk_sse2_unaligned_2,
4389         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4390         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4391         __memmove_avx512_unaligned_erms, __memmove_erms,
4392         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4393         __memcpy_chk_avx512_unaligned_2,
4394         __memcpy_chk_avx512_unaligned_erms,
4395         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4396         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4397         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4398         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4399         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4400         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4401         __mempcpy_chk_avx512_unaligned_erms,
4402         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4403         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4404         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4405         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4406         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4407         __mempcpy_erms.
4408         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4409         file.
4410         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4411         Likwise.
4412         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4413         Likwise.
4414         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4415         Likwise.
4416
4417 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4418
4419         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4420         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4421         (La_s390_64_regs): Likewise.
4422         (La_s390_32_retval): Append vector register lrv_v24.
4423         (La_s390_64_retval): Likeweise.
4424         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4425         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4426         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4427         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4428
4429 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4430
4431         [BZ #19916]
4432         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4433         to create a non-vector/vector version for _dl_runtime_resolve and
4434         _dl_runtime_profile. Move implementation to ...
4435         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4436         (_dl_runtime_resolve) Save and restore fpr/vrs.
4437         (_dl_runtime_profile) Save and restore vrs and fix some issues
4438         if _dl_call_pltexit is called.
4439         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4440         Choose the correct resolver function if running on a machine with vx.
4441         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4442         to create a non-vector/vector version for _dl_runtime_resolve and
4443         _dl_runtime_profile. Move implementation to ...
4444         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4445         (_dl_runtime_resolve) Save and restore fpr/vrs.
4446         (_dl_runtime_profile) Save and restore vrs and fix some issues
4447         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4448         Choose the correct resolver function if running on a machine with vx.
4449
4450 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4451
4452         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4453
4454 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4455
4456         [BZ #19509]
4457         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4458         skip_map != NULL.
4459         * elf/tst-dlsym-error.c: New file.
4460         * elf/Makefile (tests): Add tst-dlsym-error.
4461         (tst-dlsym-error): Link against libdl.
4462
4463 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4464
4465         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4466         (__ASSUME_FUTIMESAT): Remove macro.
4467         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4468
4469 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4470
4471         [BZ #19879]
4472         CVE-2016-3075
4473         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4474         copy name.
4475
4476 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4477
4478         [BZ #19837]
4479         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4480         error if parse_line fails.
4481
4482 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4483
4484         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4485         (index_cpu_ERMS): Likewise.
4486         (reg_ERMS): Likewise.
4487
4488 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4489
4490         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4491         PER_LINUX_FDPIC): Add.
4492
4493 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4494
4495         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4496         memcpy-avx512-no-vzeroupper.
4497         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4498         to ...
4499         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4500         (MEMCPY): Don't define.
4501         (MEMCPY_CHK): Likewise.
4502         (MEMPCPY): Likewise.
4503         (MEMPCPY_CHK): Likewise.
4504         (MEMPCPY_CHK): Renamed to ...
4505         (__mempcpy_chk_avx512_no_vzeroupper): This.
4506         (MEMPCPY_CHK): Renamed to ...
4507         (__mempcpy_chk_avx512_no_vzeroupper): This.
4508         (MEMCPY_CHK): Renamed to ...
4509         (__memmove_chk_avx512_no_vzeroupper): This.
4510         (MEMCPY): Renamed to ...
4511         (__memmove_avx512_no_vzeroupper): This.
4512         (__memcpy_avx512_no_vzeroupper): New alias.
4513         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4514
4515 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4516
4517         [BZ #18858]
4518         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4519         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4520         and mempcpy-avx512-no-vzeroupper.
4521         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4522         New.
4523         (MEMPCPY): Likewise.
4524         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4525         (MEMPCPY_CHK): New.
4526         (MEMPCPY): Likewise.
4527         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4528         (MEMPCPY): Likewise.
4529         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4530         (MEMPCPY): Likewise.
4531         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4532         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4533         Likewise.
4534         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4535         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4536
4537 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4538              Amit Pawar  <Amit.Pawar@amd.com>
4539
4540         [BZ #19583]
4541         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4542         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4543         processors.  Set Fast_Copy_Backward for AMD Excavator
4544         processors.
4545         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4546         New.
4547         (index_arch_Fast_Unaligned_Copy): Likewise.
4548         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4549         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4550
4551 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4552
4553         [BZ #19791]
4554         * resolv/res_send.c (close_and_return_error): New function.
4555         (send_dg): Initialize *resplen2 after reopen failure.  Call
4556         close_and_return_error for error returns.  On error paths without
4557         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4558         successful return.
4559
4560 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4561
4562         [BZ# 19860]
4563         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4564         zero if the compiler does not provide the AVX512F bit.
4565
4566 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4567
4568         [BZ #19848]
4569         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4570         from 8 to 4.
4571         (__ieee754_powl): Compare integer exponent against 4 not 8.
4572         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4573         from 8 to 4.
4574         (__ieee754_powl): Compare integer exponent against 4 not 8.
4575         * math/auto-libm-test-in: Add more tests of pow.
4576         * math/auto-libm-test-out: Regenerated.
4577         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4579
4580 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4581
4582         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4583         Make code unconditional.
4584         [!__NR_utimensat]: Remove conditional code.
4585         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4586         Make code unconditional.
4587         [!__NR_utimensat]: Remove conditional code.
4588         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4589         Make code unconditional.
4590         [!__NR_utimensat]: Remove conditional code.
4591
4592 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4593
4594         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4595         Make code unconditional.
4596
4597 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4598
4599         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4600         call-clobbered %eax on retry path.
4601         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4602
4603 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4604
4605         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4606         Don't set %rcx twice before "rep movsb".
4607
4608 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4609
4610         [BZ #19583]
4611         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4612         inline.  Check family before setting family, model and
4613         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4614         bits here.
4615         (init_cpu_features): Replace HAS_CPU_FEATURE and
4616         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4617         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4618         for Intel processors with usable AVX2.  Call get_common_indeces
4619         for other processors with family == NULL.
4620         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4621         (CPU_FEATURES_ARCH_P): Likewise.
4622         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4623         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4624
4625 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4626
4627         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4628         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4629         $(shared-thread-library) instead of hardcoding the path to libpthread.
4630
4631 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4632
4633         * sysdeps/unix/sysv/linux/kernel-features.h
4634         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4635         * sysdeps/unix/sysv/linux/getdents.c
4636         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4637         [!have_no_getdents64_defined]: Likewise.
4638         (__GETDENTS): Remove __have_no_getdents64 conditional.
4639
4640 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4641
4642         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4643         Remove macro.
4644         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4645         <kernel-features.h>.
4646         (signalfd) [__NR_signalfd4]: Make code unconditional.
4647         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4648
4649 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4650
4651         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4652         style.
4653
4654 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4655
4656         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4657         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4658         __pthread_unwind.
4659         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4660         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4661         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4662         (__condvar_cleanup1): Likewise.
4663
4664 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4665
4666         [BZ #19822]
4667         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4668         move it to the final $@ location.
4669
4670 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4671
4672         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4673         access where posix_spawn success and pid argument is null.
4674         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4675         success case.
4676
4677 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4678
4679         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4680
4681         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4682
4683         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4684         and __fcntl.
4685         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4686         __fcntl only.
4687         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4688         adding attribute_hidden to __open and __fcntl.
4689
4690         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4691         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4692         depend on libc-modules.h,
4693         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4694
4695 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4698         Remove macro.
4699         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4700         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4701         entry.
4702
4703         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4704         Remove macro.
4705         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4706         include <kernel-features.h>.
4707         [!__ASSUME_FALLOCATE]: Remove conditional code.
4708         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4709
4710 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4711
4712         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4713         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4714         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4715         (_ZGVdN4v_cos_avx2): Likewise.
4716         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4717         (_ZGVdN4v_cos): Likewise.
4718         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4719         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4720         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4721         (_ZGVdN4v_exp_avx2): Likewise.
4722         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4723         (_ZGVdN4v_exp): Likewise.
4724         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4725         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4726         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4727         (_ZGVdN4v_log_avx2): Likewise.
4728         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4729         (_ZGVdN4v_log): Likewise.
4730         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4731         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4732         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4733         (_ZGVdN4vv_pow_avx2): Likewise.
4734         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4735         (_ZGVdN4vv_pow): Likewise.
4736         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4737         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4738         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4739         (_ZGVdN4v_sin_avx2): Likewise.
4740         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4741         (_ZGVdN4v_sin): Likewise.
4742         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4743         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4744         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4745         (_ZGVdN4vvv_sincos_avx2): Likewise.
4746         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4747         (_ZGVdN4vvv_sincos): Likewise.
4748         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4749         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4750         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4751         (_ZGVbN4v_cosf_sse4): Likewise.
4752         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4753         (_ZGVdN8v_cosf_avx2): Likewise.
4754         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4755         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4756         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4757         (_ZGVbN4v_expf_sse4): Likewise.
4758         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4759         (_ZGVdN8v_expf_avx2): Likewise.
4760         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4761         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4762         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4763         (_ZGVbN4v_logf_sse4): Likewise.
4764         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4765         (_ZGVdN8v_logf_avx2): Likewise.
4766         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4767         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4768         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4769         (_ZGVbN4vv_powf_sse4): Likewise.
4770         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4771         (_ZGVdN8vv_powf_avx2): Likewise.
4772         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4773         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4774         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4775         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4776         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4777         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4778         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4779         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4780         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4781         (_ZGVbN4v_sinf_sse4): Likewise.
4782         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4783         (_ZGVdN8v_sinf_avx2): Likewise.
4784         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4785         Use JUMPTARGET to call callee.
4786         (WRAPPER_IMPL_SSE2_ff): Likewise.
4787         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4788         (WRAPPER_IMPL_AVX): Likewise.
4789         (WRAPPER_IMPL_AVX_ff): Likewise.
4790         (WRAPPER_IMPL_AVX_fFF): Likewise.
4791         (WRAPPER_IMPL_AVX512): Likewise.
4792         (WRAPPER_IMPL_AVX512_ff): Likewise.
4793         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4794         Likewise.
4795         (WRAPPER_IMPL_SSE2_ff): Likewise.
4796         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4797         (WRAPPER_IMPL_AVX): Likewise.
4798         (WRAPPER_IMPL_AVX_ff): Likewise.
4799         (WRAPPER_IMPL_AVX_fFF): Likewise.
4800         (WRAPPER_IMPL_AVX512): Likewise.
4801         (WRAPPER_IMPL_AVX512_ff): Likewise.
4802         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4803
4804 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4805
4806         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4807         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4808         qualifier.
4809         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4810         internal_function qualifiers.
4811
4812 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4813
4814         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4815         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4816         * math/atest-exp.c (exp_mpn): Mark chk unused.
4817         * math/atest-exp2.c (exp_mpn): Likwise.
4818         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4819         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4820
4821 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4822
4823         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4824         Remove macro.
4825         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4826         <kernel-features.h>.
4827         [__NR_ppoll]: Make code unconditional.
4828         [!__ASSUME_PPOLL]: Remove conditional code.
4829
4830         * sysdeps/unix/sysv/linux/kernel-features.h
4831         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4832         (__ASSUME_ACCEPT4): Likewise.
4833         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4834         Define.
4835         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4836         Likewise.
4837         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4838         Likewise.
4839         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4840         Likewise.
4841         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4842         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4843         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4844         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4845         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4846         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4847         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4848         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4849         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4850         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4851         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4852         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4853         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4854         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4855         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4856         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4857         Likewise.
4858         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4859         Likewise.
4860         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4861         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4862         0x040300].
4863         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4864         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4865         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4866         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4867         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4868         0x030300].
4869         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4870         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4871         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4872         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4873         0x040300].
4874         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4875         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4876         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4877         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4878         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4879         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4880         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4881         0x030300].
4882         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4883         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4884         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4885         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4886         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4887         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4888         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4889         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4890         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4891         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4892         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4893         0x040300].
4894         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4895         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4896         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4897         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4898         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4899         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4900         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4901         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4902         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4903         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4904         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4905         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4906         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4907         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4908         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4909         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4910         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4911         Likewise.
4912         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4913         Likewise.
4914
4915 2016-03-15  Andreas Schwab  <schwab@suse.de>
4916
4917         [BZ #19257]
4918         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4919         statp->_u._ext.nscount as loop count.
4920
4921 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4922
4923         * math/test-signgam-finite-c99.c: Also #undef
4924         __LIBC_INTERNAL_MATH_INLINES.
4925         * math/test-signgam-main.c: Likewise.
4926
4927 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4928
4929         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4930         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4931         (MADV_FREE): Likewise.
4932         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4933         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4934         EPOLLEXCLUSIVE.
4935
4936 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4937
4938         * timezone/README: Remove mention of checktab.awk. Mention wiki
4939         SharedSourceFiles.
4940
4941 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4942
4943         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4944         WUNTRACED.
4945
4946 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4947
4948         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4949         order to match the type of p when calling atomic_exchange_acq().
4950
4951 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4952
4953         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4954         cfi_offset calls.
4955         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4956         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4957         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4958         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4959         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4960
4961 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4962
4963         * timezone/checktab.awk: Removed.
4964
4965 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4966
4967         * manual/math.texi (Errors in Math Functions): Document relaxed
4968         accuracy goals for IBM long double.
4969         * math/libm-test.inc (test_exceptions): Always allow spurious
4970         "underflow" and "inexact" exceptions for IBM long double.
4971
4972 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4973
4974         [BZ #19762]
4975         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4976         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4977         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4978         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4979         (bit_arch_*): This for feature array.
4980         (bit_*): Renamed to ...
4981         (bit_cpu_*): This for cpu array.
4982         (index_*): Renamed to ...
4983         (index_arch_*): This for feature array.
4984         (index_*): Renamed to ...
4985         (index_cpu_*): This for cpu array.
4986         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4987         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4988         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4989         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4990         bit_##name with index_cpu_##name and bit_cpu_##name.
4991         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4992         bit_##name with index_arch_##name and bit_arch_##name.
4993
4994 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4995
4996         [BZ #19792]
4997         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4998         Terminate FDE before return label.
4999
5000 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
5001
5002         [BZ #19790]
5003         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
5004         (rintl): Define as macro.
5005         [USE_AS_NEARBYINTL] (__rintl): Likewise.
5006         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
5007         of fesetround.  Ensure results are evaluated before end of scope.
5008         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
5009         USE_AS_NEARBYINTL and include s_rintl.c.
5010         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
5011         Disable exception traps in new environment.
5012         (libc_feholdsetround_ppc_ctx): Likewise.
5013
5014 2016-03-08  Roland McGrath  <roland@hack.frob.com>
5015
5016         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
5017         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
5018         (tst_audit10_aux) [__AVX512F__]: ... here.
5019
5020 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
5021
5022         * include/sys/auxv.h: New file.
5023
5024 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
5025
5026         [BZ #19759]
5027         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
5028
5029 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5030
5031         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
5032         operand modifier.
5033         (feclearexcept): Likewise.
5034
5035 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5036
5037         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
5038         to reflect the entire 32-bit HWCAP.
5039         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
5040         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
5041
5042 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
5043
5044         [BZ #19783]
5045         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
5046         $(test-via-rtld-prefix).
5047         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
5048
5049 2016-03-08  Florian Weimer  <fweimer@redhat.com>
5050
5051         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
5052         union wait.  Report any non-zero exit status as error.
5053
5054 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5055
5056         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
5057         configured with --enable-hardcoded-path-in-tests.
5058
5059 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
5060
5061         [BZ #19677]
5062         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5063         (__ieee754_remainderl): Put zero low parts in canonical form.
5064         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
5065         file.  Based on
5066         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
5067         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
5068         with wrapper round test-fmodrem-ldbl-128ibm.c.
5069         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
5070         file.
5071         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
5072         Likewise.
5073         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
5074         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
5075
5076 2016-03-07  Florian Weimer  <fweimer@redhat.com>
5077
5078         [BZ #19610]
5079         * elf/ldconfig.c (opt_link): Update comment.
5080         (options): Update help string for option -X.
5081         (search_dir): Unlink stale symbolic link only if updating symbolic
5082         links.
5083         * elf/tst-ldconfig-X.sh: New file.
5084         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
5085         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
5086
5087 2016-03-07  Andreas Schwab  <schwab@suse.de>
5088
5089         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
5090         needed arguments.
5091
5092 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
5093
5094         [BZ #15333]
5095         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
5096         to lstat64.
5097
5098 2016-03-07  Florian Weimer  <fweimer@redhat.com>
5099
5100         * libio/filedoalloc.c (isatty): Remove.
5101         (local_isatty): Add comment.  Call __isatty directly.
5102         (_IO_file_doallocate): Update comment.  Assume _LIBC.
5103         * libio/wfiledoalloc.c (isatty): Remove.
5104         (_IO_wfile_doallocate): Update comment.
5105
5106 2016-03-07  Florian Weimer  <fweimer@redhat.com>
5107
5108         [BZ #19269]
5109         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
5110         tst-audit4-aux.o.
5111         (tst-audit10): Depend on tst-audit10-aux.o.
5112         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
5113         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
5114         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
5115         instead of inline AVX code.
5116         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
5117         instead of inline AVX512 code.
5118         * sysdeps/x86_64/tst-audit4-aux.c: New file
5119         * sysdeps/x86_64/tst-audit10-aux.c: New file
5120
5121         [BZ #19648]
5122         * test-skeleton.c (main): Do not set RLIMIT_DATA.
5123
5124 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5125
5126         [BZ #14750]
5127         [BZ #10354]
5128         [BZ #18433]
5129         * include/sched.h (__clone): Add hidden prototype.
5130         (__clone2): Likewise.
5131         * include/unistd.h (__dup): Likewise.
5132         * posix/Makefile (tests): Add tst-spawn2.
5133         * posix/tst-spawn2.c: New file.
5134         * sysdeps/posix/dup.c (__dup): Add hidden definition.
5135         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
5136         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
5137         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
5138         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
5139         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
5140         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
5141         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
5142         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
5143         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
5144         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
5145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
5146         Likewise.
5147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
5148         Likewise.
5149         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
5150         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
5151         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
5152         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
5153         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
5154         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
5155         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
5156         * sysdeps/unix/sysv/linux/nptl-signals.h
5157         (____nptl_is_internal_signal): New function.
5158         * sysdeps/unix/sysv/linux/spawni.c: New file.
5159
5160         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
5161         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
5162         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
5163         * posix/tst-execvp2.c (do_test): Likewise.
5164         * posix/tst-execvp3.c (do_test): Likewise.
5165         * posix/tst-execvp4.c (do_test): Likewise.
5166         * posix/tst-execvpe1.c: New file.
5167         * posix/tst-execvpe2.c: Likewise.
5168         * posix/tst-execvpe3.c: Likewise.
5169         * posix/tst-execvpe4.c: Likewise.
5170         * posix/tst-execvpe5.c: Likewise.
5171         * posix/tst-execvpe6.c: Likewise.
5172
5173         [BZ #19534]
5174         * posix/execl.c (execl): Remove dynamic memory allocation.
5175         * posix/execle.c (execle): Likewise.
5176         * posix/execlp.c (execlp): Likewise.
5177
5178 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5179
5180         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
5181         Replace .text with .text.avx512.
5182         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5183         Likewise.
5184
5185 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
5186
5187         * sysdeps/generic/libnsl.abilist: New file.
5188         * sysdeps/generic/libutil.abilist: New file.
5189
5190 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5191
5192         [BZ #19762]
5193         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
5194         HAS_ARCH_FEATURE with Fast_Rep_String.
5195         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
5196         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
5197         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
5198         Likewise.
5199         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
5200         Likewise.
5201         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5202         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5203         Likewise.
5204         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5205         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5206         Likewise.
5207
5208 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         [BZ #19745]
5211         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5212         with *%rax in call.
5213
5214 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5215
5216         [BZ #19745]
5217         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5218         with *__libc_start_main@GOTPCREL(%rip) in call.
5219
5220 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5221
5222         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5223         inside conditional for nonempty $(CXX).
5224
5225         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5226         nonempty.
5227
5228         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5229         to test for empty $(CXX) rather than $(CXX) of "no".
5230
5231 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5232
5233         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5234
5235 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5236             H.J. Lu  <hongjiu.lu@intel.com>
5237
5238         [BZ #18880]
5239         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5240         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5241         enable __memcpy_ssse3_back.
5242
5243 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5244
5245         [BZ #19758]
5246         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5247         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5248
5249 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5250
5251         [BZ #19490]
5252         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5253         (__fentry__): Likewise.
5254
5255 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5258         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5259
5260 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5261
5262         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5263         __mcount_internal directly.
5264         (C_LABEL(__fentry__)): Likewise.
5265         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5266         directly.
5267
5268 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5269
5270         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5271         (__start_context): Call __setcontext directly.
5272
5273 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5274
5275         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5276         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5277         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5278         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5279         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5280         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5281         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5282         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5283         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5284         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5285         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5286         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5287         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5288         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5289         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5290         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5291         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5292         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5293         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5294         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5295         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5296         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5297         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5298         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5299         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5300         Remove conditional code.
5301         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5302         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5303         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5304         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5305         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5306         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5307         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5308         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5309         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5310         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5311         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5312         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5313
5314 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5315
5316         * NEWS (2.23): Fix typo in bug 19048 text.
5317
5318 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5319
5320         [BZ #14259]
5321         * Makeconfig: Rename msgcatdir to localedir.
5322         Rename inst_msgcatdir to inst_localedir.
5323         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5324         * config.make.in: Add localedir.
5325         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5326         (ldd-rewrite): Likewise.
5327         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5328         (install-others): Use inst_localedir.
5329         (CPPFLAGS): Use localedir.
5330         * locale/Makefile (locale-CPPFLAGS): Likewise.
5331         * po/Makefile (mo-installed): Use inst_localedir.
5332
5333         [BZ #19575]
5334         * localedata/charmaps/GB18030: Update comments regarding PAU to
5335         non-PUA mappings.
5336
5337 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5338
5339         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5340         test for header.
5341         * sysdeps/unix/sysv/linux/configure: Regenerated.
5342         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5343         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5344         Remove conditional code.
5345         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5346
5347         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5348         Define to 3.2.0.
5349         (arch_minimum_kernel): Likewise.
5350         * sysdeps/unix/sysv/linux/configure: Regenerated.
5351         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5352         Define to 2.6.32.
5353         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5354         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5355         (arch_minimum_kernel): Define to 2.6.32.
5356         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5357         * README: Document Linux 3.2 requirement.
5358         * manual/install.texi (Linux): Document Linux 3.2 headers
5359         requirement.
5360         * INSTALL: Regenerated.
5361
5362 2016-02-24  Andreas Schwab  <schwab@suse.de>
5363
5364         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5365         if !NO_LONG_DOUBLE.
5366
5367 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5368
5369         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5370         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5371
5372 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5373
5374         [BZ #19512]
5375         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5376
5377 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5378
5379         * posix/tst-dir.c: Include libc-internal.h.
5380
5381 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5382
5383         [BZ #19056]
5384         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5385         * manual/filesys.texi (Reading/Closing Directory): Mention
5386         deprecaion.
5387         * posix/tst-dir.c (main): Disable deprecation warning in test.
5388
5389 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5390
5391         [BZ #19679]
5392         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5393         Renamed to ...
5394         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5395         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5396         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5397         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5398         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5399         * sysdeps/x86_64/dl-trampoline.h
5400         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5401         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5402
5403 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5404
5405         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5406
5407 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5408
5409         * elf/elf.h (R_386_GOT32X): New.
5410         (R_386_NUM): Update.
5411         (R_X86_64_GOTPCRELX: New.
5412         (R_X86_64_REX_GOTPCRELX): New.
5413         (R_X86_64_NUM): Update.
5414
5415 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5416
5417         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5418
5419 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5420
5421         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5422         assign attr->stackaddr to it, and adjust it down when
5423         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5424         [_STACK_GROWS_UP]: Delete assert.
5425         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5426         Implement stack grows up logic.
5427         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5428         stack grows up logic.
5429
5430 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5431
5432         * NEWS: Update with 2.24 template.
5433
5434 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5435
5436         [BZ #19678]
5437         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5438         Ensure +0.0 is returned when taking the next value below the least
5439         positive value.
5440
5441 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5442
5443         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5444         available.  Do not define NO_THREADS.
5445         * malloc/malloc.c: Do not check NO_THREADS.
5446         * malloc/arena.c: Likewise.
5447
5448 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5449
5450         * malloc/malloc.c (__libc_mallinfo): Update comment.
5451         (struct malloc_par): Remove max_total_mem member, it was always 0.
5452         (int_mallinfo): Store 0 into usmblks (no functional change).
5453         * malloc/hooks.c (struct malloc_state): Document that
5454         max_total_mem is always 0.
5455         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5456         always 0.
5457         * manual/memory.texi (Statistics of Malloc): Likewise.
5458
5459 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5460
5461         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5462         * malloc/arena.c (arena_max): Remove.
5463         (heap_trim, _int_new_arena): Do not update arena_max.
5464
5465 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5466
5467         * resolv/res_init.c (res_ninit): Update comment.
5468
5469 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5470
5471         [BZ #19505]
5472         * posix/spawn_int.h: Add headers and include guard.
5473         (__spawn_valid_fd): New function.
5474         * posix/spawn_faction_addopen.c
5475         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5476         * posix/spawn_faction_addclose.c
5477         (posix_spawn_file_actions_addclose): Likewise.
5478         * posix/spawn_faction_adddup2.c
5479         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5480         second file descriptor.
5481         * posix/spawn_valid_fd.c: New file.
5482         * posix/tst-posix_spawn-fd.c: New file.
5483         * posix/Makefile (routines): Add spawn_valid_fd.
5484         (tests): Add tst-posix_spawn-fd.
5485
5486 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5487
5488         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5489         (do_test): Limit the number of arenas, so that we can use fewer
5490         outer threads.  Limit timeout to 3 seconds, in preparation for a
5491         larger TIMEOUT value.
5492
5493 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5494
5495         [BZ #19674]
5496         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5497         sign in overflowing and underflowing results when overflow or
5498         underflow is detected early.  Include sign in result before rather
5499         than after scaling.
5500
5501         [BZ #19603]
5502         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5503         (__ieee754_remainderl): Adjust sign of integer version of low part
5504         when taking absolute value of high part.
5505         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5506         * math/libm-test.inc (remainder_test_data): Add another test.
5507         (remquo_test_data): Likewise.
5508
5509 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5510
5511         [BZ #19602]
5512         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5513         equal high parts and both low parts zero specially.
5514         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5515         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5516         Add test-fmodl-ldbl-128ibm.
5517
5518         [BZ #19595]
5519         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5520         common logic for all cases of shifting subnormal results.  Do not
5521         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5522         exponent to ldbl_insert_mantissa in subnormal case.
5523
5524         [BZ #19594]
5525         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5526         on high and low parts then adjust result and use
5527         ldbl_canonicalize_int if needed.
5528
5529         [BZ #19593]
5530         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5531         on high part and __floor or __ceil on low part then use
5532         ldbl_canonicalize_int if needed.
5533
5534         [BZ #19592]
5535         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5536         high and low parts then use ldbl_canonicalize_int if needed.
5537
5538         [BZ #17899]
5539         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5540         New function.
5541         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5542         on high and low parts then use ldbl_canonicalize_int if needed.
5543
5544 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5545
5546         * configure: Regenerated.
5547
5548         * po/libc.pot: Regenerated.
5549
5550         * po/be.po: Updated translation.
5551         * po/bg.po: Likewise.
5552         * po/ca.po: Likewise.
5553         * po/cs.po: Likewise.
5554         * po/da.po: Likewise.
5555         * po/el.po: Likewise.
5556         * po/eo.po: Likewise.
5557         * po/es.po: Likewise.
5558         * po/fi.po: Likewise.
5559         * po/fr.po: Likewise.
5560         * po/gl.po: Likewise.
5561         * po/hr.po: Likewise.
5562         * po/hu.po: Likewise.
5563         * po/ia.po: Likewise.
5564         * po/id.po: Likewise.
5565         * po/it.po: Likewise.
5566         * po/ja.po: Likewise.
5567         * po/lt.po: Likewise.
5568         * po/nb.po: Likewise.
5569         * po/nl.po: Likewise.
5570         * po/pt_BR.po: Likewise.
5571         * po/rw.po: Likewise.
5572         * po/sk.po: Likewise.
5573         * po/sl.po: Likewise.
5574         * po/sv.po: Likewise.
5575         * po/tr.po: Likewise.
5576         * po/zh_CN.po: Likewise.
5577         * po/zh_TW.po: Likewise.
5578
5579         * version.h (RELEAES): Set to "development".
5580         (VERSION): Set to 2.23.90.
5581
5582         * version.h (RELEASE): Set to "stable".
5583         (VERSION): Set to 2.23.
5584         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5585
5586         * NEWS: Updated fixed bugs.
5587
5588 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5589             Wilco Dijkstra  <wdijkstr@arm.com>
5590
5591         [BZ #19462]
5592         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5593         (_STRING_INLINE_unaligned): This.
5594         * include/string.h: Include <string_private.h>.
5595         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5596         _STRING_INLINE_unaligned.
5597         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5598         (_STRING_INLINE_unaligned): New.
5599         * sysdeps/aarch64/string_private.h: New file.
5600         * sysdeps/generic/string_private.h: Likewise.
5601         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5602         * sysdeps/s390/string_private.h: Likewise.
5603         * sysdeps/x86/string_private.h: Likewise.
5604         * sysdeps/m68k/m680x0/m68020/bits/string.h
5605         (_STRING_ARCH_unaligned): Renamed to ...
5606         (_STRING_INLINE_unaligned): This.
5607         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5608         to ...
5609         (_STRING_INLINE_unaligned): This.
5610         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5611         to ...
5612         (_STRING_INLINE_unaligned): This.
5613         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5614         to ...
5615         (_STRING_INLINE_unaligned): This.
5616
5617 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5618             H.J. Lu  <hongjiu.lu@intel.com>
5619
5620         [BZ #19590]
5621         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5622         relocation.
5623
5624 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5625
5626         [BZ #18665]
5627         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5628         *herrno_p.
5629         (gaih_getanswer): Document functional behviour. Return tryagain
5630         if any result is tryagain.
5631         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5632         when freed.
5633         * resolv/res_send.c: Add copyright text.
5634         (__libc_res_nsend): Document that MAXPACKET is expected.
5635         (send_vc): Document. Remove buffer reuse.
5636         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5637         size of the buffer. Add Dprint for truncated UDP buffer.
5638
5639 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5640
5641         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5642         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5643         * INSTALL: Regenerate.
5644
5645 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5646             Jonathan Wakely  <jwakely@redhat.com>
5647             Carlos O'Donell  <carlos@redhat.com>
5648
5649         [BZ 19439]
5650         * math/Makefile (tests): Add test-math-isinff.
5651         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5652         * math/bits/mathcalls.h [__USE_MISC]: Use
5653         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5654         functions not in C++11 and which don't conflict e.g. isinff,
5655         isinfl etc.
5656         * math/test-math-isinff.cc: New file.
5657
5658 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5659
5660         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5661
5662 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5663
5664         [BZ #19529]
5665         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5666
5667 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5668
5669         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5670
5671 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5672
5673         [BZ #19550]
5674         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5675         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5676         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5677         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5678         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5679         New syscall entry.
5680         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5681         New syscall entry.
5682         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5683         syscall entry.
5684
5685 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5686
5687         [BZ #18240]
5688         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5689         unsigned int wraparound.
5690
5691 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5692
5693         [BZ #18240]
5694         * misc/bug18240.c: New test.
5695         * misc/Makefile (tests): Add it.
5696
5697 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5698             Joseph Myers  <joseph@codesourcery.com>
5699
5700         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5701         load in branch delay slot when less than a word of input left.
5702
5703 2016-01-27  Andreas Schwab  <schwab@suse.de>
5704
5705         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5706         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5707         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5708         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5709
5710 2016-01-26  David S. Miller  <davem@davemloft.net>
5711
5712         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5713
5714 2016-01-25  David S. Miller  <davem@davemloft.net>
5715
5716         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5717         __sqrtl_finite.
5718         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5719         instead using versioned_symbol.
5720         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5721         of entries.
5722
5723         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5724         __sqrtl_finite to GLIBC_2.23
5725
5726 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5727
5728         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5729
5730 2016-01-25  Andreas Schwab  <schwab@suse.de>
5731
5732         [BZ #17514]
5733         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5734         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5735         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5736         * nptl/tst-mutex-errorcheck.c: New file.
5737
5738 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5739
5740         [BZ #18560]
5741         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5742         (IPCOP_semop): Likewise.
5743         (IPCOP_semget): Likewise.
5744         (IPCOP_semctl): Likewise.
5745         (IPCOP_msgsnd): Likewise.
5746         (IPCOP_msgrcv): Likewise.
5747         (IPCOP_msgget): Likewise.
5748         (IPCOP_msgctl): Likewise.
5749         (IPCOP_shmat): Likewise.
5750         (IPCOP_shmdt): Likewise.
5751         (IPCOP_shmget): Likewise.
5752         (IPCOP_shmctl): Likewise.
5753
5754 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5755
5756         * string/tst-endian.c: Include <libc-internal.h>.
5757         (do_test): Ignore tautological-compare warnings around
5758         "htobeXX (beXXtoh (i)) != i" and
5759         "htoleXX (leXXtoh (i)) != i" if-statements.
5760
5761 2016-01-24  David S. Miller  <davem@davemloft.net>
5762
5763         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5764         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5765         alias.
5766         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5767         __sqrtl_finite.
5768
5769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5770
5771 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5772
5773         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5774         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5775         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5776
5777 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5778
5779         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5780         (thread_func): Use new function to simplify barrier check.
5781         (do_test): Use new function to simplify checking barrier exit
5782         code, and actually join the child thread.
5783
5784 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5785
5786         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5787         semicolon.
5788         (__libc_tend): Likewise.
5789         (__libc_tabort): Likewise.
5790
5791 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5792
5793         * sysdeps/nios2/libm-test-ulps: Update.
5794         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5795         (__gtsf2): Likewise.
5796         (__unorddf2): Likewise.
5797         (__unordsf2): Likewise.
5798         (__ledf2): Likewise.
5799
5800 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5801
5802         * nis/nis_table.c (__follow_path): Disable diagnostic for
5803         uninitialized variable that is a false positive for gcc 4.7.
5804         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5805
5806 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5807
5808         * sysdeps/nacl/lowlevellock-futex.h
5809         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5810         Always evaluate PRIVATE argument.
5811
5812 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5813
5814         [BZ #19490]
5815         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5816         (pthread_cond_broadcast): Use ENTRY/END
5817         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5818         (pthread_cond_signal): Likewise.
5819         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5820         Likewise.
5821         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5822         Likewise.
5823         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5824         Likewise.
5825
5826 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5827
5828         * sysdeps/ieee754/dbl-64/s_finite.c
5829         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5830         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5831         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5832         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5833         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5834
5835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5836         (__gtsf2): Add as optional for libc.so.
5837         (__unordsf2): Likewise.
5838         (__signbit): Remove for libc.so.
5839         (__signbitl): Likewise.
5840
5841 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5842
5843         * iconvdata/bug-iconv11.c (test_ibm93x):
5844         Use %zu printf format specifier for size_t argument.
5845
5846 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5849         already-recorded ulps.
5850         * sysdeps/arm/libm-test-ulps: Regenerated.
5851         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5852         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5853         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5854
5855 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5856             Paul Pluzhnikov  <ppluzhnikov@google.com>
5857
5858         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5859         assembler not supporting AVX-512.
5860
5861 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5862
5863         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5864
5865 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5866
5867         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5868         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5869
5870         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5871
5872         * sysdeps/arm/libm-test-ulps: Regenerated.
5873
5874 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5875
5876         [BZ #19451]
5877         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5878
5879 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5880
5881         [BZ #19486]
5882         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5883         * sysdeps/generic/fix-fp-int-convert-overflow.h
5884         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5885         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5886         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5887         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5888         Likewise.
5889         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5890         Avoid conversions to long int where inexact exceptions
5891         could be raised.
5892         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5893         Likewise.
5894         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5895         Avoid conversions to long long int where inexact exceptions
5896         could be raised.
5897         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5898         Likewise.
5899
5900 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5901
5902         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5903         * configure: Regenerated.
5904
5905 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5906
5907         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5908
5909 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5910
5911         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5912         outside of comment.
5913
5914 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5915
5916         * nptl/tst-barrier1.c: Add description on first line.
5917         * nptl/tst-barrier2.c: Likewise.
5918         * nptl/tst-barrier3.c: Likewise.
5919         * nptl/tst-barrier4.c: Likewise.
5920         * nptl/tst-barrier5.c: Likewise.
5921
5922 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5923
5924         [BZ #18868]
5925         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5926
5927 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5928
5929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5930         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5931         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5932         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5933         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5934         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5935         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5936         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5937         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5938         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5939         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5940
5941 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5942
5943         [BZ #13065]
5944         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5945         new implementation.
5946         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5947         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5948         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5949         (BARRIER_IN_THRESHOLD): New macro.
5950         * nptl/pthread_barrierattr_setpshared.c
5951         (pthread_barrierattr_setpshared): Clean up.
5952         * nptl/tst-barrier4.c: Correct comment.
5953         * nptl/tst-barrier5.c: New file.
5954         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5955         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5956         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5957         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5958         * nptl/lowlevelbarrier.sym: Remove.
5959         * nptl/DESIGN-barrier.txt: Remove.
5960         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5961         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5962         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5963         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5964         error.
5965         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5966         implementation.
5967
5968 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5969
5970         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5971         (do_child): Mask SIGRTMIN while thr is running.
5972
5973 2016-01-15  Martin Sebor  <msebor@redhat.com>
5974
5975         [BZ #19432]
5976         * iconvdata/Makefile: Add bug-iconv11.
5977         * iconvdata/bug-iconv11.c: New test.
5978         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5979         * iconvdata/ibm933.c: Same.
5980         * iconvdata/ibm935.c: Same.
5981         * iconvdata/ibm937.c: Same.
5982         * iconvdata/ibm939.c: Same.
5983
5984 2016-01-15  Martin Sebor  <msebor@redhat.com>
5985
5986         [BZ #19443]
5987         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5988         [DEBUG] (_ufc_set_bits): Declare used.
5989         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5990         [DEBUG] (print_all): Declare used.
5991         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5992         operands of the ternary ?: expression to target type.
5993         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5994         calling the undeclared abort.
5995         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5996
5997 2016-01-15  Martin Sebor  <msebor@redhat.com>
5998
5999         [BZ #18755]
6000         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
6001         warnings.
6002         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
6003         (__gai_create_helper_thread): Same.
6004         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
6005         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
6006         to suppress -Wmaybe-uninitialized warnings.
6007
6008 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         [BZ #19465]
6011         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
6012         inside if.
6013         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6014         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6015         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6016
6017 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
6018
6019         [BZ #19466]
6020         * time/tst-mktime2.c (time_t_max): Removed.
6021         (time_t_min): Likewise.
6022         (TYPE_SIGNED): New.
6023         (TYPE_MINIMUM): Likewise.
6024         (TYPE_MAXIMUM): Likewise.
6025         (TIME_T_MIN): Likewise.
6026         (TIME_T_MAX): Likewise.
6027         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
6028         and TIME_T_MIN.
6029         (do_test): Likewise.
6030
6031 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
6032
6033         [BZ #19467]
6034         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
6035         index_Fast_Unaligned_Load flag for Excavator family CPUs.
6036
6037 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
6038
6039         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
6040
6041 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
6042
6043         * benchtests/Makefile (PYTHON): Define.
6044         (bench-func): Use $(PYTHON) to run python scripts.
6045         ($(objpfx)bench-%.c): Likewise.
6046
6047 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
6048
6049         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
6050         leading slash when `file_name' is "/".
6051
6052 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
6053
6054         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
6055         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
6056         Likewise.
6057         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
6058         Likewise.
6059         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
6060         Likewise.
6061         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
6062         enum constant and macro.
6063         (PTRACE_SETSIGMASK): Likewise.
6064         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6065         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6066         (PTRACE_GETSIGMASK): Likewise.
6067         (PTRACE_SETSIGMASK): Likewise.
6068         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6069         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
6070         Likewise.
6071         (PTRACE_SETSIGMASK): Likewise.
6072         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6073         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6074         (PTRACE_GETSIGMASK): Likewise.
6075         (PTRACE_SETSIGMASK): Likewise.
6076         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6077         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
6078         Likewise.
6079         (PTRACE_SETSIGMASK): Likewise.
6080         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6081         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
6082         Likewise.
6083         (PTRACE_SETSIGMASK): Likewise.
6084         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6085         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
6086         Likewise.
6087         (PTRACE_SETSIGMASK): Likewise.
6088         (PTRACE_SECCOMP_GET_FILTER): Likewise.
6089
6090 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
6091             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6092
6093         [BZ #19439]
6094         * math/bits/mathcalls.h
6095         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
6096         prototype.
6097         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
6098
6099 2016-01-11  Andreas Schwab  <schwab@suse.de>
6100
6101         [BZ #19253]
6102         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
6103         cache when TZDEFRULES was used.
6104         * time/tst-tzname.c: New file.
6105         * time/Makefile (test): Add tst-tzname.
6106         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
6107         * timezone/Makefile (test-zones): Add $(posixrules-file).
6108         ($(testdata)/$(posixrules-file)): New rule.
6109
6110 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6111
6112         Fix doc quoting problems with Texinfo 5
6113         Without this change, in the info file output, Texinfo 5 quotes code
6114         in text with undirected single quotes 'like this' and generates
6115         code examples that with many PDF readers cannot be cut out of PDFs
6116         and pasted into code.
6117         * manual/libc.texinfo: Configure the libc manual like the GNU
6118         Emacs manual, by using @documentencoding and setting
6119         txicodequoteundirected and txicodequotebacktick.  This way,
6120         Texinfo 5 quotes code in text with directed single quotes ‘like
6121         this’ and produces examples that can be cut out of PDFs.  This
6122         change causes Texinfo 5 to generate info files that contain UTF-8
6123         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
6124         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
6125
6126 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6127
6128         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
6129         __libc_tabort, __libc_tend): New wrappers that enforce compiler
6130         barriers to their respective compiler built-ins.
6131         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
6132         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
6133         * sysdeps/powerpc/sysdep.h: Likewise.
6134         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
6135         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
6136         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
6137
6138 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
6139
6140         * scripts/config.guess: Revert previous shebang change.
6141         * scripts/config.sub: Likewise.
6142         * scripts/mkinstalldirs: Likewise.
6143
6144 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6145
6146         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
6147         PPC_FEATURE2_HAS_IEEE128.
6148         * sysdeps/powerpc/dl-procinfo.c:
6149         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
6150
6151 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
6152
6153         [BZ #19415]
6154         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
6155         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
6156         (_dl_lookup_address): Rewrite using function resolver trampoline.
6157         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
6158         two bits in address.
6159
6160 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6161
6162         * longlong.h: Change !__SHMEDIA__ to
6163         (!defined (__SHMEDIA__) || !__SHMEDIA__).
6164         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
6165
6166 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
6167             Joseph Myers  <joseph@codesourcery.com>
6168             Mark Shinwell  <shinwell@codesourcery.com>
6169             Andrew Stubbs  <ams@codesourcery.com>
6170             Rich Felker <dalias@libc.org>
6171
6172         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
6173
6174 2016-01-07  Richard Henderson  <rth@redhat.com>
6175
6176         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
6177
6178 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6179
6180         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
6181         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
6182         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
6183         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
6184         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
6185
6186 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
6187             Joseph Myers  <joseph@codesourcery.com>
6188
6189         * timezone/private.h: Update from tzcode 2015g.
6190         * timezone/tzfile.h: Likewise.
6191         * timezone/tzselect.ksh: Likewise.
6192         * timezone/zdump.c: Likewise.
6193         * timezone/zic.c: Likewise.
6194         * timezone/ialloc.c: Remove file.
6195         * timezone/scheck.c: Likewise.
6196         * timezone/Makefile (extra-objs): Remove variable.
6197         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
6198         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
6199         -Wno-maybe-uninitialized.
6200         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6201         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6202         (CFLAGS-ialloc.c): Remove variable.
6203         (CFLAGS-scheck.c): Likewise.
6204         * timezone/README: Update list of files from tzcode.
6205
6206 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6207
6208         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6209         instead of __fxprintf when _LIBC is undefined.
6210
6211 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6212
6213         * catgets/test-gencat.sh: Remove space after shebang.
6214         * conform/GlibcConform.pm: Likewise.
6215         * conform/check-header-lists.sh: Likewise.
6216         * conform/conformtest.pl: Likewise.
6217         * conform/linknamespace.pl: Likewise.
6218         * conform/list-header-symbols.pl: Likewise.
6219         * debug/catchsegv.sh: Likewise.
6220         * elf/genrtldtbl.awk: Likewise.
6221         * elf/tst-pathopt.sh: Likewise.
6222         * elf/tst-rtld-load-self.sh: Likewise.
6223         * grp/tst_fgetgrent.sh: Likewise.
6224         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6225         * iconvdata/gen-8bit-gap.sh: Likewise.
6226         * iconvdata/gen-8bit.sh: Likewise.
6227         * iconvdata/run-iconv-test.sh: Likewise.
6228         * intl/tst-gettext.sh: Likewise.
6229         * intl/tst-gettext2.sh: Likewise.
6230         * intl/tst-gettext4.sh: Likewise.
6231         * intl/tst-gettext6.sh: Likewise.
6232         * intl/tst-translit.sh: Likewise.
6233         * io/ftwtest-sh: Likewise.
6234         * libio/test-freopen.sh: Likewise.
6235         * locale/gen-translit.pl: Likewise.
6236         * malloc/tst-mtrace.sh: Likewise.
6237         * manual/check-safety.sh: Likewise.
6238         * manual/libc-texinfo.sh: Likewise.
6239         * manual/tsort.awk: Likewise.
6240         * manual/xtract-typefun.awk: Likewise.
6241         * nptl/tst-cancel-wrappers.sh: Likewise.
6242         * nptl/tst-tls6.sh: Likewise.
6243         * posix/globtest.sh: Likewise.
6244         * posix/tst-getconf.sh: Likewise.
6245         * posix/wordexp-tst.sh: Likewise.
6246         * scripts/check-c++-types.sh: Likewise.
6247         * scripts/check-local-headers.sh: Likewise.
6248         * scripts/config.guess: Likewise.
6249         * scripts/config.sub: Likewise.
6250         * scripts/cpp: Likewise.
6251         * scripts/cross-test-ssh.sh: Likewise.
6252         * scripts/documented.sh: Likewise.
6253         * scripts/evaluate-test.sh: Likewise.
6254         * scripts/gen-libc-abis: Likewise.
6255         * scripts/gen-sorted.awk: Likewise.
6256         * scripts/list-fixed-bugs.py: Likewise.
6257         * scripts/merge-test-results.sh: Likewise.
6258         * scripts/mkinstalldirs: Likewise.
6259         * scripts/rellns-sh: Likewise.
6260         * scripts/test-installation.pl: Likewise.
6261         * scripts/update-copyrights: Likewise.
6262         * stdio-common/tst-printf.sh: Likewise.
6263         * stdio-common/tst-unbputc.sh: Likewise.
6264         * stdlib/tst-fmtmsg.sh: Likewise.
6265         * stdlib/tst-setcontext3.sh: Likewise.
6266         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6267         * sysdeps/unix/make-syscalls.sh: Likewise.
6268
6269 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6270
6271         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6272         asm stw with atomic_exchange_rel.  Add explanatory comment.
6273         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6274         Likewise.
6275
6276 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6277
6278         [BZ #19122]
6279         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6280         * sysdeps/generic/dl-unistd.h: New file.
6281         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6282
6283 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6284
6285          [BZ #19122]
6286          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6287          * sysdeps/generic/dl-mman.h: New file.
6288          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6289
6290 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6291
6292         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6293         trailing whitespace removed.
6294         * scripts/config.guess: Update to version 2016-01-01.
6295         * scripts/config.sub: Update to version 2016-01-01.
6296         * scripts/move-if-change: Update from gnulib.
6297
6298 2016-01-04  Anton Blanchard  <anton@samba.org>
6299
6300         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6301         for array indices.
6302         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6303
6304 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6305
6306         * NEWS: Update copyright dates.
6307         * catgets/gencat.c (print_version): Likewise.
6308         * csu/version.c (banner): Likewise.
6309         * debug/catchsegv.sh: Likewise.
6310         * debug/pcprofiledump.c (print_version): Likewise.
6311         * debug/xtrace.sh (do_version): Likewise.
6312         * elf/ldconfig.c (print_version): Likewise.
6313         * elf/ldd.bash.in: Likewise.
6314         * elf/pldd.c (print_version): Likewise.
6315         * elf/sotruss.sh: Likewise.
6316         * elf/sprof.c (print_version): Likewise.
6317         * iconv/iconv_prog.c (print_version): Likewise.
6318         * iconv/iconvconfig.c (print_version): Likewise.
6319         * locale/programs/locale.c (print_version): Likewise.
6320         * locale/programs/localedef.c (print_version): Likewise.
6321         * login/programs/pt_chown.c (print_version): Likewise.
6322         * malloc/memusage.sh (do_version): Likewise.
6323         * malloc/memusagestat.c (print_version): Likewise.
6324         * malloc/mtrace.pl: Likewise.
6325         * manual/libc.texinfo: Likewise.
6326         * nptl/version.c (banner): Likewise.
6327         * nscd/nscd.c (print_version): Likewise.
6328         * nss/getent.c (print_version): Likewise.
6329         * nss/makedb.c (print_version): Likewise.
6330         * posix/getconf.c (main): Likewise.
6331         * scripts/test-installation.pl: Likewise.
6332         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6333
6334         * All files with FSF copyright notices: Update copyright dates
6335         using scripts/update-copyrights.
6336         * intl/plural.c: Regenerated.
6337         * locale/programs/charmap-kw.h: Likewise.
6338         * locale/programs/locfile-kw.h: Likewise.
6339
6340 2016-01-02  Helge Deller  <deller@gmx.de>
6341
6342         [BZ #19285]
6343         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6344         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6345         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6346         (MADV_xxK_PAGES): Remove.
6347
6348 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6349
6350         [BZ #15421]
6351         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6352         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6353         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6354         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6355
6356 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6357
6358         [BZ #19408]
6359         * sysdeps/unix/sysv/linux/personality.c: New file.
6360         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6361         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6362         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6363         (sysdep_routines): Add personality.
6364         (tests): Add tst-personality.
6365         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6366         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6367         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6368         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6369         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6370         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6371         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6372         Likewise.
6373         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6374         Likewise.
6375         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6376         Likewise.
6377         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6378         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6379         Likewise.
6380
6381 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6382
6383         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6384         (PATH_ARM_SYSTYPE): Remove.
6385         (PATH_CPUINFO): Likewise.
6386         (IO_BASE_FOOTBRIDGE): Likewise.
6387         (IO_SHIFT_FOOTBRIDGE): Likewise.
6388         (struct platform): Likewise.
6389         (init_iosys): Remove compatibility code for 2.4 kernels.
6390         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6391
6392 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6393
6394         * malloc/tst-malloc-thread-fail.c: New file.
6395         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6396         (tst-malloc-thread-fail): Link against libpthread.
6397
6398 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6399
6400         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6401         (get_parser): New function.
6402         (main): New function.
6403
6404 2015-12-29  Rob Wu  <rob@robwu.nl>
6405
6406         [BZ #19369]
6407         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6408
6409 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6410
6411         [BZ #19270]
6412         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6413
6414 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6415
6416         [BZ #15421]
6417         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6418
6419 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6420
6421         [BZ #13690]
6422         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6423         after releasing it.
6424         (__lll_robust_unlock): Likewise.
6425         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6426         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6427         (lll_robust_unlock): Likewise.
6428         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6429         Prevent warnings in callers.
6430
6431 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6432
6433         * malloc/arena.c (list_lock): Update comment.
6434
6435 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6436
6437         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6438         __parse_hwcap_and_convert_at_platform to libc.a.
6439
6440 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6441
6442         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6443         platform and feature support for POWER9.
6444         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6445         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6446         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6447         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6448         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6449         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6450         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6451         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6452
6453 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6454
6455         Harmonize generic stdio-lock support with nptl
6456
6457         This fixes build when _IO_funlockfile is a macro, fixes build where
6458         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6459         stack unwind.
6460
6461         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6462         _IO_release_lock ): Use cleanup attribute on new
6463         _IO_acquire_lock_file variable instead of assuming that
6464         _IO_release_lock will be called.
6465         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6466         _IO_acquire_lock_needs_exceptions_enabled.
6467         (_IO_acquire_lock_clear_flags2): New macro.
6468
6469 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6470
6471         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6472
6473 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6474
6475         [BZ #19182]
6476         * malloc/arena.c (list_lock): Document lock ordering requirements.
6477         (free_list_lock): New lock.
6478         (ptmalloc_lock_all): Comment on free_list_lock.
6479         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6480         (detach_arena): Update comment.  free_list_lock is now needed.
6481         (_int_new_arena): Use free_list_lock around detach_arena call.
6482         Acquire arena lock after list_lock.  Add comment, including FIXME
6483         about incorrect synchronization.
6484         (get_free_list): Switch to free_list_lock.
6485         (reused_arena): Acquire free_list_lock around detach_arena call
6486         and attached threads counter update.  Add two FIXMEs about
6487         incorrect synchronization.
6488         (arena_thread_freeres): Switch to free_list_lock.
6489         * malloc/malloc.c (struct malloc_state): Update comments to
6490         mention free_list_lock.
6491
6492 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6493
6494         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6495         Remove functions.
6496         (sloww, sloww1): Accept argument to offset quadrant.
6497         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6498         quadrant.
6499         (__sin, __cos): Consolidate common code into new functions.
6500         (reduce_sincos_1, do_sincos_1): New functions.
6501         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6502
6503         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6504         code to new functions.
6505         (reduce_sincos_2, do_sincos_2): New functions.
6506         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6507
6508         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6509         common code for sincos.
6510         (__cos) [!IN_SINCOS]: Likewise.
6511         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6512         New function.
6513         (__sincos): Use it.
6514
6515 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6516
6517         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6518         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6519         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6520
6521 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6522
6523         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6524         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6525         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6526         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6527         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6528         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6529         index_Prefer_No_VZEROUPPER): New feature.
6530         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6531         Prefer_No_VZEROUPPER for Knights Landing.
6532
6533 015-12-18  Torvald Riegel  <triegel@redhat.com>
6534
6535         * math/atest-exp2.c (mp_exp_m1): Remove.
6536
6537 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6538
6539         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6540         syscalls.
6541         (__SYSCALL0): New macro.
6542         (__SYSCALL1): Likewise.
6543         (__SYSCALL2): Likewise.
6544         (__SYSCALL3): Likewise.
6545         (__SYSCALL4): Likewise.
6546         (__SYSCALL5): Likewise.
6547         (__SYSCALL6): Likewise.
6548         (__SYSCALL_CONCAT_X): Likewise.
6549         (__SYSCALL_CONCAT): Likewise.
6550         (__SYSCALL_DIST): Likewise.
6551         (__SYSCALL_CALL): Likewise.
6552
6553 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6554
6555         [BZ #19363]
6556         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6557
6558 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6559
6560         [BZ #19375]
6561         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6562         negative subnormals.
6563
6564 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6565
6566         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6567         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6568         (INTERNAL_SYSCALL_NCS): Use it.
6569         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6570
6571 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6572
6573         [BZ #19243]
6574         * malloc/arena.c (get_free_list): Remove assert and adjust
6575         reference count handling.  Add comment about reused_arena
6576         interaction.
6577         (reused_arena): Add comments abount get_free_list interaction.
6578         * malloc/tst-malloc-thread-exit.c: New file.
6579         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6580         (tst-malloc-thread-exit): Link against libpthread.
6581
6582 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6583
6584         [BZ #19367]
6585         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6586         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6587         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6588         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6589         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6590
6591 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6592
6593         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6594         Silvermont optimizations for Knights Landing.
6595
6596 2015-12-15  Andreas Schwab  <schwab@suse.de>
6597
6598         [BZ #17197]
6599         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6600         immediately after emitting SI.
6601         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6602         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6603         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6604         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6605         * iconvdata/bug-iconv10.c: New file.
6606         * iconvdata/Makefile (tests): Add bug-iconv10.
6607         ($(objpfx)bug-iconv10.out): New rule.
6608
6609 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6610
6611         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6612         aliasing violation.
6613
6614 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6615
6616         [BZ #18472]
6617         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6618         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6619         conditionals for them.
6620         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6621         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6623         sys/kdaemon.h.
6624         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6625         compat-only syscall, obsoleted in glibc 2.23.
6626         (create_module): Likewise.
6627         (get_kernel_syms): Likewise.
6628         (query_module): Likewise.
6629         (uselib): Likewise.
6630         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6631
6632 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6633
6634         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6635         <linux/version.h>.
6636         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6637         conditional code.
6638         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6639         and ioshift_name initialization.
6640
6641 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6642
6643         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6644         Fix indentation.
6645
6646 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6647
6648         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6649
6650 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6651
6652         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6653
6654 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6655             Jakub Wilk  <jwilk@debian.org>
6656
6657         [BZ #19347]
6658         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6659         to change the group of the device to the tty group.
6660
6661 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         Split large string section; add truncation advice
6664         * manual/examples/strncat.c: Remove.
6665         This example was misleading, as the code would have undefined
6666         behavior if "hello" was longer than SIZE.  Anyway, the manual
6667         shouldn't encourage strncpy+strncat for this sort of thing.
6668         * manual/string.texi (Copying Strings and Arrays): Split into
6669         three sections Copying Strings and Arrays, Concatenating Strings,
6670         and Truncating Strings, as this section was way too long.  All
6671         cross-referenced changed.  Add advice about string-truncation
6672         functions.  Remove misleading strncat example.
6673
6674 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6675
6676         * manual/nss.texi (NSS Modules Interface): Document
6677         NSS_STATUS_NOTFOUND and SUCCESS.
6678
6679 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6680
6681         [BZ 18568]
6682         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6683         201505L, for Unicode 8.
6684
6685 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6686
6687         * locale/C-translit.h: Regenerate.
6688
6689 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6690
6691         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6692         and U+0153.
6693
6694 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6695
6696         [BZ #19351]
6697         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6698         expanding log(1+z), compare z rather than its square with epsilon
6699         to determine when to avoid evaluating the expansion.
6700
6701         [BZ #19350]
6702         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6703         Increase overflow threshold.
6704
6705         [BZ #19349]
6706         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6707         when small.
6708
6709         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6710         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6711         New macro.
6712         [__LINUX_KERNEL_VERSION >= 0x040300]
6713         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6714         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6715         Likewise.
6716         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6717         Likewise.
6718         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6719         Likewise.
6720         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6721         Likewise.
6722         [__LINUX_KERNEL_VERSION >= 0x040300]
6723         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6724         [__LINUX_KERNEL_VERSION >= 0x040300]
6725         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6726         [__LINUX_KERNEL_VERSION >= 0x040300]
6727         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6728         [__LINUX_KERNEL_VERSION >= 0x040300]
6729         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6730         [__LINUX_KERNEL_VERSION >= 0x040300]
6731         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6732         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6733         Likewise.
6734         [__LINUX_KERNEL_VERSION >= 0x040300]
6735         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6736         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6737         Likewise.
6738         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6739         Likewise.
6740         [__LINUX_KERNEL_VERSION >= 0x040300]
6741         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6742         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6743         Likewise.
6744         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6745         Likewise.
6746         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6747         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6748         Likewise.
6749         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6750         Likewise.
6751         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6752         Likewise.
6753         [__LINUX_KERNEL_VERSION >= 0x040300]
6754         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6755         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6756         Likewise.
6757         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6758         Likewise.
6759         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6760         Likewise.
6761         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6762         Likewise.
6763         [__LINUX_KERNEL_VERSION >= 0x040300]
6764         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6765         [__LINUX_KERNEL_VERSION >= 0x040300]
6766         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6767         [__LINUX_KERNEL_VERSION >= 0x040300]
6768         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6769         [__LINUX_KERNEL_VERSION >= 0x040300]
6770         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6771         [__LINUX_KERNEL_VERSION >= 0x040300]
6772         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6773         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6774         Likewise.
6775         [__LINUX_KERNEL_VERSION >= 0x040300]
6776         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6777         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6778         Likewise.
6779         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6780         Likewise.
6781         [__LINUX_KERNEL_VERSION >= 0x040300]
6782         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6783         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6784         Likewise.
6785         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6786         Likewise.
6787         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6788         (__ASSUME_SOCKET_SYSCALL): Likewise.
6789         (__ASSUME_BIND_SYSCALL): Likewise.
6790         (__ASSUME_CONNECT_SYSCALL): Likewise.
6791         (__ASSUME_LISTEN_SYSCALL): Likewise.
6792         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6793         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6794         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6795         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6796         (__ASSUME_SEND_SYSCALL): Likewise.
6797         (__ASSUME_SENDTO_SYSCALL): Likewise.
6798         (__ASSUME_RECV_SYSCALL): Likewise.
6799         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6800         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6801         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6802         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6803         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6804         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6805         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6806         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6807         Likewise.
6808         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6809         Likewise.
6810         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6811         Likewise.
6812         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6813         Likewise.
6814         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6815         Likewise.
6816         [__LINUX_KERNEL_VERSION >= 0x020625]
6817         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6818         [__LINUX_KERNEL_VERSION >= 0x020625]
6819         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6820         [__LINUX_KERNEL_VERSION >= 0x020625]
6821         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6822         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6823         Likewise.
6824         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6825         Likewise.
6826         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6827         Likewise.
6828         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6829         Likewise.
6830         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6831         Likewise.
6832         [__LINUX_KERNEL_VERSION >= 0x020625]
6833         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6834         [__LINUX_KERNEL_VERSION >= 0x020625]
6835         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6836         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6837         Likewise.
6838         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6839         Likewise.
6840
6841 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6842
6843         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6844         record the current if the current ABI and CPU support the FP64
6845         extension.
6846         (has-modd-spreg): Define to record the current if the current ABI and
6847         CPU support 32-bit floating point values in odd FPU registers.
6848         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6849         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6850         $(has-modd-spreg) equals yes.
6851         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6852         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6853         $(has-modd-spreg) equal yes.
6854
6855 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6856
6857         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6858         basename.
6859
6860 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6861
6862         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6863         (bench-string): ... here.
6864         (bench): Add bench-string.
6865         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6866         to *-benchset to reflect what they are.
6867         (benchset): Adjust.
6868
6869         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6870         cos-inputs.
6871
6872 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6873
6874         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6875         __attribute__ ((__simd__)) for vector math function declarations.
6876
6877 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6878
6879         Fix typo in strncat, wcsncat manual entries
6880         * manual/string.texi (Copying and Concatenation): Fix typos in
6881         sample implementations of strncat and wcsncat, by having them use
6882         the old value of the destination length, not the new one.
6883
6884 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6885
6886         [BZ #16961]
6887         [BZ #16962]
6888         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6889         string on the stack for strtod.
6890         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6891         a string on the stack for strtof.
6892         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6893         constructing a string on the stack for strtold.
6894         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6895         __strtold_nan to GLIBC_PRIVATE.
6896         * math/test-nan-overflow.c: New file.
6897         * math/test-nan-payload.c: Likewise.
6898         * math/Makefile (tests): Add test-nan-overflow and
6899         test-nan-payload.
6900
6901 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6902
6903         Consistency about byte vs character in string.texi
6904         * manual/string.texi (String and Array Utilities):
6905         Distinguish more carefully among bytes, multibyte characters,
6906         and wide characters.  Use "byte" when talking about C 'char',
6907         to distinguish it more clearly from multibyte characters.
6908         Say "wide character" or "multibyte character" instead of
6909         "character", when a wide or multibyte character is intended.
6910         Similarly for "multibyte string" versus "string".
6911         Define these terms more carefully.
6912
6913 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6914
6915         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6916         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6917         Likewise.
6918         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6919         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6920         * sysdeps/sh/math_private.h: New file.
6921         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6922         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6923         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6924         long double function name.
6925         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6926         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6927         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6928         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6929         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6931         Remove __finitel, __isinfl, and __isnanl.
6932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6933         Likewise.
6934         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6936         Remove __finitel.
6937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6938         Likewise.
6939         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6940
6941 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6942
6943         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6944         installed libmvec_nonshared.a.
6945
6946 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6947
6948         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6949         (sysdep_routines): Likewise.
6950         (sysdep-rtld-routines): Likewise.
6951         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6952         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6953         * sysdeps/powerpc/Versions: Added new
6954         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6955         * sysdeps/powerpc/hwcapinfo.c: New file.
6956         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6957         and parse hwcap, hwcap2 and platform number information.
6958         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6959         to store HWCAP+HWCAP2 and platform number.
6960         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6961         for HWCAP+HWCAP2 and platform number in the TCB.
6962         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6963         the HWCAP, HWCAP2 and platform number in the TCB.
6964         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6965         (TLS_INIT_TP): Included calls to add the hwcap and
6966         at_platform values in the TCB in TP initialization.
6967         (TLS_DEFINE_INIT_TP): Likewise.
6968         (THREAD_GET_HWCAP): New macro.
6969         (THREAD_SET_HWCAP): Likewise.
6970         (THREAD_GET_AT_PLATFORM): Likewise.
6971         (THREAD_SET_AT_PLATFORM): Likewise.
6972         * sysdeps/powerpc/powerpc32/dl-machine.h:
6973         (dl_platform_init): New function that calls
6974         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6975         powerpc32.
6976         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6977         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6978         this functionality, static linking case.
6979         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6980         linking case.
6981         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6982         __parse_hwcap_and_convert_at_platform for the static linking case.
6983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6984         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6985         ABI list for GLIBC 2.23.
6986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6987         Likewise.
6988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6989         Likewise.
6990
6991 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6992
6993         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6994         * configure: Regenerate.
6995         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6996         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6997
6998 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6999
7000         * iconvdata/ibm930.c: Add comment explaining encoding uses.
7001         * iconvdata/ibm933.c: Likewise.
7002         * iconvdata/ibm935.c: Likewise.
7003         * iconvdata/ibm937.c: Likewise.
7004         * iconvdata/ibm939.c: Likewise.
7005
7006 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7007
7008         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
7009         pthread_join.
7010         * nptl/tst-cancel21.c (tf): Likewise.
7011
7012 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
7013
7014         [BZ #19313]
7015         * bits/typesizes.h (__CPU_MASK_TYPE): New.
7016         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
7017         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
7018         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
7019         Likewise.
7020         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
7021         Likewise.
7022         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
7023         Likewise.
7024         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
7025         Likewise.
7026         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
7027         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
7028         unsigned long int with __CPU_MASK_TYPE.
7029
7030 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7031
7032         * sysdeps/aarch64/libm-test-ulps: Regenerated.
7033
7034 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
7035
7036         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
7037         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
7038         t512.x.
7039         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
7040
7041 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
7042
7043         [BZ #19214]
7044         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
7045         argument to return extended model.  Update family and model
7046         with extended family and model when family == 0x0f.
7047         (init_cpu_features): Updated.
7048
7049 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7050
7051         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
7052         signed off_t, so 32bit bigger than 2GiB values are fine actually.
7053
7054         * sysdeps/mach/hurd/mmap64.c: New file.
7055
7056 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
7057
7058         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
7059         rights for its main user thread in NEWTASK.
7060
7061 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
7062
7063         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
7064         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
7065
7066 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
7067
7068         [BZ #14259]
7069         * Makeconfig: Rename localedir to complocaledir.
7070         Rename inst_localedir to inst_complocaledir.
7071         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
7072         * config.make.in: Use complocaledir and libc_cv_complocaledir.
7073         * configure.ac: Use libc_cv_complocaledir.
7074         * configure: Regenerate.
7075         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
7076         -DCOMPLOCALEDIR.
7077         * locale/findlocale.c: Use COMPLOCALEDIR.
7078         * locale/loadarchive.c: Likewise.
7079         * locale/programs/locale.c: Likewise.
7080         * locale/programs/localedef.c: Likewise.
7081         * locale/programs/locarchive.c: Likewise.
7082         * localedata/Makefile: Use inst_complocaledir.
7083         * sysdeps/gnu/configure: Regenerate.
7084         * sysdeps/hppa/configure: Regenerate.
7085         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
7086         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
7087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
7088         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
7089         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
7090         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
7091         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
7092
7093 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
7094
7095         [BZ #19058]
7096         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
7097         AS_NEEDED.
7098         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
7099         workaround.
7100         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
7101         libmvec-static-only-routines): Added new file.
7102         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
7103
7104 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7105
7106         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
7107         of interrupted RPC instead of restoring it.
7108
7109         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
7110         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
7111         libc_hidden_def.
7112         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
7113         into initialized data instead of common. Define rtld_hidden_data_def.
7114         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
7115         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
7116         libc_hidden_def.
7117         (if_freenameindex): Add libc_hidden_weak.
7118         (if_nameindex): Add libc_hidden_weak.
7119         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
7120         __open64.
7121         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
7122         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
7123         * sysdeps/mach/nanosleep.c: Include <time.h>
7124         (__nanosleep): Rename to __libc_nanosleep.
7125         (__nanosleep): Add weak_alias.
7126         (nanosleep): Update alias.
7127
7128 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
7129
7130         * stdlib/strtod_nan.c: New file.
7131         * stdlib/strtod_nan_double.h: Likewise.
7132         * stdlib/strtod_nan_float.h: Likewise.
7133         * stdlib/strtod_nan_main.c: Likewise.
7134         * stdlib/strtod_nan_narrow.h: Likewise.
7135         * stdlib/strtod_nan_wide.h: Likewise.
7136         * stdlib/strtof_nan.c: Likewise.
7137         * stdlib/strtold_nan.c: Likewise.
7138         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
7139         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
7140         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
7141         * wcsmbs/wcstod_nan.c: Likewise.
7142         * wcsmbs/wcstof_nan.c: Likewise.
7143         * wcsmbs/wcstold_nan.c: Likewise.
7144         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
7145         strtold_nan.
7146         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
7147         wcstof_nan.
7148         * include/stdlib.h (__strtof_nan): Declare and use
7149         libc_hidden_proto.
7150         (__strtod_nan): Likewise.
7151         (__strtold_nan): Likewise.
7152         (__wcstof_nan): Likewise.
7153         (__wcstod_nan): Likewise.
7154         (__wcstold_nan): Likewise.
7155         * include/wchar.h (____wcstoull_l_internal): Declare.
7156         * stdlib/strtod_l.c: Do not include <ieee754.h>.
7157         (____strtoull_l_internal): Remove declaration.
7158         (STRTOF_NAN): Define macro.
7159         (SET_MANTISSA): Remove macro.
7160         (STRTOULL): Likewise.
7161         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
7162         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
7163         (STRTOF_NAN): Define macro.
7164         (SET_MANTISSA): Remove macro.
7165         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
7166         (SET_MANTISSA): Remove macro.
7167         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
7168         macro.
7169         (SET_MANTISSA): Remove macro.
7170         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
7171         macro.
7172         (SET_MANTISSA): Remove macro.
7173         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
7174         (SET_MANTISSA): Remove macro.
7175         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
7176         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
7177         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
7178
7179         [BZ #19266]
7180         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
7181         upper case and lower case letters inside NAN(), not using TOLOWER.
7182         * stdlib/tst-strtod-nan-locale-main.c: New file.
7183         * stdlib/tst-strtod-nan-locale.c: Likewise.
7184         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
7185         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
7186         Depend on $(gen-locales).
7187         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
7188         * wcsmbs/tst-wcstod-nan-locale.c: New file.
7189         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
7190         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
7191         Depend on $(gen-locales).
7192         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
7193
7194 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
7195
7196         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
7197
7198         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
7199         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
7200         __finitel, __isinfl, and __isnanl.
7201         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7202         Likewise.
7203         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7204         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7205         __finitel.
7206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7207         Likewise.
7208         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7209
7210 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7211
7212         * malloc/memusage.c (me): Remove redundant getenv call.
7213
7214 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7215
7216         [BZ #19143]
7217         [BZ #19164]
7218         * nptl/check-cpuset.h: Remove.
7219         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7220         Remove CPU set size check.
7221         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7222         Likewise.
7223         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7224         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7225         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7226         (__pthread_setaffinity_new): Remove CPU set size check.
7227         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7228         (__kernel_cpumask_size): Remove.
7229         (__sched_setaffinity_new): Remove CPU set size check.
7230         * manual/threads.texi (Default Thread Attributes): Remove stale
7231         reference to check_cpuset_attr, determine_cpumask_size in comment.
7232         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7233         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7234         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7235         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7236         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7237         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7238         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7239         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7240         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7241         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7242         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7243         skeleton test file.
7244         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7245         tst-affinity-pid.
7246
7247 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7248
7249         * scripts/update-abilist.sh: New file.
7250         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7251         * Makerules (update-all-abi-%, update-all-abi)
7252         (subdir_update-all-abi): New targets.
7253         * elf/Makefile (update-all-abi): New target.
7254
7255 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7256
7257         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7258         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7259         (__libc_lock_define_initialized): Use it.
7260         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7261         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7262         * malloc/malloc.c (main_arena): Likewise.
7263         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7264         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7265
7266 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7267
7268         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7269         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7270         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7271         (PTRACE_O_MASK): Update value.
7272         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7273         New value in enum __ptrace_setoptions.
7274         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7275         (PTRACE_O_MASK): Update value.
7276         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7277         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7278         (PTRACE_O_MASK): Update value.
7279         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7280         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7281         (PTRACE_O_MASK): Update value.
7282         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7283         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7284         (PTRACE_O_MASK): Update value.
7285         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7286         New value in enum __ptrace_setoptions.
7287         (PTRACE_O_MASK): Update value.
7288         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7289         New value in enum __ptrace_setoptions.
7290         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7291         (PTRACE_O_MASK): Update value.
7292
7293         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7294         New macro.
7295         (PACKET_AUXDATA): Likewise.
7296         (PACKET_ORIGDEV): Likewise.
7297         (PACKET_VERSION): Likewise.
7298         (PACKET_HDRLEN): Likewise.
7299         (PACKET_RESERVE): Likewise.
7300         (PACKET_TX_RING): Likewise.
7301         (PACKET_LOSS): Likewise.
7302         (PACKET_VNET_HDR): Likewise.
7303         (PACKET_TX_TIMESTAMP): Likewise.
7304         (PACKET_TIMESTAMP): Likewise.
7305         (PACKET_FANOUT): Likewise.
7306         (PACKET_TX_HAS_OFF): Likewise.
7307         (PACKET_QDISC_BYPASS): Likewise.
7308         (PACKET_ROLLOVER_STATS): Likewise.
7309         (PACKET_FANOUT_DATA): Likewise.
7310         (PACKET_MR_UNICAST): Likewise.
7311
7312         [BZ #19242]
7313         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7314         (TOUPPER): Likewise.
7315         * stdlib/tst-strtol-locale-main.c: New file.
7316         * stdlib/tst-strtol-locale.c: Likewise.
7317         * stdlib/Makefile (tests): Add tst-strtol-locale.
7318         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7319         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7320         Depend on $(gen-locales).
7321         * wcsmbs/tst-wcstol-locale.c: New file.
7322         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7323         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7324         tr_TR.ISO-8859-9.
7325         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7326         Depend on $(gen-locales).
7327
7328 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7329
7330         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7331         __glibc_likely instead of __builtin_expect.  After falling back to
7332         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7333         system interface to register the code pages as occupied.
7334
7335 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7336
7337         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7338         [!ARM_MATH_PRIVATE_H].
7339         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7340         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7341         [!HPPA_MATH_PRIVATE_H].
7342         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7343         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7344         to [!I386_MATH_PRIVATE_H].
7345         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7346         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7347         Change guard to [!M68K_MATH_PRIVATE_H].
7348         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7349         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7350         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7351         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7352         macro.
7353         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7354         [!MIPS_MATH_PRIVATE_H].
7355         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7356         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7357         [!NIO2_MATH_PRIVATE_H].
7358         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7359         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7360         [!TILE_MATH_PRIVATE_H].
7361         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7362
7363         [BZ #15421]
7364         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7365         initialize with 0 and define as weak alias of __signgam.
7366         * include/math.h [!_ISOMAC] (__signgam): Declare.
7367         * math/Makefile (libm-calls): Add w_lgamma_compat.
7368         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7369         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7370         test-signgam-ullong-init.
7371         (tests-static): Add test-signgam-uchar-static,
7372         test-signgam-uchar-init-static, test-signgam-uint-static,
7373         test-signgam-uint-init-static, test-signgam-ullong-static and
7374         test-signgam-ullong-init-static.
7375         (CFLAGS-test-signgam-uchar.c): New variable.
7376         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7377         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7378         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7379         (CFLAGS-test-signgam-uint.c): Likewise.
7380         (CFLAGS-test-signgam-uint-init.c): Likewise.
7381         (CFLAGS-test-signgam-uint-static.c): Likewise.
7382         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7383         (CFLAGS-test-signgam-ullong.c): Likewise.
7384         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7385         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7386         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7387         * math/Versions (libm): Add GLIBC_2.23.
7388         * math/lgamma-compat.h: New file.
7389         * math/test-signgam-main.c: Likewise.
7390         * math/test-signgam-uchar-init-static.c: Likewise.
7391         * math/test-signgam-uchar-init.c: Likewise.
7392         * math/test-signgam-uchar-static.c: Likewise.
7393         * math/test-signgam-uchar.c: Likewise.
7394         * math/test-signgam-uint-init-static.c: Likewise.
7395         * math/test-signgam-uint-init.c: Likewise.
7396         * math/test-signgam-uint-static.c: Likewise.
7397         * math/test-signgam-uint.c: Likewise.
7398         * math/test-signgam-ullong-init-static.c: Likewise.
7399         * math/test-signgam-ullong-init.c: Likewise.
7400         * math/test-signgam-ullong-static.c: Likewise.
7401         * math/test-signgam-ullong.c: Likewise.
7402         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7403         wrapper of w_lgamma_main.c.
7404         * math/w_lgamma_compat.c: New file.
7405         * math/w_lgamma_compatf.c: Likewise.
7406         * math/w_lgamma_compatl.c: Likewise.
7407         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7408         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7409         defining compatibility symbols.
7410         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7411         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7412         wrapper of w_lgammaf_main.c.
7413         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7414         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7415         defining compatibility symbols.
7416         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7417         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7418         wrapper of w_lgammal_main.c.
7419         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7420         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7421         defining compatibility symbols.
7422         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7423         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7424         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7425         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7426         <lgamma-compat.h>.
7427         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7428         (__ieee754_gamma): Define as alias.
7429         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7430         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7431         <lgamma-compat.h>.
7432         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7433         (__ieee754_gammaf): Define as alias.
7434         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7435         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7436         <lgamma-compat.h>.
7437         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7438         (__ieee754_gammal): Define as alias.
7439         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7440         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7441         <math/w_lgamma_compat.c>.
7442         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7443         Define as alias of __lgamma_compat and use in defining lgammal.
7444         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7445         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7446         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7447         (USE_AS_COMPAT): New macro.
7448         (LGAMMA_OLD_VER): Undefine and redefine.
7449         (lgammal): Do not define here.
7450         (gammal): Only define here if [GAMMA_ALIAS].
7451         * conform/linknamespace.pl (@whitelist): Remove signgam.
7452         * sysdeps/nacl/libm.abilist: Update.
7453         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7454         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7455         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7456         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7457         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7458         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7459         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7460         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7461         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7462         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7463         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7464         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7466         Likewise.
7467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7468         Likewise.
7469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7470         Likewise.
7471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7472         Likewise.
7473         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7474         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7475         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7476         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7477         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7478         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7479         Likewise.
7480         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7481         Likewise.
7482         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7483         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7484         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7485
7486 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7487
7488         [BZ #16364]
7489         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7490         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7491
7492 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7493
7494         * sysdeps/s390/fpu/bits/mathinline.h:
7495         Use __asm__ [__volatile__] instead of asm [volatile].
7496         * sysdeps/s390/abort-instr.h: Likewise.
7497         * sysdeps/s390/atomic-machine.h: Likewise.
7498         * sysdeps/s390/bits/string.h: Likewise.
7499         * sysdeps/s390/dl-tls.h: Likewise.
7500         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7501         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7502         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7503         * sysdeps/s390/fpu/fesetround.c: Likewise.
7504         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7505         * sysdeps/s390/fpu/s_fma.c: Likewise.
7506         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7507         * sysdeps/s390/memusage.h: Likewise.
7508         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7509         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7510         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7511         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7512         * sysdeps/s390/nptl/tls.h: Likewise.
7513         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7514         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7515         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7516         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7517         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7518         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7519         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7520         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7521         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7522         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7523         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7524         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7525         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7526         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7527         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7528         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7529         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7530         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7531         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7532         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7533         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7534         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7535         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7536
7537 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7538             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7539
7540         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7541         Add lwarx hint, and use macro for acquire instruction.
7542         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7543         Likewise.
7544         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7545         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7546         update to use new atomic macros.
7547
7548 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7549
7550         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7551         (__lll_trylock_elision): Fix setting of adapt_count.
7552         * sysdeps/unix/sysv/linux/powerpc/htm.h
7553         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7554         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7555         (_ABORT_SYSCALL): Renumber, and clarify definition.
7556         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7557
7558 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7559
7560         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7561         after system headers to prevent MIN/MAX redefinition.  Define
7562         HAVE_ALLOCA to preserve builtin alloca usage.
7563
7564 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7565
7566         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7567         static and don't set or restore rounding.
7568         (__cos)[IN_SINCOS]: Likewise.
7569         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7570         (__sincos): Set and restore rounding mode.  Remove check for infinite
7571         or NaN input.
7572
7573         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7574
7575         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7576         as used.
7577
7578 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7579
7580         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7581
7582 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7583
7584         * config.make.in (have-glob-dat-reloc): New.
7585         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7586         target supports GLOB_DAT relocaton. AC_SUBST.
7587         * configure: Regenerated.
7588         * elf/Makefile (tests): Add tst-prelink.
7589         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7590         (tst-prelink-ENV): New.
7591         ($(objpfx)tst-prelink-conflict.out): Likewise.
7592         ($(objpfx)tst-prelink-cmp.out): Likewise.
7593         * sysdeps/x86/tst-prelink.c: Moved to ...
7594         * elf/tst-prelink.c: Here.
7595         * sysdeps/x86/tst-prelink.exp: Moved to ...
7596         * elf/tst-prelink.exp: Here.
7597         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7598         (tst-prelink-ENV): Removed.
7599         ($(objpfx)tst-prelink-conflict.out): Likewise.
7600         ($(objpfx)tst-prelink-cmp.out): Likewise.
7601         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7602
7603 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7604
7605         [BZ #14551]
7606         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7607         (__mpn_construct_long_double): If high part overflows to infinity,
7608         set errno and recompute overflowed result of the correct sign.
7609         * sysdeps/ieee754/ldbl-128ibm/Makefile
7610         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7611         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7612         $(libm).
7613         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7614
7615 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7616
7617         [BZ #15479]
7618         [BZ #19238]
7619         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7620         floating-point state after first operation on input.  Restore full
7621         state rather than just rounding mode.
7622         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7623         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7624         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7625
7626         [BZ #19235]
7627         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7628         add 0.5 to integer arguments.
7629         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7630         Likewise.
7631         (.LC2): New object.
7632
7633 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7634
7635         * scripts/pylintrc (reports): Set to no.
7636
7637 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7638
7639         * elf/dl-load.c (open_verify): Take new argument FD.
7640         Skip __open call if passed FD is not -1.
7641         (_dl_map_object, open_path): Update callers.
7642         * elf/dl-sysdep-open.h: New file.
7643         * elf/dl-load.c: Include it.
7644         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7645         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7646         * sysdeps/nacl/dl-sysdep-open.h: New file.
7647         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7648         from libc to rtld.
7649
7650 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7651
7652         [BZ #19228]
7653         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7654         and restore full floating-point state.
7655         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7656         Likewise.
7657         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7658         Likewise.
7659         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7660         Likewise.
7661         * math/test-nearbyint-except-2.c: New file.
7662         * math/Makefile (tests): Add test-nearbyint-except-2.
7663
7664 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         [BZ #19178]
7667         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7668         (tst-prelink-ENV): New.
7669         ($(objpfx)tst-prelink-conflict.out): Likewise.
7670         ($(objpfx)tst-prelink-cmp.out): Likewise.
7671         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7672         * sysdeps/x86/tst-prelink.c: New file.
7673         * sysdeps/x86/tst-prelink.exp: Likewise.
7674
7675 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7676
7677         * math/auto-libm-test-in: Add another test of pow.
7678         * math/auto-libm-test-out: Regenerated.
7679         * math/libm-test.inc (pow_test_data): Add another test.
7680
7681 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7682
7683         [BZ #19219]
7684         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7685         weak_alias to nearbyintl.
7686
7687 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7688
7689         * sysdeps/aarch64/bits/string.h: New file.
7690         (_STRING_ARCH_unaligned): Define.
7691
7692 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7693
7694         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7695         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7696         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7697         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7699
7700 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7701
7702         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7703         for original name of the DSO.  Add it to the name list of the DSO
7704         if it is actually given.
7705         (_dl_map_object): Keep track of whether an audit module rewrote
7706         the file name.  If yes, pass the original name to
7707         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7708         debugging is enabled, log the change of the file name.
7709         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7710         _dl_map_object_from_fd.
7711         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7712         * elf/tst-audit11.c: New file
7713         * elf/tst-auditmod11.c: New file.
7714         * elf/tst-audit11mod1.c: New file.
7715         * elf/tst-audit11mod2.c: New file.
7716         * elf/tst-audit11mod2.map: New file.
7717         * elf/tst-audit12.c: New file
7718         * elf/tst-auditmod12.c: New file.
7719         * elf/tst-audit12mod1.c: New file.
7720         * elf/tst-audit12mod2.c: New file.
7721         * elf/tst-audit12mod2.map: New file.
7722         * elf/tst-audit12mod3.c: New file.
7723
7724 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7725
7726         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7727         Don't create weak aliases,
7728         because versioned symbols are created later.
7729         * sysdeps/s390/s390-32/setjmp.S
7730         (setjmp, _setjmp): Remove weak and rename to an unique name
7731         in SHARED case due to existing versioned symbols.
7732         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7733         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7734         (getcontext): Create weak alias only in non SHARED case.
7735         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7736
7737 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7738
7739         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7740         (__ASSUME_*_SYSCALL) Define new macros.
7741         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7742         Remove socketcall syscalls.
7743         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7744         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7745         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7746         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7747         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7748         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7749
7750 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7751
7752         [BZ #12926]
7753         Terminate process on invalid netlink response.
7754         * sysdeps/unix/sysv/linux/netlinkaccess.h
7755         (__netlink_assert_response): Declare.
7756         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7757         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7758         (sysdep_routines): Add netlink_assert_response.
7759         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7760         __netlink_assert_response.
7761         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7762         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7763         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7764         __netlink_assert_response.
7765
7766 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7767
7768         [BZ #19178]
7769         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7770         (RTYPE_CLASS_PLT): Likewise.
7771         (RTYPE_CLASS_COPY): Likewise.
7772         (RTYPE_CLASS_TLS): Likewise.
7773         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7774         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7775         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7776         DL_DEBUG_PRELINK.
7777
7778 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7779
7780         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7781         calls with argument -0.5.
7782         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7783
7784         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7785         (libc_cv_z_nodlopen): Likewise.
7786         (libc_cv_z_initfirst): Likewise.
7787         * configure: Regenerated.
7788
7789 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7790
7791         Simplify abilist format to be line-based.
7792         * scripts/abilist.awk: Collect descriptors in the descs variable.
7793         (emit): Write descs variable and sort it
7794         externally, with sort.
7795         * sysdeps/**/*.abilist: Convert to new format.
7796
7797 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7798
7799         [BZ #11460]
7800         * io/Makefile (routines): Add fts64.
7801         (tests): Add tst-fts and tst-fts-lfs.
7802         (CFLAGS-fts64.c): New.
7803         * io/Versions (GLIBC_2.23): New.
7804         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7805         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7806         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7807         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7808         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7809         (FTSENT64): Likewise.
7810         (fts64_children): Likewise.
7811         (fts64_close): Likewise.
7812         (fts64_open): Likewise.
7813         (fts64_read): Likewise.
7814         (fts64_set): Likewise.
7815         * io/fts64.c: New file.
7816         * io/tst-fts.c: New test.
7817         * io/tst-fts-lfs.c: Likewise.
7818         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7819         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7820         fts64_set.
7821         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7822         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7823         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7824         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7825         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7826         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7827         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7828         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7829         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7830         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7831         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7832         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7833         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7835         Likewise.
7836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7837         Likewise.
7838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7840         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7841         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7842         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7843         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7844         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7846         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7847         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7848         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7849         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7850         * sysdeps/wordsize-64/fts.c: New file.
7851         * sysdeps/wordsize-64/fts64.c: Likewise.
7852         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7853         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7854         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7855         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7856
7857 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7858
7859         * math/libm-test.inc (NON_FINITE): New macro.
7860         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7861         * math/gen-libm-test.pl (show_exceptions): Add argument
7862         $non_finite.
7863         (parse_args): Update call to show_exceptions.
7864         * math/test-math-finite.h: New file.
7865         * math/test-math-no-finite.h: Likewise.
7866         * math/test-double-finite.c: Likewise.
7867         * math/test-float-finite.c: Likewise.
7868         * math/test-ldouble-finite.c: Likewise.
7869         * math/test-double.c: Include "test-math-no-finite.h".
7870         * math/test-float.c: Include "test-math-no-finite.h".
7871         * math/test-ldouble.c: Include "test-math-no-finite.h".
7872         * math/test-math-inline.h (TEST_FINITE): New macro.
7873         * math/test-math-vector.h (TEST_FINITE): Likewise.
7874         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7875         (libm-tests): Add test-float-finite and test-double-finite.
7876         ($(objpfx)test-float-finite.o): New dependency on
7877         $(objpfx)libm-test.stmp.
7878         ($(objpfx)test-double-finite.o): Likewise.
7879         ($(objpfx)test-ldouble-finite.o): Likewise.
7880         (libm-test-no-inline-cflags): New variable.
7881         (libm-test-finite-cflags): Likewise.
7882         (CFLAGS-test-float-finite.c): Likewise.
7883         (CFLAGS-test-double-finite.c): Likewise.
7884         (CFLAGS-test-ldouble-finite.c): Likewise.
7885         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7886         (CFLAGS-test-double.c): Likewise.
7887         (CFLAGS-test-ldouble.c): Likewise.
7888
7889 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7890
7891         * io/fcntl.c (__fcntl): Add ... to prototype.
7892         * misc/ioctl.c (__ioctl): Likewise.
7893         * misc/syscall.c (syscall): Likewise.
7894
7895 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7896
7897         * scripts/list-fixed-bugs.py: New file.
7898
7899         [BZ #19213]
7900         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7901         returned for argument 1.
7902         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7903         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7904         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7905         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7906         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7907         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7908
7909         [BZ #19211]
7910         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7911         __USE_XOPEN], not if [!__USE_ISOC99].
7912         (lgammaf): Likewise.
7913         (lgammal): Likewise.
7914         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7915         (gammaf): Likewise.
7916         (gammal): Likewise.
7917         * math/test-signgam-finite-c11.c: New file.
7918         * math/test-signgam-finite-c99.c: Likewise.
7919         * math/test-signgam-finite.c: Likewise.
7920         * math/Makefile (tests): Add test-signgam-finite,
7921         test-signgam-finite-c99 and test-signgam-finite-c11.
7922         (CFLAGS-test-signgam-finite.c): New variable.
7923         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7924         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7925
7926         [BZ #19212]
7927         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7928         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7929         500].
7930         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7931         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7932         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7933         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7934         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7935         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7936         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7937         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7938         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7939         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7940
7941         [BZ #19209]
7942         * math/bits/math-finite.h (ldexp): Remove declaration.
7943         (ldexpf): Likewise.
7944         (ldexpl): Likewise.
7945
7946         [BZ #19205]
7947         * math/bits/math-finite.h (acosf): Condition declaration on
7948         [__USE_ISOC99].
7949         (acosl): Likewise.
7950         (acoshf): Likewise.
7951         (acoshl): Likewise.
7952         (asinf): Likewise.
7953         (asinl): Likewise.
7954         (atan2f): Likewise.
7955         (atan2l): Likewise.
7956         (atanhf): Likewise.
7957         (atanhl): Likewise.
7958         (coshf): Likewise.
7959         (coshl): Likewise.
7960         (expf): Likewise.
7961         (expl): Likewise.
7962         (fmodf): Likewise.
7963         (fmodl): Likewise.
7964         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7965         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7966         (j0l): Likewise.
7967         (y0f): Likewise.
7968         (y0l): Likewise.
7969         (j1f): Likewise.
7970         (j1l): Likewise.
7971         (y1f): Likewise.
7972         (y1l): Likewise.
7973         (jnf): Likewise.
7974         (jnl): Likewise.
7975         (ynf): Likewise.
7976         (ynl): Likewise.
7977         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7978         (lgammal_r): Likewise.
7979         (__lgamma_r_finite): New declaration.
7980         (__lgammaf_r_finite): Likewise.
7981         (__lgammal_r_finite): Likewise.
7982         (lgamma): Use __lgamma_r_finite.
7983         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7984         __lgammaf_r_finite.
7985         (lgammal): Condition definition on [__USE_ISOC99].  Use
7986         __lgammal_r_finite.
7987         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7988         __lgamma_r_finite.
7989         (gammaf): Condition definition on [__USE_ISOC99].  Use
7990         __lgammaf_r_finite.
7991         (gammal): Condition definition on [__USE_ISOC99].  Use
7992         __lgammal_r_finite.
7993         (logf): Condition declaration on [__USE_ISOC99].
7994         (logl): Likewise.
7995         (log10f): Likewise.
7996         (log10l): Likewise.
7997         (ldexpf): Likewise.
7998         (ldexpl): Likewise.
7999         (powf): Likewise.
8000         (powl): Likewise.
8001         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
8002         __USE_ISOC99].
8003         (remainderf): Condition declaration on [__USE_ISOC99].
8004         (remainderl): Likewise.
8005         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
8006         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
8007         (scalbl): Likewise.
8008         (sinhf): Condition declaration on [__USE_ISOC99].
8009         (sinhl): Likewise.
8010         (sqrtf): Likewise.
8011         (sqrtl): Likewise.
8012
8013 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * sysdeps/arm/atomic-machine.h
8016         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
8017         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
8018         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
8019         Remove conditional code.
8020         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
8021         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
8022         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
8023         Change conditional to [__ASSEMBLER__].
8024         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8025         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
8026         [!__ASSEMBLER__].
8027         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
8028         code.
8029         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
8030         conditional macro definitions.
8031         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
8032         (__arch_compare_and_exchange_val_16_acq): Likewise.
8033         (__arch_compare_and_exchange_val_32_acq): Likewise.
8034         (atomic_exchange_and_add): Likewise.
8035         (atomic_add): Likewise.
8036         (atomic_add_negative): Likewise.
8037         (atomic_add_zero): Likewise.
8038         (atomic_bit_set): Likewise.
8039         (atomic_bit_test_set): Likewise.
8040         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
8041         code unconditional.
8042         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8043
8044         * math/test-math-errno.h: New file.
8045         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
8046         empty.
8047         (TEST_ERRNO): New macro.
8048         (TEST_EXCEPTIONS): Likewise.
8049         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
8050         (TEST_EXCEPTIONS): Likewise.
8051         * math/test-math-vector.h (TEST_ERRNO): Likewise.
8052         * math/test-double.c: Include "test-math-errno.h".
8053         * math/test-float.c: Likewise.
8054         * math/test-ldouble.c: Likewise.
8055         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
8056         code unconditional.
8057         (test_exceptions): Only run code if TEST_EXCEPTIONS.
8058         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
8059         unconditional.
8060         (test_errno): Only run code if TEST_ERRNO.
8061         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
8062
8063 2015-11-04  Florian Weimer  <fweimer@redhat.com>
8064
8065         * nptl/tst-once5.cc: Remove attribution.
8066
8067 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
8070         sqrt, tan, tanh, y0, y1 and yn.
8071         * math/auto-libm-test-out: Regenerated.
8072         * math/libm-test.inc (scalb_test_data): Add more tests.
8073         (scalbn_test_data): Likewise.
8074         (scalbln_test_data): Likewise.
8075         (signbit_test_data): Likewise.
8076         (sin_test_data): Likewise.
8077         (sincos_test_data): Likewise.
8078         (sinh_test_data): Likewise.
8079         (sqrt_test_data): Likewise.
8080         (tan_test_data): Likewise.
8081         (tanh_test_data): Likewise.
8082         (tgamma_test_data): Likewise.
8083         (y0_test_data): Likewise.
8084         (y1_test_data): Likewise.
8085         (yn_test_data): Likewise.
8086         (significand_test_data): Likewise.
8087         * sysdeps/i386/fpu/libm-test-ulps: Update.
8088
8089 2015-11-03  David Kastrup  <dak@gnu.org>
8090
8091         [BZ #18604]
8092         * assert/assert.h (assert): Don't macro-expand failed assertion
8093         expression in error message.
8094         * malloc/malloc.c (assert): Likewise.
8095
8096 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
8097
8098         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
8099         test.
8100         * configure: Regenerated.
8101
8102 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
8103
8104         * math/libm-test.inc (modf_test_data): Add more tests.
8105         (nearbyint_test_data): Likewise.
8106         (nextafter_test_data): Likewise.
8107         (nexttoward_test_data): Likewise.
8108         (pow_test_data): Likewise.
8109         (remainder_test_data): Likewise.
8110         (remquo_test_data): Likewise.
8111         (rint_test_data): Likewise.
8112
8113         [BZ #19201]
8114         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
8115         Check for zero remainder in case of large exponents and ensure
8116         correct sign of result in that case.
8117         * math/libm-test.inc (remainder_test_data): Add more tests.
8118
8119         [BZ #6799]
8120         * math/s_nextafter.c: Include <errno.h>.
8121         (__nextafter): Set errno on overflow and underflow.
8122         * math/s_nexttowardf.c: Include <errno.h>.
8123         (__nexttowardf): Set errno on overflow and underflow.
8124         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
8125         (__nextafterl): Set errno on overflow and underflow.
8126         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
8127         (__nexttoward): Set errno on overflow and underflow.
8128         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
8129         (__nexttowardf): Set errno on overflow and underflow.
8130         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
8131         (__nextafterf): Set errno on overflow and underflow.
8132         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
8133         (__nextafterl): Set errno on overflow and underflow.
8134         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
8135         (__nexttoward): Set errno on overflow and underflow.
8136         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
8137         (__nexttowardf): Set errno on overflow and underflow.
8138         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
8139         (__nextafterl): Set errno on overflow and underflow.
8140         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
8141         (__nexttoward): Set errno on overflow and underflow.
8142         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
8143         (__nexttowardf): Set errno on overflow and underflow.
8144         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
8145         (__nexttoward): Set errno on overflow and underflow.
8146         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
8147         (__nexttowardf): Set errno on overflow and underflow.
8148         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
8149         (__nldbl_nexttowardf): Set errno on overflow and underflow.
8150         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
8151         (__nextafterl): Set errno on overflow and underflow.
8152         * math/libm-test.inc (nextafter_test_data): Do not allow errno
8153         setting to be missing on overflow.  Add more tests.
8154         (nexttoward_test_data): Likewise.
8155
8156         * configure.ac (libc_cv_initfini_array): Remove configure test.
8157         * configure: Regenerated.
8158
8159 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
8160
8161         [BZ #19189]
8162         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
8163         non-finite argument handle arguments with negative sign.
8164
8165         * math/libm-test.inc (j0_test_data): Do not test sign of zero
8166         result from infinite argument.
8167         (j1_test_data): Likewise.
8168         (jn_test_data): Likewise.
8169         (y0_test_data): Likewise.
8170         (y1_test_data): Likewise.
8171         (yn_test_data): Likewise.
8172
8173         [BZ #16171]
8174         * math/w_remainder.c (drem): Define as weak alias of __remainder.
8175         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
8176         * math/w_remainderf.c (dremf): Define as weak alias of
8177         __remainderf.
8178         * math/w_remainderl.c (dreml): Define as weak alias of
8179         __remainderl.
8180         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
8181         __remainder.
8182         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
8183         __remainderf.
8184         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
8185         __remainderl.
8186         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
8187         weak alias of remainderl.
8188         * sysdeps/ieee754/ldbl-opt/w_remainder.c
8189         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
8190         alias of __remainder.
8191         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
8192         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
8193         strong alias of __remainderl.
8194         (dreml): Use long_double_symbol.
8195         * math/Makefile (libm-calls): Remove w_drem.
8196         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
8197         (CFLAGS-nldbl-drem.c): Remove variable.
8198         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
8199         * math/w_drem.c: Remove file.
8200         * math/w_dremf.c: Likewise.
8201         * math/w_dreml.c: Likewise.
8202         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8203         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8204         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8205
8206         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8207         * sysdeps/i386/configure: Regenerated.
8208         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8209         * sysdeps/x86_64/configure: Regenerated.
8210
8211         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8212         test.
8213         (libc_cv_visibility_attribute): Likewise.
8214         (libc_cv_protected_data): Test unconditionally.
8215         (libc_cv_broken_visibility_attribute): Remove configure test.
8216         (libc_cv_have_sdata_section): Test unconditionally.
8217         * configure: Regenerated.
8218
8219         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8220         * include/scratch_buffer.h: Include <stddef.h> instead of
8221         <libc-internal.h>.
8222         (struct scratch_buffer): Use max_align_t instead of
8223         libc_max_align_t.
8224
8225 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8226
8227         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8228         instead of extend_alloca.  Change control flow to avoid a goto.
8229         Remove assert which is trivially always true.
8230
8231 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8232
8233         [BZ #16068]
8234         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8235         (FE_ALL_EXCEPT_X86): New macro.
8236         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8237         FE_ALL_EXCEPT.  Ensure precision control is included in
8238         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8239         handle "denormal operand exception" and clear FZ and DAZ bits.
8240         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8241         (FE_ALL_EXCEPT_X86): New macro.
8242         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8243         FE_ALL_EXCEPT.  Ensure precision control is included in
8244         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8245         handle "denormal operand exception" and clear FZ and DAZ bits.
8246         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8247         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8248         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8249         test-fenv-x87 and test-fenv-sse-2.
8250         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8251
8252         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8253         * math/test-double.h (BUILD_COMPLEX): New macro.
8254         * math/test-float.h (BUILD_COMPLEX): Likewise.
8255         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8256
8257         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8258         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8259         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8260         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8261         instead of DBL_DENORM_MIN in comment.
8262         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8263         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8264         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8265         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8266         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8267         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8268
8269 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8270
8271         [BZ# 19048]
8272         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8273         attached_threads member.
8274         (main_arena): Initialize attached_threads.
8275         * malloc/arena.c (list_lock): Update comment.
8276         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8277         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8278         (deattach_arena): New function.
8279         (_int_new_arena): Initialize arena reference count and deattach
8280         replaced arena.
8281         (get_free_list, reused_arena): Update reference count and deattach
8282         replaced arena.
8283         (arena_thread_freeres): Update arena reference count and only put
8284         unreferenced arenas on the free list.
8285
8286 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8287
8288         [BZ #19181]
8289         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8290         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8291         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8292         * math/test-fenv-clear-main.c: New file.
8293         * math/test-fenv-clear.c: Likewise.
8294         * math/Makefile (tests): Add test-fenv-clear.
8295         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8296         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8297         test-fenv-clear-sse.
8298         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8299
8300         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8301         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8302         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8303
8304 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8305
8306         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8307         static libc.
8308
8309 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8310
8311         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8312         test.
8313         * sysdeps/i386/configure: Regenerated.
8314         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8315         test.
8316         * sysdeps/x86_64/configure: Regenerated.
8317         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8319         memset-avx2 unconditionally instead of conditionally on
8320         [$(config-cflags-avx2) = yes].
8321         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8322         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8323         unconditional.
8324         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8325         * sysdeps/x86_64/multiarch/memset_chk.S
8326         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8327         to [IS_IN (libc) && SHARED].
8328
8329 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8330
8331         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8332         configure test.
8333         * sysdeps/arm/configure: Regenerated.
8334         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8335         Define variable if not already defined.
8336
8337         [BZ #17404]
8338         * sysdeps/mips/atomic-machine.h
8339         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8340         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8341         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8342
8343         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8344         unconditional.
8345         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8346         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8347         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8348         unconditional.
8349         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8350         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8351         unconditional.
8352         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8353         * stdlib/setenv.c
8354         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8355         code unconditional.
8356         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8357         Remove conditional code.
8358         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8359         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8360         unconditional.
8361         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8362         code.
8363         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8364         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8365         unconditional.
8366         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8367         code.
8368         * sysdeps/ieee754/ldbl-128/k_tanl.c
8369         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8370         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8371         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8372         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8373         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8374         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8375         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8376         unconditional.
8377         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8378         code.
8379         * sysdeps/ieee754/ldbl-96/k_tanl.c
8380         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8381         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8382
8383         * nptl/tst-initializers1-c11.c: New file.
8384         * nptl/tst-initializers1-gnu11.c: Likewise.
8385         * nptl/Makefile (tests): Add these new tests.
8386         (CFLAGS-tst-initializers1-c11.c): New variable.
8387         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8388
8389         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8390         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8391         instead of -std=gnu99.
8392         * configure.ac (systemtap): Test with -std=gnu11 instead of
8393         -std=gnu99.
8394         * configure: Regenerated.
8395         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8396         in compilation command in comment.
8397
8398         * sysdeps/nptl/configure.ac: Remove file.
8399         * sysdeps/nptl/configure: Remove generated file.
8400         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8401         * configure: Regenerated.
8402         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8403         * config.make.in (have-forced-unwind): Remove variable.
8404         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8405         unconditional.
8406         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8407         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8408         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8409         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8410         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8411         unconditional.
8412
8413 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8414
8415         [BZ #19174]
8416         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8417         .skip_lock_out_of_tbegin_retries.
8418         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8419         (__lll_lock_elision): Likewise, and respect a value of
8420         try_tbegin <= 0.
8421
8422 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8423
8424         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8425         statement.
8426
8427 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8428
8429         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8430         variable.
8431         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8432         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8433
8434         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8435         of -std=c1x -D_ISOC11_SOURCE.
8436
8437         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8438         * configure: Regenerated.
8439         * manual/install.texi (Tools for Compilation): Document
8440         requirement for GCC 4.7 or later.
8441         * INSTALL: Regenerated.
8442
8443 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8444
8445         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8446         on CNT to a conditional jump to 'puntdata'.
8447
8448 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8449
8450         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8451         (libc_cv_gcc_tls_model_attr): Likewise.
8452         * configure: Regenerated.
8453
8454         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8455         * configure: Regenerated.
8456         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8457
8458 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8459
8460         * configure.ac (old_glibc_headers): Remove configure test.
8461         * configure: Regenerated.
8462         * config.make.in (old-glibc-headers): Remove variable.
8463         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8464         (install): Remove dependency on remove-old-headers.
8465         (headers2_0): Remove variable.
8466         (remove-old-headers): Remove rule.
8467
8468         * configure.ac (libc_cv_dot_text): Remove configure test.
8469         (libc_cv_asm_set_directive): Use .text instead of
8470         ${libc_cv_dot_text} in configure test.
8471         * configure: Regenerated.
8472
8473 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8474
8475         [BZ #19168]
8476         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8477
8478 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8479
8480         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8481         not support static linking.
8482         * configure: Regenerate.
8483
8484 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * math/libm-test.inc (check_float_internal): Do not special-case
8487         errors up to 0.5 ulp.
8488
8489         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8490         log2.
8491         * math/auto-libm-test-out: Regenerated.
8492         * math/libm-test.inc (MAX_EXP): New macro.
8493         (ilogb_test_data): Add more tests.
8494         (isfinite_test_data): Likewise.
8495         (isgreater_test_data): Likewise.
8496         (isgreaterequal_test_data): Likewise.
8497         (isinf_test_data): Likewise.
8498         (isless_test_data): Likewise.
8499         (islessequal_test_data): Likewise.
8500         (islessgreater_test_data): Likewise.
8501         (isnan_test_data): Likewise.
8502         (isnormal_test_data): Likewise.
8503         (issignaling_test_data): Likewise.
8504         (isunordered_test_data): Likewise.
8505         (j0_test_data): Likewise.
8506         (j1_test_data): Likewise.
8507         (jn_test_data): Likewise.
8508         (lgamma_test_data): Likewise.
8509         (log_test_data): Likewise.
8510         (log10_test_data): Likewise.
8511         (log1p_test_data): Likewise.
8512         (log2_test_data): Likewise.
8513         (logb_test_data): Likewise.
8514         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8515
8516         [BZ #18611]
8517         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8518         avoid excess range and precision on underflow.
8519         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8520         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8521         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8522         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8523         underflow.
8524         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8525         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8526         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8527         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8528         * math/auto-libm-test-in: Do not allow missing errno setting for
8529         tests of j1 and jn.
8530         * math/auto-libm-test-out: Regenerated.
8531
8532 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8533
8534         [BZ #15491]
8535         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8536         floating-point environment instead of clearing all exceptions.
8537         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8538         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8539         merging in "invalid" exceptions from frndint.
8540         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8541         * math/test-nearbyint-except.c: New file.
8542         * math/Makefile (tests): Add test-nearbyint-except.
8543
8544 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8545
8546         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8547
8548         * sysdeps/tile/libm-test-ulps: Regenerated.
8549
8550 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8551
8552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8553         (__NR_sync_file_range2): Assume it is always defined.
8554         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8555         (__NR_sync_file_range): Assume it is always defined.
8556
8557 2015-10-22  Andreas Schwab  <schwab@suse.de>
8558
8559         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8560         INTERNAL_SYSCALL_ERRNO.
8561         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8562         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8563         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8564         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8565         Likewise.
8566         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8567
8568 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8569
8570         * io/tst-fcntl.c (fd): New static variable.
8571         (do_prepare): Open temporary file here....
8572         (do_test): ...not here.
8573
8574         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8575
8576 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8577
8578         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8579         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8580         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8581         Moved before "#ifdef __ASSEMBLER__".
8582
8583 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8584
8585         [BZ #19156]
8586         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8587         arguments very close to 0.
8588
8589 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8590
8591         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8592         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8593
8594 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8595
8596         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8597         New.  Defined for GCC 5 and above when not compiling for
8598         profiling.
8599         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8600
8601         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8602         Renamed to ...
8603         (CFLAGS-epoll_pwait.o): This.
8604         (CFLAGS-mmap.c): Renamed to ...
8605         (CFLAGS-mmap.o): This.
8606         (CFLAGS-mmap64.c): Renamed to ...
8607         (CFLAGS-mmap64.o): This.
8608         (CFLAGS-epoll_pwait.os): New.
8609         (CFLAGS-mmap.os): Likewise.
8610         (CFLAGS-mmap64.os): Likewise.
8611         (CFLAGS-semtimedop.os): Likewise.
8612         (CFLAGS-semtimedop.c): Renamed to ...
8613         (CFLAGS-semtimedop.o): This.
8614
8615 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8616
8617         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8618         warning message.
8619
8620 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8621
8622         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8623         * Makefile ($(objpfx)c++-types-check.out): Filter out
8624         $(+gccwarn-c) instead of -Wstrict-prototypes.
8625
8626         * io/fts.c (fts_open): Convert to prototype-style function
8627         definition.
8628         * malloc/mcheck.c (mcheck): Likewise.
8629         (mcheck_pedantic): Likewise.
8630         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8631         internal_function.
8632         (re_search_internal): Likewise.
8633         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8634         prototype-style function definition.
8635         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8636         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8637         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8638         (xdr_utmpptr): Likewise.
8639         (xdr_utmparr): Likewise.
8640         (xdr_utmpidle): Likewise.
8641         (xdr_utmpidleptr): Likewise.
8642         (xdr_utmpidlearr): Likewise.
8643
8644         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8645         log, log10 and log2.
8646         * math/auto-libm-test-out: Regenerated.
8647         * math/libm-test.inc (fmod_test_data): Add more tests.
8648         (fpclassify_test_data): Likewise.
8649         (frexp_test_data): Likewise.
8650         (hypot_test_data): Likewise.
8651         (ilogb_test_data): Likewise.
8652
8653 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8654
8655         * debug/fortify_fail.c (__fortify_fail): Convert to
8656         prototype-style function definition.  Use internal_function.
8657         * libio/genops.c (save_for_backup): Convert to prototype-style
8658         function definition.
8659         * libio/wgenops.c (save_for_wbackup): Likewise.
8660         * login/grantpt.c (grantpt): Likewise.
8661         * login/ptsname.c (ptsname): Likewise.
8662         (__ptsname_r): Likewise.
8663         * login/unlockpt.c (unlockpt): Likewise.
8664         * mach/msgserver.c (__mach_msg_server): Likewise.
8665         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8666         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8667         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8668         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8669         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8670         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8671         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8672         Likewise.
8673         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8674         internal_function.
8675         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8676         prototype-style function definition.
8677         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8678         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8679         (__pthread_create_2_0): Likewise.
8680         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8681         * nptl/register-atfork.c (__register_atfork): Likewise.
8682         * posix/glob.c (glob): Likewise.
8683         * posix/regcomp.c (re_comp): Likewise.
8684         * posix/regexec.c (re_exec): Likewise.
8685         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8686         [!__STDC__]: Remove conditional code.
8687         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8688         [!__STDC__]: Remove conditional code.
8689         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8690         [!__STDC__]: Remove conditional code.
8691         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8692         [!__STDC__]: Remove conditional code.
8693         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8694         [!__STDC__]: Remove conditional code.
8695         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8696         [!__STDC__]: Remove conditional code.
8697         * stdlib/mul.c [__STDC__]: Make code unconditional.
8698         [!__STDC__]: Remove conditional code.
8699         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8700         [!__STDC__]: Remove conditional code.
8701         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8702         [!__STDC__]: Remove conditional code.
8703         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8704         function definition.
8705         (STRTOF): Likewise.
8706         * stdlib/strtod_l.c (__STRTOF): Likewise.
8707         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8708         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8709         (__strtol_l): Likewise.
8710         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8711         [!__STDC__]: Remove conditional code.
8712         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8713         definition.
8714         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8715         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8716         type.
8717         (__strcasecmp): Convert to prototype-style function definition.
8718         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8719         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8720         type.
8721         (__strncasecmp): Convert to prototype-style function definition.
8722         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8723         * sunrpc/xdr.c (xdr_union): Likewise.
8724         * sunrpc/xdr_array.c (xdr_array): Likewise.
8725         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8726         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8727         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8728         Likewise.
8729         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8730         Likewise.
8731         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8732         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8733         Likewise.
8734         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8735         (LOCALE_PARAM_PROTO): Likewise.
8736         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8737         argument type.
8738         (ut_argument_spec): Remove macro.
8739         (ut_argument_spec_iso): Rename to ut_argument_spec.
8740         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8741         prototype-style function definition.
8742         (memcpy_uppcase): Likewise.
8743         (__strftime_internal): Likewise.
8744         (my_strftime): Likewise.
8745         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8746         (LOCALE_PARAM_DECL): Likewise.
8747         [_LIBC] (LOCALE_PARAM): Include argument type.
8748         (__strptime_internal): Convert to prototype-style function
8749         definition.
8750         (strptime): Likewise.
8751         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8752         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8753         type.
8754         (__wcscasecmp): Convert to prototype-style function definition.
8755         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8756         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8757         type.
8758         (__wcsncasecmp): Convert to prototype-style function definition.
8759
8760         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8761         function definition.
8762         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8763         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8764         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8765         * elf/dl-minimal.c (_itoa): Likewise.
8766         * hurd/hurdmalloc.c (malloc): Likewise.
8767         (free): Likewise.
8768         (realloc): Likewise.
8769         * inet/inet6_option.c (inet6_option_space): Likewise.
8770         (inet6_option_init): Likewise.
8771         (inet6_option_append): Likewise.
8772         (inet6_option_alloc): Likewise.
8773         (inet6_option_next): Likewise.
8774         (inet6_option_find): Likewise.
8775         * io/ftw.c (FTW_NAME): Likewise.
8776         (NFTW_NAME): Likewise.
8777         (NFTW_NEW_NAME): Likewise.
8778         (NFTW_OLD_NAME): Likewise.
8779         * libio/iofwide.c (_IO_fwide): Likewise.
8780         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8781         (_IO_str_init_static): Likewise.
8782         (_IO_str_init_readonly): Likewise.
8783         (_IO_str_overflow): Likewise.
8784         (_IO_str_underflow): Likewise.
8785         (_IO_str_count): Likewise.
8786         (_IO_str_seekoff): Likewise.
8787         (_IO_str_pbackfail): Likewise.
8788         (_IO_str_finish): Likewise.
8789         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8790         (_IO_wstr_overflow): Likewise.
8791         (_IO_wstr_underflow): Likewise.
8792         (_IO_wstr_count): Likewise.
8793         (_IO_wstr_seekoff): Likewise.
8794         (_IO_wstr_pbackfail): Likewise.
8795         (_IO_wstr_finish): Likewise.
8796         * locale/programs/localedef.c (normalize_codeset): Likewise.
8797         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8798         (add_locales_to_archive): Likewise.
8799         (delete_locales_from_archive): Likewise.
8800         * malloc/malloc.c (__libc_mallinfo): Likewise.
8801         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8802         * misc/tsearch.c (__tfind): Likewise.
8803         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8804         * nptl/pthread_attr_getdetachstate.c
8805         (__pthread_attr_getdetachstate): Likewise.
8806         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8807         Likewise.
8808         * nptl/pthread_attr_getinheritsched.c
8809         (__pthread_attr_getinheritsched): Likewise.
8810         * nptl/pthread_attr_getschedparam.c
8811         (__pthread_attr_getschedparam): Likewise.
8812         * nptl/pthread_attr_getschedpolicy.c
8813         (__pthread_attr_getschedpolicy): Likewise.
8814         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8815         Likewise.
8816         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8817         Likewise.
8818         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8819         Likewise.
8820         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8821         Likewise.
8822         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8823         (__pthread_attr_init_2_0): Likewise.
8824         * nptl/pthread_attr_setdetachstate.c
8825         (__pthread_attr_setdetachstate): Likewise.
8826         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8827         Likewise.
8828         * nptl/pthread_attr_setinheritsched.c
8829         (__pthread_attr_setinheritsched): Likewise.
8830         * nptl/pthread_attr_setschedparam.c
8831         (__pthread_attr_setschedparam): Likewise.
8832         * nptl/pthread_attr_setschedpolicy.c
8833         (__pthread_attr_setschedpolicy): Likewise.
8834         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8835         Likewise.
8836         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8837         Likewise.
8838         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8839         Likewise.
8840         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8841         Likewise.
8842         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8843         Likewise.
8844         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8845         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8846         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8847         use internal_function.
8848         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8849         prototype-style function definition.
8850         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8851         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8852         internal_function.
8853         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8854         Convert to prototype-style function definition.
8855         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8856         Likewise.
8857         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8858         Likewise.
8859         (__pthread_mutex_unlock): Likewise.
8860         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8861         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8862         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8863         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8864         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8865         * nss/makedb.c (process_input): Likewise.
8866         * posix/fnmatch.c (__strchrnul): Likewise.
8867         (__wcschrnul): Likewise.
8868         (fnmatch): Likewise.
8869         * posix/fnmatch_loop.c (FCT): Likewise.
8870         * posix/glob.c (globfree): Likewise.
8871         (__glob_pattern_type): Likewise.
8872         (__glob_pattern_p): Likewise.
8873         * posix/regcomp.c (re_compile_pattern): Likewise.
8874         (re_set_syntax): Likewise.
8875         (re_compile_fastmap): Likewise.
8876         (regcomp): Likewise.
8877         (regerror): Likewise.
8878         (regfree): Likewise.
8879         * posix/regexec.c (regexec): Likewise.
8880         (re_match): Likewise.
8881         (re_search): Likewise.
8882         (re_match_2): Likewise.
8883         (re_search_2): Likewise.
8884         (re_search_stub): Likewise.  Use internal_function
8885         (re_copy_regs): Likewise.
8886         (re_set_registers): Convert to prototype-style function
8887         definition.
8888         (prune_impossible_nodes): Likewise.  Use internal_function.
8889         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8890         prototype-style function definition.
8891         (inet_net_pton_ipv4): Likewise.
8892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8893         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8894         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8895         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8896         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8897         Make variadic.
8898         * time/strptime_l.c (localtime_r): Convert to prototype-style
8899         function definition.
8900         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8901         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8902         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8903         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8904
8905         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8906         definition.
8907         (_ufc_doit_r): Likewise.
8908         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8909         (_ufc_output_conversion_r): Likewise.
8910         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8911         * inet/rcmd.c (rcmd_af): Likewise.
8912         (rcmd): Likewise.
8913         (ruserok_af): Likewise.
8914         (ruserok): Likewise.
8915         (ruserok2_sa): Likewise.
8916         (ruserok_sa): Likewise.
8917         (iruserok_af): Likewise.
8918         (iruserok): Likewise.
8919         (__ivaliduser): Likewise.
8920         (__validuser2_sa): Likewise.
8921         * inet/rexec.c (rexec_af): Likewise.
8922         (rexec): Likewise.
8923         * inet/ruserpass.c (ruserpass): Likewise.
8924         * locale/programs/xmalloc.c (xcalloc): Likewise.
8925         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8926         * math/w_drem.c (__drem): Likewise.
8927         * math/w_dremf.c (__dremf): Likewise.
8928         * math/w_dreml.c (__dreml): Likewise.
8929         * misc/daemon.c (daemon): Likewise.
8930         * resolv/res_debug.c (p_fqnname): Likewise.
8931         * stdlib/div.c (div): Likewise.
8932         * string/memcmp.c (memcmp_bytes): Likewise.
8933         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8934         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8935
8936         * crypt/cert.c (main): Convert to prototype-style function
8937         definition.
8938         * io/pipe.c (__pipe): Likewise.
8939         * io/pipe2.c (__pipe2): Likewise.
8940         * misc/futimesat.c (futimesat): Likewise.
8941         * misc/utimes.c (__utimes): Likewise.
8942         * posix/execve.c (__execve): Likewise.
8943         * posix/execvp.c (execvp): Likewise.
8944         * posix/execvpe.c (__execvpe): Likewise.
8945         * posix/fexecve.c (fexecve): Likewise.
8946         * socket/socketpair.c (socketpair): Likewise.
8947         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8948         * stdlib/erand48.c (erand48): Likewise.
8949         * stdlib/erand48_r.c (__erand48_r): Likewise.
8950         * stdlib/jrand48.c (jrand48): Likewise.
8951         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8952         * stdlib/lcong48.c (lcong48): Likewise.
8953         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8954         * stdlib/nrand48.c (nrand48): Likewise.
8955         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8956         * stdlib/seed48.c (seed48): Likewise.
8957         * stdlib/seed48_r.c (__seed48_r): Likewise.
8958         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8959         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8960         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8961
8962 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8963
8964         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8965         * configure: Regenerated.
8966         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8967         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8968         unconditional.
8969         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8970         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8971         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8972         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8973         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8974         unconditional.
8975         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8976
8977         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8978         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8979
8980         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8981         function definition.
8982         * crypt/crypt_util.c (__encrypt_r): Likewise.
8983         * libio/genops.c (_IO_no_init): Likewise.
8984         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8985         (_IO_old_fopencookie): Likewise.
8986         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8987         * libio/iogetline.c (_IO_getline): Likewise.
8988         (_IO_getline_info): Likewise.
8989         * libio/iogetwline.c (_IO_getwline): Likewise.
8990         (_IO_getwline_info): Likewise.
8991         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8992         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8993         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8994         (find_entry): Likewise.
8995         (iterate_table): Likewise.
8996         (lookup): Likewise.
8997         * login/forkpty.c (forkpty): Likewise.
8998         * misc/hsearch_r.c (__hsearch_r): Likewise.
8999         * misc/select.c (__select): Likewise.
9000         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
9001         Likewise.
9002         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
9003         Likewise.
9004         * nptl/old_pthread_cond_timedwait.c
9005         (__pthread_cond_timedwait_2_0): Likewise.
9006         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
9007         * nptl/pthread_barrierattr_getpshared.c
9008         (pthread_barrierattr_getpshared): Likewise.
9009         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
9010         Likewise.
9011         * nptl/pthread_mutex_setprioceiling.c
9012         (pthread_mutex_setprioceiling): Likewise.
9013         * nptl/pthread_mutexattr_getprioceiling.c
9014         (pthread_mutexattr_getprioceiling): Likewise.
9015         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
9016         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
9017         Likewise.
9018         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
9019         Likewise.
9020         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
9021         Likewise.
9022         * socket/recvfrom.c (__recvfrom): Likewise.
9023         * socket/sendto.c (__sendto): Likewise.
9024         * socket/setsockopt.c (__setsockopt): Likewise.
9025         * stdio-common/_itoa.c (_itoa): Likewise.
9026         * stdio-common/_itowa.c (_itowa): Likewise.
9027         * stdio-common/reg-printf.c (__register_printf_specifier):
9028         Likewise.
9029         (__register_printf_function): Likewise.
9030         * stdio-common/tempname.c (__path_search): Likewise.
9031         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
9032         * stdlib/mul_1.c (mpn_mul_1): Likewise.
9033         * stdlib/random_r.c (__initstate_r): Likewise.
9034         * stdlib/setenv.c (__add_to_environ): Likewise.
9035         * stdlib/submul_1.c (mpn_submul_1): Likewise.
9036         * streams/getpmsg.c (getpmsg): Likewise.
9037         * streams/putmsg.c (putmsg): Likewise.
9038         * streams/putpmsg.c (putpmsg): Likewise.
9039         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
9040         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9041         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
9042         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9043         * sunrpc/pm_getport.c (pmap_getport): Likewise.
9044         * sunrpc/svc_udp.c (cache_get): Likewise.
9045         * sunrpc/xdr_array.c (xdr_vector): Likewise.
9046         * sysdeps/mach/hurd/getcwd.c
9047         (__canonicalize_directory_name_internal): Likewise.
9048         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
9049         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
9050         * sysdeps/mach/hurd/select.c (__select): Likewise.
9051         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
9052         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
9053         * sysdeps/sparc/nptl/pthread_barrier_init.c
9054         (__pthread_barrier_init): Likewise.
9055         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
9056         (__pthread_cond_timedwait): Likewise.
9057         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
9058         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
9059         Likewise.
9060         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
9061         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
9062         Likewise.
9063         * sysvipc/semtimedop.c (semtimedop): Likewise.
9064         * time/setitimer.c (__setitimer): Likewise.
9065         * time/strftime_l.c (emacs_strftime): Likewise.
9066
9067 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
9068
9069         * config.make.in (have-ssp): Delete.
9070         (stack-protector): New variable.
9071         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
9072         cache test for -fstack-protector-strong.  Export stack_protector to
9073         the best ssp flag.
9074         * configure: Regenerated.
9075         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
9076         * nscd/Makefile (CFLAGS-nscd): Likewise.
9077         * resolv/Makefile (CFLAGS-libresolv): Likewise.
9078
9079 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
9080
9081         [BZ #19122]
9082         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
9083         attribute_hidden.
9084
9085 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9086
9087         [BZ #18743]
9088         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
9089         code to...
9090         (ELIDE_LOCK): ...here.
9091         (__get_new_count): New function with part of the code from
9092         __elide_lock that updates the value of adapt_count after a
9093         transaction abort.
9094         (__elided_trylock): Moved this code to...
9095         (ELIDE_TRYLOCK): ...here.
9096
9097 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
9098
9099         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
9100         * configure: Regenerate.
9101         * INSTALL: Regenerate.
9102         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
9103         and tweak grammar.
9104
9105 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
9106
9107         * login/programs/pt_chown.c: Include signal.h
9108         (main): Clear any signal mask from the parent process.
9109
9110 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
9111
9112         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
9113         * configure: Regenerated.
9114         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
9115         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
9116         $(gnu89-inline-CFLAGS).
9117
9118         * configure.ac (libc_cv_asm_weak_directive): Remove configure
9119         test.
9120         (libc_cv_asm_weakext_directive): Likewise.
9121         * configure: Regenerated.
9122         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
9123         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
9124         * include/libc-symbols.h
9125         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
9126         #error.
9127         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
9128         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
9129
9130         * sysdeps/arm/backtrace.c (__backtrace): Convert to
9131         prototype-style function definition.
9132         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
9133         * sysdeps/i386/ffs.c (__ffs): Likewise.
9134         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
9135         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
9136         Likewise.
9137         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9138         Likewise.
9139         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
9140         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
9141         Likewise.
9142         * sysdeps/m68k/ffs.c (__ffs): Likewise.
9143         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
9144         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
9145         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
9146         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
9147         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
9148         * sysdeps/mach/hurd/access.c (__access): Likewise.
9149         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
9150         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
9151         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
9152         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
9153         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
9154         (cthread_getspecific): Likewise.
9155         (cthread_setspecific): Likewise.
9156         (__libc_getspecific): Likewise.
9157         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
9158         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
9159         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
9160         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
9161         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
9162         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
9163         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
9164         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
9165         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
9166         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
9167         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
9168         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9169         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
9170         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
9171         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
9172         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
9173         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
9174         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
9175         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
9176         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
9177         * sysdeps/mach/hurd/link.c (__link): Likewise.
9178         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
9179         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
9180         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9181         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
9182         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
9183         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
9184         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
9185         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
9186         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
9187         * sysdeps/mach/hurd/rename.c (rename): Likewise.
9188         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
9189         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9190         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
9191         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
9192         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
9193         * sysdeps/mach/hurd/send.c (__send): Likewise.
9194         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
9195         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
9196         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
9197         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
9198         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
9199         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
9200         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9201         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9202         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9203         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9204         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9205         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9206         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9207         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9208         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9209         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9210         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9211         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9212         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9213         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9214         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9215         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9216         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9217         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9218         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9219         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9220         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9221         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9222         * sysdeps/posix/alarm.c (alarm): Likewise.
9223         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9224         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9225         * sysdeps/posix/dup.c (__dup): Likewise.
9226         * sysdeps/posix/dup2.c (__dup2): Likewise.
9227         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9228         (main): Likewise.
9229         * sysdeps/posix/flock.c (__flock): Likewise.
9230         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9231         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9232         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9233         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9234         * sysdeps/posix/isatty.c (__isatty): Likewise.
9235         * sysdeps/posix/killpg.c (killpg): Likewise.
9236         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9237         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9238         * sysdeps/posix/raise.c (raise): Likewise.
9239         * sysdeps/posix/remove.c (remove): Likewise.
9240         * sysdeps/posix/rename.c (rename): Likewise.
9241         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9242         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9243         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9244         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9245         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9246         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9247         * sysdeps/posix/sigset.c (sigset): Likewise.
9248         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9249         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9250         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9251         * sysdeps/posix/time.c (time): Likewise.
9252         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9253         (ttyname): Likewise.
9254         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9255         * sysdeps/posix/utime.c (utime): Likewise.
9256         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9257         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9258         Likewise.
9259         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9260         (pthread_spin_trylock): Likewise.
9261         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9262         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9263         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9264         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9265         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9266         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9267         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9268         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9269         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9270         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9271         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9272         * sysdeps/s390/ffs.c (__ffs): Likewise.
9273         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9274         Likewise.
9275         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9276         Likewise.
9277         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9278         Likewise.
9279         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9280         (pthread_barrier_destroy): Likewise.
9281         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9282         (__pthread_barrier_wait): Likewise.
9283         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9284         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9285         (__pthread_barrier_wait): Likewise.
9286         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9287         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9288         (memcmp_not_common_alignment): Likewise.
9289         (MEMCMP): Likewise.
9290         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9291         (_wordcopy_fwd_dest_aligned): Likewise.
9292         (_wordcopy_bwd_aligned): Likewise.
9293         (_wordcopy_bwd_dest_aligned): Likewise.
9294         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9295         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9296         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9297         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9298         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9299         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9300         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9301         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9302         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9303         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9304         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9305         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9306         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9307         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9308         * sysdeps/unix/stime.c (stime): Likewise.
9309         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9310         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9311         Likewise.  Use internal_function.
9312         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9313         Convert to prototype-style function definition.
9314         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9315         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9316         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9317         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9318         Likewise.  Use internal_function.
9319         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9320         prototype-style function definition
9321         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9322         Likewise.
9323         (__getlogin_r): Likewise.
9324         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9325         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9326         (__pthread_cond_broadcast): Likewise.
9327         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9328         (__pthread_cond_destroy): Likewise.
9329         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9330         (__pthread_cond_init): Likewise.
9331         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9332         (__pthread_cond_signal): Likewise.
9333         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9334         (__pthread_cond_wait): Likewise.
9335         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9336         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9337         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9338         Likewise.
9339         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9340         Likewise.
9341         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9342         Likewise.
9343         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9344         Likewise.
9345         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9347         (__ftruncate64): Likewise.
9348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9349         (truncate64): Likewise.
9350         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9351         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9352         (pthread_getcpuclockid): Likewise.
9353         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9354         Likewise.
9355         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9356         Likewise.
9357         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9358         Likewise.
9359         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9360         Likewise.
9361         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9362         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9363         (__libc_sigaction): Likewise.
9364         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9365         Likewise.
9366         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9367         (__sigprocmask): Likewise.
9368         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9369         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9370         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9371         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9372         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9373         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9374         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9375         Likewise.
9376         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9377         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9378         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9379         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9380         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9381         Likewise.
9382         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9383         (__sigprocmask): Likewise.
9384         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9385         (cfgetispeed): Likewise.
9386         (cfsetospeed): Likewise.
9387         (cfsetispeed): Likewise.
9388         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9389         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9390         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9391         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9392         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9393         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9394         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9395         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9396         Likewise.
9397         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9398         Likewise.
9399         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9400         Likewise.
9401         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9402         Likewise.
9403         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9404
9405 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9406
9407         sunrpc: Rewrite with explicit TLS access using __thread.
9408         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9409         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9410         directly.
9411         (__rpc_thread_variables): Access thread_rpc_vars directly.
9412         Eliminate redundant assignment of the tvp variable.
9413
9414 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9415
9416         malloc: Rewrite with explicit TLS access using __thread.
9417         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9418         (tsd_setspecific, tsd_getspecific): Remove.
9419         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9420         (tsd_setspecific, tsd_getspecific): Likewise.
9421         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9422         (tsd_setspecific, tsd_getspecific): Likewise.
9423         * malloc/arena.c (thread_arena): New TLS variable.
9424         (arena_key): Remove variable.
9425         (arena_get): Use thread_arena.
9426         (arena_lookup): Remove macro.
9427         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9428         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9429         (_int_new_arena, get_free_list, reused_arena)
9430         (arena_thread_freeres): Use thread_arena.
9431         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9432         tsd_getspecific, tsd_setspecific from safety annotations.
9433         (Allocating Cleared Space): Remove arena_lookup from safety
9434         annotations.
9435
9436 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9437
9438         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9439         struct scratch_buffer instead of extend_alloca.
9440
9441 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9442
9443         * sysdeps/unix/sysv/linux/kernel-features.h
9444         (__ASSUME_SOCK_CLOEXEC): Remove.
9445         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9446         (__have_paccept): Remove unused macro.
9447         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9448         * misc/syslog.c (openlog_internal): Remove fallback code for
9449         !__ASSUME_SOCK_CLOEXEC.
9450         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9451         missing SOCK_CLOEXEC.
9452         * nscd/connections.c (have_sock_cloexec): Remove definition.
9453         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9454         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9455         !__ASSUME_SOCK_CLOEXEC.
9456         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9457         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9458         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9459         definition.
9460         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9461         code for !__ASSUME_SOCK_CLOEXEC.
9462
9463 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9464
9465         [BZ #18982]
9466         * manual/stdio.texi (Variable Arguments Output): Add portability
9467         note, explaining that vfprintf clobbers the va_list pointer.
9468
9469 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9470
9471         * math/libm-test.inc (fabs_test_data): Add more tests.
9472         (fdim_test_data): Likewise.
9473         (fma_test_data): Likewise.
9474         (fmax_test_data): Likewise.
9475         (fmin_test_data): Likewise.
9476         (fmod_test_data): Likewise.
9477
9478 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9479
9480         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9481         data.
9482
9483 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9484
9485         * math/libm-test.inc (ceil_test_data): Add more tests and more
9486         expectations for "inexact".
9487         (floor_test_data): Add more tests.
9488         (round_test_data): Likewise.
9489         (trunc_test_data): Likewise.
9490
9491         * crypt/cert.c (good_bye): Convert to prototype-style function
9492         definition.
9493         (get8): Likewise.
9494         (put8): Likewise.
9495         * crypt/crypt-entry.c (crypt): Likewise.
9496         (__fcrypt): Likewise.
9497         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9498         (_ufc_set_bits): Likewise.
9499         (_ufc_clearmem): Likewise.
9500         (__init_des_r): Likewise.
9501         (shuffle_sb): Likewise.
9502         (shuffle_sb): Likewise.
9503         (_ufc_setup_salt_r): Likewise.
9504         (_ufc_mk_keytab_r): Likewise.
9505         (_ufc_dofinalperm_r): Likewise.
9506         (encrypt): Likewise.
9507         (__setkey_r): Likewise.
9508         (setkey): Likewise.
9509         * crypt/md5.c (md5_init_ctx): Likewise.
9510         (md5_read_ctx): Likewise.
9511         (md5_finish_ctx): Likewise.
9512         (md5_stream): Likewise.
9513         (md5_buffer): Likewise.
9514         (md5_process_bytes): Likewise.
9515         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9516         (__sha256_finish_ctx): Likewise.
9517         (__sha256_process_bytes): Likewise.
9518         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9519         (__sha512_finish_ctx): Likewise.
9520         (__sha512_process_bytes): Likewise.
9521         * ctype/isctype.c (__isctype): Likewise.
9522         * debug/backtrace.c (__backtrace): Likewise.
9523         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9524         * debug/fgets_chk.c (__fgets_chk): Likewise.
9525         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9526         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9527         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9528         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9529         * debug/memset_chk.c (__memset_chk): Likewise.
9530         * debug/strcat_chk.c (__strcat_chk): Likewise.
9531         * debug/strncat_chk.c (__strncat_chk): Likewise.
9532         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9533         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9534         * dirent/dirfd.c (dirfd): Likewise.
9535         * dirent/getdents.c (__getdirentries): Likewise.
9536         * dirent/getdents64.c (getdirentries64): Likewise.
9537         * dirent/rewinddir.c (__rewinddir): Likewise.
9538         * dirent/seekdir.c (seekdir): Likewise.
9539         * dirent/telldir.c (telldir): Likewise.
9540         * elf/sln.c (makesymlinks): Likewise.
9541         (makesymlink): Likewise.
9542         * gmon/gmon.c (__moncontrol): Likewise.
9543         (__monstartup): Likewise.
9544         (write_hist): Likewise.
9545         (write_call_graph): Likewise.
9546         (write_bb_counts): Likewise.
9547         * grp/setgroups.c (setgroups): Likewise.
9548         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9549         * inet/inet_net.c (inet_network): Likewise.
9550         * inet/inet_netof.c (inet_netof): Likewise.
9551         * inet/rcmd.c (rresvport_af): Likewise.
9552         (rresvport): Likewise.
9553         * io/access.c (__access): Likewise.
9554         * io/chdir.c (__chdir): Likewise.
9555         * io/chmod.c (__chmod): Likewise.
9556         * io/chown.c (__chown): Likewise.
9557         * io/close.c (__close): Likewise.
9558         * io/creat.c (creat): Likewise.
9559         * io/creat64.c (creat64): Likewise.
9560         * io/dup.c (__dup): Likewise.
9561         * io/dup2.c (__dup2): Likewise.
9562         * io/dup3.c (__dup3): Likewise.
9563         * io/euidaccess.c (__euidaccess): Likewise.
9564         * io/faccessat.c (faccessat): Likewise.
9565         * io/fchmod.c (__fchmod): Likewise.
9566         * io/fchmodat.c (fchmodat): Likewise.
9567         * io/fchown.c (__fchown): Likewise.
9568         * io/fchownat.c (fchownat): Likewise.
9569         * io/fcntl.c (__fcntl): Likewise.
9570         * io/flock.c (__flock): Likewise.
9571         * io/fts.c (fts_load): Likewise.
9572         (fts_close): Likewise.
9573         (fts_read): Likewise.
9574         (fts_set): Likewise.
9575         (fts_children): Likewise.
9576         (fts_build): Likewise.
9577         (fts_stat): Likewise.
9578         (fts_sort): Likewise.
9579         (fts_alloc): Likewise.
9580         (fts_lfree): Likewise.
9581         (fts_palloc): Likewise.
9582         (fts_padjust): Likewise.
9583         (fts_maxarglen): Likewise.
9584         (fts_safe_changedir): Likewise.
9585         * io/getwd.c (getwd): Likewise.
9586         * io/isatty.c (__isatty): Likewise.
9587         * io/lchown.c (__lchown): Likewise.
9588         * io/link.c (__link): Likewise.
9589         * io/linkat.c (linkat): Likewise.
9590         * io/lseek.c (__libc_lseek): Likewise.
9591         * io/mkdir.c (__mkdir): Likewise.
9592         * io/mkdirat.c (mkdirat): Likewise.
9593         * io/mkfifo.c (mkfifo): Likewise.
9594         * io/mkfifoat.c (mkfifoat): Likewise.
9595         * io/open.c (__libc_open): Likewise.
9596         * io/open64.c (__libc_open64): Likewise.
9597         * io/readlink.c (__readlink): Likewise.
9598         * io/readlinkat.c (readlinkat): Likewise.
9599         * io/rmdir.c (__rmdir): Likewise.
9600         * io/symlink.c (__symlink): Likewise.
9601         * io/symlinkat.c (symlinkat): Likewise.
9602         * io/ttyname.c (ttyname): Likewise.
9603         * io/ttyname_r.c (__ttyname_r): Likewise.
9604         * io/umask.c (__umask): Likewise.
9605         * io/unlink.c (__unlink): Likewise.
9606         * io/unlinkat.c (unlinkat): Likewise.
9607         * io/utime.c (utime): Likewise.
9608         * libio/clearerr.c (clearerr): Likewise.
9609         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9610         * libio/feof.c (_IO_feof): Likewise.
9611         * libio/feof_u.c (feof_unlocked): Likewise.
9612         * libio/ferror.c (_IO_ferror): Likewise.
9613         * libio/ferror_u.c (ferror_unlocked): Likewise.
9614         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9615         * libio/fileno.c (__fileno): Likewise.
9616         * libio/fputc.c (fputc): Likewise.
9617         * libio/fputc_u.c (fputc_unlocked): Likewise.
9618         * libio/fputwc.c (fputwc): Likewise.
9619         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9620         * libio/freopen.c (freopen): Likewise.
9621         * libio/freopen64.c (freopen64): Likewise.
9622         * libio/fseek.c (fseek): Likewise.
9623         * libio/fseeko.c (fseeko): Likewise.
9624         * libio/fseeko64.c (fseeko64): Likewise.
9625         * libio/ftello.c (__ftello): Likewise.
9626         * libio/ftello64.c (ftello64): Likewise.
9627         * libio/fwide.c (fwide): Likewise.
9628         * libio/genops.c (_IO_un_link): Likewise.
9629         (_IO_link_in): Likewise.
9630         (_IO_least_marker): Likewise.
9631         (_IO_switch_to_main_get_area): Likewise.
9632         (_IO_switch_to_backup_area): Likewise.
9633         (_IO_switch_to_get_mode): Likewise.
9634         (_IO_free_backup_area): Likewise.
9635         (_IO_switch_to_put_mode): Likewise.
9636         (__overflow): Likewise.
9637         (__underflow): Likewise.
9638         (__uflow): Likewise.
9639         (_IO_setb): Likewise.
9640         (_IO_doallocbuf): Likewise.
9641         (_IO_default_underflow): Likewise.
9642         (_IO_default_uflow): Likewise.
9643         (_IO_default_xsputn): Likewise.
9644         (_IO_sgetn): Likewise.
9645         (_IO_default_xsgetn): Likewise.
9646         (_IO_sync): Likewise.
9647         (_IO_default_setbuf): Likewise.
9648         (_IO_default_seekpos): Likewise.
9649         (_IO_default_doallocate): Likewise.
9650         (_IO_init): Likewise.
9651         (_IO_old_init): Likewise.
9652         (_IO_default_sync): Likewise.
9653         (_IO_default_finish): Likewise.
9654         (_IO_default_seekoff): Likewise.
9655         (_IO_sputbackc): Likewise.
9656         (_IO_sungetc): Likewise.
9657         (_IO_set_column): Likewise.
9658         (_IO_set_column): Likewise.
9659         (_IO_adjust_column): Likewise.
9660         (_IO_get_column): Likewise.
9661         (_IO_init_marker): Likewise.
9662         (_IO_remove_marker): Likewise.
9663         (_IO_marker_difference): Likewise.
9664         (_IO_marker_delta): Likewise.
9665         (_IO_seekmark): Likewise.
9666         (_IO_unsave_markers): Likewise.
9667         (_IO_nobackup_pbackfail): Likewise.
9668         (_IO_default_pbackfail): Likewise.
9669         (_IO_default_seek): Likewise.
9670         (_IO_default_stat): Likewise.
9671         (_IO_default_read): Likewise.
9672         (_IO_default_write): Likewise.
9673         (_IO_default_showmanyc): Likewise.
9674         (_IO_default_imbue): Likewise.
9675         (_IO_iter_next): Likewise.
9676         (_IO_iter_file): Likewise.
9677         * libio/getc.c (_IO_getc): Likewise.
9678         * libio/getwc.c (_IO_getwc): Likewise.
9679         * libio/iofclose.c (_IO_new_fclose): Likewise.
9680         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9681         * libio/iofflush.c (_IO_fflush): Likewise.
9682         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9683         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9684         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9685         * libio/iofgets.c (_IO_fgets): Likewise.
9686         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9687         * libio/iofgetws.c (fgetws): Likewise.
9688         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9689         * libio/iofopen64.c (_IO_fopen64): Likewise.
9690         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9691         (_IO_cookie_write): Likewise.
9692         (_IO_cookie_seek): Likewise.
9693         (_IO_cookie_close): Likewise.
9694         (_IO_cookie_seekoff): Likewise.
9695         (_IO_old_cookie_seek): Likewise.
9696         * libio/iofputs.c (_IO_fputs): Likewise.
9697         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9698         * libio/iofputws.c (fputws): Likewise.
9699         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9700         * libio/iofread.c (_IO_fread): Likewise.
9701         * libio/iofread_u.c (__fread_unlocked): Likewise.
9702         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9703         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9704         * libio/ioftell.c (_IO_ftell): Likewise.
9705         * libio/iofwrite.c (_IO_fwrite): Likewise.
9706         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9707         * libio/iogets.c (_IO_gets): Likewise.
9708         * libio/iopadn.c (_IO_padn): Likewise.
9709         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9710         (_IO_new_popen): Likewise.
9711         (_IO_new_proc_close): Likewise.
9712         * libio/ioputs.c (_IO_puts): Likewise.
9713         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9714         (_IO_seekoff): Likewise.
9715         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9716         (_IO_seekpos): Likewise.
9717         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9718         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9719         * libio/ioungetc.c (_IO_ungetc): Likewise.
9720         * libio/ioungetwc.c (ungetwc): Likewise.
9721         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9722         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9723         * libio/iowpadn.c (_IO_wpadn): Likewise.
9724         * libio/libc_fatal.c (__libc_fatal): Likewise.
9725         * libio/memstream.c (__open_memstream): Likewise.
9726         (_IO_mem_sync): Likewise.
9727         (_IO_mem_finish): Likewise.
9728         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9729         (_IO_old_file_close_it): Likewise.
9730         (_IO_old_file_finish): Likewise.
9731         (_IO_old_file_fopen): Likewise.
9732         (_IO_old_file_attach): Likewise.
9733         (_IO_old_file_setbuf): Likewise.
9734         (_IO_old_do_write): Likewise.
9735         (old_do_write): Likewise.
9736         (_IO_old_file_underflow): Likewise.
9737         (_IO_old_file_overflow): Likewise.
9738         (_IO_old_file_sync): Likewise.
9739         (_IO_old_file_seekoff): Likewise.
9740         (_IO_old_file_write): Likewise.
9741         (_IO_old_file_xsputn): Likewise.
9742         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9743         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9744         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9745         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9746         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9747         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9748         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9749         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9750         (_IO_old_popen): Likewise.
9751         (_IO_old_proc_close): Likewise.
9752         * libio/oldpclose.c (__old_pclose): Likewise.
9753         * libio/pclose.c (__new_pclose): Likewise.
9754         * libio/peekc.c (_IO_peekc_locked): Likewise.
9755         * libio/putc.c (_IO_putc): Likewise.
9756         * libio/putc_u.c (putc_unlocked): Likewise.
9757         * libio/putchar.c (putchar): Likewise.
9758         * libio/putchar_u.c (putchar_unlocked): Likewise.
9759         * libio/putwc.c (putwc): Likewise.
9760         * libio/putwc_u.c (putwc_unlocked): Likewise.
9761         * libio/putwchar.c (putwchar): Likewise.
9762         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9763         * libio/rewind.c (rewind): Likewise.
9764         * libio/setbuf.c (setbuf): Likewise.
9765         * libio/setlinebuf.c (setlinebuf): Likewise.
9766         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9767         * libio/vscanf.c (_IO_vscanf): Likewise.
9768         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9769         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9770         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9771         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9772         (_IO_switch_to_main_wget_area): Likewise.
9773         (_IO_switch_to_wbackup_area): Likewise.
9774         (_IO_wsetb): Likewise.
9775         (_IO_wdefault_pbackfail): Likewise.
9776         (_IO_wdefault_finish): Likewise.
9777         (_IO_wdefault_uflow): Likewise.
9778         (__woverflow): Likewise.
9779         (__wuflow): Likewise.
9780         (__wunderflow): Likewise.
9781         (_IO_wdefault_xsputn): Likewise.
9782         (_IO_wdefault_xsgetn): Likewise.
9783         (_IO_wdoallocbuf): Likewise.
9784         (_IO_wdefault_doallocate): Likewise.
9785         (_IO_switch_to_wget_mode): Likewise.
9786         (_IO_free_wbackup_area): Likewise.
9787         (_IO_switch_to_wput_mode): Likewise.
9788         (_IO_sputbackwc): Likewise.
9789         (_IO_sungetwc): Likewise.
9790         (_IO_adjust_wcolumn): Likewise.
9791         (_IO_init_wmarker): Likewise.
9792         (_IO_wmarker_delta): Likewise.
9793         (_IO_seekwmark): Likewise.
9794         (_IO_unsave_wmarkers): Likewise.
9795         * libio/wmemstream.c (open_wmemstream): Likewise.
9796         (_IO_wmem_sync): Likewise.
9797         (_IO_wmem_finish): Likewise.
9798         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9799         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9800         * locale/programs/simple-hash.c (init_hash): Likewise.
9801         (delete_hash): Likewise.
9802         (insert_entry): Likewise.
9803         (set_entry): Likewise.
9804         (next_prime): Likewise.
9805         (is_prime): Likewise.
9806         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9807         (xmalloc): Likewise.
9808         (xrealloc): Likewise.
9809         * locale/programs/xstrdup.c (xstrdup): Likewise.
9810         * localedata/collate-test.c (xstrcoll): Likewise.
9811         * localedata/xfrm-test.c (xstrcmp): Likewise.
9812         * login/getlogin_r.c (__getlogin_r): Likewise.
9813         * login/getpt.c (__posix_openpt): Likewise.
9814         * login/login_tty.c (login_tty): Likewise.
9815         * login/setlogin.c (setlogin): Likewise.
9816         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9817         (mach_msg_destroy_port): Likewise.
9818         (mach_msg_destroy_memory): Likewise.
9819         * malloc/mcheck.c (flood): Likewise.
9820         * misc/acct.c (acct): Likewise.
9821         * misc/brk.c (__brk): Likewise.
9822         * misc/chflags.c (chflags): Likewise.
9823         * misc/chroot.c (chroot): Likewise.
9824         * misc/fchflags.c (fchflags): Likewise.
9825         * misc/fstab.c (getfsspec): Likewise.
9826         (getfsfile): Likewise.
9827         * misc/fsync.c (fsync): Likewise.
9828         * misc/ftruncate.c (__ftruncate): Likewise.
9829         * misc/ftruncate64.c (__ftruncate64): Likewise.
9830         * misc/getdomain.c (getdomainname): Likewise.
9831         (getdomainname): Likewise.
9832         * misc/gethostname.c (__gethostname): Likewise.
9833         * misc/getpass.c (getpass): Likewise.
9834         * misc/getttyent.c (skip): Likewise.
9835         (value): Likewise.
9836         * misc/gtty.c (gtty): Likewise.
9837         * misc/hsearch.c (hsearch): Likewise.
9838         (hcreate): Likewise.
9839         * misc/hsearch_r.c (__hcreate_r): Likewise.
9840         (__hdestroy_r): Likewise.
9841         * misc/ioctl.c (__ioctl): Likewise.
9842         * misc/mkdtemp.c (mkdtemp): Likewise.
9843         * misc/mkostemp.c (mkostemp): Likewise.
9844         * misc/mkostemp64.c (mkostemp64): Likewise.
9845         * misc/mkostemps.c (mkostemps): Likewise.
9846         * misc/mkostemps64.c (mkostemps64): Likewise.
9847         * misc/mkstemp.c (mkstemp): Likewise.
9848         * misc/mkstemp64.c (mkstemp64): Likewise.
9849         * misc/mkstemps.c (mkstemps): Likewise.
9850         * misc/mkstemps64.c (mkstemps64): Likewise.
9851         * misc/mktemp.c (__mktemp): Likewise.
9852         * misc/preadv.c (preadv): Likewise.
9853         * misc/preadv64.c (preadv64): Likewise.
9854         * misc/pwritev.c (pwritev): Likewise.
9855         * misc/pwritev64.c (pwritev64): Likewise.
9856         * misc/readv.c (__readv): Likewise.
9857         * misc/revoke.c (revoke): Likewise.
9858         * misc/setdomain.c (setdomainname): Likewise.
9859         * misc/setegid.c (setegid): Likewise.
9860         * misc/seteuid.c (seteuid): Likewise.
9861         * misc/sethostid.c (sethostid): Likewise.
9862         * misc/sethostname.c (sethostname): Likewise.
9863         * misc/setregid.c (__setregid): Likewise.
9864         * misc/setreuid.c (__setreuid): Likewise.
9865         * misc/sstk.c (sstk): Likewise.
9866         * misc/stty.c (stty): Likewise.
9867         * misc/syscall.c (syscall): Likewise.
9868         * misc/syslog.c (setlogmask): Likewise.
9869         * misc/truncate.c (__truncate): Likewise.
9870         * misc/truncate64.c (truncate64): Likewise.
9871         * misc/ualarm.c (ualarm): Likewise.
9872         * misc/usleep.c (usleep): Likewise.
9873         * misc/ustat.c (ustat): Likewise.
9874         * misc/writev.c (__writev): Likewise.
9875         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9876         * nptl/old_pthread_cond_broadcast.c
9877         (__pthread_cond_broadcast_2_0): Likewise.
9878         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9879         Likewise.
9880         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9881         Likewise.
9882         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9883         Likewise.
9884         * nptl/pt-raise.c (raise): Likewise.
9885         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9886         Likewise.
9887         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9888         * nptl/pthread_barrierattr_destroy.c
9889         (pthread_barrierattr_destroy): Likewise.
9890         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9891         Likewise.
9892         * nptl/pthread_barrierattr_setpshared.c
9893         (pthread_barrierattr_setpshared): Likewise.
9894         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9895         Likewise.
9896         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9897         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9898         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9899         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9900         Likewise.
9901         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9902         Likewise.
9903         * nptl/pthread_condattr_getpshared.c
9904         (pthread_condattr_getpshared): Likewise.
9905         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9906         Likewise.
9907         * nptl/pthread_condattr_setpshared.c
9908         (pthread_condattr_setpshared): Likewise.
9909         * nptl/pthread_detach.c (pthread_detach): Likewise.
9910         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9911         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9912         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9913         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9914         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9915         Likewise.
9916         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9917         Likewise.
9918         * nptl/pthread_mutex_getprioceiling.c
9919         (pthread_mutex_getprioceiling): Likewise.
9920         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9921         Likewise.
9922         * nptl/pthread_mutexattr_getprotocol.c
9923         (pthread_mutexattr_getprotocol): Likewise.
9924         * nptl/pthread_mutexattr_getpshared.c
9925         (pthread_mutexattr_getpshared): Likewise.
9926         * nptl/pthread_mutexattr_getrobust.c
9927         (pthread_mutexattr_getrobust): Likewise.
9928         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9929         Likewise.
9930         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9931         Likewise.
9932         * nptl/pthread_mutexattr_setprioceiling.c
9933         (pthread_mutexattr_setprioceiling): Likewise.
9934         * nptl/pthread_mutexattr_setprotocol.c
9935         (pthread_mutexattr_setprotocol): Likewise.
9936         * nptl/pthread_mutexattr_setpshared.c
9937         (pthread_mutexattr_setpshared): Likewise.
9938         * nptl/pthread_mutexattr_setrobust.c
9939         (pthread_mutexattr_setrobust): Likewise.
9940         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9941         Likewise.
9942         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9943         Likewise.
9944         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9945         Likewise.
9946         * nptl/pthread_rwlockattr_getkind_np.c
9947         (pthread_rwlockattr_getkind_np): Likewise.
9948         * nptl/pthread_rwlockattr_getpshared.c
9949         (pthread_rwlockattr_getpshared): Likewise.
9950         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9951         Likewise.
9952         * nptl/pthread_rwlockattr_setkind_np.c
9953         (pthread_rwlockattr_setkind_np): Likewise.
9954         * nptl/pthread_rwlockattr_setpshared.c
9955         (pthread_rwlockattr_setpshared): Likewise.
9956         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9957         Likewise.
9958         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9959         Likewise.
9960         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9961         Likewise.
9962         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9963         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9964         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9965         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9966         * nptl/sem_close.c (sem_close): Likewise.
9967         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9968         * nptl/sem_init.c (__old_sem_init): Likewise.
9969         * nptl/sigaction.c (__sigaction): Likewise.
9970         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9971         * posix/_exit.c (_exit): Likewise.
9972         * posix/alarm.c (alarm): Likewise.
9973         * posix/confstr.c (confstr): Likewise.
9974         * posix/fpathconf.c (__fpathconf): Likewise.
9975         * posix/getgroups.c (__getgroups): Likewise.
9976         * posix/getpgid.c (__getpgid): Likewise.
9977         * posix/group_member.c (__group_member): Likewise.
9978         * posix/pathconf.c (__pathconf): Likewise.
9979         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9980         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9981         * posix/setgid.c (__setgid): Likewise.
9982         * posix/setpgid.c (__setpgid): Likewise.
9983         * posix/setuid.c (__setuid): Likewise.
9984         * posix/sleep.c (__sleep): Likewise.
9985         * posix/sysconf.c (__sysconf): Likewise.
9986         * posix/times.c (__times): Likewise.
9987         * posix/uname.c (__uname): Likewise.
9988         * posix/waitid.c (__waitid): Likewise.
9989         * pwd/getpw.c (__getpw): Likewise.
9990         * resolv/base64.c (b64_pton): Likewise.
9991         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9992         * resolv/gethnamaddr.c (Dprintf): Likewise.
9993         (gethostbyname): Likewise.
9994         (gethostbyname2): Likewise.
9995         (gethostbyaddr): Likewise.
9996         (_sethtent): Likewise.
9997         (_gethtbyname): Likewise.
9998         (_gethtbyname2): Likewise.
9999         (_gethtbyaddr): Likewise.
10000         (map_v4v6_address): Likewise.
10001         (map_v4v6_hostent): Likewise.
10002         (addrsort): Likewise.
10003         (ht_sethostent): Likewise.
10004         (ht_gethostbyname): Likewise.
10005         (ht_gethostbyaddr): Likewise.
10006         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
10007         (inet_net_ntop_ipv4): Likewise.
10008         * resolv/inet_neta.c (inet_neta): Likewise.
10009         * resolv/inet_ntop.c (inet_ntop): Likewise.
10010         (inet_ntop4): Likewise.
10011         (inet_ntop6): Likewise.
10012         * resolv/inet_pton.c (__inet_pton): Likewise.
10013         (inet_pton4): Likewise.
10014         (inet_pton6): Likewise.
10015         * resolv/res_debug.c (loc_aton): Likewise.
10016         (loc_ntoa): Likewise.
10017         * resource/getpriority.c (__getpriority): Likewise.
10018         * resource/getrusage.c (__getrusage): Likewise.
10019         * resource/nice.c (nice): Likewise.
10020         * resource/setpriority.c (__setpriority): Likewise.
10021         * resource/setrlimit64.c (setrlimit64): Likewise.
10022         * resource/vlimit.c (vlimit): Likewise.
10023         * resource/vtimes.c (vtimes): Likewise.
10024         * rt/aio_error.c (aio_error): Likewise.
10025         * rt/aio_return.c (aio_return): Likewise.
10026         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
10027         * signal/kill.c (__kill): Likewise.
10028         * signal/killpg.c (killpg): Likewise.
10029         * signal/raise.c (raise): Likewise.
10030         * signal/sigaction.c (__sigaction): Likewise.
10031         * signal/sigaddset.c (sigaddset): Likewise.
10032         * signal/sigaltstack.c (sigaltstack): Likewise.
10033         * signal/sigandset.c (sigandset): Likewise.
10034         * signal/sigblock.c (__sigblock): Likewise.
10035         * signal/sigdelset.c (sigdelset): Likewise.
10036         * signal/sigempty.c (sigemptyset): Likewise.
10037         * signal/sigfillset.c (sigfillset): Likewise.
10038         * signal/sighold.c (sighold): Likewise.
10039         * signal/sigignore.c (sigignore): Likewise.
10040         * signal/sigintr.c (siginterrupt): Likewise.
10041         * signal/sigisempty.c (sigisemptyset): Likewise.
10042         * signal/sigismem.c (sigismember): Likewise.
10043         * signal/signal.c (signal): Likewise.
10044         * signal/sigorset.c (sigorset): Likewise.
10045         * signal/sigpause.c (__sigpause): Likewise.
10046         * signal/sigpending.c (sigpending): Likewise.
10047         * signal/sigprocmask.c (__sigprocmask): Likewise.
10048         * signal/sigrelse.c (sigrelse): Likewise.
10049         * signal/sigreturn.c (__sigreturn): Likewise.
10050         * signal/sigset.c (sigset): Likewise.
10051         * signal/sigsetmask.c (__sigsetmask): Likewise.
10052         * signal/sigstack.c (sigstack): Likewise.
10053         * signal/sigsuspend.c (__sigsuspend): Likewise.
10054         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
10055         * signal/sysv_signal.c (__sysv_signal): Likewise.
10056         * socket/accept.c (accept): Likewise.
10057         * socket/accept4.c (__libc_accept4): Likewise.
10058         * socket/bind.c (__bind): Likewise.
10059         * socket/connect.c (__connect): Likewise.
10060         * socket/getpeername.c (getpeername): Likewise.
10061         * socket/getsockname.c (__getsockname): Likewise.
10062         * socket/getsockopt.c (getsockopt): Likewise.
10063         * socket/listen.c (__listen): Likewise.
10064         * socket/recv.c (__recv): Likewise.
10065         * socket/recvmsg.c (__recvmsg): Likewise.
10066         * socket/send.c (__send): Likewise.
10067         * socket/sendmsg.c (__sendmsg): Likewise.
10068         * socket/shutdown.c (shutdown): Likewise.
10069         * socket/sockatmark.c (sockatmark): Likewise.
10070         * socket/socket.c (__socket): Likewise.
10071         * stdio-common/ctermid.c (ctermid): Likewise.
10072         * stdio-common/cuserid.c (cuserid): Likewise.
10073         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
10074         * stdio-common/remove.c (remove): Likewise.
10075         * stdio-common/rename.c (rename): Likewise.
10076         * stdio-common/renameat.c (renameat): Likewise.
10077         * stdio-common/tempname.c (__gen_tempname): Likewise.
10078         * stdio-common/xbug.c (InitBuffer): Likewise.
10079         (AppendToBuffer): Likewise.
10080         (ReadFile): Likewise.
10081         * stdlib/a64l.c (a64l): Likewise.
10082         * stdlib/drand48_r.c (drand48_r): Likewise.
10083         * stdlib/getcontext.c (getcontext): Likewise.
10084         * stdlib/getenv.c (getenv): Likewise.
10085         * stdlib/l64a.c (l64a): Likewise.
10086         * stdlib/llabs.c (llabs): Likewise.
10087         * stdlib/lldiv.c (lldiv): Likewise.
10088         * stdlib/lrand48_r.c (lrand48_r): Likewise.
10089         * stdlib/mrand48_r.c (mrand48_r): Likewise.
10090         * stdlib/putenv.c (putenv): Likewise.
10091         * stdlib/random.c (__srandom): Likewise.
10092         (__initstate): Likewise.
10093         (__setstate): Likewise.
10094         * stdlib/random_r.c (__srandom_r): Likewise.
10095         (__setstate_r): Likewise.
10096         (__random_r): Likewise.
10097         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
10098         * stdlib/setcontext.c (setcontext): Likewise.
10099         * stdlib/setenv.c (setenv): Likewise.
10100         (unsetenv): Likewise.
10101         * stdlib/srand48.c (srand48): Likewise.
10102         * stdlib/srand48_r.c (__srand48_r): Likewise.
10103         * stdlib/swapcontext.c (swapcontext): Likewise.
10104         * stdlib/system.c (__libc_system): Likewise.
10105         * stdlib/tst-strtod.c (expand): Likewise.
10106         * stdlib/tst-strtol.c (expand): Likewise.
10107         * stdlib/tst-strtoll.c (expand): Likewise.
10108         * streams/fattach.c (fattach): Likewise.
10109         * streams/fdetach.c (fdetach): Likewise.
10110         * streams/getmsg.c (getmsg): Likewise.
10111         * streams/isastream.c (isastream): Likewise.
10112         * string/ffs.c (__ffs): Likewise.
10113         * string/ffsll.c (ffsll): Likewise.
10114         * string/memcmp.c (memcmp_common_alignment): Likewise.
10115         (memcmp_not_common_alignment): Likewise.
10116         (MEMCMP): Likewise.
10117         * string/memcpy.c (memcpy): Likewise.
10118         * string/memmove.c (MEMMOVE): Likewise.
10119         * string/memset.c (memset): Likewise.
10120         * string/rawmemchr.c (RAWMEMCHR): Likewise.
10121         * string/strchrnul.c (STRCHRNUL): Likewise.
10122         * string/strerror.c (strerror): Likewise.
10123         * string/strndup.c (__strndup): Likewise.
10124         * string/strverscmp.c (__strverscmp): Likewise.
10125         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
10126         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
10127         (clnttcp_freeres): Likewise.
10128         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
10129         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
10130         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
10131         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
10132         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
10133         (xdr_callhdr): Likewise.
10134         * sunrpc/rpcinfo.c (udpping): Likewise.
10135         (tcpping): Likewise.
10136         (pstatus): Likewise.
10137         (pmapdump): Likewise.
10138         (brdcst): Likewise.
10139         (deletereg): Likewise.
10140         (getprognum): Likewise.
10141         (getvers): Likewise.
10142         (get_inet_address): Likewise.
10143         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
10144         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10145         (svcudp_stat): Likewise.
10146         (svcudp_recv): Likewise.
10147         (svcudp_reply): Likewise.
10148         (svcudp_getargs): Likewise.
10149         (svcudp_freeargs): Likewise.
10150         (svcudp_destroy): Likewise.
10151         * sunrpc/xdr.c (xdr_bytes): Likewise.
10152         (xdr_netobj): Likewise.
10153         (xdr_string): Likewise.
10154         (xdr_wrapstring): Likewise.
10155         * sunrpc/xdr_float.c (xdr_float): Likewise.
10156         (xdr_double): Likewise.
10157         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
10158         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
10159         * sysvipc/ftok.c (ftok): Likewise.
10160         * sysvipc/msgctl.c (msgctl): Likewise.
10161         * sysvipc/msgget.c (msgget): Likewise.
10162         * sysvipc/msgrcv.c (msgrcv): Likewise.
10163         * sysvipc/msgsnd.c (msgsnd): Likewise.
10164         * sysvipc/semget.c (semget): Likewise.
10165         * sysvipc/semop.c (semop): Likewise.
10166         * sysvipc/shmat.c (shmat): Likewise.
10167         * sysvipc/shmctl.c (shmctl): Likewise.
10168         * sysvipc/shmdt.c (shmdt): Likewise.
10169         * sysvipc/shmget.c (shmget): Likewise.
10170         * termios/cfmakeraw.c (cfmakeraw): Likewise.
10171         * termios/speed.c (cfgetospeed): Likewise.
10172         (cfgetispeed): Likewise.
10173         (cfsetospeed): Likewise.
10174         (cfsetispeed): Likewise.
10175         * termios/tcflow.c (tcflow): Likewise.
10176         * termios/tcflush.c (tcflush): Likewise.
10177         * termios/tcgetattr.c (__tcgetattr): Likewise.
10178         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
10179         * termios/tcgetsid.c (tcgetsid): Likewise.
10180         * termios/tcsendbrk.c (tcsendbreak): Likewise.
10181         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
10182         * time/adjtime.c (__adjtime): Likewise.
10183         * time/dysize.c (dysize): Likewise.
10184         * time/ftime.c (ftime): Likewise.
10185         * time/getitimer.c (__getitimer): Likewise.
10186         * time/gettimeofday.c (__gettimeofday): Likewise.
10187         * time/gmtime.c (__gmtime_r): Likewise.
10188         (gmtime): Likewise.
10189         * time/localtime.c (__localtime_r): Likewise.
10190         (localtime): Likewise.
10191         * time/offtime.c (__offtime): Likewise.
10192         * time/settimeofday.c (__settimeofday): Likewise.
10193         * time/stime.c (stime): Likewise.
10194         * time/strftime_l.c (tm_diff): Likewise.
10195         (iso_week_days): Likewise.
10196         * time/strptime.c (strptime): Likewise.
10197         * time/time.c (time): Likewise.
10198         * time/timespec_get.c (timespec_get): Likewise.
10199         * time/tzset.c (tzset_internal): Likewise.
10200         (compute_change): Likewise.
10201         (__tz_compute): Likewise.
10202         * wcsmbs/btowc.c (__btowc): Likewise.
10203         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10204         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10205         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10206         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10207         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10208         * wcsmbs/wcscat.c (__wcscat): Likewise.
10209         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10210         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10211         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10212         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10213         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10214         * wcsmbs/wcslen.c (__wcslen): Likewise.
10215         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10216         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10217         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10218         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10219         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10220         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10221         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10222         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10223         * wcsmbs/wcstok.c (wcstok): Likewise.
10224         * wcsmbs/wctob.c (wctob): Likewise.
10225         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10226         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10227         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10228         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10229         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10230         * wcsmbs/wmemset.c (__wmemset): Likewise.
10231         * wctype/wcfuncs.c (__towlower): Likewise.
10232         (__towupper): Likewise.
10233
10234         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10235         (lll_unlock_elision): Add adapt_count parameter.
10236
10237 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10238
10239         * sysdeps/nptl/configure.ac: Do not give errors based on the
10240         results of top-level configure tests.
10241         * sysdeps/nptl/configure: Regenerated.
10242
10243         * configure.ac (libc_cv_Bgroup): Remove configure test.
10244         * configure: Regenerated.
10245         * config.make.in (have-Bgroup): Remove variable.
10246
10247         * configure.ac (sizeof_long_double): Remove configure test.
10248         * configure: Regenerated.
10249         * config.make.in (sizeof-long-double): Remove variable.
10250
10251         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10252         * configure: Regenerated.
10253         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10254         variable.
10255         (exceptions): Likewise.
10256         * sysdeps/arm/configure: Regenerated.
10257         * config.make.in (exceptions): Remove variable.
10258         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10259         $(exceptions).
10260         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10261         (CFLAGS-vdprintf_chk.c): Likewise.
10262         (CFLAGS-printf_chk.c): Likewise.
10263         (CFLAGS-fprintf_chk.c): Likewise.
10264         (CFLAGS-vprintf_chk.c): Likewise.
10265         (CFLAGS-vfprintf_chk.c): Likewise.
10266         (CFLAGS-gets_chk.c): Likewise.
10267         (CFLAGS-fgets_chk.c): Likewise.
10268         (CFLAGS-fgets_u_chk.c): Likewise.
10269         (CFLAGS-fread_chk.c): Likewise.
10270         (CFLAGS-fread_u_chk.c): Likewise.
10271         (CFLAGS-wprintf_chk.c): Likewise.
10272         (CFLAGS-fwprintf_chk.c): Likewise.
10273         (CFLAGS-vwprintf_chk.c): Likewise.
10274         (CFLAGS-vfwprintf_chk.c): Likewise.
10275         (CFLAGS-fgetws_chk.c): Likewise.
10276         (CFLAGS-fgetws_u_chk.c): Likewise.
10277         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10278         (CFLAGS-fputc.c): Likewise.
10279         (CFLAGS-fputwc.c): Likewise.
10280         (CFLAGS-freopen64.c): Likewise.
10281         (CFLAGS-freopen.c): Likewise.
10282         (CFLAGS-fseek.c): Likewise.
10283         (CFLAGS-fseeko64.c): Likewise.
10284         (CFLAGS-fseeko.c): Likewise.
10285         (CFLAGS-ftello64.c): Likewise.
10286         (CFLAGS-ftello.c): Likewise.
10287         (CFLAGS-fwide.c): Likewise.
10288         (CFLAGS-genops.c): Likewise.
10289         (CFLAGS-getc.c): Likewise.
10290         (CFLAGS-getchar.c): Likewise.
10291         (CFLAGS-getwc.c): Likewise.
10292         (CFLAGS-getwchar.c): Likewise.
10293         (CFLAGS-iofclose.c): Likewise.
10294         (CFLAGS-iofflush.c): Likewise.
10295         (CFLAGS-iofgetpos64.c): Likewise.
10296         (CFLAGS-iofgetpos.c): Likewise.
10297         (CFLAGS-iofgets.c): Likewise.
10298         (CFLAGS-iofgetws.c): Likewise.
10299         (CFLAGS-iofputs.c): Likewise.
10300         (CFLAGS-iofputws.c): Likewise.
10301         (CFLAGS-iofread.c): Likewise.
10302         (CFLAGS-iofsetpos64.c): Likewise.
10303         (CFLAGS-iofsetpos.c): Likewise.
10304         (CFLAGS-ioftell.c): Likewise.
10305         (CFLAGS-iofwrite.c): Likewise.
10306         (CFLAGS-iogetdelim.c): Likewise.
10307         (CFLAGS-iogetline.c): Likewise.
10308         (CFLAGS-iogets.c): Likewise.
10309         (CFLAGS-iogetwline.c): Likewise.
10310         (CFLAGS-ioputs.c): Likewise.
10311         (CFLAGS-ioseekoff.c): Likewise.
10312         (CFLAGS-ioseekpos.c): Likewise.
10313         (CFLAGS-iosetbuffer.c): Likewise.
10314         (CFLAGS-iosetvbuf.c): Likewise.
10315         (CFLAGS-ioungetc.c): Likewise.
10316         (CFLAGS-ioungetwc.c): Likewise.
10317         (CFLAGS-oldfileops.c): Likewise.
10318         (CFLAGS-oldiofclose.c): Likewise.
10319         (CFLAGS-oldiofgetpos64.c): Likewise.
10320         (CFLAGS-oldiofgetpos.c): Likewise.
10321         (CFLAGS-oldiofsetpos64.c): Likewise.
10322         (CFLAGS-oldiofsetpos.c): Likewise.
10323         (CFLAGS-peekc.c): Likewise.
10324         (CFLAGS-putc.c): Likewise.
10325         (CFLAGS-putchar.c): Likewise.
10326         (CFLAGS-putwc.c): Likewise.
10327         (CFLAGS-putwchar.c): Likewise.
10328         (CFLAGS-rewind.c): Likewise.
10329         (CFLAGS-wfileops.c): Likewise.
10330         (CFLAGS-wgenops.c): Likewise.
10331         (CFLAGS-oldiofopen.c): Likewise.
10332         (CFLAGS-iofopen.c): Likewise.
10333         (CFLAGS-iofopen64.c): Likewise.
10334         (CFLAGS-oldtmpfile.c): Likewise.
10335         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10336         (CFLAGS-fprintf.c): Likewise.
10337         (CFLAGS-printf.c): Likewise.
10338         (CFLAGS-vfwprintf.c): Likewise.
10339         (CFLAGS-vfscanf.c): Likewise.
10340         (CFLAGS-vfwscanf.c): Likewise.
10341         (CFLAGS-fscanf.c): Likewise.
10342         (CFLAGS-scanf.c): Likewise.
10343         (CFLAGS-isoc99_vfscanf.c): Likewise.
10344         (CFLAGS-isoc99_vscanf.c): Likewise.
10345         (CFLAGS-isoc99_fscanf.c): Likewise.
10346         (CFLAGS-isoc99_scanf.c): Likewise.
10347         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10348         (CFLAGS-isoc99_fwscanf.c): Likewise.
10349         (CFLAGS-isoc99_vwscanf.c): Likewise.
10350         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10351
10352         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10353         after mkstemp64.
10354         * login/tst-utmp.c (do_prepare): Likewise.
10355         * rt/tst-aio.c (do_prepare): Likewise.
10356         * rt/tst-aio64.c (do_prepare): Likewise.
10357
10358 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10359
10360         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10361         (__lll_lock_elision): Remove adapt_count decrement...
10362         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10363         (__lll_trylock_elision): Likewise.
10364         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10365         (__lll_unlock_elision): ... to here. And utilize
10366         new adapt_count parameter.
10367         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10368         (__lll_unlock_elision): Update to include adapt_count
10369         parameter.
10370         (lll_unlock_elision): Pass pointer to adapt_count
10371         variable.
10372
10373 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10374
10375         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10376         Add elision adapt_count parameter to list of arguments.
10377         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10378         (lll_unlock_elision): Update with new parameter list
10379         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10380         (lll_unlock_elision): Likewise.
10381         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10382         (lll_unlock_elision): Likewise.
10383
10384 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10385
10386         [BZ #19122]
10387         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10388         attribute_hidden.
10389
10390         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10391         attribute_hidden.
10392         [IS_IN (rtld)] (__strdup): Likewise.
10393         [IS_IN (rtld)] (__strerror_r): Likewise.
10394         [IS_IN (rtld)] (__strsep_g): Likewise.
10395         [IS_IN (rtld)] (memchr): Likewise.
10396         [IS_IN (rtld)] (memcmp): Likewise.
10397         [IS_IN (rtld)] (memcpy): Likewise.
10398         [IS_IN (rtld)] (memmove): Likewise.
10399         [IS_IN (rtld)] (memset): Likewise.
10400         [IS_IN (rtld)] (rawmemchr): Likewise.
10401         [IS_IN (rtld)] (stpcpy): Likewise.
10402         [IS_IN (rtld)] (strchr): Likewise.
10403         [IS_IN (rtld)] (strcmp): Likewise.
10404         [IS_IN (rtld)] (strlen): Likewise.
10405         [IS_IN (rtld)] (strnlen): Likewise.
10406         [IS_IN (rtld)] (strsep): Likewise.
10407
10408         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10409         attribute_hidden.
10410         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10411
10412         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10413         attribute_hidden.
10414         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10415
10416         * include/setjmp.h (__longjmp): Add attribute_hidden.
10417         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10418
10419         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10420         Add attribute_hidden.
10421
10422         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10423         [IS_IN (rtld)] (__open): Likewise.
10424         [IS_IN (rtld)] (__fcntl): Likewise.
10425
10426         * include/dirent.h (__opendirat): Add attribute_hidden.
10427         (__getdents): Likewise.
10428         (__getdents64): Likewise.
10429         (__alloc_dir): Likewise.
10430         [IS_IN (rtld)] (__closedir): Likewise.
10431         [IS_IN (rtld)] (__fdopendir): Likewise.
10432         [IS_IN (rtld)] (__readdir): Likewise.
10433         [IS_IN (rtld)] (__readdir64): Likewise.
10434         [IS_IN (rtld)] (__rewinddir): Likewise.
10435
10436         * include/dlfcn.h (_dl_catch_error): Moved to ...
10437         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10438         attribute_hidden.
10439
10440         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10441         (_itoa_word): Likewise.
10442
10443         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10444         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10445         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10446         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10447         (_dl_higher_prime_number): Likewise.
10448         (_dl_debug_printf_c): Likewise.
10449         (_dl_signal_cerror): Likewise.
10450         (_dl_receive_error): Likewise.
10451         (_dl_reloc_bad_type): Likewise.
10452         (_dl_resolve_conflicts): Likewise.
10453         (_dl_check_all_versions): Likewise.
10454         (_dl_check_map_versions): Likewise.
10455         (_dl_sort_fini): Likewise.
10456         (_dl_debug_initialize): Likewise.
10457         (_dl_init_paths): Likewise.
10458         (_dl_show_auxv): Likewise.
10459         (_dl_next_ld_env_entry): Likewise.
10460         (_dl_important_hwcaps): Likewise.
10461         (_dl_load_cache_lookup): Likewise.
10462         (_dl_update_slotinfo): Likewise.
10463         (_dl_show_scope): Likewise.
10464
10465         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10466         attribute_hidden.
10467         (_wordcopy_fwd_dest_aligned): Likewise.
10468         (_wordcopy_bwd_aligned): Likewise.
10469         (_wordcopy_bwd_dest_aligned): Likewise.
10470
10471         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10472         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10473         Likewise.
10474         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10475         Likewise.
10476         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10477
10478 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10479
10480         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10481         GCC 5 requirement.
10482
10483 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10484
10485         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10486         test.
10487         * sysdeps/i386/configure: Regenerated.
10488         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10489         code unconditional.
10490
10491         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10492         test.
10493         (libc_cv_asm_popsection_directive): Likewise.
10494         * configure: Regenerated.
10495         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10496         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10497         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10498         (__make_section_unallocated): Make definition unconditional.
10499         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10500         Remove conditional definition.
10501         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10502         (__make_section_unallocated): Likewise.
10503
10504         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10505         * configure: Regenerated.
10506         * config.make.in (static-libgcc): Remove variable.
10507         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10508         $(static-libgcc).
10509         (build-module-helper): Likewise.
10510
10511         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10512         * configure: Regenerated.
10513
10514 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10515
10516         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10517         (struct char_buffer): New type.
10518         (char_buffer_start, char_buffer_size, char_buffer_error)
10519         (char_buffer_rewind, char_buffer_add): New functions.
10520         (ADDW): Remove macro, replaced by the char_buffer_add function.
10521         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10522         of extend_alloca.  Make control flow more explicit.
10523
10524 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10525
10526         [BZ #19137]
10527         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10528         Add -fomit-frame-pointer.
10529         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10530
10531 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10532
10533         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10534         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10535         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10536         only if !__GNUC_PREREQ (5,0).
10537         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10538         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10539         (INTERNAL_SYSCALL_NCS): Likewise.
10540         (LOADREGS_0): New macro for GCC 5.
10541         (ASMARGS_0): Likewise.
10542         (LOADREGS_1): Likewise.
10543         (ASMARGS_1): Likewise.
10544         (LOADREGS_2): Likewise.
10545         (ASMARGS_2): Likewise.
10546         (LOADREGS_3): Likewise.
10547         (ASMARGS_3): Likewise.
10548         (LOADREGS_4): Likewise.
10549         (ASMARGS_4): Likewise.
10550         (LOADREGS_5): Likewise.
10551         (ASMARGS_5): Likewise.
10552         (LOADREGS_6): Likewise.
10553         (ASMARGS_6): Likewise.
10554
10555 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10556
10557         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10558         -fomit-frame-pointer.
10559         (CFLAGS-mmap64.c): Likewise.
10560         (CFLAGS-semtimedop.c): Likewise.
10561         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10562         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10563         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10564         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10565
10566 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10567
10568         [BZ #18928]
10569         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10570         _dl_pointer_guard member.
10571         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10572         initializer.
10573         (security_init): Always set up pointer guard.
10574         (process_envvars): Do not process LD_POINTER_GUARD.
10575
10576 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10577
10578         [BZ #19134]
10579         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10580         (.LC2): Likewise.
10581         (.LC3): Likewise.
10582         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10583
10584 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10585
10586         [BZ #19129]
10587         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10588         r0 and r1.
10589
10590 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10591
10592         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10593
10594 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10595
10596         * include/stap-probe.h: Fix macro definition formatting.
10597
10598 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10599
10600         [BZ #19074]
10601         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10602         load and store num_ifs.
10603
10604 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10605
10606         [BZ #18822]
10607         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10608         (__sched_getaffinity_new): Add libc_hidden_proto and
10609         libc_hidden_def.
10610
10611 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10612
10613         [BZ #19007]
10614         * scripts/localplt.awk: Also allow GOT references.
10615         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10616         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10617         with "+ REL R_386_GLOB_DAT".
10618         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10619         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10620
10621 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10624         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10625         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10626         Likewise.
10627         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10628         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10629         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10630         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10631         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10632         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10633         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10634         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10635         Likewise.
10636         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10637
10638 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10639
10640         [BZ #19125]
10641         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10642         <math_private.h> and <stdint.h>.
10643         (__llround): Avoid conversions to and from long long int, and
10644         subtractions, where those might raise spurious exceptions.
10645         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10646         <math_private.h> and <stdint.h>.
10647         (__llroundf): Avoid conversions to and from long long int, and
10648         subtractions, where those might raise spurious exceptions.
10649
10650 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10651
10652         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10653         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10654         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10655         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10656         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10657         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10658         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10659         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10660         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10661         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10662         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10663         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10664         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10665         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10666         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10667         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10668         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10669         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10670         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10671         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10672         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10673         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10674         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10675         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10676         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10677         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10678         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10679         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10680         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10681         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10682         (__xstat64_conv): Likewise.
10683         (__xstat32_conv): Likewise.
10684
10685 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10686
10687         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10688         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10689         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10690         <sysdeps/unix/sysv/linux/sysdep.h>.
10691         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10692         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10693         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10694         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10695         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10696         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10697         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10698         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10699         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10702         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10703         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10704         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10705         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10706         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10707         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10708         (sysdep-dl-routines): Add sysdep.
10709         [$(subdir) == nptl] (libpthread-routines): Likewise.
10710         [$(subdir) == rt] (librt-routines): Likewise.
10711         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10712         PIC when branching to SYSCALL_ERROR_LABEL.
10713         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10714         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10715         <sysdeps/unix/sysv/linux/sysdep.h>.
10716         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10717         (SYSCALL_ERROR_ERRNO): Removed.
10718         (SYSCALL_ERROR_HANDLER): Changed to empty.
10719         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10720         (__syscall_error): New prototype.
10721         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10722         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10723
10724 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10725
10726         [BZ #19124]
10727         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10728         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10729         _dl_runtime_resolve_avx.
10730         (_dl_runtime_profile_avx512): Make it a hidden alias of
10731         _dl_runtime_profile_avx.
10732
10733 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10734
10735         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10736         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10737         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10738         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10739
10740         [BZ #16422]
10741         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10742         New configure test.
10743         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10744         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10745         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10746         <math_private.h> and <stdint.h>.
10747         (__llrint): Avoid conversions to long long int where those might
10748         raise spurious exceptions.
10749         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10750         <math_private.h> and <stdint.h>.
10751         (__llrintf): Avoid conversions to long long int where those might
10752         raise spurious exceptions.
10753
10754 2015-10-12  Andreas Schwab  <schwab@suse.de>
10755
10756         [BZ #18969]
10757         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10758         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10759         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10760         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10761         $(gen-locales).
10762         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10763         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10764         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10765         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10766         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10767         $(gen-locales).
10768         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10769         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10770         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10771         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10772         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10773         ($(objpfx)tst-ftell-active-handler.out)
10774         ($(objpfx)tst-ftell-append.out)
10775         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10776         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10777         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10778         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10779         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10780         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10781         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10782         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10783         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10784         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10785         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10786         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10787         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10788         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10789         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10790         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10791         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10792         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10793         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10794         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10795         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10796         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10797         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10798         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10799         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10800         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10801         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10802         $(gen-locales).
10803         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10804         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10805         $(gen-locales).
10806         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10807         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10808         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10809         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10810         $(gen-locales).
10811         * libio/tst_wprintf2.c (main): Use explicit locale.
10812         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10813
10814 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10815
10816         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10817         __msg_sig_post.
10818         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10819
10820 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10821
10822         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10823         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10824
10825         * sysdeps/arm/libm-test-ulps: Regenerated.
10826
10827         [BZ #15470]
10828         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10829
10830         [BZ #16399]
10831         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10832         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10833         and <fix-fp-int-convert-overflow.h>.
10834         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10835         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10836         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10837         and <fix-fp-int-convert-overflow.h>.
10838         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10839         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10840         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10841         <fix-fp-int-convert-overflow.h>.
10842         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10843         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10844         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10845         <fix-fp-int-convert-overflow.h>.
10846         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10847         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10848         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10849         and <fix-fp-int-convert-overflow.h>.
10850         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10851         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10852         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10853         <limits.h> and <fix-fp-int-convert-overflow.h>.
10854         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10855         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10856         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10857         and <fix-fp-int-convert-overflow.h>.
10858         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10859         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10860         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10861         and <fix-fp-int-convert-overflow.h>.
10862         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10863         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10864         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10865
10866 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10867
10868         [BZ #18589]
10869         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10870         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10871         $(gen-locales).
10872
10873 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10874             Phil Blundell <pb@pbcl.net>
10875
10876         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10877         * nptl/tst-cancel26.c: New file.
10878         * nptl/tst-cancel27.c: Likewise.
10879
10880 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10881
10882         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10883         __ILP32__ isn't defined.
10884         (lrint): Likewise.
10885         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10886         (lrintf): Likewise.
10887         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10888         (lrintl): Likewise.
10889         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10890         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10891         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10892
10893 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10894
10895         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10896         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10897
10898         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10899         file.
10900         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10901         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10902
10903 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10904
10905         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10906         configure test.
10907         * sysdeps/i386/configure: Regenerated.
10908         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10909         configure test.
10910         * sysdeps/x86_64/configure: Regenerated.
10911         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10912         Make code unconditional.
10913
10914         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10915         test.
10916         * sysdeps/i386/configure: Regenerated.
10917         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10918         test.
10919         * sysdeps/x86_64/configure: Regenerated.
10920         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10921         Make code unconditional.
10922         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10923         Likewise.
10924         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10925         Likewise.
10926         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10927         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10928         code unconditional.
10929         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10930         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10931         code unconditional.
10932         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10933         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10934         code unconditional.
10935         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10936         code unconditional.
10937         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10938         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10939         code unconditional.
10940         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10941         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10942         code unconditional.
10943         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10944         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10945         code unconditional.
10946         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10947         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10948         code unconditional.
10949         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10950         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10951
10952         [BZ #19095]
10953         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10954         mantissa to long int before shifting left.
10955
10956 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10957
10958         [BZ #19094]
10959         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10960         <limits.h>.
10961         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10962         when result overflows but exception would not result from cast.
10963         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10964         <limits.h>.
10965         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10966         when result overflows but exception would not result from cast.
10967         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10968         <limits.h>.
10969         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10970         when result overflows but exception would not result from cast.
10971         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10972         <limits.h>.
10973         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10974         when result overflows but exception would not result from cast.
10975         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10976         <limits.h>.
10977         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10978         when result overflows but exception would not result from cast.
10979         * math/libm-test.inc (lrint_test_data): Add more tests.
10980         (llrint_test_data): Likewise.
10981
10982 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10983
10984         [BZ #18872]
10985         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10986         Move out from under [$(run-built-tests) = yes] conditional.
10987         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10988         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10989
10990 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10991
10992         [BZ #18589]
10993         * string/Makefile (tests): Add bug-strcoll2.
10994         (LOCALES): Add cs_CZ.UTF-8.
10995         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10996
10997         [BZ #18589]
10998         * string/bug-strcoll2.c: New file.
10999         * locale/categories.def: Revert commit
11000         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
11001         * locale/langinfo.h: Likewise.
11002         * locale/localeinfo.h: Likewise.
11003         * locale/C-collate.c: Likewise.
11004         * locale/programs/ld-collate.c (collate_output): Likewise.
11005         * string/strcoll_l.c (STRDIFF): Likewise.
11006         (STRCOLL): Likewise.
11007         * wcsmbs/wcscoll_l.c: Likewise.
11008
11009 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
11010
11011         * math/libm-test.inc (lround_test_data): Do not expect the absence
11012         of "inexact" for some tests with non-integer arguments.
11013         (llround_test_data): Likewise.
11014
11015         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
11016         test.
11017         (libc_cv_cc_sse2avx): Likewise.
11018         * sysdeps/i386/configure: Regenerated.
11019         * sysdeps/i386/i686/multiarch/Makefile
11020         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
11021         [$(subdir) = math].
11022         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
11023         code unconditional.
11024         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
11025         Likewise.
11026         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
11027         Likewise.
11028         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
11029         Likewise.
11030         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
11031         test.
11032         (libc_cv_cc_sse2avx): Likewise.
11033         * sysdeps/x86_64/configure: Regenerated.
11034         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
11035         unconditional.
11036         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
11037         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
11038         unconditional.
11039         (_dl_runtime_profile)
11040         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
11041         conditional code.
11042         * sysdeps/x86_64/fpu/multiarch/Makefile
11043         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
11044         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
11045         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11046         * sysdeps/x86_64/fpu/multiarch/e_exp.c
11047         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11048         * sysdeps/x86_64/fpu/multiarch/e_log.c
11049         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11050         * sysdeps/x86_64/fpu/multiarch/s_atan.c
11051         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11052         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
11053         Likewise.
11054         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
11055         Likewise.
11056         * sysdeps/x86_64/fpu/multiarch/s_sin.c
11057         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11058         * sysdeps/x86_64/fpu/multiarch/s_tan.c
11059         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11060         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
11061         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
11062         (HAVE_SSE2AVX_SUPPORT): Likewise.
11063
11064 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
11065
11066         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
11067         instead of #pragma optimize.
11068
11069 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
11070
11071         [BZ #17195]
11072         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
11073         as is similarly done in systrim and _int_free already.
11074
11075 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11076
11077         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
11078
11079 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
11080
11081         [BZ #19088]
11082         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
11083         <limits.h>.
11084         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
11085         overflows but exception would not result from cast.
11086         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
11087         and <limits.h>.
11088         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
11089         overflows but exception would not result from cast.
11090         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
11091         <limits.h>.
11092         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
11093         overflows but exception would not result from cast.
11094         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
11095         <limits.h>.
11096         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
11097         overflows but exception would not result from cast.
11098         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
11099         <limits.h>.
11100         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
11101         overflows but exception would not result from cast.
11102         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
11103         <limits.h>.
11104         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
11105         overflows but exception would not result from cast.
11106         * math/libm-test.inc (lround_test_data): Add more tests.
11107         (llround_test_data): Likewise.
11108
11109 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
11110
11111         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
11112         (CFLAGS-ialloc.c): Ditto.
11113         (CFLAGS-scheck.c): Ditto.
11114
11115 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
11116
11117         [BZ #19086]
11118         * manual/filesys.texi (Storage Allocation): Fix argument order for
11119         posix_fallocate64.
11120
11121 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
11122
11123         [BZ #19085]
11124         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
11125         exponent below 48 inside case for non-overflowing exponent.
11126         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
11127
11128 2015-10-07  Florian Weimer  <fweimer@redhat.com>
11129
11130         * iconvdata/cp737.h (from_idx): Add const.
11131         * iconvdata/cp775.h (from_idx): Likewise.
11132
11133 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
11136         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
11137         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
11138
11139         [BZ #19079]
11140         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
11141         file, conditioned on [!_LP64].
11142         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
11143         [!_LP64] (__lround): Do not define as function or alias.
11144         [!_LP64] (lround): Likewise.
11145         [!_LP64] (__lroundl): Likewise.
11146         [!_LP64] (lroundl): Likewise.
11147         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
11148         macro.
11149         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
11150         Likewise.
11151
11152 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11153
11154         * math/libm-test.inc (lrint_test_data): Add more tests.
11155         (llrint_test_data): Likewise.
11156         (lround_test_data): Likewise.
11157         (llround_test_data): Likewise.
11158
11159         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
11160         (llrint_test_data): Add tests used for lrint.
11161
11162         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
11163         test.
11164         * sysdeps/i386/configure: Regenerated.
11165         * sysdeps/i386/i686/multiarch/Makefile
11166         [$(config-cflags-sse4) = yes]: Make code unconditional.
11167         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11168         Likewise.
11169         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
11170         Likewise.
11171         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
11172         test.
11173         * sysdeps/x86_64/configure: Regenerated.
11174         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
11175         Make code unconditional.
11176         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11177         Likewise.
11178         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
11179         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
11180
11181         * scripts/rpm2dynsym.sh: Remove file.
11182
11183 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11184
11185         * configure.ac (libc_cv_cxx_thread_local): Define.
11186         * configure: Regenerate.
11187         * config.make.in (have-cxx-thread_local): Define.
11188         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
11189         (LDLIBS-tst-thread_local1): Define.
11190         (tests): Add tst-thread_local1.
11191         [have-cxx-thread_local != yes] (tests-unsupported): Add
11192         tst-thread_local1.
11193         * nptl/tst-thread_local1.cc: New file.
11194
11195 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11196
11197         [BZ #19078]
11198         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
11199         (u_thres): Likewise.
11200         (__expl): Determine whether to call __kernel_standard_l based on
11201         value of result, not argument.
11202
11203         * math/libm-test.inc (scalb_test_data): Add more expectations for
11204         the "inexact" exception.
11205
11206         [BZ #19077]
11207         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11208         0.0L for argument 1.0L.
11209
11210         [BZ #19076]
11211         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11212         constant 0.0L when computing infinite result.
11213
11214 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11215
11216         [BZ #10432]
11217         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11218         malloc_usable_size.
11219
11220 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11221
11222         [BZ #19018]
11223         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11224         Mangle function pointer before storing it.
11225         (__call_tls_dtors): Demangle function pointer before calling it.
11226
11227 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11228
11229         [BZ #19012]
11230         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11231         Clean up on failure.
11232
11233 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11234
11235         [BZ #19071]
11236         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11237         long int variable to store possibly incremented high part of
11238         mantissa.
11239         * math/libm-test.inc (lround_test_data): Add tests used for
11240         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11241         for tests requiring 64-bit long.  Do not condition tests on
11242         [TEST_FLOAT] unnecessarily.
11243         (llround_test_data): Add tests used for lround.  Add another
11244         expectation for the "inexact" exception.  Do not condition tests
11245         on [TEST_FLOAT] unnecessarily.
11246
11247         [BZ #887]
11248         [BZ #19049]
11249         [BZ #19050]
11250         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11251         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11252         <fix-int-fp-convert-zero.h>.
11253         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11254         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11255         <fix-int-fp-convert-zero.h>.
11256         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11257         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11258         <fix-int-fp-convert-zero.h>.
11259         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11260         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11261         <fix-int-fp-convert-zero.h>.
11262         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11263         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11264         <fix-int-fp-convert-zero.h>.
11265         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11266         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11267         <fix-int-fp-convert-zero.h>.
11268         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11269         * sysdeps/ieee754/flt-32/s_erff.c: Include
11270         <fix-int-fp-convert-zero.h>.
11271         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11272         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11273         <fix-int-fp-convert-zero.h>.
11274         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11275         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11276         <fix-int-fp-convert-zero.h>.
11277         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11278         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11279         <fix-int-fp-convert-zero.h>.
11280         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11281         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11282         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11283         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11284         file.
11285         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11286
11287 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11288
11289         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11290
11291 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11292
11293         [BZ #19059]
11294         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11295         overflowing computation.
11296         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11297         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11298         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11299         Likewise.
11300         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11301         Likewise.
11302         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11303         Likewise.
11304         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11305         Likewise.
11306         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11307         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11308         Likewise.
11309         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11310         Likewise.
11311         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11312
11313         * nss/rewrite_field.c (__nss_rewrite_field): Use
11314         internal_function.
11315         * nss/valid_field.c (__nss_valid_field): Likewise.
11316         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11317
11318 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11319
11320         [BZ #18724]
11321         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11322         (__nss_invalid_field_characters, __nss_valid_field)
11323         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11324         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11325         tst-field.c: New file.
11326         * nss/Makefile (routines): Add valid_field, rewrite_field.
11327         (tests-static): Define unconditionally.
11328         (tests): Include tests-static.
11329         [build-static-nss] (tests-static): Use append.
11330         [build-static-nss] (tests): Remove modification.
11331         * nss/getent.c (print_group): Call putgrent.  Report error.
11332         (print_gshadow): Call putsgent.  Report error.
11333         (print_passwd): Call putpwent.  Report error.
11334         (print_shadow): Call putspent.  Report error.
11335         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11336         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11337         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11338         name, password, directory, shell fields for valid syntax.  Rewrite
11339         GECOS field to match syntax.
11340         * pwd/Makefile (tests): Add tst-putpwent.
11341         * pwd/tst-putpwent.c: New file.
11342         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11343         Check grName, grpasswd, gr_mem fields for valid syntax.
11344         Change loop variable i to size_t.
11345         * grp/Makefile (tests): Add tst-putgrent.
11346         * grp/tst-putgrent.c: New file.
11347         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11348         valid syntax.
11349         * shadow/Makefile (tests): Add tst-putspent.
11350         * shadow/tst-putspent.c: New file.
11351         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11352         sg_mem fields for valid syntax.
11353         * gshadow/Makefile (tests): Add tst-putsgent.
11354         * gshadow/tst-putsgent.c: New file.
11355
11356 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11357
11358         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11359         assembly instructions.
11360
11361 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11362
11363         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11364         prefix from operands.
11365
11366 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11367
11368         [BZ #16347]
11369         [BZ #19046]
11370         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11371         <libc-internal.h>.
11372         (MAXLGM): Do not use diagnostic control macros.
11373         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11374         threshold for ldbl-128ibm.
11375         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11376         instead of multiplying by log then subtracting.
11377         * math/auto-libm-test-in: Add more tests of lgamma.
11378         * math/auto-libm-test-out: Regenerated.
11379
11380         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11381         (TYPE_HEX_DIG): Likewise.
11382         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11383         precisions when printing floating-point numbers.
11384         (check_float_internal): Likewise.
11385
11386 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11387
11388         [BZ #16620]
11389         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11390         of log (10) rounded downward to 48 bits.
11391         (log10_low): Use corresponding low part of log (10).
11392
11393         [BZ #19032]
11394         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11395         compute result as (x - x) / (x - x) not as 0 / 0.
11396         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11397         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11398
11399         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11400         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11401         and expm1.
11402         * math/auto-libm-test-out: Regenerated.
11403         * math/libm-test.inc (acos_test_data): Add more tests.
11404         (asin_test_data): Likewise.
11405         (asinh_test_data): Likewise.
11406         (atan_test_data): Likewise.
11407         (atanh_test_data): Likewise.
11408         (atan2_test_data): Likewise.
11409         (cbrt_test_data): Likewise.
11410         (ceil_test_data): Likewise.
11411         (copysign_test_data): Likewise.
11412         (cos_test_data): Likewise.
11413         (cosh_test_data): Likewise.
11414         (erf_test_data): Likewise.
11415         (erfc_test_data): Likewise.
11416         (exp_test_data): Likewise.
11417         (exp10_test_data): Likewise.
11418         (exp2_test_data): Likewise.
11419         (expm1_test_data): Likewise.
11420         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11421
11422 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11423
11424         [BZ #19006]
11425         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11426         to ...
11427         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11428         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11429         to ...
11430         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11431         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11432         to ...
11433         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11434         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11435         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11436         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11437         to ...
11438         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11439         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11440         Moved to ...
11441         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11442         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11443         Moved to ...
11444         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11445         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11446         to ...
11447         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11448         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11449         Moved to ...
11450         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11451         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11452         to ...
11453         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11454         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11455         Removed.
11456         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11457         Likewise.
11458         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11459         Likewise.
11460         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11461         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11462         Likewise.
11463         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11464         Likewise.
11465         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11466         Likewise.
11467         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11468         Likewise.
11469         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11470         Likewise.
11471         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11472         Likewise.
11473         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11474         Likewise.
11475         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11476         Likewise.
11477         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11478         Likewise.
11479         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11480         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11481         Likewise.
11482         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11483         Likewise.
11484         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11485         Likewise.
11486         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11487         Likewise.
11488         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11489         Likewise.
11490         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11491         Replace ../i486/pthread_cond_timedwait.S with
11492         ../pthread_cond_timedwait.S.
11493
11494 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * math/libm-test.inc (acos_test_data): Refine expectations for
11497         errno and "inexact" exceptions.
11498         (acosh_test_data): Likewise.
11499         (asin_test_data): Likewise.
11500         (asinh_test_data): Likewise.
11501         (atan_test_data): Likewise.
11502         (atanh_test_data): Likewise.
11503         (atan2_test_data): Likewise.
11504         (cbrt_test_data): Likewise.
11505         (ceil_test_data): Likewise.
11506         (copysign_test_data): Likewise.
11507         (cosh_test_data): Likewise.
11508         (erf_test_data): Likewise.
11509         (erfc_test_data): Likewise.
11510         (exp_test_data): Likewise.
11511         (exp10_test_data): Likewise.
11512         (exp2_test_data): Likewise.
11513         (expm1_test_data): Likewise.
11514         (fabs_test_data): Likewise.
11515         (floor_test_data): Likewise.
11516         (fma_test_data): Likewise.
11517         (fmax_test_data): Likewise.
11518         (fmin_test_data): Likewise.
11519         (fmod_test_data): Likewise.
11520         (fpclassify_test_data): Likewise.
11521         (frexp_test_data): Likewise.
11522         (hypot_test_data): Likewise.
11523         (ilogb_test_data): Likewise.
11524         (isgreater_test_data): Likewise.
11525         (isgreaterequal_test_data): Likewise.
11526         (isinf_test_data): Likewise.
11527         (isless_test_data): Likewise.
11528         (islessequal_test_data): Likewise.
11529         (islessgreater_test_data): Likewise.
11530         (isnan_test_data): Likewise.
11531         (isnormal_test_data): Likewise.
11532         (issignaling_test_data): Likewise.
11533         (isunordered_test_data): Likewise.
11534         (j0_test_data): Likewise.
11535         (j1_test_data): Likewise.
11536         (jn_test_data): Likewise.
11537         (lgamma_test_data): Likewise.
11538         (lrint_test_data): Likewise.
11539         (llrint_test_data): Likewise.
11540         (log_test_data): Likewise.
11541         (log10_test_data): Likewise.
11542         (log1p_test_data): Likewise.
11543         (log2_test_data): Likewise.
11544         (logb_test_data): Likewise.
11545         (lround_test_data): Likewise.
11546         (llround_test_data): Likewise.
11547         (modf_test_data): Likewise.
11548         (nearbyint_test_data): Likewise.
11549         (nextafter_test_data): Likewise.
11550         (nexttoward_test_data): Likewise.
11551         (pow_test_data): Likewise.
11552         (remainder_test_data): Likewise.
11553         (remquo_test_data): Likewise.
11554         (rint_test_data): Likewise.
11555         (round_test_data): Likewise.
11556         (signbit_test_data): Likewise.
11557         (sinh_test_data): Likewise.
11558         (sqrt_test_data): Likewise.
11559         (tanh_test_data): Likewise.
11560         (tgamma_test_data): Likewise.
11561         (trunc_test_data): Likewise.
11562         (y0_test_data): Likewise.
11563         (y1_test_data): Likewise.
11564         (yn_test_data): Likewise.
11565         (significand_test_data): Likewise.
11566
11567 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11568
11569         * manual/filesys.texi (Storage Allocation): Document that
11570         posix_fallocate emulation fails when fd is open with O_WRONLY.
11571
11572 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11573
11574         [BZ #19016]
11575         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11576         allow more cases with X^2 + Y^2 >= 0.5.
11577         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11578         normal element in sum instead of special-casing based on values of
11579         arguments.
11580         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11581         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11582         -1 as normal element in sum instead of special-casing based on
11583         values of arguments.
11584         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11585         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11586         (__x2y2m1): Update comment.
11587         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11588         as normal element in sum instead of special-casing based on values
11589         of arguments.
11590         * math/s_clog.c (__clog): Handle more cases using log1p without
11591         hypot.
11592         * math/s_clog10.c (__clog10): Likewise.
11593         * math/s_clog10f.c (__clog10f): Likewise.
11594         * math/s_clog10l.c (__clog10l): Likewise.
11595         * math/s_clogf.c (__clogf): Likewise.
11596         * math/s_clogl.c (__clogl): Likewise.
11597         * math/auto-libm-test-in: Add more tests of clog and clog10.
11598         * math/auto-libm-test-out: Regenerated.
11599         * sysdeps/i386/fpu/libm-test-ulps: Update.
11600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11601
11602 2015-09-28  Martin Sebor  <msebor@redhat.com>
11603
11604         [BZ #18969]
11605         * string/Makefile (LOCALES): Define.
11606         (gen-locales.mk): Include.
11607         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11608         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11609         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11610         on setlocale failure.
11611
11612 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11613
11614         [BZ #18985]
11615         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11616         (__strftime_internal): Likewise.
11617         * time/tst-strftime.c (do_bz18985): New test.
11618         (do_test): Call it.
11619
11620 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11621
11622         [BZ #18956]
11623         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11624         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11625         extracting high part.
11626         * math/auto-libm-test-in: Add another test of pow.
11627         * math/auto-libm-test-out: Regenerated.
11628         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11629
11630 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11631
11632         [BZ #18825]
11633         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11634         New macro.
11635         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11636         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11637         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11638         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11639         DBL_NARROW_EVAL, reloading the PIC register as needed.
11640         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11641         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11642         FLT_NARROW_EVAL.  Use separate return path for case when first
11643         argument is NaN.
11644         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11645         DEFINE_LDBL_MIN.
11646         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11647         PIC register.
11648         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11649         math_check_force_underflow_nonneg.
11650         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11651         underflow for subnormal result.
11652         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11653         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11654         math_check_force_underflow_nonneg.
11655         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11656         math_check_force_underflow.
11657         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11658         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11659         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11660         DEFINE_LDBL_MIN.
11661         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11662         * math/auto-libm-test-in: Add more tests of pow.
11663         * math/auto-libm-test-out: Regenerated.
11664
11665 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11666
11667         * nss/bug17079.c (init_test_items): Add diagnostic for
11668         inconsistent entries.
11669         (test_buffer_size): Skip inconsistent entries.
11670
11671 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11672
11673         [BZ #13304]
11674         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11675         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11676         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11677
11678         [BZ #13304]
11679         * sysdeps/microblaze/s_fma.c: New file.
11680         * sysdeps/microblaze/s_fmaf.c: Likewise.
11681         * sysdeps/microblaze/sfp-machine.h: Likewise.
11682
11683 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11684
11685         [BZ #17250]
11686         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11687         member.
11688
11689 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11690
11691         [BZ #18803]
11692         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11693         (MO): New macro.
11694         (__ieee754_hypot) [PIC]: Load PIC register.
11695         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11696         DBL_NARROW_EVAL.
11697         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11698         math_check_force_underflow_nonneg in case where result might be
11699         tiny.
11700         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11701         Likewise.
11702         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11703         Likewise.
11704         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11705         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11706         * math/auto-libm-test-in: Add more tests of hypot.
11707         * math/auto-libm-test-out: Regenerated.
11708
11709 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11710
11711         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11712
11713 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11714
11715         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11716         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11717         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11718         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11719         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11720         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11721         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11722
11723         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11724         LOAD_PIC_REG.
11725
11726         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11727         (FLT_CHECK_FORCE_UFLOW): Likewise.
11728         (DBL_CHECK_FORCE_UFLOW): Likewise.
11729         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11730         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11731         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11732         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11733         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11734         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11735         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11736         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11737         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11738         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11739         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11740         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11741         (flt_min): Replace with use of DEFINE_FLT_MIN.
11742         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11743         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11744         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11745         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11746         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11747         (flt_min): Replace with use of DEFINE_FLT_MIN.
11748         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11749         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11750         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11751         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11752         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11753         (flt_min): Replace with use of DEFINE_FLT_MIN.
11754         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11755         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11756         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11757         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11758         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11759         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11760         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11761         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11762         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11763         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11764         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11765         (flt_min): Replace with use of DEFINE_FLT_MIN.
11766         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11767         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11768         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11769         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11770         main computation.
11771         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11772         (flt_min): Replace with use of DEFINE_FLT_MIN.
11773         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11774         main computation.
11775         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11776         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11777         (MO): New macro.
11778         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11779         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11780         (flt_min): Replace with use of DEFINE_FLT_MIN.
11781         (MO): New macro.
11782         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11783         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11784         (__log1pl): Use MO.
11785
11786         [BZ #19003]
11787         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11788         $(config-cflags-nofma).
11789
11790 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11791
11792         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11793
11794 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11797         (TWO127): Likewise.
11798
11799         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11800         (min_of_type): Likewise.
11801         (math_check_force_underflow): Likewise.
11802         (math_check_force_underflow_nonneg): Likewise.
11803         (math_check_force_underflow_complex): Likewise.
11804         * math/e_exp2l.c (__ieee754_exp2l): Use
11805         math_check_force_underflow_nonneg.
11806         * math/k_casinh.c (__kernel_casinh): Likewise.
11807         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11808         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11809         * math/s_catan.c (__catan): Use
11810         math_check_force_underflow_complex.
11811         * math/s_catanf.c (__catanf): Likewise.
11812         * math/s_catanh.c (__catanh): Likewise.
11813         * math/s_catanhf.c (__catanhf): Likewise.
11814         * math/s_catanhl.c (__catanhl): Likewise.
11815         * math/s_catanl.c (__catanl): Likewise.
11816         * math/s_ccosh.c (__ccosh): Likewise.
11817         * math/s_ccoshf.c (__ccoshf): Likewise.
11818         * math/s_ccoshl.c (__ccoshl): Likewise.
11819         * math/s_cexp.c (__cexp): Likewise.
11820         * math/s_cexpf.c (__cexpf): Likewise.
11821         * math/s_cexpl.c (__cexpl): Likewise.
11822         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11823         * math/s_clog10.c (__clog10): Likewise.
11824         * math/s_clog10f.c (__clog10f): Likewise.
11825         * math/s_clog10l.c (__clog10l): Likewise.
11826         * math/s_clogf.c (__clogf): Likewise.
11827         * math/s_clogl.c (__clogl): Likewise.
11828         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11829         * math/s_csinf.c (__csinf): Likewise.
11830         * math/s_csinh.c (__csinh): Likewise.
11831         * math/s_csinhf.c (__csinhf): Likewise.
11832         * math/s_csinhl.c (__csinhl): Likewise.
11833         * math/s_csinl.c (__csinl): Likewise.
11834         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11835         * math/s_csqrtf.c (__csqrtf): Likewise.
11836         * math/s_csqrtl.c (__csqrtl): Likewise.
11837         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11838         * math/s_ctanf.c (__ctanf): Likewise.
11839         * math/s_ctanh.c (__ctanh): Likewise.
11840         * math/s_ctanhf.c (__ctanhf): Likewise.
11841         * math/s_ctanhl.c (__ctanhl): Likewise.
11842         * math/s_ctanl.c (__ctanl): Likewise.
11843         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11844         instead of volatile.
11845         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11846         math_check_force_underflow.
11847         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11848         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11849         volatile when forcing underflow.
11850         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11851         math_check_force_underflow_nonneg.
11852         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11853         Likewise.
11854         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11855         math_check_force_underflow.
11856         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11857         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11858         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11859         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11860         math_check_force_underflow_nonneg.
11861         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11862         math_check_force_underflow.
11863         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11864         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11865         instead of volatile.
11866         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11867         math_check_force_underflow.
11868         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11869         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11870         math_check_force_underflow_nonneg.
11871         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11872         math_check_force_underflow.
11873         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11874         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11875         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11876         math_check_force_underflow_nonneg.
11877         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11878         Likewise.
11879         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11880         math_check_force_underflow.
11881         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11882         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11883         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11884         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11885         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11886         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11887         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11888         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11889         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11890         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11891         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11892         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11893         Likewise.
11894         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11895         math_check_force_underflow_nonneg.
11896         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11897         Likewise.
11898         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11899         math_check_force_underflow.
11900         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11901         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11902         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11903         Likewise.
11904         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11905         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11906         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11907         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11908         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11909         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11910         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11911         instead of volatile.
11912         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11913         math_check_force_underflow.
11914         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11915         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11916         math_check_force_underflow.
11917         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11918         Likewise.
11919         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11920         Use math_check_force_underflow_nonneg.
11921         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11922         math_check_force_underflow.
11923         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11924         Likewise.
11925         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11926         Likewise.
11927         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11928         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11929         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11930         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11931         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11932         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11933         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11934         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11935         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11936         math_check_force_underflow_nonneg.
11937         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11938         math_check_force_underflow.
11939         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11940         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11941         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11942         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11943         math_check_force_underflow_nonneg.
11944         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11945         math_check_force_underflow.
11946         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11947         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11948         instead of volatile.
11949         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11950         math_check_force_underflow.
11951
11952         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11953         * stdlib/strtod_l.c: Include <math_private.h>.
11954         (overflow_value): Use math_narrow_eval.
11955         (underflow_value): Likewise.
11956         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11957         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11958         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11959         (__ieee754_gamma_r): Likewise.
11960         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11961         Likewise.
11962         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11963         Likewise.
11964         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11965         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11966         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11967         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11968         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11969         (__ieee754_gammaf_r): Likewise.
11970         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11971         Likewise.
11972         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11973         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11974         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11975         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11976         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11977         volatile.
11978         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11979         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11980         math_narrow_eval.
11981         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11982         Likewise.
11983         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11984         Likewise.
11985         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11986         Likewise.
11987         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11988         volatile.
11989         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11990         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11991         math_narrow_eval.
11992         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11993         Likewise.
11994         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11995         Likewise.
11996
11997 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11998
11999         * nptl/Versions: Remove ignored symbols.
12000
12001 2015-09-22  Florian Weimer  <fweimer@redhat.com>
12002
12003         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
12004         * nss/Makefile (tests): Update.
12005
12006 2015-09-22  Florian Weimer  <fweimer@redhat.com>
12007
12008         * nss/bug18287.c: New file.
12009         * nss/Makefile (tests): Add bug18287.
12010
12011 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12012
12013         * mach/Versions (__mach_host_self_): Add symbol.
12014
12015 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12016
12017         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
12018         vm_page_size.
12019
12020 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12021
12022         Really fix sysdeps/i386/fpu/s_scalbn.S build
12023
12024         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
12025         (libc: GLIBC_2_22): Remove unused version set.
12026
12027 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
12028
12029         * config.make.in (enable-timezone-tools): New variable.
12030         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
12031         (enable_timezone_tools): Export to generated files.
12032         * configure: Regenerate.
12033         * INSTALL: Regenerate.
12034         * manual/install.texi (--disable-timezone-tools): Document new flag.
12035         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
12036         ifeq ($(enable-timezone-tools),yes) check.
12037
12038 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
12039
12040         * timezone/Makefile: Revert previous change.
12041
12042         [BZ #18980]
12043         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
12044         (DEFINE_DBL_MIN): Likewise.
12045         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
12046         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
12047         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
12048         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
12049         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
12050         (dbl_min): Replace with use of DEFINE_DBL_MIN.
12051         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
12052         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
12053         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
12054         (dbl_min): Replace with use of DEFINE_DBL_MIN.
12055         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
12056         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
12057         (flt_min): Replace with use of DEFINE_FLT_MIN.
12058         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
12059         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
12060         (dbl_min): Replace with use of DEFINE_DBL_MIN.
12061         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
12062         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
12063         (flt_min): Replace with use of DEFINE_FLT_MIN.
12064         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
12065         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
12066         (flt_min): Replace with use of DEFINE_FLT_MIN.
12067         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
12068         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
12069         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
12070         (__ieee754_hypot): Use DBL_NARROW_EVAL.
12071         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
12072         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
12073         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
12074         (__ieee754_pow): Use DBL_NARROW_EVAL.
12075         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
12076         (__ieee754_powf): Use FLT_NARROW_EVAL.
12077         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
12078         (__ieee754_expf_sse2): Convert double-precision result to single
12079         precision.
12080         * sysdeps/i386/fpu/libm-test-ulps: Update.
12081
12082 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12083
12084         * timezone/Makefile: Ignore unused variable errors due to private.h
12085         (time_t_min) and (time_t_max).
12086         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
12087         Likewise.
12088
12089 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
12090
12091         [BZ #18981]
12092         * sysdeps/i386/fpu/i386-math-asm.h: New file.
12093         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
12094         (__ieee754_scalb): Use DBL_NARROW_EVAL.
12095         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
12096         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
12097         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
12098         (__scalbn): Use DBL_NARROW_EVAL.
12099         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
12100         (__scalbnf): Use FLT_NARROW_EVAL.
12101
12102 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12103
12104         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
12105         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
12106         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
12107         * stdio-common/printf_fp.c (___printf_fp):
12108         Use signbit to get the sign. Use isinf macro to allow inlining.
12109         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
12110         * stdio-common/printf_size.c (__printf_size): Likewise.
12111
12112 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
12113
12114         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
12115
12116 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
12117
12118         [BZ #18980]
12119         * sysdeps/generic/math_private.h: Include <float.h>.
12120         (math_narrow_eval): New macro.
12121         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12122         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
12123         math_narrow_eval on overflowing return value.
12124         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
12125         Likewise.
12126         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
12127         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
12128         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
12129         Likewise.
12130         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
12131
12132 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12133
12134         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
12135         * math/Makefile: Remove isinf_ns.c.
12136         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
12137         * math/multc3.c (__multc3): Likewise.
12138         * math/s_casin.c (__casin): Likewise.
12139         * math/s_casinf.c (__casinf): Likewise.
12140         * math/s_casinl.c (__casinl): Likewise.
12141         * math/s_cproj.c (__cproj): Likewise.
12142         * math/s_cprojf.c (__cprojf): Likewise.
12143         * math/s_cprojl.c (__cprofl): Likewise.
12144         * math/s_ctan.c (__ctan): Likewise.
12145         * math/s_ctanf.c (__ctanf): Likewise.
12146         * math/s_ctanh.c (__ctanh): Likewise.
12147         * math/s_ctanhf.c (__ctanhf): Likewise.
12148         * math/s_ctanhl.c (__ctanhl): Likewise.
12149         * math/s_ctanl.c (__ctanl): Likewise.
12150         * math/w_fmod.c (__fmod): Likewise.
12151         * math/w_fmodf.c (__fmodf): Likewise.
12152         * math/w_fmodl.c (_fmodl): Likewise.
12153         * math/w_remainder.c (__remainder): Likewise.
12154         * math/w_remainderf.c (__remainderf): Likewise.
12155         * math/w_remainderl.c (__remainderl): Likewise.
12156         * math/w_scalb.c (__scalb): Likewise.
12157         * math/w_scalbf.c (__scalbf): Likewise.
12158         * math/w_scalbl.c (__scalbl): Likewise.
12159         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
12160         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
12161         with isinf.
12162         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
12163         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
12164         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
12165         __isinf_nsf with isinf.
12166         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
12167         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
12168         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
12169         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
12170         with isinf.
12171         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
12172         __isinf_nsl with isinf.
12173         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
12174         with isinf.
12175         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
12176         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
12177         __isinf_nsl with isinf.
12178         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
12179         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
12180         with isinf.
12181
12182 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12183
12184         * resolv/base64.c (rcsid): Remove unused static.
12185         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
12186         static.  (tqpi1): Likewise.
12187         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
12188         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
12189         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
12190         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
12191         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
12192         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
12193         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
12194         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
12195         Likewise.
12196
12197 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12198
12199         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
12200         <nptl/pthreadP.h>.
12201         (_longjmp_unwind): Use __libc_ptf_call.
12202         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12203
12204 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12205
12206         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12207         * sysdeps/arm/__longjmp.S: Likewise.
12208
12209 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12210
12211         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12212         Use __builtin_signbit.
12213         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12214         Use __builtin_signbitf.
12215         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12216         Use __builtin_signbitl.
12217         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12218         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12219
12220 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12221
12222         [BZ #15367]
12223         [BZ #17441]
12224
12225         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12226         * math/math.h (fpclassify): Use __builtin_fpclassify when
12227         available.  (signbit): Use __builtin_signbit(f/l).
12228         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12229         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12230         (isinf): Use __builtin_isinf_sign.
12231
12232 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12233
12234         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12235         * benchtests/bench-math-inlines.c: New benchmark.
12236         * benchtests/bench-util.h: New file.
12237         * benchtests/bench-util.c: New file.
12238         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12239
12240 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12241
12242         * elf/tst-dlmopen1.c: Define TEST_SO.
12243         (do_test): Use TEST_SO.
12244
12245         * elf/dl-load.c: Include libc-internal.h.
12246         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12247
12248 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12249
12250         [BZ #17887]
12251         * time/strptime_l.c (__strptime_internal): Make %z accept
12252         [+-]HH:MM time zones.
12253
12254 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12255
12256         [BZ #17886]
12257         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12258         valid time zone.
12259
12260 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12261
12262         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12263         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12264         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12265         (__ASSUME_FDATASYNC): Delete.
12266
12267 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12268
12269         * conform/linknamespace.pl: Require weak undefined symbols to be
12270         in the standard namespace.
12271         (%strong_syms): Rename to %seen_syms.
12272         (%strong_seen): Rename to %seen_where.
12273
12274 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12275
12276         [BZ #18970]
12277         * misc/error.c (error): Replace pthread_setcancelstate with
12278         __pthread_setcancelstate.
12279         (error_at_line): Likewise.
12280         * posix/wordexp.c (parse_comm): Likewise.
12281         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12282         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12283         (__pthread_setcancelstate): This.
12284         (pthread_setcancelstate): Add an alias.
12285         * nptl/nptl-init.c (pthread_functions): Replace
12286         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12287         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12288         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12289         hidden_proto.
12290         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12291         it with hidden_def.
12292         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12293         (pthread_setcancelstate): Renamed to ...
12294         (__pthread_setcancelstate): This.
12295         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12296         __libc_ptf_call with __pthread_setcancelstate.
12297
12298 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12299             Andreas Schwab  <schwab@suse.de>
12300
12301         [BZ #17118]
12302         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12303         result when imaginary part of argument is infinite using sine and
12304         cosine.
12305         * math/s_ctanf.c (__ctanf): Likewise.
12306         * math/s_ctanl.c (__ctanl): Likewise.
12307         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12308         of result when real part of argument is infinite using sine and
12309         cosine.
12310         * math/s_ctanhf.c (__ctanhf): Likewise.
12311         * math/s_ctanhl.c (__ctanhl): Likewise.
12312         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12313         (ctanh_test_data): Add more tests of ctanh.
12314
12315 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12316
12317         [BZ #15384]
12318         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12319         bit-mask as in subtraction.
12320         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12321         Likewise.
12322         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12323         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12324         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12325
12326         [BZ #18951]
12327         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12328         underflow exception for small results.
12329         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12330         Likewise.
12331         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12332         Likewise.
12333         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12334         Likewise.
12335         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12336         Likewise.
12337         * math/auto-libm-test-in: Add more tests of tgamma.
12338         * math/auto-libm-test-out: Regenerated.
12339
12340 2015-09-17  Andreas Schwab  <schwab@suse.de>
12341
12342         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12343
12344 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12345
12346         [BZ #18977]
12347         * math/bits/mathcalls.h
12348         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12349         not declare.
12350         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12351         Likewise.
12352         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12353         Likewise.
12354         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12355         Likewise.
12356         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12357         Likewise.
12358         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12359         Likewise.
12360         * conform/data/math.h-data
12361         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12362         function.
12363         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12364         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12365         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12366         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12367         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12368         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12369         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12370         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12371         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12372         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12373         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12374
12375         [BZ #6803]
12376         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12377         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12378         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12379         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12380         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12381         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12382         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12383         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12384         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12385         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12386         Likewise.
12387         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12388         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12389         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12390         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12391         long_double_symbol calls.
12392         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12393         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12394         strong alias of __ldexpl.
12395         (scalbnl): Define using long_double_symbol.
12396         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12397         Remove alias.
12398         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12399         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12400         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12401         (scalbln_test_data): Add more errno expectations.
12402
12403 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12404
12405         Cache the host port like we cache the task port.  This way we do not
12406         need to call the kernel just to get the port.  Furthermore, we no
12407         longer increase the reference count on every invocation of
12408         `mach_host_self'.
12409
12410         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12411         Protect declarations against the macro expansion.
12412         * mach/mach_init.c (__mach_host_self_): New variable.
12413         (mach_init): Initialize `__mach_host_self_'.
12414         * mach/mach_init.h (__mach_host_self_): New declaration.
12415         (__mach_host_self, mach_host_self): New macros.
12416         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12417         Release reference.
12418
12419 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12420
12421         [BZ #4404]
12422         * po/de.po: Update from Translation Project.
12423
12424         [BZ #16415]
12425         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12426         (__expm1l): Remove code to handle positive infinity and overflow.
12427         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12428         variable.
12429         (__expm1l): Remove code to handle positive infinity and overflow.
12430
12431 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12432             Paul Pluzhnikov  <ppluzhnikov@google.com>
12433
12434         [BZ #18872]
12435         * stdio-common/Makefile (tst-printf-bz18872): New test.
12436         (tst-printf-bz18872-mem.out): Likewise.
12437         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12438         * stdio-common/vfprintf.c: Fix memory leaks.
12439
12440 2015-09-16  Andreas Schwab  <schwab@suse.de>
12441
12442         [BZ #17244]
12443         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12444         Remove extra va_start/va_end calls.
12445
12446         [BZ #17243]
12447         * posix/execl.c (execl): Add missing va_end.
12448         * posix/execle.c (execle): Likewise.
12449         * posix/execlp.c (execlp): Likewise.
12450
12451 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12452
12453         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12454         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12455
12456 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12457
12458         [BZ #18967]
12459         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12460         undefine around includes of <bits/mathcalls.h>.
12461         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12462         not declare function.
12463         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12464         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12465         (scalb): Likewise.
12466         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12467         not define macro.
12468         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12469         variable.
12470         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12471         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12472         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12473
12474         [BZ #18857]
12475         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12476         return non-finite argument without doing ordered comparisons on
12477         it.
12478
12479         [BZ #16296]
12480         * math/fenv.h (fegetround): Use __attribute_pure__.
12481         * include/fenv.h (__fegetround): Likewise.
12482
12483         [BZ #18595]
12484         * math/s_ctan.c (__ctan): Force underflow exception for results
12485         whose real or imaginary part has small absolute value.
12486         * math/s_ctanf.c (__ctanf): Likewise.
12487         * math/s_ctanh.c (__ctanh): Likewise.
12488         * math/s_ctanhf.c (__ctanhf): Likewise.
12489         * math/s_ctanhl.c (__ctanhl): Likewise.
12490         * math/s_ctanl.c (__ctanl): Likewise.
12491         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12492         and ctanh.  Add more tests of ctan and ctanh.
12493
12494         [BZ #15918]
12495         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12496         handling of cases where one argument is an infinity.
12497
12498         [BZ #18875]
12499         [BZ #18966]
12500         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12501         (MO): New macro.
12502         (__ieee754_exp10): For small results, force underflow exception
12503         and remove excess range and precision from return value.
12504         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12505         (MO): New macro.
12506         (__ieee754_exp10f): For small results, force underflow exception
12507         and remove excess range and precision from return value.
12508         * math/auto-libm-test-in: Add more tests of exp10.
12509         * math/auto-libm-test-out: Regenerated.
12510
12511 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12512
12513         [BZ #18875]
12514         [BZ #18961]
12515         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12516         (MO): New macro.
12517         (__ieee754_exp): For small results, force underflow exception and
12518         remove excess range and precision from return value.
12519         (__exp_finite): Likewise.
12520         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12521         (MO): New macro.
12522         (__ieee754_expf): For small results, force underflow exception and
12523         remove excess range and precision from return value.
12524         (__expf_finite): Likewise.
12525         * math/auto-libm-test-in: Add more tests of exp.
12526         * math/auto-libm-test-out: Regenerated.
12527
12528         [BZ #16521]
12529         [BZ #18875]
12530         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12531         small results.
12532         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12533         (MO): New macro.
12534         (__ieee754_exp2): For small results, force underflow exception and
12535         remove excess range and precision from return value.
12536         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12537         (MO): New macro.
12538         (__ieee754_exp2f): For small results, force underflow exception
12539         and remove excess range and precision from return value.
12540         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12541         (MO): New macro.
12542         (__ieee754_exp2l): Force underflow exception for small results.
12543         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12544         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12545         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12546         (MO): New macro.
12547         (__ieee754_exp2l): Force underflow exception for small results.
12548         * math/auto-libm-test-in: Add more tests or exp2.
12549         * math/auto-libm-test-out: Regenerated.
12550
12551 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12552
12553         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12554
12555         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12556         /dev/null.
12557
12558 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12559
12560         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12561         io fs process)): Drop spurious backslash.
12562
12563 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12564
12565         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12566         Use sysinfo system call instead of parsing /proc/meminfo.
12567         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12568         Likewise.
12569
12570 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12571
12572         [BZ #16985]
12573         * programs/localedef.c (main): Display argv[remaining] when
12574         output_path is NULL.
12575
12576 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12579         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12580         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12581         tanh.
12582         * math/auto-libm-test-out: Regenerated.
12583         * sysdeps/i386/fpu/libm-test-ulps: Update.
12584         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12585         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12587
12588 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12589
12590         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12591         Use 'override' keyword to freeze the value here, preventing
12592         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12593
12594 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12595
12596         [BZ #14912]
12597         * sysdeps/aarch64/bits/atomic.h: Move to ...
12598         * sysdeps/aarch64/atomic-machine.h: ...here.
12599         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12600         _AARCH64_ATOMIC_MACHINE_H.
12601         * sysdeps/alpha/bits/atomic.h: Move to ...
12602         * sysdeps/alpha/atomic-machine.h: ...here.
12603         * sysdeps/arm/bits/atomic.h: Move to ...
12604         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12605         * bits/atomic.h: Move to ...
12606         * sysdeps/generic/atomic-machine.h: ...here.
12607         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12608         * sysdeps/i386/bits/atomic.h: Move to ...
12609         * sysdeps/i386/atomic-machine.h: ...here.
12610         * sysdeps/ia64/bits/atomic.h: Move to ...
12611         * sysdeps/ia64/atomic-machine.h: ...here.
12612         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12613         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12614         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12615         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12616         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12617         * sysdeps/microblaze/bits/atomic.h: Move to ...
12618         * sysdeps/microblaze/atomic-machine.h: ...here.
12619         * sysdeps/mips/bits/atomic.h: Move to ...
12620         * sysdeps/mips/atomic-machine.h: ...here.
12621         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12622         * sysdeps/powerpc/bits/atomic.h: Move to ...
12623         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12624         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12625         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12626         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12627         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12628         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12629         <atomic-machine.h> instead of <bits/atomic.h>.
12630         * sysdeps/s390/bits/atomic.h: Move to ...
12631         * sysdeps/s390/atomic-machine.h: ...here.
12632         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12633         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12634         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12635         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12636         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12637         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12638         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12639         * sysdeps/tile/bits/atomic.h: Move to ...
12640         * sysdeps/tile/atomic-machine.h: ...here.
12641         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12642         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12643         <sysdeps/tile/atomic-machine.h> instead of
12644         <sysdeps/tile/bits/atomic.h>.
12645         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12646         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12647         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12648         <sysdeps/tile/atomic-machine.h> instead of
12649         <sysdeps/tile/bits/atomic.h>.
12650         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12651         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12652         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12653         <sysdeps/arm/atomic-machine.h> instead of
12654         <sysdeps/arm/bits/atomic.h>.
12655         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12656         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12657         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12658         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12659         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12660         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12661         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12662         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12663         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12664         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12665         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12666         * sysdeps/x86_64/bits/atomic.h: Move to ...
12667         * sysdeps/x86_64/atomic-machine.h: ...here.
12668         * include/atomic.h: Include <atomic-machine.h> instead of
12669         <bits/atomic.h>.
12670
12671         * sysdeps/mips/mips32/libm-test-ulps: Update.
12672         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12673
12674         [BZ #18952]
12675         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12676         not convert non-integer negative arguments to int to determine the
12677         value of signgam.
12678         * math/auto-libm-test-in: Add more tests of lgamma.
12679         * math/auto-libm-test-out: Regenerated.
12680
12681         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12682         cosh, csqrt, erfc, expm1 and lgamma.
12683         * math/auto-libm-test-out: Regenerated.
12684         * sysdeps/i386/fpu/libm-test-ulps: Update.
12685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12686
12687 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12688
12689         [BZ #2542]
12690         [BZ #2543]
12691         [BZ #2558]
12692         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12693         __lgamma_neg for arguments from -28.0 to -2.0.
12694         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12695         __lgamma_negf for arguments from -15.0 to -2.0.
12696         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12697         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12698         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12699         Call __lgamma_negl for arguments from -33.0 to -2.0.
12700         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12701         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12702         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12703         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12704         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12705         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12706         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12707         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12708         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12709         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12710         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12711         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12712         (__lgamma_neg): Likewise.
12713         (__lgamma_negl): Likewise.
12714         (__lgamma_product): Likewise.
12715         (__lgamma_productl): Likewise.
12716         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12717         * math/auto-libm-test-in: Add more tests of lgamma.
12718         * math/auto-libm-test-out: Regenerated.
12719         * sysdeps/i386/fpu/libm-test-ulps: Update.
12720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12721
12722 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12723
12724         [BZ #18675]
12725         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12726
12727 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12728
12729         [BZ #14912]
12730         * bits/libc-lock.h: Move to ...
12731         * sysdeps/generic/libc-lock.h: ...here.
12732         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12733         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12734         * sysdeps/mach/hurd/libc-lock.h: ...here.
12735         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12736         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12737         * sysdeps/mach/bits/libc-lock.h: Move to ...
12738         * sysdeps/mach/libc-lock.h: ...here.
12739         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12740         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12741         * sysdeps/nptl/libc-lock.h: ...here.
12742         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12743         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12744         * sysdeps/nptl/libc-lockP.h: ...here.
12745         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12746         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12747         <bits/libc-lock.h>.
12748         * dirent/scandir-tail.c: Likewise.
12749         * dlfcn/dlerror.c: Likewise.
12750         * elf/dl-close.c: Likewise.
12751         * elf/dl-iteratephdr.c: Likewise.
12752         * elf/dl-lookup.c: Likewise.
12753         * elf/dl-open.c: Likewise.
12754         * elf/dl-support.c: Likewise.
12755         * elf/dl-writev.h: Likewise.
12756         * elf/rtld.c: Likewise.
12757         * grp/fgetgrent.c: Likewise.
12758         * gshadow/fgetsgent.c: Likewise.
12759         * gshadow/sgetsgent.c: Likewise.
12760         * iconv/gconv_conf.c: Likewise.
12761         * iconv/gconv_db.c: Likewise.
12762         * iconv/gconv_dl.c: Likewise.
12763         * iconv/gconv_int.h: Likewise.
12764         * iconv/gconv_trans.c: Likewise.
12765         * include/link.h: Likewise.
12766         * inet/getnameinfo.c: Likewise.
12767         * inet/getnetgrent.c: Likewise.
12768         * inet/getnetgrent_r.c: Likewise.
12769         * intl/bindtextdom.c: Likewise.
12770         * intl/dcigettext.c: Likewise.
12771         * intl/finddomain.c: Likewise.
12772         * intl/gettextP.h: Likewise.
12773         * intl/loadmsgcat.c: Likewise.
12774         * intl/localealias.c: Likewise.
12775         * intl/textdomain.c: Likewise.
12776         * libidn/idn-stub.c: Likewise.
12777         * libio/libioP.h: Likewise.
12778         * locale/duplocale.c: Likewise.
12779         * locale/freelocale.c: Likewise.
12780         * locale/newlocale.c: Likewise.
12781         * locale/setlocale.c: Likewise.
12782         * login/getutent_r.c: Likewise.
12783         * login/getutid_r.c: Likewise.
12784         * login/getutline_r.c: Likewise.
12785         * login/utmp-private.h: Likewise.
12786         * login/utmpname.c: Likewise.
12787         * malloc/mtrace.c: Likewise.
12788         * misc/efgcvt.c: Likewise.
12789         * misc/error.c: Likewise.
12790         * misc/fstab.c: Likewise.
12791         * misc/getpass.c: Likewise.
12792         * misc/mntent.c: Likewise.
12793         * misc/syslog.c: Likewise.
12794         * nis/nis_call.c: Likewise.
12795         * nis/nis_callback.c: Likewise.
12796         * nis/nss-default.c: Likewise.
12797         * nis/nss_compat/compat-grp.c: Likewise.
12798         * nis/nss_compat/compat-initgroups.c: Likewise.
12799         * nis/nss_compat/compat-pwd.c: Likewise.
12800         * nis/nss_compat/compat-spwd.c: Likewise.
12801         * nis/nss_nis/nis-alias.c: Likewise.
12802         * nis/nss_nis/nis-ethers.c: Likewise.
12803         * nis/nss_nis/nis-grp.c: Likewise.
12804         * nis/nss_nis/nis-hosts.c: Likewise.
12805         * nis/nss_nis/nis-network.c: Likewise.
12806         * nis/nss_nis/nis-proto.c: Likewise.
12807         * nis/nss_nis/nis-pwd.c: Likewise.
12808         * nis/nss_nis/nis-rpc.c: Likewise.
12809         * nis/nss_nis/nis-service.c: Likewise.
12810         * nis/nss_nis/nis-spwd.c: Likewise.
12811         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12812         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12813         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12814         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12815         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12816         * nis/nss_nisplus/nisplus-network.c: Likewise.
12817         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12818         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12819         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12820         * nis/nss_nisplus/nisplus-service.c: Likewise.
12821         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12822         * nis/ypclnt.c: Likewise.
12823         * nptl/libc_pthread_init.c: Likewise.
12824         * nss/getXXbyYY.c: Likewise.
12825         * nss/getXXent.c: Likewise.
12826         * nss/getXXent_r.c: Likewise.
12827         * nss/nss_db/db-XXX.c: Likewise.
12828         * nss/nss_db/db-netgrp.c: Likewise.
12829         * nss/nss_db/nss_db.h: Likewise.
12830         * nss/nss_files/files-XXX.c: Likewise.
12831         * nss/nss_files/files-alias.c: Likewise.
12832         * nss/nsswitch.c: Likewise.
12833         * posix/regex_internal.h: Likewise.
12834         * posix/wordexp.c: Likewise.
12835         * pwd/fgetpwent.c: Likewise.
12836         * resolv/res_hconf.c: Likewise.
12837         * resolv/res_libc.c: Likewise.
12838         * shadow/fgetspent.c: Likewise.
12839         * shadow/lckpwdf.c: Likewise.
12840         * shadow/sgetspent.c: Likewise.
12841         * socket/opensock.c: Likewise.
12842         * stdio-common/reg-modifier.c: Likewise.
12843         * stdio-common/reg-printf.c: Likewise.
12844         * stdio-common/reg-type.c: Likewise.
12845         * stdio-common/vfprintf.c: Likewise.
12846         * stdio-common/vfscanf.c: Likewise.
12847         * stdlib/abort.c: Likewise.
12848         * stdlib/cxa_atexit.c: Likewise.
12849         * stdlib/fmtmsg.c: Likewise.
12850         * stdlib/random.c: Likewise.
12851         * stdlib/setenv.c: Likewise.
12852         * string/strsignal.c: Likewise.
12853         * sunrpc/auth_none.c: Likewise.
12854         * sunrpc/bindrsvprt.c: Likewise.
12855         * sunrpc/create_xid.c: Likewise.
12856         * sunrpc/key_call.c: Likewise.
12857         * sunrpc/rpc_thread.c: Likewise.
12858         * sysdeps/arm/backtrace.c: Likewise.
12859         * sysdeps/generic/ldsodefs.h: Likewise.
12860         * sysdeps/generic/stdio-lock.h: Likewise.
12861         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12862         * sysdeps/i386/backtrace.c: Likewise.
12863         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12864         * sysdeps/m68k/backtrace.c: Likewise.
12865         * sysdeps/mach/hurd/cthreads.c: Likewise.
12866         * sysdeps/mach/hurd/dirstream.h: Likewise.
12867         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12868         * sysdeps/nptl/malloc-machine.h: Likewise.
12869         * sysdeps/nptl/stdio-lock.h: Likewise.
12870         * sysdeps/posix/dirstream.h: Likewise.
12871         * sysdeps/posix/getaddrinfo.c: Likewise.
12872         * sysdeps/posix/system.c: Likewise.
12873         * sysdeps/pthread/aio_suspend.c: Likewise.
12874         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12875         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12876         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12877         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12878         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12879         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12880         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12881         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12882         * sysdeps/unix/sysv/linux/system.c: Likewise.
12883         * sysdeps/x86_64/backtrace.c: Likewise.
12884         * time/alt_digit.c: Likewise.
12885         * time/era.c: Likewise.
12886         * time/tzset.c: Likewise.
12887         * wcsmbs/wcsmbsload.c: Likewise.
12888         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12889         instead of <bits/libc-lock.h> in comment.
12890
12891 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12892
12893         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12894         Only use .set mips2 if the current ISA is below mips2.
12895         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12896         Likewise.
12897         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12898         mips32r2 if the current ISA is below mips32r2.
12899         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12900         (TLS_IE): Updated to use the TLD_RDHWR macro.
12901         (TLS_LE): Likewise.
12902         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12903         __ASSEMBLER__ condition.
12904
12905 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12906
12907         Fix parallel build of before-compile targets.
12908
12909         * sysdeps/mach/Makefile ($(patsubst
12910         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12911         mach-before-compile target.
12912         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12913         io fs process)): Move rule to dedicated hurd-before-compile target.
12914
12915 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12916
12917         Fix rules generating headers in hurd/ and mach/ when initial make call
12918         has subdir= explicitly set.
12919
12920         * sysdeps/mach/Makefile ($(patsubst
12921         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12922         calling $(MAKE).
12923         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12924         io fs process)): Force subdir to hurd when calling $(MAKE).
12925         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12926         subdir to mach when calling $(MAKE).
12927
12928 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12929
12930         Check sysheaders when looking for Mach and Hurd headers
12931
12932         * sysdeps/mach/configure.ac: Add sysheaders check.
12933         * sysdeps/mach/configure: Regenerate.
12934         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12935         * sysdeps/mach/hurd/configure: Regenerate.
12936
12937 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12938
12939         [BZ #18921]
12940         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12941         Fix inverted sense of test of 'o_directory_works' value.
12942         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12943         Bernhard Voelker <mail@bernhard-voelker.de>.
12944
12945 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12946
12947         [BZ #14912]
12948         * bits/linkmap.h: Move to ...
12949         * sysdeps/generic/linkmap.h: ...here.
12950         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12951         * sysdeps/aarch64/linkmap.h: ...here.
12952         * sysdeps/arm/bits/linkmap.h: Move to ...
12953         * sysdeps/arm/linkmap.h: ...here.
12954         * sysdeps/hppa/bits/linkmap.h: Move to ...
12955         * sysdeps/hppa/linkmap.h: ...here.
12956         * sysdeps/ia64/bits/linkmap.h: Move to ...
12957         * sysdeps/ia64/linkmap.h: ...here.
12958         * sysdeps/mips/bits/linkmap.h: Move to ...
12959         * sysdeps/mips/linkmap.h: ...here.
12960         * sysdeps/s390/bits/linkmap.h: Move to ...
12961         * sysdeps/s390/linkmap.h: ...here.
12962         * sysdeps/sh/bits/linkmap.h: Move to ...
12963         * sysdeps/sh/linkmap.h: ...here.
12964         * sysdeps/x86/bits/linkmap.h: Move to ...
12965         * sysdeps/x86/linkmap.h: ...here.
12966         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12967
12968 2015-09-04  Andreas Schwab  <schwab@suse.de>
12969
12970         [BZ #18635]
12971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12972         (__makecontext): Terminate FDE before return label.
12973         (__novec_makecontext): Likewise.
12974
12975 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12976
12977         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12978         first member of struct sv in syscall macro.
12979
12980 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12981
12982         [BZ #14912]
12983         * bits/stdio-lock.h: Move to ...
12984         * sysdeps/generic/stdio-lock.h: ...here.
12985         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12986         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12987         * sysdeps/nptl/stdio-lock.h: ...here.
12988         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12989         * include/libio.h: Include <stdio-lock.h> instead of
12990         <bits/stdio-lock.h>.
12991         * sysdeps/nptl/fork.c: Likewise.
12992         * sysdeps/pthread/flockfile.c: Likewise.
12993         * sysdeps/pthread/ftrylockfile.c: Likewise.
12994         * sysdeps/pthread/funlockfile.c: Likewise.
12995
12996         [BZ #14912]
12997         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12998         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12999         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
13000         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
13001         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
13002         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
13003         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
13004
13005 2015-09-03  Roland McGrath  <roland@hack.frob.com>
13006
13007         * elf/Makefile (test-xfail-tst-protected1a): New variable.
13008         (test-xfail-tst-protected1b): New variable.
13009
13010 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
13011
13012         [BZ #14912]
13013         * bits/libc-tsd.h: Move to ...
13014         * sysdeps/generic/libc-tsd.h: ...here.
13015         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
13016         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
13017         * sysdeps/mach/hurd/libc-tsd.h: ...here.
13018         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
13019         * include/ctype.h: Include <libc-tsd.h> instead of
13020         <bits/libc-tsd.h>.
13021         * include/rpc/rpc.h: Likewise.
13022         * locale/localeinfo.h: Likewise.
13023         * sunrpc/rpc_thread.c: Likewise.
13024         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
13025         * sysdeps/nptl/malloc-machine.h: Likewise.
13026
13027         * Makefile (headers): Remove bits/libc-lock.h.
13028         * libio/Makefile (headers): Remove bits/stdio-lock.h.
13029
13030         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
13031         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
13032         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
13033         <bits/stdio-lock.h>.
13034         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
13035         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
13036
13037 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
13038
13039         [BZ #18757]
13040         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
13041         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
13042         BZ #18757.
13043
13044 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
13045
13046         * malloc/mtrace.pl: Filter out NULL entries.
13047
13048 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
13049
13050         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
13051         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
13052         macro.
13053
13054         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
13055         (TCP_CC_INFO): Likewise.
13056         (TCP_SAVE_SYN): Likewise.
13057         (TCP_SAVED_SYN): Likewise.
13058
13059 2015-08-31  Brett Neumeier <brett@neumeier.us>
13060
13061         [BZ #18870]
13062         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
13063
13064 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         [BZ #18873]
13067         Fix broken overflow check in posix_fallocate
13068         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
13069         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
13070         Fix parenthesization typo.
13071
13072 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
13073
13074         [BZ #18887]
13075         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
13076         tst-mntent-blank-passno.
13077         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
13078         * misc/tst-mntent-blank-corrupt.c: New test.
13079         * misc/tst-mntent-blank-passno.c: New test ripped from ...
13080         * misc/tst-mntent.c (do_test): ... here.
13081
13082 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
13083
13084         [BZ #4404]
13085         * po/de.po: Fix SIGALRM typo.
13086
13087 2015-08-28  James Perkins  <james@loowit.net>
13088
13089         * time/tst-strptime2.c (tests): Replace short list of test
13090         strings for strptime %z specifier with code which exhaustively
13091         tests every combination of sign and 0 to 5 digits. Tests for
13092         rejection of invalid strings.
13093
13094 2015-08-28  James Perkins  <james@loowit.net>
13095
13096         [BZ #16141]
13097         * time/strptime_l.c (__strptime_internal): Fix %z minutes
13098         calculation, removing incorrect decimal time rounding, so that
13099         all minute values result in a valid seconds value.
13100         * time/strptime_l.c (__strptime_internal): Extend %z time zone
13101         offset range limits to UTC-99:59 through UTC+99:59 to parse
13102         current and historical use cases.
13103         * time/tst-strptime2.c (tests): Modify and add tests for the
13104         strptime %z input field descriptor, specifically conversion of
13105         minutes to seconds and validating an offset range of -9959 to
13106         +9959.
13107
13108 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13109             Dmitry V. Levin  <ldv@altlinux.org>
13110
13111         [BZ #18877]
13112         * posix/Makefile (tests): Add tst-mmap-offset.
13113         * posix/tst-mmap.c: New file.
13114         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
13115         offset calculation for negative values.
13116
13117 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13118
13119         * sysdeps/i386/init-arch.h: New file.
13120         * sysdeps/i386/i586/init-arch.h: Likewise.
13121         * sysdeps/i386/i686/init-arch.h: Likewise.
13122         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
13123         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
13124         * sysdeps/x86/cpu-features.h (bit_I586): New.
13125         (bit_I686): Likewise.
13126         (bit_CX8): Likewise.
13127         (bit_CMOV): Likewise.
13128         (index_CX8): Likewise.
13129         (index_CMOV): Likewise.
13130         (index_I586): Likewise.
13131         (index_I686): Likewise.
13132         (reg_CX8): Likewise.
13133         (reg_CMOV): Likewise.
13134         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
13135         available at compile-time.
13136         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
13137         available at compile-time.
13138         * sysdeps/x86/init-arch.h (USE_I586): New macro.
13139         (USE_I686): Likewise.
13140
13141 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13142
13143         * sysdeps/i386/bcopy.S: New file.
13144         * sysdeps/i386/bzero.S: Likewise.
13145         * sysdeps/i386/memcpy.S: Likewise.
13146         * sysdeps/i386/memmove.S: Likewise.
13147         * sysdeps/i386/mempcpy.S: Likewise.
13148         * sysdeps/i386/memset.S: Likewise.
13149         * sysdeps/i386/bzero.c: Removed.
13150         * sysdeps/i386/memset.c: Likewise.
13151         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
13152         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
13153         * sysdeps/i386/i586/memset_chk.S: Likewise.
13154         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
13155         * sysdeps/i386/memcpy_chk.S: Here.
13156         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
13157         * sysdeps/i386/memmove_chk.S: Here.
13158         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
13159         * sysdeps/i386/mempcpy_chk.S: Likewise.
13160         * sysdeps/i386/i686/memset_chk.S: Moved to ...
13161         * sysdeps/i386/memset_chk.S: Likewise.
13162
13163 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
13164
13165         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
13166         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
13167         file, move DIAG_POP_NEEDS_COMMENT to end of file.
13168         * soft-fp/fmadf4.c: Ditto.
13169         * soft-fp/fmatf4.c: Ditto.
13170
13171 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13172
13173         * sysdeps/i386/i586/Implies: Removed.
13174         * sysdeps/i386/i686/Implies: Likewise.
13175
13176 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13177
13178         * sysdeps/i386/i486/strlen.S: Moved to ...
13179         * sysdeps/i386/strlen.S: Here.
13180
13181 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13182
13183         * sysdeps/i386/i486/strcat.S: Moved to ...
13184         * sysdeps/i386/strcat.S: Here.
13185
13186 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13187
13188         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
13189         * sysdeps/i386/pthread_spin_trylock.S: Here.
13190         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
13191         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
13192
13193 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13194
13195         * sysdeps/i386/i486/string-inlines.c: Moved to ...
13196         * sysdeps/i386/string-inlines.c: Here.
13197
13198 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13199
13200         * sysdeps/i386/i486/htonl.S: Moved ...
13201         * sysdeps/i386/htonl.S: here.
13202
13203 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13204
13205         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13206         * sysdeps/i386/bits/atomic.h: Here.
13207
13208 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13209
13210         * sysdeps/i386/i486/Versions: Removed.
13211
13212 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13213
13214         [BZ #2898]
13215         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13216         Based on patch by Aurelien Jarno.
13217
13218 2015-08-26  Stan Shebs  <stanshebs@google.com>
13219
13220         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13221         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13222
13223 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13224
13225         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13226         * sysdeps/powerpc/dl-procinfo.c:
13227         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13228         feature so it shows when LD_SHOW_AUXV=1.
13229
13230 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13231
13232         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13233         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13234         definition.  ISA 2.07B no longer requires full sync.
13235
13236 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13237
13238         [BZ #18863]
13239         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13240         (si_call_addr): Define.
13241         (si_syscall): Define.
13242         (si_arch): Define.
13243
13244 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13245
13246         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13247         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13248         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13249         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13250         (__memset_zero_constant_len_parameter): New.
13251         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13252         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13253         (__memset_zero_constant_len_parameter): Don't define if
13254         __memset_chk or USE_AS_BZERO are defined.
13255
13256         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13257         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13258         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13259
13260         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13261         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13262         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13263         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13264         comments.
13265         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13266         -mno-mmx for $(all-rtld-routines).
13267         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13268         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13269         i386.
13270
13271 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13272
13273         * sysdeps/generic/unwind.h
13274         (_Unwind_Word): Use __mode__(__unwind_word__)
13275         instead of __mode__(__word__).
13276         (_Unwind_Sword): Likewise.
13277
13278         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13279         (MAX_NEEDED_INPUT): New define.
13280         (MAX_NEEDED_OUTPUT): New define.
13281
13282         * NEWS: New item for IBM z13 string optimizations.
13283
13284         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13285         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13286         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13287         * sysdeps/s390/multiarch/Makefile
13288         (sysdep_routines): Add memrchr functions.
13289         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13290         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13291
13292         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13293         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13294         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13295         * sysdeps/s390/multiarch/Makefile
13296         (sysdep_routines): Add wmemcmp functions.
13297         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13298         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13299         * benchtests/bench-wmemcmp.c: New File.
13300         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13301
13302         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13303         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13304         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13305         * sysdeps/s390/multiarch/Makefile
13306         (sysdep_routines): Add wmemset functions.
13307         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13308         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13309         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13310         * string/test-memset.c: Add wmemset support.
13311         * wcsmbs/test-wmemset.c: New File.
13312         * wcsmbs/Makefile (strop-tests): Add wmemset.
13313         * benchtests/bench-memset.c: Add wmemset support.
13314         * benchtests/bench-wmemset.c: New File.
13315         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13316
13317         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13318         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13319         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13320         * sysdeps/s390/multiarch/Makefile
13321         (sysdep_routines): Add memccpy functions.
13322         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13323         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13324         * string/memccpy.c: Use MEMCCPY if defined.
13325
13326         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13327         * sysdeps/s390/multiarch/memchr.c: Likewise.
13328         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13329         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13330         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13331         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13332         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13333         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13334         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13335         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13336         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13337         and rawmemchr functions.
13338         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13339         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13340         and wmemchr.
13341         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13342         * string/test-memchr.c: Add wmemchr support.
13343         * wcsmbs/test-wmemchr.c: New File.
13344         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13345         * benchtests/bench-memchr.c: Add wmemchr support.
13346         * benchtests/bench-wmemchr.c: New File.
13347         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13348
13349         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13350         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13351         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13352         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13353         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13354         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13355         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13356         wcscspn functions.
13357         * sysdeps/s390/multiarch/ifunc-impl-list.c
13358         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13359         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13360         * string/test-strcspn.c: Add wcscspn support.
13361         * wcsmbs/test-wcscspn.c: New File.
13362         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13363         * benchtests/bench-strcspn.c: Add wcscspn support.
13364         * benchtests/bench-wcscspn.c: New File.
13365         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13366
13367         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13368         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13369         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13370         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13371         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13372         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13373         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13374         wcspbrk functions.
13375         * sysdeps/s390/multiarch/ifunc-impl-list.c
13376         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13377         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13378         * string/test-strpbrk.c: Add wcspbrk support.
13379         * wcsmbs/test-wcspbrk.c: New File.
13380         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13381         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13382         * benchtests/bench-wcspbrk.c: New File.
13383         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13384
13385         * sysdeps/s390/multiarch/strspn-c.c: New File.
13386         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13387         * sysdeps/s390/multiarch/strspn.c: Likewise.
13388         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13389         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13390         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13391         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13392         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13393         wcsspn functions.
13394         * sysdeps/s390/multiarch/ifunc-impl-list.c
13395         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13396         * string/test-strspn.c: Add wcsspn support.
13397         * wcsmbs/test-wcsspn.c: New File.
13398         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13399         * benchtests/bench-strspn.c: Add wcsspn support.
13400         * benchtests/bench-wcsspn.c: New File.
13401         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13402
13403         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13404         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13405         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13406         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13407         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13408         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13409         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13410         wcsrchr functions.
13411         * sysdeps/s390/multiarch/ifunc-impl-list.c
13412         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13413         * benchtests/bench-wcsrchr.c: New File.
13414         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13415
13416         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13417         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13418         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13419         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13420         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13421         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13422         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13423         wcschrnul functions.
13424         * sysdeps/s390/multiarch/ifunc-impl-list.c
13425         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13426         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13427         * string/test-strchr.c: Add wcschrnul support.
13428         * wcsmbs/test-wcschrnul.c: New File.
13429         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13430         * benchtests/bench-strchr.c: Add wcschrnul support.
13431         * benchtests/bench-wcschrnul.c: New File.
13432         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13433
13434         * sysdeps/s390/multiarch/strchr-c.c: New File.
13435         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13436         * sysdeps/s390/multiarch/strchr.c: Likewise.
13437         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13438         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13439         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13440         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13441         wcschr functions.
13442         * sysdeps/s390/multiarch/ifunc-impl-list.c
13443         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13444         * string/strchr.c (STRCHR): Define and use macro.
13445         * benchtests/bench-wcschr.c: New File.
13446         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13447
13448         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13449         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13450         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13451         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13452         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13453         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13454         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13455         wcsncmp functions.
13456         * sysdeps/s390/multiarch/ifunc-impl-list.c
13457         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13458         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13459         * benchtests/bench-strncmp.c: Add wcsncmp support.
13460         * benchtests/bench-wcsncmp.c: New File.
13461         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13462
13463         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13464         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13465         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13466         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13467         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13468         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13469         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13470         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13471         wcscmp functions.
13472         * sysdeps/s390/multiarch/ifunc-impl-list.c
13473         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13474         * string/strcmp.c (STRCMP): Define and use macro.
13475         * benchtests/bench-wcscmp.c: New File.
13476         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13477         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13478         instead of _HAVE_STRING_ARCH_memchr.
13479
13480         * sysdeps/s390/multiarch/strncat-c.c: New File.
13481         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13482         * sysdeps/s390/multiarch/strncat.c: Likewise.
13483         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13484         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13485         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13486         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13487         wcsncat functions.
13488         * sysdeps/s390/multiarch/ifunc-impl-list.c
13489         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13490         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13491         * string/test-strncat.c: Add wcsncat support.
13492         * wcsmbs/test-wcsncat.c: New File.
13493         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13494         * benchtests/bench-strncat.c: Add wcsncat support.
13495         * benchtests/bench-wcsncat.c: New File.
13496         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13497
13498         * sysdeps/s390/multiarch/strcat-c.c: New File.
13499         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13500         * sysdeps/s390/multiarch/strcat.c: Likewise.
13501         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13502         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13503         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13504         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13505         wcscat functions.
13506         * sysdeps/s390/multiarch/ifunc-impl-list.c
13507         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13508         * string/strcat.c (STRCAT): Define and use macro.
13509         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13510         * string/test-strcat.c: Add wcscat support.
13511         * wcsmbs/test-wcscat.c: New File.
13512         * wcsmbs/Makefile (strop-tests): Add wcscat.
13513         * benchtests/bench-strcat.c: Add wcscat support.
13514         * benchtests/bench-wcscat.c: New File.
13515         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13516
13517         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13518         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13519         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13520         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13521         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13522         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13523         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13524         wcpncpy functions.
13525         * sysdeps/s390/multiarch/ifunc-impl-list.c
13526         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13527         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13528         * string/test-stpncpy.c: Add wcpncpy support.
13529         * wcsmbs/test-wcpncpy.c: New File.
13530         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13531         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13532         * benchtests/bench-wcpncpy.c: New File.
13533         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13534
13535         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13536         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13537         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13538         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13539         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13540         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13541         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13542         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13543         wcsncpy functions.
13544         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13545         * sysdeps/s390/multiarch/ifunc-impl-list.c
13546         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13547         * string/test-strncpy.c: Add wcsncpy support.
13548         * wcsmbs/test-wcsncpy.c: New File.
13549         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13550         * benchtests/bench-strncpy.c: Add wcsncpy support.
13551         * benchtests/bench-wcsncpy.c: New File.
13552         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13553
13554         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13555         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13556         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13557         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13558         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13559         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13560         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13561         wcpcpy functions.
13562         * string/stpcpy.c: Use STPCPY if defined.
13563         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13564         * sysdeps/s390/multiarch/ifunc-impl-list.c
13565         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13566         * string/test-stpcpy.c: Add wcpcpy support.
13567         * wcsmbs/test-wcpcpy.c: New File.
13568         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13569         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13570         * benchtests/bench-wcpcpy.c: New File.
13571         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13572
13573         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13574         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13575         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13576         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13577         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13578         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13579         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13580         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13581         wcscpy functions.
13582         * sysdeps/s390/multiarch/ifunc-impl-list.c
13583         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13584         * benchtests/bench-wcscpy.c: New File.
13585         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13586
13587         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13588         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13589         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13590         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13591         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13592         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13593         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13594         wcsnlen functions.
13595         * sysdeps/s390/multiarch/ifunc-impl-list.c
13596         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13597         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13598         * string/test-strnlen.c: Add wcsnlen support.
13599         * wcsmbs/test-wcsnlen.c: New File.
13600         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13601         * benchtests/bench-strnlen.c: Add wcsnlen support.
13602         * benchtests/bench-wcsnlen.c: New File.
13603         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13604
13605         * sysdeps/s390/multiarch/Makefile: New File.
13606         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13607         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13608         * sysdeps/s390/multiarch/strlen.c: Likewise.
13609         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13610         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13611         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13612         * string/strlen.c (STRLEN): Define and use macro.
13613         * sysdeps/s390/multiarch/ifunc-impl-list.c
13614         (IFUNC_VX_IMPL): New macro function.
13615         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13616         * benchtests/Makefile (wcsmbs-bench): New variable.
13617         (string-bench-all): Added wcsmbs-bench.
13618         * benchtests/bench-wcslen.c: New File.
13619
13620         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13621         s390_vx_libc_ifunc2): New macro function.
13622
13623         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13624         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13625         assembler support.
13626         * sysdeps/s390/configure: Regenerated.
13627
13628         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13629         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13630
13631         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13632         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13633         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13634
13635         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13636         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13637         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13638         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13639         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13640         (memcmp, bcmp): Use __memcmp_default as alias source.
13641         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13642         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13643         Rename to __memcmp_default.
13644         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13645         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13646         (memcpy): Use __memcpy_default as alias source.
13647         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13648         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13649         Rename to __memcpy_default.
13650         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13651         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13652         (memset): Use __memset_default as alias source.
13653         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13654         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13655         Rename to __memset_default.
13656         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13657         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13658         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13659         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13660         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13661         (memcmp, bcmp): Use __memcmp_default as alias source.
13662         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13663         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13664         Rename to __memcmp_default.
13665         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13666         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13667         (memcpy): Use __memcpy_default as alias source.
13668         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13669         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13670         Rename to __memcpy_default.
13671         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13672         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13673         (memset): Use __memset_default as alias source.
13674         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13675         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13676         Rename to __memset_default.
13677         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13678         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13679
13680         [BZ #18610]
13681         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13682         __ieee_instruction_pointer to __unused.
13683         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13684         __ieee_instruction_pointer.
13685         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13686         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13687         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13688         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13689         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13690         Mark dxc-field as reserved.
13691
13692 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13693
13694         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13695         if the weak reference is not null.
13696
13697 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13698
13699         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13700
13701         [BZ #11214]
13702         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13703
13704 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13705
13706         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13707         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13708         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13709         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13710         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13711         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13712         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13713         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13714         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13715         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13716         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13717         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13718         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13719         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13720         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13721         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13722         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13723         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13724
13725 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13726
13727         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13728         register other than r0 for tabort, it has special meaning.
13729         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13730         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13731         transaction before starting syscall.
13732
13733 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13734
13735         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13736
13737 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13738
13739         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13740
13741         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13742         * sysdeps/x86_64/rtld-memset.S: Likewise.
13743         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13744         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13745         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13746         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13747
13748         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13749
13750 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13751
13752         * debug/strcpy_chk.c: Improve performance.
13753         * debug/stpcpy_chk.c: Likewise.
13754         * sysdeps/x86_64/strcpy_chk.S: Remove.
13755         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13756
13757         [BZ #18240]
13758         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13759
13760 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13761
13762         [BZ #15128]
13763         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13764         ifuncmain8.
13765         (modules-names): Add ifuncmod8.
13766         ($(objpfx)ifuncmain8): New rule.
13767         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13768         <cpuid.h>.
13769         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13770         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13771         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13772         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13773         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13774         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13775         * sysdeps/x86_64/ifuncmain8.c: New file.
13776         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13777         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13778         Removed.
13779         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13780         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13781         Change rtld_savespace_sse to __glibc_unused2.
13782         (RTLD_CHECK_FOREIGN_CALL): Removed.
13783         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13784         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13785         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13786
13787 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13788
13789         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13790
13791 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13792
13793         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13794         Unconditionally set __fpcr to avoid uninialized warning.
13795         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13796
13797 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13798
13799         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13800         is corrupt.
13801
13802         * malloc/arena.c (arena_get2): Drop unused argument.
13803         (arena_lock): Adjust.
13804         (arena_get_retry): Likewise.
13805
13806 2015-08-24  Andreas Schwab  <schwab@suse.de>
13807
13808         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13809         Don't define.
13810         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13811         (__ASSUME_IPC64): Don't undef.
13812         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13813         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13814         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13815         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13816         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13817         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13818         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13819         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13820         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13821         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13822         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13823         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13824         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13825         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13826         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13827         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13828         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13829         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13830         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13831         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13832         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13833
13834 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13835
13836         * manual/Makefile (install): Only build manual when perl is available.
13837
13838 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13839
13840         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13841         '#undef memcpy' by '#undef memchr'.
13842
13843 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13844
13845         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13846         memchr not point to the internal __GI_memchr implementation.
13847
13848 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13849
13850         * timezone/Makefile (CFLAGS-zdump.c): Remove
13851         -Wno-strict-prototypes.
13852         (CFLAGS-zic.c): Likewise.
13853         (CFLAGS-ialloc.c): Likewise.
13854         (CFLAGS-scheck.c): Likewise.
13855
13856         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13857         -Wno-error=undef.
13858
13859 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         * i386/i686/multiarch/strcasestr-c.c: Removed.
13862         * x86_64/multiarch/strcasestr.c: Likewise.
13863         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13864         Remove strcasestr.
13865
13866 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13867
13868         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13869
13870         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13871         variables for high and low parts before possibly modifying them.
13872
13873 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13874
13875         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13876         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13877         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13878         of "multiarch/init-arch.h".
13879         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13880         * sysdeps/x86/init-arch.h: This.
13881
13882 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13883
13884         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13885         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13886
13887 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13888
13889         [BZ #17787]
13890         * manual/macros.texi: Add twoexp macro.
13891         * manual/filesys.texi: Fix exponents.
13892         * manual/llio.texi: Likewise.
13893         * manual/stdio.texi: Likewise.
13894
13895 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13896
13897         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13898         incorrect use.
13899
13900 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13901
13902         [BZ #18370]
13903         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13904         whose real or imaginary part has small absolute value.
13905         * math/s_csqrtf.c (__csqrtf): Likewise.
13906         * math/s_csqrtl.c (__csqrtl): Likewise.
13907         * math/auto-libm-test-in: Add more tests of csqrt.
13908         * math/auto-libm-test-out: Regenerated.
13909         * sysdeps/i386/fpu/libm-test-ulps: Update.
13910
13911 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13912
13913         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13914         __ppc_set_ppr_very_low): New functions.
13915         * manual/platform.texi: Add documentation about
13916         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13917
13918 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13919
13920         * string/stpncpy.c (stpncpy): Improve performance using
13921         __strnlen/memcpy/memset.
13922
13923 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13924
13925         [BZ #18796]
13926         * scripts/test-installation.pl: Don't add -lmvec to build options if
13927         libmvec wasn't built.
13928
13929 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13930
13931         [BZ #14341]
13932         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13933         case when there is a gap between DT_REL and DT_JMPREL sections.
13934         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13935         (LDFLAGS-tst-split-dynreloc): New.
13936         (tst-split-dynreloc-ENV): Likewise.
13937         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13938         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13939
13940 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13941
13942         [BZ #18822]
13943         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13944         attribute_hidden.
13945         (__xstat64_conv): Likewise.
13946         (__xstat32_conv): Likewise.
13947
13948 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13949
13950         [BZ #18822]
13951         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13952         Don't load %ebx when calling __setcontext.  Call __setcontext
13953         with HIDDEN_JUMPTARGET.
13954         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13955         libc_hidden_def.
13956
13957 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13958
13959         * sysdeps/i386/i686/Makefile
13960         [$(subdir) == string] (sysdep_routines): Moved to ...
13961         * sysdeps/i386/Makefile: Here.
13962         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13963         * sysdeps/i386/cacheinfo.c: Here.
13964         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13965         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13966         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13967         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13968
13969 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13970
13971         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13972         __i586__ is defined.
13973         (HAS_I686): Defined to 1 if __i686__ is defined.
13974
13975 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13976
13977         * elf/Makefile [$(have-z-execstack) = yes]
13978         (CPPFLAGS-tst-execstack.c): New variable.
13979
13980         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13981         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13982         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13983         UTMPX || _HAVE_UT_TV].
13984         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13985         UTMPX || _HAVE_UT_TV - 0].
13986
13987 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13988
13989         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13990         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13991         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13992
13993 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13994
13995         * sysdeps/powerpc/dl-procinfo.c:
13996         (_dl_powerpc_cap_flags): Added missing strings for some
13997         hwcap features.
13998         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13999
14000 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14001
14002         Port the 0x7efe...feff pattern to GCC 6.
14003         See Steve Ellcey's bug report in:
14004         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
14005         * string/memrchr.c (MEMRCHR):
14006         * string/rawmemchr.c (RAWMEMCHR):
14007         * string/strchr.c (strchr):
14008         * string/strchrnul.c (STRCHRNUL):
14009         Rewrite code to avoid issues with signed shift overflow.
14010
14011 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14012
14013         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
14014         whether cpuid is available only if HAS_CPUID is 0.
14015         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
14016         (HAS_I586): Likewise.
14017         (HAS_I686): Likewise.
14018
14019 2015-08-18  Zack Weinberg  <zackw@panix.com>
14020
14021         * misc/Versions (libc): Add GLIBC_2.23.
14022
14023 2015-08-18  Alan Modra  <amodra@gmail.com>
14024
14025         [BZ #18421]
14026         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
14027         .Lp__global.
14028         (_start): Load %dp via .Lp__global.
14029         [!SHARED]: Use .section .rodata.
14030
14031 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14032
14033         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
14034         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
14035
14036 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14037
14038         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
14039         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
14040
14041 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14042
14043         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
14044         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
14045
14046 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14047
14048         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
14049         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
14050
14051 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14052
14053         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
14054         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
14055
14056 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14057
14058         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
14059         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
14060
14061 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14062
14063         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
14064
14065 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14066
14067         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
14068         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
14069         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14070         (__ASSUME_LWS_CAS): Delete.
14071
14072 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
14073
14074         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
14075         * sysdeps/hppa/configure: Regenerated.
14076         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
14077         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
14078         * sysdeps/hppa/nptl/tls.h: Likewise.
14079
14080 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
14081
14082         [BZ #18823]
14083         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
14084         for scaling up small arguments.
14085         * math/s_csqrtf.c (__csqrtf): Likewise.
14086         * math/s_csqrtl.c (__csqrtl): Likewise.
14087         * math/auto-libm-test-in: Add more tests of csqrt.
14088         * math/auto-libm-test-out: Regenerated.
14089
14090 2015-08-17  Andreas Schwab  <schwab@suse.de>
14091
14092         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
14093         version set GLIBC_2.19.
14094
14095 2015-08-16  Zack Weinberg  <zackw@panix.com>
14096
14097         [BZ #18681]
14098         * misc/regexp.h: This interface is no longer supported.
14099         Remove all contents, leaving only an #error directive.
14100         * misc/regexp.c (loc1, loc2, locs, step, advance):
14101         Demote to compatibility symbols.
14102
14103 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
14104
14105         [BZ #18084]
14106         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
14107         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
14108         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14109         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
14110         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
14111         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
14112         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
14113         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
14114         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
14115
14116 2015-08-15  Zack Weinberg  <zackw@panix.com>
14117
14118         [BZ #18795]
14119         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
14120         buffer length is known to be too large, not if it's known to be
14121         small enough.
14122         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
14123         overflow at runtime, involving a length parameter, twice: once
14124         with a compile-time constant length parameter, once without.
14125
14126 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
14127
14128         [BZ #18824]
14129         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
14130         scaling x * y up instead of down.
14131         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14132         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14133         * math/auto-libm-test-in: Add more tests of fma.
14134         * math/auto-libm-test-out: Regenerated.
14135
14136 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
14137
14138         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14139
14140 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14141
14142         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
14143         unnecessary movq.
14144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
14145         Likewise.
14146
14147 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
14148
14149         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
14150         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
14151         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
14152         and tgamma.
14153         * math/auto-libm-test-out: Regenerated.
14154         * sysdeps/i386/fpu/libm-test-ulps: Update.
14155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14156
14157         [BZ #16520]
14158         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
14159         (__tanh): Force underflow exception for arguments with small
14160         absolute value.
14161         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
14162         (__tanhf): Force underflow exception for arguments with small
14163         absolute value.
14164         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
14165         (__tanhl): Force underflow exception for arguments with small
14166         absolute value.
14167         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
14168         (__tanhl): Force underflow exception for arguments with small
14169         absolute value.
14170         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
14171         (__tanhl): Force underflow exception for arguments with small
14172         absolute value.
14173         * math/auto-libm-test-in: Add more tests of tanh.
14174         * math/auto-libm-test-out: Regenerated.
14175         * sysdeps/i386/fpu/libm-test-ulps: Update.
14176
14177 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14178
14179         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
14180         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
14181
14182 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14183
14184         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
14185         <cpuid.h>.
14186
14187 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14188
14189         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
14190         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
14191
14192 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14193
14194         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
14195         Remove $(objpfx)init-arch.o.
14196         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
14197         init-arch.
14198         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
14199         (INIT_ARCH_EXT): Defined as empty.
14200         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14201         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14202         __init_cpu_features call.  Replace HAS_XXX with
14203         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14204         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14205         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14206         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14207         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14208         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14209         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14210         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14211         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14212         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14213         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14214         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14215         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14216         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14217         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14218         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14219         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14220         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14221         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14222         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14223         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14224         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14225         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14226         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14227         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14228         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14229         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14230         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14231         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14232         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14233         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14234         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14235         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14236         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14237         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14238         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14239
14240 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14241
14242         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14243         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14244         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14245         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14246         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14247         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14248         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14249         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14250         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14251         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14252         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14253         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14254         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14255         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14256         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14257         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14258         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14259         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14260         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14261         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14262         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14263         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14264         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14265         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14266         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14267         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14268         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14269         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14270         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14271         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14272         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14273         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14274         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14275         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14276         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14277         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14278         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14279         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14280         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14281         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14282         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14283         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14284         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14285
14286 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14287
14288         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14289         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14290         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14291         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14292         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14293         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14294         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14295         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14296         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14297         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14298         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14299         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14300         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14301         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14302         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14303         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14304         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14305         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14306         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14307         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14308         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14309         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14310         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14311         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14312         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14313         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14314         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14315         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14316         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14317         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14318         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14319         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14320         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14321         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14322         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14323         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14324         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14325         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14326         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14327         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14328         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14329         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14330         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14331
14332 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14333
14334         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14335         (dl_platform_init): Call init_cpu_features.
14336         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14337         * sysdeps/i386/i686/cacheinfo.c
14338         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14339         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14340         * sysdeps/i386/i686/multiarch/Versions: Removed.
14341         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14342         Removed.
14343         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14344         * sysdeps/unix/sysv/linux/x86/Makefile
14345         (libpthread-sysdep_routines): Remove init-arch.
14346         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14347         <sysdeps/x86_64/dl-procinfo.c> instead of
14348         sysdeps/generic/dl-procinfo.c>.
14349         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14350         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14351         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14352         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14353         [$(subdir) == elf] (tests-static): Add
14354         tst-get-cpu-features-static.
14355         * sysdeps/x86/Versions: New file.
14356         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14357         * sysdeps/x86/cpu-features.c: Likewise.
14358         * sysdeps/x86/cpu-features.h: Likewise.
14359         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14360         * sysdeps/x86/libc-start.c: Likewise.
14361         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14362         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14363         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14364         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14365         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14366         Assume USE_MULTIARCH is defined and don't check it.
14367         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14368         (is_amd): Likewise.
14369         (max_cpuid): Likewise.
14370         (intel_check_word): Likewise.
14371         (__cache_sysconf): Don't call __init_cpu_features.
14372         (__x86_preferred_memory_instruction): Removed.
14373         (init_cacheinfo): Don't call __init_cpu_features. Replace
14374         __cpu_features with GLRO(dl_x86_cpu_features).
14375         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14376         (dl_platform_init): Call init_cpu_features.
14377         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14378         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14379         * sysdeps/x86_64/multiarch/Versions: Removed.
14380         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14381         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14382         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14383         Removed.
14384         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14385
14386 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14387
14388         [BZ #18820]
14389         * libio/Makefile (test-fmemopen-mem): New test.
14390         * libio/test-fmemopen.c (do_bz18820): New test.
14391         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14392         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14393
14394 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14395
14396         [BZ #16734]
14397         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14398         (FREE_BUF): Delete.
14399         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14400         * libio/genops.c (_IO_setb): Use malloc and free directly.
14401         (_IO_default_doallocate, _IO_default_finish): Likewise.
14402         ( _IO_unbuffer_all): Likewise.
14403         ( libc_freeres_fn): Likewise.
14404         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14405         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14406         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14407         (_IO_wdefault_doallocate): Likewise.
14408
14409 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14410
14411         [BZ #18086]
14412         * sysdeps/posix/nice.c (nice): Restore old errno.
14413         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14414
14415 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14416
14417         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14418
14419 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14420
14421         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14422         __bcopy and add a weak_alias to bcopy.
14423         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14424         for static build.
14425
14426         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14427         cleanup macro usage.
14428         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14429         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14430         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14431         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14432         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14433         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14434         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14435         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14436         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14437         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14438         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14439         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14440         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14441         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14442         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14443         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14444         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14445         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14446         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14447
14448         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14449         libc_hidden_def.
14450         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14451
14452         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14453         (sysdep_routines): Add strstr-ppc64.
14454         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14455
14456 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14457
14458         [BZ #18778]
14459         * elf/Makefile (tests): Add Add tst-nodelete2.
14460         (modules-names): Add tst-nodelete2mod.
14461         (tst-nodelete2mod.so-no-z-defs): New.
14462         ($(objpfx)tst-nodelete2): Likewise.
14463         ($(objpfx)tst-nodelete2.out): Likewise.
14464         (LDFLAGS-tst-nodelete2): Likewise.
14465         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14466         out of loop through all loaded libraries.
14467         * elf/tst-nodelete2.c: New file.
14468         * elf/tst-nodelete2mod.c: Likewise.
14469         * elf/tst-znodelete-zlib.cc: Delete.
14470
14471 2015-08-11  Andreas Schwab  <schwab@suse.de>
14472
14473         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14474         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14475         (__openat64_nocancel): Likewise.
14476
14477 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14478
14479         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14480         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14481         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14482         * math/auto-libm-test-out: Regenerated.
14483         * sysdeps/i386/fpu/libm-test-ulps: Update.
14484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14485
14486 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14487
14488         [BZ #18790]
14489         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14490         threshold for returning +/- 1.
14491         * math/auto-libm-test-in: Add more tests of tanh.
14492         * math/auto-libm-test-out: Regenerated.
14493         * sysdeps/i386/fpu/libm-test-ulps: Update.
14494
14495 2015-08-10  Andreas Schwab  <schwab@suse.de>
14496
14497         [BZ #18781]
14498         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14499         MORE_OFLAGS to oflag.
14500         * io/test-lfs.c (do_test): Test openat64.
14501
14502 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14503
14504         [BZ #18789]
14505         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14506         smaller threshold for returning the argument.
14507         * math/auto-libm-test-in: Add more tests of sinh.
14508         * math/auto-libm-test-out: Regenerated.
14509         * sysdeps/i386/fpu/libm-test-ulps: Update.
14510
14511 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14512
14513         [BZ #18674]
14514         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14515         break.
14516
14517 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14518
14519         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14520         (generated): Don't add $(addprefix z.,$(tzfiles)).
14521
14522 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14523
14524         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14525         * scripts/sysd-rules.awk: Likewise.
14526
14527 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14528
14529         * iconvdata/tst-tables.sh: Change echo -n to printf.
14530         * nss/db-Makefile: Likewise.
14531         * posix/tst-getconf.sh: Likewise.
14532         * stdio-common/tst-unbputc.sh: Likewise.
14533
14534 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14535
14536         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14537         MADV_*_PAGES defines behind this feature check.
14538
14539 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14540
14541         [BZ #18480]
14542         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14543         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14544         Define.
14545         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14546         LOAD_REGS_5, LOAD_REGS_6): Update.
14547         (INTERNAL_SYSCALL): Update using new LOAD defines.
14548         (INTERNAL_SYSCALL_NCS): Likewise.
14549         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14550
14551 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14552
14553         [BZ #16734]
14554         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14555
14556 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14557
14558         [BZ #17905]
14559         * catgets/Makefile (tst-catgets-mem): New test.
14560         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14561         * catgets/open_catalog.c (__open_catalog): Likewise.
14562         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14563
14564 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14565
14566         [BZ #18787]
14567         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14568         clobber registers.
14569         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14570         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14571         Cast return to __typeof (oldval).
14572
14573 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14574
14575         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14576         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14577         and delete sys/syscall.h include.
14578
14579 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14580
14581         [BZ #16517]
14582         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14583         (tan): Force underflow exception for arguments with small absolute
14584         value.
14585         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14586         (__kernel_tanf): Force underflow exception for arguments with
14587         small absolute value.
14588         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14589         (__kernel_tanl): Force underflow exception for arguments with
14590         small absolute value.
14591         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14592         (__kernel_tanl): Force underflow exception for arguments with
14593         small absolute value.
14594         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14595         (__kernel_tanl): Force underflow exception for arguments with
14596         small absolute value.
14597         * math/auto-libm-test-in: Add more tests of tan.
14598         * math/auto-libm-test-out: Regenerated.
14599
14600 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14601
14602         Fix sysdeps/i386/fpu/s_scalbn.S build
14603
14604         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14605
14606 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14607
14608         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14609
14610 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14611
14612         Fix gcrt0.o compilation
14613
14614         When static-start-installed-name is different from
14615         start-installed-name, we must not use the shared objects.
14616
14617         * csu/Makefile
14618         (extra-objs): Add gmon-start.o when building shared library and
14619         $(static-start-installed-name) is different from
14620         $(start-installed-name).
14621         $(objpfx)g$(static-start-installed-name): When building shared
14622         library and $(static-start-installed-name) is different from
14623         $(static-start-installed-name), revert to non-shared rule,
14624         i.e. using $(objpfx)% and gmon-start.o.
14625
14626 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14627
14628         [BZ #16519]
14629         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14630         (__ieee754_sinh): Force underflow exception for arguments with
14631         small absolute value.
14632         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14633         (__ieee754_sinhf): Force underflow exception for arguments with
14634         small absolute value.
14635         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14636         (__ieee754_sinhl): Force underflow exception for arguments with
14637         small absolute value.
14638         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14639         (__ieee754_sinhl): Force underflow exception for arguments with
14640         small absolute value.
14641         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14642         (__ieee754_sinhl): Force underflow exception for arguments with
14643         small absolute value.
14644         * math/auto-libm-test-in: Add more tests of sinh.
14645         * math/auto-libm-test-out: Regenerated.
14646         * sysdeps/i386/fpu/libm-test-ulps: Update.
14647
14648 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14649
14650         * libio/oldfileops.c: Include unistd.h.
14651
14652 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14653
14654         * stdlib/isomac.c: Include ctype.h.
14655
14656 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14657
14658         * dirent/tst-seekdir.c (main): Converted to ...
14659         (do_test): ... this.
14660         (TEST_FUNCTION): New macro.
14661         Include test-skeleton.c.
14662         * elf/tst-dlmodcount.c (main): Converted to ...
14663         (do_test): ... this.
14664         (TEST_FUNCTION): New macro.
14665         Include test-skeleton.c.
14666         * elf/tst-order-main.c (main): Converted to ...
14667         (do_test): ... this.
14668         (TEST_FUNCTION): New macro.
14669         Include test-skeleton.c.
14670         * elf/tst-pie2.c (main): Converted to ...
14671         (do_test): ... this.
14672         (TEST_FUNCTION): New macro.
14673         Include test-skeleton.c.
14674         * inet/tst-ether_aton.c (main): Converted to ...
14675         (do_test): ... this.
14676         (TEST_FUNCTION): New macro.
14677         Include test-skeleton.c.
14678         * misc/tst-mntent.c (main): Converted to ...
14679         (do_test): ... this.
14680         (TEST_FUNCTION): New macro.
14681         Include test-skeleton.c.
14682         * misc/tst-tsearch.c (main): Converted to ...
14683         (do_test): ... this.
14684         (TEST_FUNCTION): New macro.
14685         Include test-skeleton.c.
14686         * posix/tst-regexloc.c (main): Converted to ...
14687         (do_test): ... this.
14688         (TEST_FUNCTION): New macro.
14689         Include test-skeleton.c.
14690         * resolv/tst-aton.c (main): Converted to ...
14691         (do_test): ... this.
14692         (TEST_FUNCTION): New macro.
14693         Include test-skeleton.c.
14694         * stdio-common/test-fwrite.c (main): Converted to ...
14695         (do_test): ... this.
14696         (TEST_FUNCTION): New macro.
14697         Include test-skeleton.c.
14698         * stdio-common/tst-ferror.c (main): Converted to ...
14699         (do_test): ... this.
14700         (TEST_FUNCTION): New macro.
14701         Include test-skeleton.c.
14702         * stdio-common/tst-printf.c (main): Converted to ...
14703         (do_test): ... this.
14704         (TEST_FUNCTION): New macro.
14705         Include test-skeleton.c.
14706         * stdio-common/tst-printfsz.c (main): Converted to ...
14707         (do_test): ... this.
14708         (TEST_FUNCTION): New macro.
14709         Include test-skeleton.c.
14710         * stdlib/tst-strtod.c (main): Converted to ...
14711         (do_test): ... this.
14712         (TEST_FUNCTION): New macro.
14713         Include test-skeleton.c.
14714         * string/tst-strlen.c (main): Converted to ...
14715         (do_test): ... this.
14716         (TEST_FUNCTION): New macro.
14717         Include test-skeleton.c.
14718         * string/tst-svc.c (main): Converted to ...
14719         (do_test): ... this.
14720         (TEST_FUNCTION): New macro.
14721         Include test-skeleton.c.
14722         * time/tst-strptime.c (main): Converted to ...
14723         (do_test): ... this.
14724         (TEST_FUNCTION): New macro.
14725         Include test-skeleton.c.
14726         * timezone/tst-timezone.c (main): Converted to ...
14727         (do_test): ... this.
14728         (TEST_FUNCTION): New macro.
14729         Include test-skeleton.c.
14730
14731 2015-08-05  Zack Weinberg  <zackw@panix.com>
14732
14733         * misc/regexp.h: Update comments.
14734
14735 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14736
14737         [BZ #18635]
14738         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14739         before return label.
14740
14741 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14742
14743         [BZ #18661]
14744         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14745         when calling __errno_location.
14746         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14747         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14748
14749 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14750
14751         [BZ #18661]
14752         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14753         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14754         __gettimeofday.
14755
14756 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14757
14758         [BZ #18661]
14759         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14760         (__start_context): Don't use pop to restore %rdi so that stack
14761         is aligned to 16 bytes when calling __setcontext.
14762
14763 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14764
14765         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14766         only for libc.
14767         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14768
14769 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14770
14771         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14772         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14773         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14774
14775 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14776
14777         * string/memccpy.c (memccpy):
14778         Improve performance by using memchr/memcpy/__mempcpy.
14779
14780 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14781
14782         * string/strncpy.c (strncpy):
14783         Improve performance by using __strnlen/memcpy.
14784
14785 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14786
14787         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14788         Optimize to avoid an unnecessary FPCR read.
14789
14790 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14791
14792         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14793         Optimize to reduce FPCR/FPSR accesses.
14794
14795 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14796
14797         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14798         dead->data[category] != NULL.
14799
14800 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14801
14802         [BZ #18647]
14803         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14804         and |x| close to 1, use absolute value of x when computing log.
14805         * math/auto-libm-test-in: Add more tests of pow.
14806         * math/auto-libm-test-out: Regenerated.
14807
14808 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14809
14810         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14811         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14812         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14813
14814 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14815
14816         [BZ #18525]
14817         * locales/km_KH: Remove timezone definition.
14818         * locales/lo_LA: Likewise.
14819         * locales/my_MM: Likewise.
14820         * locales/nan_TW@latin: Likewise.
14821         * locales/th_TH: Likewise.
14822         * locales/uk_UA: Likewise.
14823
14824 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14825
14826         [BZ #18265]
14827         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14828         (wcsncat): Likewise.
14829         (wcscmp): Likewise.
14830         (wcsncmp): Likewise.
14831
14832 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14833
14834         * test-skeleton.c (usage): New function.
14835         (main): Call usage when opt is '?'.
14836
14837 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14838
14839         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14840         before first use.
14841
14842 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14843
14844         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14845         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14846         in there too.
14847
14848 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14849
14850         * version.h (RELEASE): Set to "development".
14851         (VERSION): Set to "2.22.90"
14852
14853         * version.h (RELEASE): Set to "stable".
14854         (VERSION): Set to "2.22"
14855         * include/features.h (__GLIBC_MINOR__): Set to 22.
14856
14857 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14858
14859         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14860         Restructure macro to avoid "value computed is not used" warning.
14861         (atomic_compare_and_exchange_val_acq): Likewise.
14862
14863 2015-08-04  Andreas Schwab  <schwab@suse.de>
14864
14865         [BZ #18635]
14866         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14867         ret.
14868         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14869
14870 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14871
14872         * po/pl.po: Updated translation.
14873         * po/uk.po: Likewise.
14874         * po/fi.po: Likewise.
14875         * po/ko.po: Likewise.
14876         * po/ru.po: Likewise.
14877         * po/vi.po: Likewise.
14878
14879 2015-07-31  Zack Weinberg  <zackw@panix.com>
14880
14881         [BZ #18681]
14882         * regexp.h: Add unconditional #warning stating that this header
14883         will be removed soon.  Revise banner comment to match.
14884         (compile): Consistently use ERROR instead of RETURN to report
14885         errors (partial fix for bz#18681).
14886         * regexp.c: Don't include regexp.h. Remove some unnecessary
14887         declarations.
14888
14889 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14890
14891         * po/libc.pot: Regenerated.
14892
14893 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14894
14895         [BZ #18740]
14896         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14897         float-vlen4-arch-ext-cflags): Removed.
14898         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14899         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14900
14901 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14902
14903         [BZ #14113]
14904         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14905         aligned to __aligned__.
14906         (pthread_cond_t, pthread_rwlock_t): Likewise.
14907
14908 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14909
14910         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14911
14912 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14913
14914         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14915         (struct sigaction): Change sa_flags from a long to an int, and add
14916         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14917
14918 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14919
14920         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14921         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14922         sysdeps/generic/sysdep.h include.
14923         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14924         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14925         sysdeps/hppa/sysdep.h.
14926         (ENTRY, PSEUDO): Undefine before defining.
14927
14928 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14929
14930         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14931         from scratch to use INTERNAL_SYSCALL.
14932
14933 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14934
14935         [BZ #18078]
14936         * scripts/check-localplt.awk: Support alternate relocations.
14937         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14938         sections.
14939         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14940         malloc entries with + REL R_386_GLOB_DAT.
14941         * sysdeps/x86_64/localplt.data: New file.
14942
14943 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14944
14945         [BZ #18731]
14946         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14947         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14948         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14949
14950 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14951
14952         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14953
14954 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14955
14956         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14957         directly in terms of __sync_fetch_and_add and delete (int) cast.
14958
14959 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14960
14961         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14962         the -D_ASM_IA64_CURRENT_H flag.
14963
14964 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14965
14966         [BZ #18641]
14967         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14968
14969 2015-07-27  Andreas Schwab  <schwab@suse.de>
14970
14971         * conform/conformtest.pl (checknamespace): Filter out string
14972         literals while tokenizing.
14973
14974 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14975
14976         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14977         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14978         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14979
14980 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14981
14982         * nptl/tst-join7mod.c: Add #include <string.h>.
14983
14984 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14985
14986         * sysdeps/nios2/libm-test-ulps: Update.
14987
14988 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14989
14990         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14991         Fix order of arguments to the rt_sigprocmask syscall.
14992         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14993         Likewise.
14994
14995 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14996
14997         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14998
14999 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15000
15001         [BZ #18457]
15002         * nptl/Makefile (tests): New test case tst-join7.
15003         (modules-names): New test case module tst-join7mod.
15004         * nptl/tst-join7.c: New file.
15005         * nptl/tst-join7mod.c: New file.
15006         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
15007         all translation units in libc.so, libpthread.so and rtld.
15008
15009 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15010
15011         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15012
15013 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15014
15015         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
15016         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
15017         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
15018         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
15019         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
15020         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
15021         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
15022         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
15023         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
15024         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
15025         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
15026         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
15027         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
15028         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
15029         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
15030         implementation.
15031
15032 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15033
15034         [BZ #17711]
15035         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
15036         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
15037         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
15038         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
15039         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
15040         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
15041
15042 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15043
15044         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
15045         instead of just saying load lock in the comments.
15046
15047 2015-07-23  Roland McGrath  <roland@hack.frob.com>
15048
15049         * sysdeps/unix/Subdirs: Moved ...
15050         * sysdeps/posix/Subdirs: ... here.
15051         * login/pty.h (struct termios, struct winsize): Add forward decls.
15052         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
15053         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
15054         * sysdeps/arm/nacl/libc.abilist: Updated.
15055         * sysdeps/nacl/libutil.abilist: New file.
15056
15057         * bits/signum.h: Update comments to mention 1003.1-2013 too.
15058         (SIGWINCH): New macro.
15059
15060         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
15061         * sysdeps/arm/nacl/libc.abilist: Add it.
15062
15063 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
15064
15065         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
15066
15067 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
15068
15069         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
15070         Swap __glibc_reserved0 and sa_flags order.
15071
15072 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
15073
15074         [BZ #18657]
15075         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
15076         are pending TLS destructor calls.
15077         * include/link.h (struct link_map): Add concurrency note for
15078         L_TLS_DTOR_COUNT.
15079         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
15080         Don't touch the link map flag.  Atomically increment
15081         l_tls_dtor_count.
15082         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
15083         Avoid taking the load lock and don't touch the link map flag.
15084         * stdlib/tst-tls-atexit-nodelete.c: New test case.
15085         * stdlib/Makefile (tests): Use it.
15086         * stdlib/tst-tls-atexit.c (do_test): dlopen
15087         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
15088         to allow tst-tls-atexit-nodelete test case to use it.
15089
15090 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
15091
15092         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
15093         to bits/types.h.
15094         (msgqnum_t): New typedef.
15095         (msglen_t): Likewise.
15096         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
15097         and msg_qbytes type to msglen_t.
15098
15099 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
15100
15101         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
15102         pad0 to __glibc_reserved0.
15103         (struct stat64): Likewise.
15104
15105 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
15106
15107         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
15108         Change sa_flags from a long to an int and add __glibc_reserved0 before
15109         it for padding.
15110
15111 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
15112
15113         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
15114         anonymous by deleting "siginfo" name.
15115
15116 2015-07-21  Roland McGrath  <roland@hack.frob.com>
15117
15118         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
15119         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
15120         rather than __nacl_irt_filename.
15121         * sysdeps/nacl/xstat.c (__xstat): Likewise.
15122
15123         * NEWS: New item for arm-nacl port.
15124         * sysdeps/arm/nacl/libc.abilist: New file.
15125         * sysdeps/nacl/ld.abilist: New file.
15126         * sysdeps/nacl/libBrokenLocale.abilist: New file.
15127         * sysdeps/nacl/libanl.abilist: New file.
15128         * sysdeps/nacl/libcrypt.abilist: New file.
15129         * sysdeps/nacl/libdl.abilist: New file.
15130         * sysdeps/nacl/libm.abilist: New file.
15131         * sysdeps/nacl/libpthread.abilist: New file.
15132         * sysdeps/nacl/libresolv.abilist: New file.
15133         * sysdeps/nacl/librt.abilist: New file.
15134
15135 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
15136
15137         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
15138         __startcontext to initialize the new context.
15139         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
15140         up CFI directive to forbid further backtracing.
15141
15142 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
15143
15144         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
15145         reference.
15146         * charmaps/ANSI_X3.4-1968: Likewise.
15147         * charmaps/BS_4730: Likewise.
15148         * charmaps/BS_VIEWDATA: Likewise.
15149         * charmaps/CP1250: Likewise.
15150         * charmaps/CP1251: Likewise.
15151         * charmaps/CP1252: Likewise.
15152         * charmaps/CP1253: Likewise.
15153         * charmaps/CP1254: Likewise.
15154         * charmaps/CP1255: Likewise.
15155         * charmaps/CP1256: Likewise.
15156         * charmaps/CSN_369103: Likewise.
15157         * charmaps/EBCDIC-DK-NO: Likewise.
15158         * charmaps/GB_1988-80: Likewise.
15159         * charmaps/GREEK-CCITT: Likewise.
15160         * charmaps/GREEK7: Likewise.
15161         * charmaps/INIS-8: Likewise.
15162         * charmaps/ISIRI-3342: Likewise.
15163         * charmaps/ISO_2033-1983: Likewise.
15164         * charmaps/ISO_5427-EXT: Likewise.
15165         * locales/POSIX: Likewise.
15166         * locales/ar_SA: Likewise.
15167         * locales/be_BY: Likewise.
15168         * locales/be_BY@latin: Likewise.
15169         * locales/ca_ES: Likewise.
15170         * locales/cs_CZ: Likewise.
15171         * locales/da_DK: Likewise.
15172         * locales/de_BE: Likewise.
15173         * locales/de_CH: Likewise.
15174         * locales/de_LU: Likewise.
15175         * locales/en_AU: Likewise.
15176         * locales/en_BW: Likewise.
15177         * locales/en_CA: Likewise.
15178         * locales/en_DK: Likewise.
15179         * locales/en_GB: Likewise.
15180         * locales/en_IE: Likewise.
15181         * locales/en_NZ: Likewise.
15182         * locales/en_ZA: Likewise.
15183         * locales/en_ZW: Likewise.
15184         * locales/es_AR: Likewise.
15185         * locales/es_BO: Likewise.
15186         * locales/es_CL: Likewise.
15187         * locales/es_CO: Likewise.
15188         * locales/es_DO: Likewise.
15189         * locales/es_EC: Likewise.
15190         * locales/es_ES: Likewise.
15191         * locales/es_HN: Likewise.
15192         * locales/es_MX: Likewise.
15193         * locales/es_PA: Likewise.
15194         * locales/es_PE: Likewise.
15195         * locales/es_PY: Likewise.
15196         * locales/es_SV: Likewise.
15197         * locales/es_US: Likewise.
15198         * locales/es_UY: Likewise.
15199         * locales/es_VE: Likewise.
15200         * locales/et_EE: Likewise.
15201         * locales/fa_IR: Likewise.
15202         * locales/fo_FO: Likewise.
15203         * locales/fr_CA: Likewise.
15204         * locales/fr_CH: Likewise.
15205         * locales/gv_GB: Likewise.
15206         * locales/he_IL: Likewise.
15207         * locales/hr_HR: Likewise.
15208         * locales/id_ID: Likewise.
15209         * locales/is_IS: Likewise.
15210         * locales/it_CH: Likewise.
15211         * locales/iw_IL: Likewise.
15212         * locales/kl_GL: Likewise.
15213         * locales/ko_KR: Likewise.
15214         * locales/kw_GB: Likewise.
15215         * locales/lg_UG: Likewise.
15216         * locales/lt_LT: Likewise.
15217         * locales/lv_LV: Likewise.
15218         * locales/mi_NZ: Likewise.
15219         * locales/nhn_MX: Likewise.
15220         * locales/nl_BE: Likewise.
15221         * locales/pl_PL: Likewise.
15222         * locales/sk_SK: Likewise.
15223         * locales/sl_SI: Likewise.
15224         * locales/sv_FI: Likewise.
15225         * locales/tl_PH: Likewise.
15226         * locales/tr_TR: Likewise.
15227         * locales/vi_VN: Likewise.
15228
15229 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15230
15231         [BZ #17475]
15232         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15233         of tu_IN and bh_IN.
15234
15235 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15236
15237         [BZ #18694]
15238         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15239         bits/wordsize.h.
15240         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15241
15242 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15243
15244         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15245         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15246         (spawn_thread): New function.
15247         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15248         (do_test): ... here.  Use IS_LOADED to test for its
15249         availability.
15250
15251 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15252
15253         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15254
15255 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15256
15257         [BZ #18696]
15258         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15259         si_addr_bnd.
15260         (si_lower): New.
15261         (si_upper): Likewise.
15262
15263 2015-07-16  David S. Miller  <davem@davemloft.net>
15264
15265         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15266
15267 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15268
15269         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15270         buffer.
15271         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15272         fail output information.
15273
15274 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15275
15276         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15277         and strstr-ppc64..
15278         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15279         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15280         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15281         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15282         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15283
15284 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15285
15286         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15287         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15288         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15289         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15290
15291 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15292
15293         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15294         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15295         rtld_hidden_proto.
15296         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15297
15298 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15299
15300         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15301         the test can fail.
15302
15303         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15304
15305         [BZ #18676]
15306         * elf/tst-nodelete-opened.c: New test case.
15307         * elf/tst-nodelete-opened-lib.c: New test case module.
15308         * elf/Makefile (tests, modules-names): Use them.
15309         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15310         early.
15311
15312 2015-07-15  David S. Miller  <davem@davemloft.net>
15313
15314         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15315         futex-intenal.h
15316         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15317         * sysdeps/sparc/sparc64/Makefile: Likewise.
15318         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15319         Remove space from macro define.
15320         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15321
15322 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15323
15324         [BZ #17475]
15325         * locale/iso-639.def: Update Bhili and Tulu language codes as
15326         per iso639-3.
15327
15328 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15329
15330         * elf/tst-leaks1.c (main): Converted to ...
15331         (do_test): ... this.
15332         (TEST_FUNCTION): New macro.
15333         Include test-skeleton.c.
15334         * localedata/tst-langinfo.c (main): Converted to ...
15335         (do_test): ... this.
15336         (TEST_FUNCTION): New macro.
15337         Include test-skeleton.c.
15338         * math/test-fpucw.c (main): Converted to ...
15339         (do_test): ... this.
15340         (TEST_FUNCTION): New macro.
15341         Include test-skeleton.c.
15342         * math/test-tgmath.c (main): Converted to ...
15343         (do_test): ... this.
15344         (TEST_FUNCTION): New macro.
15345         Include test-skeleton.c.
15346         * math/test-tgmath2.c (main): Converted to ...
15347         (do_test): ... this.
15348         (TEST_FUNCTION): New macro.
15349         Include test-skeleton.c.
15350         * setjmp/tst-setjmp.c (main): Converted to ...
15351         (do_test): ... this.
15352         (TEST_FUNCTION): New macro.
15353         Include test-skeleton.c.
15354         * stdio-common/tst-sscanf.c (main): Converted to ...
15355         (do_test): ... this.
15356         (TEST_FUNCTION): New macro.
15357         Include test-skeleton.c.
15358         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15359         (do_test): ... this.
15360         (TEST_FUNCTION): New macro.
15361         Include test-skeleton.c.
15362
15363         * elf/tst-audit9.c (main): Converted to ...
15364         (do_test): ... this.
15365         (TEST_FUNCTION): New macro.
15366         Include test-skeleton.c.
15367
15368 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15369
15370         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15371
15372 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15373
15374         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15375         New variable.
15376
15377 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15378
15379         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15380
15381 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15382
15383         * sysdeps/generic/dl-fileid.h: New file.
15384         * sysdeps/posix/dl-fileid.h: New file.
15385         * sysdeps/nacl/dl-fileid.h: New file.
15386         * include/link.h: Include <dl-fileid.h>.
15387         (struct link_map): Replace l_dev and l_ino with l_file_id.
15388         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15389         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15390         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15391
15392 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15393
15394         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15395
15396 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15397
15398         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15399         Add iff $CXX is set.
15400         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15401         Likewise.
15402         (tst-nodelete-zmodiff): Likewise.
15403         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15404
15405 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15406
15407         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15408
15409 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15410
15411         * sysdeps/aarch64/fpu/math_private.h
15412         (define math_opt_barrier): Add AArch64 version.
15413         (math_force_eval): Likewise.
15414
15415 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15416
15417         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15418
15419 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15420
15421         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15422         %ld with %jd and cast to intmax_t.
15423         (do_test_length_zero): Likewise.
15424
15425 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15426
15427         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15428
15429 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15430
15431         * sysdeps/tile/libm-test-ulps: Regenerated.
15432
15433         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15434         Comment out the whole function, not just its body.
15435
15436 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15437
15438         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15439         locks.
15440
15441         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15442
15443 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15444
15445         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15446         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15447
15448 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15449
15450         * sysdeps/nptl/futex-internal.h: New file.
15451         * sysdeps/nacl/futex-internal.h: New file.
15452         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15453         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15454         error checking.
15455         (setxid_unmark_thread): Likewise.
15456         (__nptl_setxid): Likewise.
15457         (__wait_lookup_done): Likewise.
15458         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15459         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15460         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15461         * nptl/pthread_once.c (clear_once_control): Likewise.
15462         (__pthread_once_slow): Likewise.
15463         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15464         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15465         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15466         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15467         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15468         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15469         Likewise.
15470         (__pthread_rwlock_rdlock): Likewise.
15471         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15472         Likewise.
15473         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15474         Likewise.
15475         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15476         Likewise.
15477         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15478         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15479         Likewise.
15480         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15481         __ASSUME_PRIVATE_FUTEX check.
15482         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15483         Check that shared futexes are supported.
15484         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15485         wrappers with error checking.
15486         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15487         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15488         * nptl/pthread_barrierattr_setpshared.c
15489         (pthread_barrierattr_setpshared): Check that shared futexes are
15490         supported.
15491         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15492         Likewise.
15493         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15494         Likewise.
15495         * nptl/sem_init.c (futex_private_if_supported): Remove.
15496         (__new_sem_init): Adapt and check that shared futexes are supported.
15497         * nptl/sem_open.c (sem_open): Likewise.
15498         * nptl/sem_post.c (futex_wake): Remove.
15499         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15500         (do_futex_wait): Use futex wrappers with error checking.
15501         * nptl/sem_wait.c: Include lowlevellock.h.
15502         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15503         Use futex_supports_pshared.
15504         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15505         Use futex wrappers with error checking.
15506         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15507         Likewise.
15508         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15509         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15510         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15511         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15512         (futex_wake): Likewise.
15513         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15514         (do_futex_wait): Use futex wrappers with error checking.
15515         (__new_sem_wait_slow): Update EINTR handling.
15516         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15517
15518 2015-07-09  Martin Sebor  <msebor@redhat.com>
15519
15520         [BZ #18435]
15521         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15522         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15523         * nptl/Makefile (test-xfail-tst-once5): Define.
15524
15525 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15526
15527         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15528         * elf/dl-minimal.c: For readability, reorder some definitions and
15529         introduce more page breaks.  Include <stdio.h>.
15530         (__libc_fatal): New function.
15531
15532         * include/unistd.h: Add rtld_hidden_proto for _exit.
15533         * posix/_exit.c: Add rtld_hidden_def.
15534         * sysdeps/mach/hurd/_exit.c: Likewise.
15535         * sysdeps/nacl/_exit.c: Likewise.
15536         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15537         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15538
15539 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15540
15541         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15542         bndmov encoding with zero displacement.
15543
15544 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15545             H.J. Lu  <hongjiu.lu@intel.com>
15546
15547         [BZ #18134]
15548         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15549         * sysdeps/i386/configure: Regenerated.
15550         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15551         (_dl_runtime_profile): Save and restore Intel MPX return bound
15552         registers when calling _dl_call_pltexit.  Add
15553         PRESERVE_BND_REGS_PREFIX before return.
15554         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15555         (LRV_BND1_OFFSET): Likewise.
15556         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15557         lrv_bnd1.
15558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15559         typo in bndmov encoding.
15560         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15561         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15562         branch instructions to preserve bounds.
15563
15564 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15565
15566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15567         [GLIBC_2.22]: Add fmemopen.
15568
15569 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15570
15571         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15572         returns an error, also try to use host port from __mach_host_self for
15573         the __vm_wire call.
15574         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15575
15576 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15577
15578         [BZ #18400]
15579         [BZ #18648]
15580         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15581         Fix pr_uid and pr_gid members.
15582         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15583         definition to elf_greg_t.
15584
15585 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15586
15587         [BZ #18383]
15588         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15589         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15590         * sysdeps/arm/configure: Regenerated.
15591         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15592         (test-xfail-tst-tlsalign-static): Variable removed.
15593
15594         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15595         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15596         rather than explicit 'ln -s'.
15597
15598         * resolv/rpc/netdb.h: New file.
15599         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15600
15601 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15602
15603         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15604         length buffers.
15605         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15606         test-skeleton.c.
15607
15608         [BZ #6544]
15609         [BZ #11216]
15610         [BZ #12836]
15611         [BZ #13151]
15612         [BZ #13152]
15613         [BZ #14292]
15614         * include/stdio.h (fmemopen): Remove hidden prototype.
15615         (__fmemopen): Add new hidden prototype.
15616         * libio/Makefile: Add oldfmemopen object.
15617         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15618         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15619         compliance.
15620         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15621         symbol compatibility.
15622         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15623         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15624         fmemopen.
15625         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15626         on append and read mode.
15627         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15628         fmemopen.
15629         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15630         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15631         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15632         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15633         Likewise.
15634         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15635         [GLIBC_2.22]: Likewise.
15636         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15637         Likewise.
15638         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15639         Likewise.
15640         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15641         [GLIBC_2.22]: Likewise.
15642         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15643         [GLIBC_2.22]: Likewise.
15644         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15645         [GLIBC_2.22]: Likewise.
15646         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15647         [GLIBC_2.22]: Likewise.
15648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15649         [GLIBC_2.22]: Likewise.
15650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15651         [GLIBC_2.22]: Likewise.
15652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15653         [GLIBC_2.22]: Likewise.
15654         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15655         Likewise.
15656         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15657         Likewise.
15658         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15659         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15660         [GLIBC_2.22]: Likewise.
15661         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15662         [GLIBC_2.22]: Likewise.
15663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15664         [GLIBC_2.22]: Likewise.
15665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15666         [GLIBC_2.22]: Likewise.
15667         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15668         Likewise.
15669         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15670         Likewise.
15671         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15672         Likewise.
15673         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15674         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15675
15676 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15677
15678         [BZ #18643]
15679         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15680         IPV6_PATHMTU, and IPV6_DONTFRAG.
15681
15682 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15683
15684         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15685         and _IO_UNBUFFERED.
15686         * libio/oldfileops.c: Likewise.
15687         * libio/wfileops.c: Likewise.
15688
15689 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15690
15691         * nscd/selinux.c: Delete selinux/flask.h include.
15692
15693 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15694
15695         [BZ #18641]
15696         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15697         (putpwent): Likewise.
15698         (getpwnam): Likewise.
15699         (getpwent_r): Likewise.
15700         (getpwuid_r): Likewise.
15701         (getpwnam_r): Likewise.
15702         (fgetpwent_r): Likewise.
15703
15704 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15705
15706         [BZ #18557]
15707         * inet/rcmd.c (__validuser2_sa): Check user first to
15708         short-circuit host check.
15709
15710 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15711             Mikhail Ilin  <m.ilin@samsung.com>
15712
15713         [BZ #17833]
15714         * elf/Makefile (tests): Add tst-nodelete.
15715         (modules-names): Add tst-nodelete-uniquemod.
15716         (tst-nodelete-uniquemod.so-no-z-defs): New.
15717         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15718         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15719         ($(objpfx)tst-nodelete): Likewise.
15720         ($(objpfx)tst-nodelete.out): Likewise.
15721         (LDFLAGS-tst-nodelete): Likewise.
15722         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15723         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15724         implement forced object deletion.
15725         (_dl_close): Pass false to _dl_close_worker.
15726         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15727         * elf/tst-nodelete.cc: New file.
15728         * elf/tst-nodeletelib.cc: Likewise.
15729         * elf/tst-znodeletelib.cc: Likewise.
15730         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15731
15732 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15733
15734         [BZ #18508]
15735         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15736         Depend on $(libdl).
15737         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15738         is not called infinitely times.
15739         (backtrace_helper): New function.
15740         (trace_arg): New struct.
15741         (st1): Enlarge stack size.
15742         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15743         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15744         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15745         Likewise.
15746
15747 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15748
15749         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15750
15751 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15752
15753         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15754         Include sys/types.h instead of bits/types.h.
15755         Remove inclusion of bits/wordsize.h.
15756
15757 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15758
15759         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15760         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15761         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15762         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15763         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15764         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15765
15766 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15767
15768         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15769         link-defines.sym.
15770         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15771         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15772         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15773         and LR_SIZE.
15774         * sysdeps/i386/link-defines.sym: New file.
15775
15776 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15777
15778         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15779         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15780         ($(objpfx)tst-audit3): New rule.
15781         ($(objpfx)tst-audit3.out): Likewise.
15782         * sysdeps/i386/tst-audit3.c: New file.
15783         * sysdeps/i386/tst-audit3.h: Likewise.
15784         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15785         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15786
15787 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15788
15789         [BZ #18633]
15790         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15791         pointer in C code.
15792         (__strcat_c): Likewise.
15793         (__strcat_g): Likewise.
15794
15795 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15796
15797         [BZ #18592]
15798         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15799
15800 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15801
15802         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15803         New function.  (__ieee754_sqrtf): New function.
15804         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15805         New function.
15806         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15807         New function.
15808
15809 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15810
15811         * sysdeps/ieee754/support.c: Remove unused file.
15812
15813 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15814
15815         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15816         registers instead of d ones so the layout is kernel abi compatible.
15817         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15818         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15819         Likewise.
15820
15821 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15822
15823         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15824
15825 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15826
15827         [BZ #18619]
15828         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15829         and return argument in case of subnormal argument.
15830
15831 2015-07-01  Martin Sebor  <msebor@redhat.com>
15832
15833         [BZ #18435]
15834         * nptl/Makefile: Add tst-once5.cc.
15835         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15836         Remove macro redefinitions.
15837         * nptl/tst-once5.cc: New test.
15838
15839 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15840
15841         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15842
15843         * sysdeps/arm/libm-test-ulps: Regenerated.
15844
15845         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15846         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15847
15848 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15849
15850         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15851         lll_lock_wait_private and lll_futex_wake probes.
15852
15853         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15854         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15855         Likewise.
15856         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15857         atomic_spin_nop.
15858         * sysdeps/x86_64/bits/atomic.h: Likewise.
15859         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15860         to atomic_spin_nop and move ...
15861         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15862         ... here and ...
15863         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15864         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15865         atomic_spin_nop instead of BUSY_WAIT_NOP.
15866         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15867         Likewise.
15868         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15869         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15870         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15871         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15872         instead of atomic_delay.
15873
15874 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15875
15876         [BZ #18613]
15877         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15878         X_ADJ not X when adjusting exponent.
15879         (__ieee754_gamma_r): Do intermediate computations in
15880         round-to-nearest then adjust overflowing and underflowing results
15881         as needed.
15882         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15883         of X_ADJ not X when adjusting exponent.
15884         (__ieee754_gammaf_r): Do intermediate computations in
15885         round-to-nearest then adjust overflowing and underflowing results
15886         as needed.
15887         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15888         log of X_ADJ not X when adjusting exponent.
15889         (__ieee754_gammal_r): Do intermediate computations in
15890         round-to-nearest then adjust overflowing and underflowing results
15891         as needed.  Use 1.0L not 1.0f as numerator of division.
15892         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15893         log of X_ADJ not X when adjusting exponent.
15894         (__ieee754_gammal_r): Do intermediate computations in
15895         round-to-nearest then adjust overflowing and underflowing results
15896         as needed.  Use 1.0L not 1.0f as numerator of division.
15897         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15898         of X_ADJ not X when adjusting exponent.
15899         (__ieee754_gammal_r): Do intermediate computations in
15900         round-to-nearest then adjust overflowing and underflowing results
15901         as needed.  Use 1.0L not 1.0f as numerator of division.
15902         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15903         to auto-libm-test-in.
15904         (tgamma_test): Use ALL_RM_TEST.
15905         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15906         tests of tgamma with spurious-overflow.
15907         * math/auto-libm-test-out: Regenerated.
15908         * math/gen-libm-have-vector-test.sh: Do not check for START.
15909         * sysdeps/i386/fpu/libm-test-ulps: Update.
15910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15911
15912         [BZ #18612]
15913         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15914         arguments, just return 0.5 times the argument, with underflow
15915         forced as needed.
15916         * math/auto-libm-test-in: Add more tests of j1.
15917         * math/auto-libm-test-out: Regenerated.
15918
15919         [BZ #16559]
15920         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15921         (__ieee754_j1): Force underflow exception for small results.
15922         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15923         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15924         (__ieee754_j1f): Force underflow exception for small results.
15925         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15926         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15927         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15928         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15929         (__ieee754_j1l): Force underflow exception for small results.
15930         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15931         * math/auto-libm-test-in: Add more tests of j1 and jn.
15932         * math/auto-libm-test-out: Regenerated.
15933
15934         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15935         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15936         (PF_MPLS): Likewise.
15937         (AF_IB): Likewise.
15938         (AF_MPLS): Likewise.
15939         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15940         value and macro.
15941         (MS_RMT_MASK): Include MS_LAZYTIME.
15942
15943 2015-06-26  Mel Gorman  <mgorman@suse.de>
15944
15945         [BZ #18502]
15946         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15947         already minimal.
15948
15949 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15950
15951         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15952         (DT_MIPS_NUM): Update.
15953         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15954         DT_MIPS_RLD_MAP_REL.
15955
15956 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15957
15958         [BZ #16559]
15959         [BZ #18602]
15960         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15961         round-to-nearest internally then recompute results that
15962         underflowed to zero in the original rounding mode.
15963         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15964         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15965         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15966         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15967         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15968         * sysdeps/i386/fpu/libm-test-ulps: Update.
15969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15970
15971 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15972
15973         * NEWS: Fixed description of link with vector math library.
15974
15975 2015-06-25  Andreas Schwab  <schwab@suse.de>
15976
15977         [BZ #18549]
15978         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15979         * libio/test-fmemopen.c (do_test): Add test for it.
15980
15981 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15982
15983         [BZ #17841]
15984         * Makeconfig (no-pie-ldflag): New.
15985         (+link): Set to $(+link-pie) if default to PIE.
15986         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15987         * config.make.in (build-pie-default): New.
15988         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15989         is default.  AC_SUBST.
15990         * configure: Regenerated.
15991         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15992
15993 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15994
15995         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15996         to 'unsigned int'.
15997
15998         * resolv/gai_misc.h (struct waitlist): Change type of field
15999         counterp to 'volatile unsigned int *'.
16000         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
16001         FUTEXADDR and OLDVAL.
16002         * resolv/getaddrinfo_a.c (getaddrinfo_a):
16003         Give local variable TOTAL type 'volatile unsigned int'.
16004         (struct async_waitlist): Change type of field counter to 'unsigned int'.
16005         * resolv/gai_suspend.c (gai_suspend):
16006         Give local variable CNTR type 'unsigned int'.
16007
16008         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
16009         counterp to 'volatile unsigned int *'.
16010         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
16011         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
16012         (aio_suspend): Give local variable CNTR type 'unsigned int'.
16013         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
16014         Give local variable TOTAL type 'volatile unsigned int'.
16015         (struct async_waitlist): Change type of field counter to 'unsigned int'.
16016
16017 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16018
16019         [BZ #18383]
16020         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
16021         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
16022         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
16023         comment for i386/x86-64.
16024         (test-xfail-tst-tlsalign-extern-static): Removed.
16025
16026 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16027
16028         * math/test-double.h: New file.
16029         * math/test-float.h: Likewise.
16030         * math/test-ldouble.h: Likewise.
16031         * math/test-math-inline.h: Likewise.
16032         * math/test-math-no-inline.h: Likewise.
16033         * math/test-math-scalar.h: Likewise.
16034         * math/test-math-vector.h: Likewise.
16035         * math/test-vec-loop.h: Remove file.  Contents moved into
16036         test-math-vector.h.
16037         * math/libm-test.inc (MATHCONST): Do not document macro.
16038         * math/test-double.c: Include test-double.h, test-math-no-inline.h
16039         and test-math-scalar.h.
16040         (FUNC): Remove macro.
16041         (FUNC_TEST): Likewise.
16042         (FLOAT): Likewise.
16043         (MATHCONST): Likewise.
16044         (PRINTF_EXPR): Likewise.
16045         (PRINTF_XEXPR): Likewise.
16046         (PRINTF_NEXPR): Likewise.
16047         (TEST_DOUBLE): Likewise.
16048         (TEST_MATHVEC): Likewise.
16049         (__NO_MATH_INLINES): Likewise.
16050         * math/test-float.c: Include test-float.h, test-math-no-inline.h
16051         and test-math-scalar.h.
16052         (FUNC): Remove macro.
16053         (FUNC_TEST): Likewise.
16054         (FLOAT): Likewise.
16055         (MATHCONST): Likewise.
16056         (PRINTF_EXPR): Likewise.
16057         (PRINTF_XEXPR): Likewise.
16058         (PRINTF_NEXPR): Likewise.
16059         (TEST_FLOAT): Likewise.
16060         (TEST_MATHVEC): Likewise.
16061         (__NO_MATH_INLINES): Likewise.
16062         * math/test-idouble.c: Include test-double.h, test-math-inline.h
16063         and test-math-scalar.h.
16064         (FUNC): Remove macro.
16065         (FUNC_TEST): Likewise.
16066         (FLOAT): Likewise.
16067         (MATHCONST): Likewise.
16068         (PRINTF_EXPR): Likewise.
16069         (PRINTF_XEXPR): Likewise.
16070         (PRINTF_NEXPR): Likewise.
16071         (TEST_DOUBLE): Likewise.
16072         (TEST_MATHVEC): Likewise.
16073         (TEST_INLINE): Likewise.
16074         (__NO_MATH_INLINES): Likewise.
16075         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
16076         test-math-scalar.h.
16077         (FUNC): Remove macro.
16078         (FUNC_TEST): Likewise.
16079         (FLOAT): Likewise.
16080         (MATHCONST): Likewise.
16081         (PRINTF_EXPR): Likewise.
16082         (PRINTF_XEXPR): Likewise.
16083         (PRINTF_NEXPR): Likewise.
16084         (TEST_FLOAT): Likewise.
16085         (TEST_MATHVEC): Likewise.
16086         (TEST_INLINE): Likewise.
16087         (__NO_MATH_INLINES): Likewise.
16088         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
16089         and test-math-scalar.h.
16090         (FUNC): Remove macro.
16091         (FUNC_TEST): Likewise.
16092         (FLOAT): Likewise.
16093         (MATHCONST): Likewise.
16094         (PRINTF_EXPR): Likewise.
16095         (PRINTF_XEXPR): Likewise.
16096         (PRINTF_NEXPR): Likewise.
16097         (TEST_LDOUBLE): Likewise.
16098         (TEST_MATHVEC): Likewise.
16099         (TEST_INLINE): Likewise.
16100         (__NO_MATH_INLINES): Likewise.
16101         * math/test-ldouble.c: Include test-ldouble.h,
16102         test-math-no-inline.h and test-math-scalar.h.
16103         (FUNC): Remove macro.
16104         (FUNC_TEST): Likewise.
16105         (FLOAT): Likewise.
16106         (MATHCONST): Likewise.
16107         (PRINTF_EXPR): Likewise.
16108         (PRINTF_XEXPR): Likewise.
16109         (PRINTF_NEXPR): Likewise.
16110         (TEST_LDOUBLE): Likewise.
16111         (TEST_MATHVEC): Likewise.
16112         (__NO_MATH_INLINES): Likewise.
16113         * math/test-double-vlen2.h: Include test-double.h,
16114         test-math-no-inline.h and test-math-vector.h.
16115         (FLOAT): Remove macro.
16116         (FUNC): Likewise.
16117         (MATHCONST): Likewise.
16118         (PRINTF_EXPR): Likewise.
16119         (PRINTF_XEXPR): Likewise.
16120         (PRINTF_NEXPR): Likewise.
16121         (TEST_DOUBLE): Likewise.
16122         (TEST_MATHVEC): Likewise.
16123         (__NO_MATH_INLINES): Likewise.
16124         (CNCT): Likewise.
16125         (CONCAT): Likewise.
16126         (WRAPPER_NAME): Likewise.
16127         (WRAPPER_DECL): Likewise.
16128         (WRAPPER_DECL_ff): Likewise.
16129         (WRAPPER_DECL_fFF): Likewise.
16130         (VECTOR_WRAPPER): Likewise.
16131         (VECTOR_WRAPPER_ff): Likewise.
16132         (VECTOR_WRAPPER_fFF): Likewise.
16133         (VEC_LEN): New macro.
16134         * math/test-double-vlen4.h: Include test-double.h,
16135         test-math-no-inline.h and test-math-vector.h.
16136         (FLOAT): Remove macro.
16137         (FUNC): Likewise.
16138         (MATHCONST): Likewise.
16139         (PRINTF_EXPR): Likewise.
16140         (PRINTF_XEXPR): Likewise.
16141         (PRINTF_NEXPR): Likewise.
16142         (TEST_DOUBLE): Likewise.
16143         (TEST_MATHVEC): Likewise.
16144         (__NO_MATH_INLINES): Likewise.
16145         (CNCT): Likewise.
16146         (CONCAT): Likewise.
16147         (WRAPPER_NAME): Likewise.
16148         (WRAPPER_DECL): Likewise.
16149         (WRAPPER_DECL_ff): Likewise.
16150         (WRAPPER_DECL_fFF): Likewise.
16151         (VECTOR_WRAPPER): Likewise.
16152         (VECTOR_WRAPPER_ff): Likewise.
16153         (VECTOR_WRAPPER_fFF): Likewise.
16154         (VEC_LEN): New macro.
16155         * math/test-double-vlen8.h: Include test-double.h,
16156         test-math-no-inline.h and test-math-vector.h.
16157         (FLOAT): Remove macro.
16158         (FUNC): Likewise.
16159         (MATHCONST): Likewise.
16160         (PRINTF_EXPR): Likewise.
16161         (PRINTF_XEXPR): Likewise.
16162         (PRINTF_NEXPR): Likewise.
16163         (TEST_DOUBLE): Likewise.
16164         (TEST_MATHVEC): Likewise.
16165         (__NO_MATH_INLINES): Likewise.
16166         (CNCT): Likewise.
16167         (CONCAT): Likewise.
16168         (WRAPPER_NAME): Likewise.
16169         (WRAPPER_DECL): Likewise.
16170         (WRAPPER_DECL_ff): Likewise.
16171         (WRAPPER_DECL_fFF): Likewise.
16172         (VECTOR_WRAPPER): Likewise.
16173         (VECTOR_WRAPPER_ff): Likewise.
16174         (VECTOR_WRAPPER_fFF): Likewise.
16175         (VEC_LEN): New macro.
16176         * math/test-float-vlen4.h: Include test-float.h,
16177         test-math-no-inline.h and test-math-vector.h.
16178         (FLOAT): Remove macro.
16179         (FUNC): Likewise.
16180         (MATHCONST): Likewise.
16181         (PRINTF_EXPR): Likewise.
16182         (PRINTF_XEXPR): Likewise.
16183         (PRINTF_NEXPR): Likewise.
16184         (TEST_FLOAT): Likewise.
16185         (TEST_MATHVEC): Likewise.
16186         (__NO_MATH_INLINES): Likewise.
16187         (CNCT): Likewise.
16188         (CONCAT): Likewise.
16189         (WRAPPER_NAME): Likewise.
16190         (WRAPPER_DECL): Likewise.
16191         (WRAPPER_DECL_ff): Likewise.
16192         (WRAPPER_DECL_fFF): Likewise.
16193         (VECTOR_WRAPPER): Likewise.
16194         (VECTOR_WRAPPER_ff): Likewise.
16195         (VECTOR_WRAPPER_fFF): Likewise.
16196         (VEC_LEN): New macro.
16197         * math/test-float-vlen8.h: Include test-float.h,
16198         test-math-no-inline.h and test-math-vector.h.
16199         (FLOAT): Remove macro.
16200         (FUNC): Likewise.
16201         (MATHCONST): Likewise.
16202         (PRINTF_EXPR): Likewise.
16203         (PRINTF_XEXPR): Likewise.
16204         (PRINTF_NEXPR): Likewise.
16205         (TEST_FLOAT): Likewise.
16206         (TEST_MATHVEC): Likewise.
16207         (__NO_MATH_INLINES): Likewise.
16208         (CNCT): Likewise.
16209         (CONCAT): Likewise.
16210         (WRAPPER_NAME): Likewise.
16211         (WRAPPER_DECL): Likewise.
16212         (WRAPPER_DECL_ff): Likewise.
16213         (WRAPPER_DECL_fFF): Likewise.
16214         (VECTOR_WRAPPER): Likewise.
16215         (VECTOR_WRAPPER_ff): Likewise.
16216         (VECTOR_WRAPPER_fFF): Likewise.
16217         (VEC_LEN): New macro.
16218         * math/test-float-vlen16.h: Include test-float.h,
16219         test-math-no-inline.h and test-math-vector.h.
16220         (FLOAT): Remove macro.
16221         (FUNC): Likewise.
16222         (MATHCONST): Likewise.
16223         (PRINTF_EXPR): Likewise.
16224         (PRINTF_XEXPR): Likewise.
16225         (PRINTF_NEXPR): Likewise.
16226         (TEST_FLOAT): Likewise.
16227         (TEST_MATHVEC): Likewise.
16228         (__NO_MATH_INLINES): Likewise.
16229         (CNCT): Likewise.
16230         (CONCAT): Likewise.
16231         (WRAPPER_NAME): Likewise.
16232         (WRAPPER_DECL): Likewise.
16233         (WRAPPER_DECL_ff): Likewise.
16234         (WRAPPER_DECL_fFF): Likewise.
16235         (VECTOR_WRAPPER): Likewise.
16236         (VECTOR_WRAPPER_ff): Likewise.
16237         (VECTOR_WRAPPER_fFF): Likewise.
16238         (VEC_LEN): New macro.
16239         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16240         test-vec-loop.h.
16241         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16242         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16243         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16244         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16245         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16246         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16247         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16248
16249 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16250
16251         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16252         (__getlogin_r): ... this.
16253
16254 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16255
16256         [BZ #18594]
16257         * math/s_ccosh.c (__ccosh): Compare with least normal value
16258         instead of comparing class with FP_SUBNORMAL.
16259         * math/s_ccoshf.c (__ccoshf): Likewise.
16260         * math/s_ccoshl.c (__ccoshl): Likewise.
16261         * math/s_cexp.c (__cexp): Likewise.
16262         * math/s_cexpf.c (__cexpf): Likewise.
16263         * math/s_cexpl.c (__cexpl): Likewise.
16264         * math/s_csin.c (__csin): Likewise.
16265         * math/s_csinf.c (__csinf): Likewise.
16266         * math/s_csinh.c (__csinh): Likewise.
16267         * math/s_csinhf.c (__csinhf): Likewise.
16268         * math/s_csinhl.c (__csinhl): Likewise.
16269         * math/s_csinl.c (__csinl): Likewise.
16270         * math/s_ctan.c (__ctan): Likewise.
16271         * math/s_ctanf.c (__ctanf): Likewise.
16272         * math/s_ctanh.c (__ctanh): Likewise.
16273         * math/s_ctanhf.c (__ctanhf): Likewise.
16274         * math/s_ctanhl.c (__ctanhl): Likewise.
16275         * math/s_ctanl.c (__ctanl): Likewise.
16276         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16277         csin, csinh, ctan and ctanh.
16278         * math/auto-libm-test-out: Regenerated.
16279         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16280         * sysdeps/i386/fpu/libm-test-ulps: Update.
16281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16282
16283 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16284
16285         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16286         return value is wrong, print the expected value too.
16287
16288 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16289
16290         [BZ #18585]
16291         * elf/readlib.c (is_gdb_python_file): New.
16292         (process_file): Don't issue errors on filenames with -gdb.py
16293         suffix.
16294
16295 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16296
16297         * math/auto-libm-test-in: Add more tests of csin and csinh.
16298         * math/auto-libm-test-out: Regenerated.
16299         * math/libm-test.inc (csin_test_data): Remove tests moved to
16300         auto-libm-test-in.
16301         (csinh_test_data): Likewise.
16302
16303         [BZ #18593]
16304         * math/s_csin.c (__csin): Negate before rather than after possibly
16305         overflowing multiplication.
16306         * math/s_csinf.c (__csinf): Likewise.
16307         * math/s_csinh.c (__csinh): Likewise.
16308         * math/s_csinhf.c (__csinhf): Likewise.
16309         * math/s_csinhl.c (__csinhl): Likewise.
16310         * math/s_csinl.c (__csinl): Likewise.
16311         * math/auto-libm-test-in: Add some tests of csin and csinh.
16312         * math/auto-libm-test-out: Regenerated.
16313         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16314         (csinh_test_data): Likewise.
16315         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16316
16317         [BZ #18586]
16318         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16319         underflow exception for small results.
16320
16321 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16322
16323         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16324         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16325         variable and included header.
16326         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16327         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16328         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16329         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16330         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16331         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16332         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16333         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16334         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16335         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16336         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16337         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16338         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16339         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16340         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16341         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16342
16343 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16344
16345         [BZ #16526]
16346         [BZ #16538]
16347         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16348         (__sin): Force underflow exception for arguments with small
16349         absolute value.
16350         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16351         (__kernel_sinf): Force underflow exception for arguments with
16352         small absolute value.
16353         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16354         (__kernel_sincosl): Force underflow exception for arguments with
16355         small absolute value.
16356         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16357         (__kernel_sinl): Force underflow exception for arguments with
16358         small absolute value.
16359         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16360         (__kernel_sincosl): Force underflow exception for arguments with
16361         small absolute value.
16362         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16363         (__kernel_sinl): Force underflow exception for arguments with
16364         small absolute value.
16365         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16366         (__kernel_sinl): Force underflow exception for arguments with
16367         small absolute value.
16368         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16369         (__kernel_sinf): Force underflow exception for arguments with
16370         small absolute value.
16371         * math/auto-libm-test-in: Add more tests of sin and sincos.
16372         * math/auto-libm-test-out: Regenerated.
16373
16374         [BZ #18245]
16375         [BZ #18583]
16376         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16377         (__kernel_standard_l): Use feholdexcept and fesetenv around
16378         conversion to double instead of special-casing overflow and
16379         underflow.
16380         * math/libm-test.inc (fmod_test_data): Add more tests.
16381         (remainder_test_data): Likewise.
16382         (sqrt_test_data): Likewise.
16383
16384 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16385
16386         [BZ #17403]
16387         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16388         atomic_read_barrier, atomic_write_barrier): Define.
16389         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16390         atomic_read_barrier, atomic_write_barrier): Define.
16391
16392 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16393
16394         * math/Makefile [$(PERL) != no]
16395         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16396         dependency on libm-test.stmp below the inclusion of Rules.
16397
16398 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16399
16400         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16401         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16402         and included header.
16403         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16404         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16405         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16406         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16407         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16408         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16409         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16410         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16411         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16412         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16413         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16414         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16415         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16416         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16417         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16418         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16419         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16420         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16421         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16422
16423 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16424
16425         [BZ #18371]
16426         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16427         intermediate but not final result might underflow.
16428         * math/s_csqrtf.c (__csqrtf): Likewise.
16429         * math/s_csqrtl.c (__csqrtl): Likewise.
16430         * math/auto-libm-test-in: Add more tests of csqrt.
16431         * math/auto-libm-test-out: Regenerated.
16432         * sysdeps/i386/fpu/libm-test-ulps: Update.
16433
16434         [BZ #18219]
16435         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16436         threshold on absolute value of exponent for which scaling is used.
16437         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16438         * math/auto-libm-test-in: Add more tests of exp2.
16439         * math/auto-libm-test-out: Regenerated.
16440
16441 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16442
16443         [BZ #17977]
16444         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16445         when initializing interface list, based on the bug analysis
16446         and the patch proposed by Eric Newton.
16447         * resolv/tst-res_hconf_reorder.c: New test.
16448         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16449         tst-res_hconf_reorder.
16450         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16451         and $(shared-thread-library).
16452         (tst-res_hconf_reorder-ENV): New variable.
16453
16454         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16455         in comment.
16456
16457 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16458
16459         [BZ #16353]
16460         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16461         (__expm1): Force underflow exception for arguments with small
16462         absolute value.
16463         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16464         (__expm1f): Force underflow exception for arguments with small
16465         absolute value.
16466         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16467         (__expm1): Force underflow exception for arguments with small
16468         absolute value.
16469         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16470         (__expm1f): Force underflow exception for arguments with small
16471         absolute value.
16472         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16473         Check for small arguments before calling __expm1.
16474         * math/auto-libm-test-in: Do not mark underflow exceptions as
16475         possibly missing for bug 16353.
16476         * math/auto-libm-test-out: Regenerated.
16477
16478 2015-06-22  Andreas Schwab  <schwab@suse.de>
16479
16480         [BZ #18513]
16481         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16482         PTR queries.
16483
16484 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16485
16486         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16487
16488         * string/strcoll_l.c: Remove unused struct element idxnow.
16489
16490 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16491
16492         [BZ #18569]
16493         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16494         underflow and return argument in case of subnormal argument.
16495         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16496         Likewise.
16497         * math/auto-libm-test-in: Add more tests of expm1.
16498         * math/auto-libm-test-out: Regenerated.
16499
16500         [BZ #16361]
16501         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16502         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16503         tiny results.
16504         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16505         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16506         tiny results.
16507         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16508         mark underflow exceptions as possibly missing for bug 16361.
16509         * math/auto-libm-test-out: Regenerated.
16510
16511 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16512
16513         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16514         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16515         Remove variable.
16516         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16517         (test-xfail-XOPEN2K8/utmpx.h/conform).
16518
16519         * conform/conformtest.pl ($xerrors): New variable.
16520         (note_error): New function.
16521         (compiletest): New argument $xfail.  Use not_error.
16522         (runtest): Likewise.
16523         (top level): Handle xfail- lines.  Update calls to compiletest and
16524         runtest.  Handle xfail- and optional- in headers listed with
16525         allow-header.
16526         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16527         (O_EXEC): Likewise.
16528         (O_SEARCH): Likewise.
16529         * conform/data/stropts.h-data (ioctl): Likewise.
16530         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16531         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16532         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16533         (msghdr.msg_controllen): Likewise.
16534         (cmsghdr.cmsg_len): Likewise.
16535         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16536         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16537         variable.
16538         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16539         (test-xfail-XPG4/stropts.h/conform): Likewise.
16540         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16541         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16542         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16543         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16544         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16545         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16546         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16547         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16548         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16549         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16550         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16551         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16552         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16553         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16554         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16555         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16556         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16557         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16558         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16559
16560 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16561
16562         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16563         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16564         definitions for proper unfolding of __MATHDECL_VEC.
16565
16566 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16567
16568         * benchtests/bench-strcoll.c:
16569         Include string.h.
16570         (main): Remove unused variable res.
16571
16572 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16573
16574         * timezone/Makefile (%/UTC %/Universal):
16575         Generate test-result files for UTC and Universal.
16576
16577 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16578
16579         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16580
16581 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16582
16583         [BZ #16350]
16584         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16585         for arguments with small absolute value.
16586         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16587         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16588         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16589         (__asinh): Force underflow exception for arguments with small
16590         absolute value.
16591         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16592         (__asinhf): Force underflow exception for arguments with small
16593         absolute value.
16594         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16595         (__asinhl): Force underflow exception for arguments with small
16596         absolute value.
16597         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16598         (__asinhl): Force underflow exception for arguments with small
16599         absolute value.
16600         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16601         (__asinhl): Force underflow exception for arguments with small
16602         absolute value.
16603         * math/auto-libm-test-in: Do not mark underflow exceptions as
16604         possibly missing for bug 16350.
16605         * math/auto-libm-test-out: Regenerated.
16606
16607         * include/bits/ipc.h: Remove file.
16608         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16609         variable.
16610         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16611         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16612         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16613         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16614         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16615         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16616         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16617         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16618         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16619
16620         * math/auto-libm-test-in: Remove spurious underflow allowance for
16621         tests of cexp.
16622         * math/auto-libm-test-out: Regenerated.
16623
16624         [BZ #18558]
16625         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16626         unconditional definition.
16627         (MCAST_BLOCK_SOURCE): Likewise.
16628         (MCAST_UNBLOCK_SOURCE): Likewise.
16629         (MCAST_LEAVE_GROUP): Likewise.
16630         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16631         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16632         (MCAST_MSFILTER): Likewise.
16633         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16634         Remove variable.
16635         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16636         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16637         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16638         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16639         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16640
16641 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16642
16643         * NEWS: Mention addition of x86_64 vector sincosf.
16644         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16645         * math/test-float-vlen4.h: Likewise.
16646         * math/test-float-vlen8.h: Likewise.
16647         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16648         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16649         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16650         * sysdeps/x86_64/fpu/Versions: New versions added.
16651         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16652         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16653         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16654         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16655         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16656         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16657         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16658         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16659         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16660         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16661         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16662         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16663         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16664         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16665         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16666         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16667         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16668         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16669         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16670         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16671         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16672         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16673         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16674         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16675
16676         * NEWS: Mention addition of x86_64 vector sincos.
16677         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16678         * math/math.h (__MATHDECL_VEC): New macro.
16679         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16680         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16681         declaration under condition.
16682         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16683         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16684         TEST_VEC_LOOP change.
16685         * math/test-double-vlen4.h: Likewise.
16686         * math/test-double-vlen8.h: Likewise.
16687         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16688         * math/test-float-vlen4.h: Likewise.
16689         * math/test-float-vlen8.h: Likewise.
16690         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16691         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16692         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16693         * sysdeps/x86_64/fpu/Versions: New versions added.
16694         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16695         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16696         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16697         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16698         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16699         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16700         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16701         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16702         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16703         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16704         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16705         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16706         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16707         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16708         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16709         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16710         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16711         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16712         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16713         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16714         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16715         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16716         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16717         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16718
16719         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16720         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16721         redirections for powf.
16722         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16723         * sysdeps/x86_64/fpu/Versions: New versions added.
16724         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16725         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16726         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16727         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16728         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16729         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16730         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16731         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16732         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16733         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16734         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16735         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16736         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16737         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16738         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16739         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16740         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16741         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16742         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16743         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16744         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16745         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16746         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16747         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16748         * math/test-float-vlen16.h: Fixed 2 argument macro.
16749         * math/test-float-vlen4.h: Likewise.
16750         * math/test-float-vlen8.h: Likewise.
16751         * NEWS: Mention addition of x86_64 vector powf.
16752
16753 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16754
16755         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16756         and redefine.
16757         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16758         and redefine.
16759         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16760         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16761         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16762
16763         [BZ #18553]
16764         * resource/getpriority.c (getpriority): Rename to __getpriority
16765         and define as weak alias of __getpriority.
16766         * resource/setpriority.c (setpriority): Rename to __setpriority
16767         and define as weak alias of __setpriority.
16768         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16769         __getpriority and define as weak alias of __getpriority.
16770         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16771         __setpriority and define as weak alias of __setpriority.
16772         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16773         strong name.
16774         (setpriority): Use __setpriority as strong name.
16775         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16776         __getpriority and define as weak alias of __getpriority.
16777         * include/sys/resource.h (__getpriority): Declare.  Use
16778         libc_hidden_proto.
16779         (__setpriority): Likewise.
16780         (getpriority): Don't use libc_hidden_proto.
16781         (setpriority): Likewise.
16782         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16783         getpriority.  Call __setpriority instead of setpriority.
16784         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16785         Remove variable.
16786
16787         [BZ #18547]
16788         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16789         as weak alias of __getttynam.  Use prototype function definition.
16790         Call __setttyent, __getttyent and __endttyent instead of
16791         setttyent, getttyent and endttyent.
16792         (getttyent): Rename to __getttyent and define as weak alias of
16793         __getttyent.  Call __setttyent instead of setttyent.  Call
16794         __fgets_unlocked instead of fgets_unlocked.
16795         (setttyent): Rename to __setttyent and define as weak alias of
16796         __setttyent.
16797         (endttyent): Rename to __endttyent and define as weak alias of
16798         __endttyent.
16799         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16800         (__setttyent): Likewise.
16801         (__endttyent): Likewise.
16802         (getttyent): Don't use libc_hidden_proto.
16803         (setttyent): Likewise.
16804         (endttyent): Likewise.
16805         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16806         __endttyent instead of setttyent, getttyent and endttyent.
16807         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16808         Remove variable.
16809
16810         [BZ #18546]
16811         * socket/recv.c (__recv): Use libc_hidden_def.
16812         * socket/socket.c (__socket): Likewise.
16813         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16814         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16815         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16816         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16817         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16818         libc_hidden_def.
16819         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16820         libc_hidden_weak.
16821         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16822         Use libc_hidden_proto.
16823         (__recv): Likewise.
16824         * socket/Versions (libc): Export __recv and __socket at version
16825         GLIBC_PRIVATE.
16826         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16827         instead of recv.
16828         (init_mq_netlink): Call __socket instead of socket.
16829         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16830         Remove variable.
16831
16832         [BZ #18545]
16833         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16834         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16835         hidden_weak.
16836         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16837         define as alias of __mq_timedsend.  Use hidden_weak.
16838         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16839         __mq_timedsend as strong name.
16840         (mq_timedreceive): Use __mq_timedreceive as strong name.
16841         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16842         (__mq_timedreceive): Likewise.
16843         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16844         __mq_timedreceive instead of mq_timedreceive.
16845         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16846         instead of mq_timedsend.
16847         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16848         Remove variable.
16849
16850         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16851         hidden_def and hidden_weak instead of libc_hidden_def and
16852         libc_hidden_weak.
16853         (top level): Refer to hidden_def in comment.
16854         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16855         macro.  Use it instead of libc_hidden_def.
16856         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16857         specify __GI_* name explicitly.
16858         (mq_timedreceive): Likewise.
16859         (mq_setattr): Likewise.
16860
16861         [BZ #18544]
16862         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16863         __pthread_barrier_init and define as weak alias of
16864         __pthread_barrier_init.
16865         * sysdeps/sparc/nptl/pthread_barrier_init.c
16866         (pthread_barrier_init): Likewise.
16867         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16868         __pthread_barrier_wait and define as weak alias of
16869         __pthread_barrier_wait.
16870         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16871         (pthread_barrier_wait): Likewise.
16872         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16873         (pthread_barrier_wait): Likewise.
16874         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16875         (pthread_barrier_wait): Likewise.
16876         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16877         (pthread_barrier_wait): Likewise.
16878         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16879         __pthread_barrier_wait at version GLIBC_PRIVATE.
16880         * include/pthread.h (__pthread_barrier_init): Declare.
16881         (__pthread_barrier_wait): Likewise.
16882         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16883         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16884         (helper_thread): Likewise.
16885         (init_mq_netlink): Call __pthread_barrier_init instead of
16886         pthread_barrier_init.
16887
16888         [BZ #18542]
16889         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16890         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16891         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16892         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16893         vswscanf.
16894         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16895         Remove variable.
16896
16897         [BZ #18540]
16898         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16899         strong alias of _IO_fflush.  Use libc_hidden_def.
16900         * libio/iofflush_u.c (fflush_unlocked): Rename to
16901         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16902         Use libc_hidden_weak.
16903         * include/stdio.h (__fflush_unlocked): Declare.  Use
16904         libc_hidden_proto.
16905         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16906         fflush_unlocked.
16907         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16908         Remove variable.
16909
16910         [BZ #18539]
16911         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16912         define as weak alias of __addseverity.
16913         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16914         Remove variable.
16915         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16916         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16917         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16918
16919         [BZ #18536]
16920         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16921         (__tfind): Likewise.
16922         (__tdelete): Likewise.
16923         (__twalk): Likewise.
16924         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16925         __twalk to GLIBC_PRIVATE.
16926         * include/search.h (__tsearch): Use libc_hidden_proto.
16927         (__tfind): Likewise.
16928         (__tdelete): Likewise.
16929         (__twalk): Likewise.
16930         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16931         Call __tdelete instead of tdelete.
16932         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16933         tfind.  Call __tsearch instead of tsearch.
16934         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16935         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16936         Remove variable.
16937         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16938
16939         [BZ #18534]
16940         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16941         (dprintf): Define as a weak alias of __dprintf, not a strong
16942         alias.
16943         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16944         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16945         dprintf.
16946         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16947         Remove variable.
16948         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16949         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16950
16951         [BZ #18533]
16952         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16953         not a strong alias.
16954         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16955         Remove variable.
16956
16957         [BZ #18532]
16958         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16959         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16960         (in6addr_loopback): Rename to __in6addr_loopback and define as
16961         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16962         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16963         libc_hidden_proto.
16964         (__in6addr_any): Likewise.
16965         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16966         in6addr_any.
16967         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16968         variable.
16969         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16970
16971 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16972
16973         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16974         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16975         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16976         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16977         redirections for pow.
16978         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16979         * sysdeps/x86_64/fpu/Versions: New versions added.
16980         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16981         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16982         build of SSE, AVX2 and AVX512 IFUNC versions.
16983         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16984         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16985         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16986         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16987         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16988         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16989         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16990         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16991         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16992         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16993         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16994         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16995         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16996         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16997         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16998         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16999         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17000         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17001         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17002         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17003         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17004         * NEWS: Mention addition of x86_64 vector pow.
17005
17006         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
17007         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
17008         redirections for expf.
17009         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17010         * sysdeps/x86_64/fpu/Versions: New versions added.
17011         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17012         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17013         build of SSE, AVX2 and AVX512 IFUNC versions.
17014         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
17015         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
17016         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
17017         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
17018         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
17019         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
17020         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
17021         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
17022         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
17023         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
17024         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
17025         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
17026         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
17027         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17028         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17029         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17030         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17031         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17032         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17033         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17034         * NEWS: Mention addition of x86_64 vector expf.
17035
17036         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
17037         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
17038         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17039         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
17040         redirections for exp.
17041         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17042         * sysdeps/x86_64/fpu/Versions: New versions added.
17043         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17044         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17045         build of SSE, AVX2 and AVX512 IFUNC versions.
17046         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
17047         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
17048         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
17049         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
17050         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
17051         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
17052         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
17053         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
17054         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
17055         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
17056         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
17057         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
17058         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
17059         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17060         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17061         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17062         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17063         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17064         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17065         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17066         * NEWS: Mention addition of x86_64 vector exp.
17067
17068         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
17069         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
17070         redirections for logf.
17071         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17072         * sysdeps/x86_64/fpu/Versions: New versions added.
17073         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17074         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17075         build of SSE, AVX2 and AVX512 IFUNC versions.
17076         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
17077         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
17078         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
17079         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
17080         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
17081         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
17082         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
17083         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
17084         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
17085         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
17086         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
17087         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
17088         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
17089         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17090         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17091         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17092         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17093         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17094         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17095         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17096         * NEWS: Mention addition of x86_64 vector logf.
17097
17098         * bits/libm-simd-decl-stubs.h: Added stubs for log.
17099         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
17100         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17101         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
17102         redirections for log.
17103         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17104         * sysdeps/x86_64/fpu/Versions: New versions added.
17105         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17106         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17107         build of SSE, AVX2 and AVX512 IFUNC versions.
17108         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
17109         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
17110         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
17111         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
17112         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
17113         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
17114         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
17115         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
17116         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
17117         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
17118         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
17119         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
17120         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
17121         test.
17122         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17123         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17124         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17125         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17126         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17127         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17128         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17129         * NEWS: Mention addition of x86_64 vector log.
17130
17131 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17132
17133         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
17134         cfi_adjust_cfa_offset argument.
17135         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
17136         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
17137
17138         [BZ #18034]
17139         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
17140         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
17141         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
17142         ordering using ldar.
17143         (_dl_tlsdesc_dynamic): Likewise.
17144         (_dl_tlsdesc_return_lazy): Likewise.
17145         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
17146         relaxed atomics instead of volatile and synchronize with release store.
17147         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
17148         volatile.
17149         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
17150
17151 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
17152
17153         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
17154         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
17155         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17156         * sysdeps/x86_64/fpu/Versions: New versions added.
17157         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17158         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17159         build of SSE, AVX2 and AVX512 IFUNC versions.
17160         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
17161         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
17162         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
17163         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
17164         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
17165         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
17166         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
17167         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
17168         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
17169         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
17170         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
17171         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
17172         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
17173         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17174         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17175         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17176         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17177         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17178         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17179         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17180         * NEWS: Mention addition of x86_64 vector sinf.
17181
17182 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
17183
17184         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
17185         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
17186         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
17187         Remove variable.
17188         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
17189         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
17190
17191 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17192
17193         [BZ #18530]
17194         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
17195         strong alias of _IO_fputs.  Use libc_hidden_def.
17196         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
17197         and define as weak alias of __fputs_unlocked.  Use
17198         libc_hidden_weak.
17199         * include/stdio.h (__fputs_unlocked): Declare.  Use
17200         libc_hidden_proto.
17201         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17202         fputs_unlocked.
17203
17204         [BZ #18529]
17205         * resolv/netdb.h [__USE_POSIX]: Change condition to
17206         [__USE_XOPEN2K].
17207         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17208         not expect.
17209         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17210         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17211         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17212         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17213         [XPG4 || UNIX98] (AI_ALL): Likewise.
17214         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17215         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17216         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17217         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17218         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17219         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17220         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17221         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17222         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17223         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17224         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17225         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17226         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17227         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17228         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17229         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17230         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17231         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17232         [XPG4 || UNIX98] (gai_strerror): Likewise.
17233         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17234         [XPG4 || UNIX98] (getnameinfo): Likewise.
17235
17236         [BZ #18528]
17237         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17238         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17239         __USE_XOPEN2K8].
17240         (getgrent): Likewise.
17241         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17242         expect.
17243         [XPG3 || POSIX2008] (endgrent): Likewise.
17244         [XPG3] (setgrent): Likewise.
17245         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17246         variable.
17247         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17248
17249         [BZ #18527]
17250         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17251         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17252         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17253         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17254         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17255         * include/unistd.h (__getlogin_r): Declare.  Use
17256         libc_hidden_proto.
17257         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17258         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17259         variable.
17260         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17261         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17262         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17263
17264 2015-06-12  Martin Sebor  <msebor@redhat.com>
17265
17266         [BZ #18512]
17267         * Makerules (check-install-supported): New target.
17268         (install): Add check-install-supported as a dependency.
17269         * manual/install.texi (Installing the C Library): Document
17270         that overriding prefix and exec_prefix is not supported.
17271         Mention DESTDIR.
17272         * INSTALL: Regenerate from the above.
17273
17274 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17275
17276         [BZ #18519]
17277         * posix/Versions (libc): Export __libc_pread at version
17278         GLIBC_PRIVATE.
17279         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17280         instead of pread.
17281         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17282         variable.
17283
17284         [BZ #18522]
17285         * misc/efgcvt_r.c
17286         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17287         (cvt_symbol): Use weak_alias instead of strong_alias.
17288         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17289         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17290         Remove variable.
17291         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17292         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17293
17294         [BZ #18520]
17295         * inet/herrno.c (h_errno): Rename to __h_errno.
17296         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17297         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17298         to __h_errno instead of h_errno.
17299         * nptl/herrno.c (h_errno): Rename to __h_errno.
17300         (__h_errno_location): Refer to __h_errno not h_errno.
17301         * resolv/Versions (h_errno): Rename to __h_errno.
17302         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17303         Remove variable.
17304         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17305
17306 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17307
17308         * configure.ac: More strict check for AVX512 assembler support.
17309         * configure: Regenerated.
17310
17311         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17312         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17313         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17314         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17315         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17316         * sysdeps/x86_64/fpu/Versions: New versions added.
17317         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17318         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17319         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17320         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17321         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17322         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17323         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17324         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17325         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17326         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17327         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17328         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17329         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17330         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17331         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17332         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17333         test.
17334         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17335         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17336         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17337         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17338         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17339         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17340         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17341         * NEWS: Mention addition of x86_64 vector sin.
17342
17343 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17344
17345         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17346         comment.
17347
17348 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17349
17350         [BZ #18479]
17351         * nptl/pt-interp.c: New file.
17352         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17353         Add pt-interp.
17354         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17355         $(common-objpfx)runtime-linker.h.
17356
17357 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17358
17359         * Makeconfig (+interp): Remove unused variable.
17360         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17361         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17362         $(elf-objpfx)runtime-linker.h.
17363         ($(elf-objpfx)runtime-linker.h): Rename to
17364         $(common-objpfx)runtime-linker.h and move ...
17365         * Makerules [$(build-shared) = yes]: ... here.
17366         * elf/interp.c: Include <runtime-linker.h> instead of
17367         <elf/runtime-linker.h>.
17368
17369 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17370
17371         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17372         (__gettimeofday_syscall): Remove vsyscall fallback.
17373         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17374         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17375         Add syscall fallback function.
17376         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17377         if vDSO is not present.
17378         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17379         fallback function.
17380         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17381         present.
17382         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17383         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17384
17385 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17386
17387         [BZ #18497]
17388         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17389         of wcscmp.
17390         (wcscmp): Define as weak alias of WCSCMP.
17391         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17392         wcscoll.
17393         (USE_HIDDEN_DEF): Define.
17394         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17395         __wcscoll.  Don't use libc_hidden_weak.
17396         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17397         wcscmp.
17398         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17399         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17400         __GI_wcscmp.
17401         (weak_alias): Undefine and redefine.
17402         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17403         __wcscmp and define as weak alias of __wcscmp.
17404         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17405         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17406         (__wcscoll): Likewise.
17407         (wcscmp): Don't use libc_hidden_proto.
17408         (wcscoll): Likewise.
17409         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17410         wcscoll.
17411         * posix/regexec.c (check_node_accept_bytes): Likewise.
17412         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17413         variable.
17414         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17415         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17416
17417         [BZ #18507]
17418         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17419         __fstatvfs and define as weak alias of __fstatvfs.  Use
17420         libc_hidden_weak.
17421         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17422         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17423         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17424         Define as alias of __fstatvfs, not fstatvfs.
17425         (fstatvfs64): Likewise.
17426         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17427         Define as alias of __statvfs, not statvfs.
17428         (statvfs64): Likewise.
17429         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17430         Remove variable.
17431
17432 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17433
17434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17435         (HAVE_GETCPU_VSYSCALL): Define.
17436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17437         (HAVE_GETCPU_VSYSCALL): Likewise.
17438         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17439         * sysdeps/unix/sysv/linux/sched_getcpu.c
17440         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17441         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17442         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17443         prototype.
17444         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17445         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17446         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17447         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17448         Define.
17449         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17450         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17451         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17452         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17453
17454 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17455
17456         * sysdeps/x86_64/fpu/Makefile: New file.
17457         * sysdeps/x86_64/fpu/Versions: New file.
17458         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17459         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17460         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17461         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17462         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17463         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17464         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17465         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17466         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17467         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17468         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17469         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17470         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17471         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17472         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17473         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17474         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17475         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17476         * sysdeps/x86_64/configure: Regenerated.
17477         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17478         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17479         * manual/install.texi (Configuring and compiling): Document
17480         --disable-mathvec.
17481         * INSTALL: Regenerated.
17482         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17483
17484         * math/Makefile: Added rules for vector tests.
17485         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17486         declaration under condition.
17487         * math/test-double-vlen2.h: New file.
17488         * math/test-double-vlen4.h: New file.
17489         * math/test-double-vlen8.h: New file.
17490         * math/test-vec-loop.h: Added initialization macro.
17491         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17492         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17493         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17494         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17495         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17496         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17497         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17498         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17499         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17500         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17501         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17502
17503         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17504         * sysdeps/x86_64/fpu/Versions: New versions added.
17505         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17506         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17507         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17508         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17509         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17510         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17511         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17512         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17513         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17514         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17515         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17516         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17517         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17518         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17519         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17520         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17521         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17522         * NEWS: Mention addition of x86_64 vector cosf.
17523
17524         * math/Makefile: Added CFLAGS for new tests.
17525         * math/test-float-vlen16.h: New file.
17526         * math/test-float-vlen4.h: New file.
17527         * math/test-float-vlen8.h: New file.
17528         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17529         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17530         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17531         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17532         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17533         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17534         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17535         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17536         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17537         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17538         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17539
17540 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17541
17542         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17543         * locale/programs/ld-ctype.c: Likewise.
17544
17545 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17546
17547         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17548         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17549         bit_ZMM16_31_state): New macro.
17550         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17551         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17552
17553 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17554
17555         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17556
17557 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17558
17559         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17560
17561 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17562
17563         [BZ #18498]
17564         * libio/memstream.c (open_memstream): Rename to __open_memstream
17565         and define as weak alias of __open_memstream.
17566         * include/stdio.h (__open_memstream): Declare.  Use
17567         libc_hidden_proto.
17568         (open_memstream): Don't use libc_hidden_proto.
17569         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17570         open_memstream.
17571         * posix/getopt.c (_getopt_internal_r): Likewise.
17572         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17573         variable.
17574         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17575         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17576         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17577
17578         [BZ #18496]
17579         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17580         instead of wcrtomb.
17581
17582         [BZ #18483]
17583         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17584         [__USE_XOPEN2K8].  Remove redundant #endif.
17585         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17586         Remove redundant #if.
17587         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17588         Remove variable.
17589         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17590         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17591
17592         [BZ #18495]
17593         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17594         (__iswlower): Likewise.
17595         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17596         (__iswlower): Likewise.
17597         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17598         instead of towlower.
17599         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17600         instead of iswlower.  Call __towupper instead of towupper.
17601         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17602         instead of iswalnum.
17603
17604 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17605
17606         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17607         errors to stderr.
17608
17609 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17610
17611         [BZ #15661]
17612         [BZ #17322]
17613         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17614         Check for overflow properly.  Check for O_APPEND.  Ignore large
17615         file system block sizes.  Add comments about problems.
17616         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17617         * manual/filesys.texi (Storage Allocation): New node.
17618
17619 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17620
17621         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17622         cancellable syscalls.
17623         (SYS_ify): Add guard to no redefine it.
17624         (INLINE_SYSCALL): Likewise.
17625         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17626         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17627         SYSCALL_CANCEL instead.
17628         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17629         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17630         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17631         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17632         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17633         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17634         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17635         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17636         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17637         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17638         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17639         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17640         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17641         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17642         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17643         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17644         Likewise.
17645         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17646         (__libc_pread64): Likewise.
17647         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17648         (__libc_preadv): Likewise.
17649         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17650         (__libc_readv64): Likewise.
17651         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17652         (__libc_pwrite): Likewise.
17653         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17654         (__libc_pwrite64): Likewise.
17655         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17656         (__libc_pwritev): Likewise.
17657         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17658         (__libc_pwritev64): Likewise.
17659         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17660         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17661         (sync_file_range): Likewise.
17662         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17663         Likewise.
17664         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17665         Likewise.
17666         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17667         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17668         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17669         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17670         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17671         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17672         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17673         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17675         Likewise.
17676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17677         (__libc_read64): Likewise.
17678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17679         Likewise.
17680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17681         Likewise.
17682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17683         Likewise.
17684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17685         Likewise.
17686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17687         (__libc_pread64): Likewise.
17688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17689         Likewise.
17690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17691         (__libc_pwrite64): Likewise.
17692         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17693         (sync_file_range): Likewise.
17694         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17695         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17696         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17697         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17698         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17699         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17700         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17701         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17702         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17703         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17704         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17705         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17706         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17707         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17708         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17709         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17710         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17711         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17712         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17713         Likewise.
17714         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17715         Likewise.
17716         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17717         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17718         Likewise.
17719         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17720         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17721         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17722         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17723         Likewise.
17724         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17725         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17726         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17727         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17728         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17729
17730 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17731
17732         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17733         Include dl-vdso.
17734         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17735         Use VDSO routines for gettimeofday, clock_gettime if
17736         available.
17737         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17738         Declare VDSO symbols.
17739         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17740         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17741         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17742         * sysdeps/unix/sysv/linux/arm/Versions: Add
17743         __vdso_clock_gettime.
17744
17745 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17746
17747         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17748         be an inline implementation regardless of library is built within.
17749         (open_not_cancel_2): Likewise.
17750         (__read_nocancel): Likewise.
17751         (__write_nocancel): Likewise.
17752         (openat_not_cancel): Likewise.
17753         (openat_not_cancel_3): Likewise.
17754         (openat64_not_cancel): Likewise.
17755         (openat64_not_cancel_3): Likewise.
17756         (__close_nocancel): Likewise.
17757         (pause_not_cancel): Likewise.
17758         (nanosleep_not_cancel): Likewise.
17759         (sigsuspend_not_cancel): Likewise.
17760
17761 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17762
17763         [BZ #14958]
17764         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17765         wake-up.
17766         (__pthread_rwlock_rdlock_slow): Likewise.
17767         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17768         Likewise.
17769         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17770         Likewise.
17771         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17772         * nptl/tst-rwlock16.c: New file.
17773         * nptl/Makefile (tests): Add new test.
17774
17775 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17776
17777         [BZ #18324]
17778         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17779         missing wake-up of readers.
17780         * nptl/tst-rwlock15.c: New file.
17781         * nptl/Makefile (tests): Add new test.
17782
17783 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17784
17785         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17786         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17787         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17788         and __nacl_supply_interface_rtld.
17789         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17790         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17791         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17792         Add __nacl_supply_interface_rtld.
17793         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17794
17795 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17796
17797         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17798         isfinite.
17799         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17800         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17801
17802 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17803
17804         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17805         __signbit* with standard C99 macros.
17806         * math/e_exp10l.c: Likewise.
17807         * math/e_exp2l.c: Likewise.
17808         * math/e_scalb.c: Likewise.
17809         * math/e_scalbf.c: Likewise.
17810         * math/e_scalbl.c: Likewise.
17811         * math/s_ldexp.c: Likewise.
17812         * math/s_ldexpf.c: Likewise.
17813         * math/s_ldexpl.c: Likewise.
17814         * math/w_atan2.c: Likewise.
17815         * math/w_atan2f.c: Likewise.
17816         * math/w_atan2l.c: Likewise.
17817         * math/w_cosh.c: Likewise.
17818         * math/w_coshf.c: Likewise.
17819         * math/w_coshl.c: Likewise.
17820         * math/w_exp10.c: Likewise.
17821         * math/w_exp10f.c: Likewise.
17822         * math/w_exp10l.c: Likewise.
17823         * math/w_exp2.c: Likewise.
17824         * math/w_exp2f.c: Likewise.
17825         * math/w_exp2l.c: Likewise.
17826         * math/w_fmod.c: Likewise.
17827         * math/w_fmodf.c: Likewise.
17828         * math/w_fmodl.c: Likewise.
17829         * math/w_hypot.c: Likewise.
17830         * math/w_hypotf.c: Likewise.
17831         * math/w_hypotl.c: Likewise.
17832         * math/w_jnl.c: Likewise.
17833         * math/w_lgamma.c: Likewise.
17834         * math/w_lgamma_r.c: Likewise.
17835         * math/w_lgammaf.c: Likewise.
17836         * math/w_lgammaf_r.c: Likewise.
17837         * math/w_lgammal.c: Likewise.
17838         * math/w_lgammal_r.c: Likewise.
17839         * math/w_pow.c: Likewise.
17840         * math/w_powf.c: Likewise.
17841         * math/w_powl.c: Likewise.
17842         * math/w_remainder.c: Likewise.
17843         * math/w_remainderf.c: Likewise.
17844         * math/w_remainderl.c: Likewise.
17845         * math/w_scalb.c: Likewise.
17846         * math/w_scalbf.c: Likewise.
17847         * math/w_scalbl.c: Likewise.
17848         * math/w_scalbln.c: Likewise.
17849         * math/w_scalblnf.c: Likewise.
17850         * math/w_scalblnl.c: Likewise.
17851         * math/w_sinh.c: Likewise.
17852         * math/w_sinhf.c: Likewise.
17853         * math/w_sinhl.c: Likewise.
17854         * math/w_tgamma.c: Likewise.
17855         * math/w_tgammaf.c: Likewise.
17856         * math/w_tgammal.c: Likewise.
17857         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17858         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17859         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17860         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17861         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17862         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17863         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17864         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17865         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17866         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17867         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17868         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17869         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17870         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17871         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17872         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17873         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17874         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17875         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17876         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17877         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17878         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17879         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17880         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17881         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17882         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17883         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17884         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17885         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17886         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17887         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17888         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17889         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17890         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17891         * stdio-common/printf_fp.c: Likewise.
17892         * stdio-common/printf_fphex.c: Likewise.
17893         * stdio-common/printf_size.c: Likewise.
17894
17895 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17896
17897         [BZ #18470]
17898         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17899         strnlen.
17900         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17901         Remove variable.
17902         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17903         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17904         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17905         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17906         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17907         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17908         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17909         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17910         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17911         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17912
17913         [BZ #18468]
17914         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17915         weak alias of __wmemchr.  Use libc_hidden_weak.
17916         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17917         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17918         instead of wmemchr.
17919
17920 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17921
17922         [BZ #18383]
17923         * elf/tst-tlsalign-extern.c: New file.
17924         * elf/tst-tlsalign-extern-static.c: New file.
17925         * elf/tst-tlsalign-vars.c: New file.
17926         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17927         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17928         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17929         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17930         (test-xfail-tst-tlsalign-extern-static): New variable.
17931
17932 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17933
17934         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17935         Use variable name _sc_err instead of err.
17936         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17937         instead of ret.
17938         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17939         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17940         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17941         (INLINE_SYSCALL): Likewise.
17942
17943         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17944         * include/string.h (__strnlen): Use libc_hidden_proto.
17945         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17946         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17947         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17948         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17949         (libc_hidden_def): Undefine and redefine.
17950         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17951         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17952         __GI_strnlen.
17953         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17954         libc_hidden_def.
17955         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17956
17957         [BZ #18469]
17958         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17959         weak alias of __towlower.  Use libc_hidden_weak.
17960         (towupper): Rename to __towupper and define as weak alias of
17961         __towupper.  Use libc_hidden_weak.
17962         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17963         (__towupper): Likewise.
17964         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17965         __towlower instead of towlower.
17966
17967 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17968
17969         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17970         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17971
17972 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17973
17974         * sysdeps/aarch64/libm-test-ulps: Update.
17975
17976 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17977
17978         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17979         Define.
17980         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17981         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17982         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17983         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17984         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17985         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17986         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17987
17988 2015-06-01  Martin Sebor  <msebor@redhat.com>
17989
17990         [BZ #18116]
17991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17992         (__setcontext): Use extended four-operand version of mtsf whenever
17993         possible.
17994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17995         (__novec_swapcontext): Likewise.
17996
17997 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17998
17999         * benchtests/scripts/compare_bench.py: New file.
18000         * benchtests/scripts/import_bench.py (mean): New function.
18001         (split_list): Likewise.
18002         (do_for_all_timings): Likewise.
18003         (compress_timings): Likewise.
18004
18005         * benchtests/scripts/import_bench.py: New file.
18006         * benchtests/scripts/validate_benchout.py: Import import_bench
18007         instead of jsonschema.
18008         (validate_bench): Remove function.
18009         (main): Use import_bench.
18010
18011 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
18012
18013         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
18014         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
18015
18016 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18017
18018         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18019
18020 2015-05-28  Roland McGrath  <roland@hack.frob.com>
18021
18022         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
18023         set THREAD_SELF->tid to a magic value and futex-wake it.
18024         Pass its address to the thread_exit system call.
18025         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
18026         bit is clear.
18027         * sysdeps/nacl/lowlevellock.h: New file.
18028         * sysdeps/nacl/lll_timedwait_tid.c: New file.
18029
18030         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
18031         Add TIMEOUT to current time, don't subtract it.
18032
18033 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
18034
18035         [BZ #2981]
18036         [BZ #18422]
18037         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
18038         ($(objpfx)tst-audit2.out): Also depend on
18039         $(objpfx)tst-auditmod9b.so.
18040         * elf/tst-audit2.c: Include <dlfcn.h>.
18041         (calloc_called): New.
18042         (calloc): Allow to be called more than once.
18043         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
18044
18045 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
18046
18047         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
18048         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
18049
18050 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
18051
18052         * stdlib/monetary.h: Fix comment.
18053
18054 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
18055
18056         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
18057         Avoid using variables in #defines that might cause shadowing.
18058         (INTERNAL_VSYSCALL_CALL): Likewise.
18059
18060 2015-05-26  Roland McGrath  <roland@hack.frob.com>
18061
18062         * sysdeps/nacl/lll_timedlock_wait.c: New file.
18063
18064         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
18065         * nptl/lll_timedlock_wait.c: ... to this new file.
18066         * nptl/Makefile (libpthread-routines): Add it.
18067         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
18068         * nptl/lll_timedwait_tid.c: ... to this new file.
18069         * nptl/Makefile (libpthread-routines): Add it.
18070         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
18071         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
18072         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
18073         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
18074         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
18075         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
18076         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
18077         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
18078         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
18079         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
18080
18081 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18082
18083         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
18084         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
18085         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18086         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
18087         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
18088         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18089         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
18090         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18091         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
18092         * sysdeps/unix/sysv/linux/tile/sysdep.h
18093         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
18094         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
18095         using vDSO syscall macro.
18096
18097 2015-05-26  Andriy Rysin  <arysin@gmail.com>
18098
18099         [BZ #17293]
18100         * uk_UA: Fix sorting order for Ukrainian locale
18101
18102 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
18103
18104         * stdlib/monetary.h: Fix comment.
18105
18106 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18107
18108         [BZ #18234]
18109         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
18110         st_mtim and st_ctim members.
18111         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
18112         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
18113         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
18114         (struct stat64): Likewise.
18115         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
18116         (struct stat64): Likewise.
18117         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
18118         (struct stat64): Likewise.
18119
18120 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18121
18122         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
18123         Define and include sysdep-vdso.h.
18124         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
18125         Likewise.
18126         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
18127         Likewise.
18128         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
18129         Define with VDSO_SYMBOL and use PTR_MANGLE.
18130         (__vdso_clock_gettime): Likewise.
18131         (__vdso_clock_getres): Likewise.
18132         (_libc_vdso_platform_setup): Likewise.
18133         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
18134         Likewise.
18135         (_libc_vdso_platform_setup): Likewise.
18136         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
18137         Likewise.
18138         (__vdso_clock_gettime): Likewise.
18139         (__vdso_clock_getres): Likewise.
18140         (__vdso_get_tbfreq): Likewise.
18141         (__vdso_getcpu): Likewise.
18142         (__vdso_time): Likewise.
18143         (__vdso_sigtramp_rt64): Likewise.
18144         (__vdso_signtramp32): Likewise.
18145         (__vdso_sigtramp_rt32): Likewise.
18146         (_libc_vdso_platform_setup): Likewise.
18147         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
18148         Likewise.
18149         (__vdso_clock_gettime): Likewise.
18150         (__vdso_clock_getres): Likewise.
18151         (_libc_vdso_platform_setup): Likewise.
18152         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
18153         Likewise.
18154         (__vdso_clock_gettime): Likewise.
18155         (_libc_vdso_platform_setup): Likewise.
18156         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
18157         Likewise.
18158         (__vdso_getcpu): Likewise.
18159         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
18160         Use VDSO_SYMBOL macro to define.
18161         (__vdso_clock_gettime): Likewise.
18162         (__vdso_clock_getres): Likewise.
18163         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
18164         Likewise.
18165         (__vdso_clock_gettime): Likewise.
18166         (__vdso_clock_getres): Likewise.
18167         (__vdso_get_tbfreq): Likewise.
18168         (__vdso_getcpu): Likewise.
18169         (__vdso_time): Likewise.
18170         (__vdso_sigtramp_rt64): Likewise.
18171         (__vdso_signtramp32): Likewise.
18172         (__vdso_sigtramp_rt32): Likewise.
18173         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
18174         Likewise.
18175         (__vdso_clock_gettime): Likewise.
18176         (__vdso_clock_getres): Likewise.
18177         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
18178         Likewise.
18179         (__vdso_clock_gettime): Likewise.
18180         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
18181         Likewise.
18182         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
18183         macro.
18184         (INTERNAL_VSYSCALL): Likewise.
18185         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
18186         Remove macro.
18187         (INTERNAL_VSYSCALL): Likewise.
18188         (INTERNAL_VSYSCALL_NCS): Likewise.
18189         (INTERNAL_VSYSCALL_CALL): New macro.
18190         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18191         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
18192         Likewise.
18193         (INTERNAL_VSYSCALL): Likewise.
18194         (INTERNAL_VSYSCALL_NCS): Likewise.
18195         (INTERNAL_VSYSCALL_CALL): New macro.
18196         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
18198         (INLINE_VSYSCALL): Remove macro.
18199         (INTERNAL_VSYSCALL): Remove macro.
18200         (INTERNAL_VSYSCALL_NCS): Remove macro.
18201         (INTERNAL_VSYSCALL_CALL): New macro.
18202         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18203         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18204         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18205         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18206         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18208         (INLINE_VSYSCALL): Remove macro.
18209         (INTERNAL_VSYSCALL): Likewise.
18210         (INTERNAL_VSYSCALL_NCS): Likewise.
18211         (INTERNAL_VSYSCALL_CALL): New macro.
18212         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18213         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18214         PTR_DEMANGLE on vDSO pointer.
18215         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18216         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18217         macro.
18218         (INTERNAL_SYSCALL): Likewise.
18219         (INTERNAL_VSYSCALL_NCS): Remove macro.
18220         (INTERNAL_VSYSCALL_CALL): New macro.
18221         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18222         Remove macro.
18223         (INTERNAL_VSYSCALL): Likewise.
18224         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18225         sysdep-vdso.h instead of libc-vdso.h.
18226         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18227         definition.
18228         (INLINE_VSYSCALL): Likewise.
18229         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18230         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18231         definition.
18232         (INLINE_VSYSCALL): Likewise.
18233         (INTERNAL_VSYSCALL): Likewise.
18234         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18235         * sysdeps/unix/sysv/linux/timespec_get.c
18236         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18237         (timespec_get): Use ANSI prototype.
18238         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18239         and definition for Linux.
18240
18241 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18242
18243         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18244         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18245
18246 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18247
18248         [BZ #2981]
18249         [BZ #18410]
18250         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18251         for missing DT_PLTRELSZ.
18252
18253 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18254
18255         Remove obsolete aliases that broke 'locale -a'
18256         [BZ #18412]
18257         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18258         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18259         breaking some applications that use 'locale -a' output.
18260         Change the encoding of this file from Latin-1 to ASCII to avoid
18261         other potential problems with people grepping this file.
18262
18263 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18264
18265         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18266         -fasynchronous-unwind-tables.
18267         (CFLAGS-sendto.c): Likewise.
18268         (CFLAGS-sendmsg.c): Likewise.
18269         (CFLAGS-connect.c): Likewise.
18270         (CFLAGS-recvmsg.c): Likewise.
18271         (CFLAGS-recvfrom.c): Likewise.
18272         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18273         (SOCKETCALL): New macro: non-cancellable socketcall.
18274         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18275         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18276         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18277         * sysdeps/unix/sysv/linux/accept.c: New file.
18278         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18279         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18280         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18281         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18282         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18283         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18284         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18285         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18286         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18287         * sysdeps/unix/sysv/linux/send.c: Likewise.
18288         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18289         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18290         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18291         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18292         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18293         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18294         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18295         prototype.
18296         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18297         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18298         instead of __internal_xxx function.
18299         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18300         prototype.
18301         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18302         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18303         instead of __internal_xxx function.
18304         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18305         prototype.
18306         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18307         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18308         instead of __internal_xxx function.
18309         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18310         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18311         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18312         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18313         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18314         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18315         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18316         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18317         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18318         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18319         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18320         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18321         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18322         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18323         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18324         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18325         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18326         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18327         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18328         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18331         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18332         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18333         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18334         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18335         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18336         * sysdeps/unix/sysv/linux/send.S: Likewise.
18337         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18338         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18339         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18340         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18341         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18342         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18343         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18344         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18345         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18346         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18347         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18348         socketcall is implemented in GLIBC.
18349
18350 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18351
18352         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18353         (__fma): Ignore uninitialized warnings around packing.
18354         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18355         (__fmaf): Ignore uninitialized warnings around packing.
18356         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18357         (__fmal): Ignore uninitialized warnings around packing.
18358
18359         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18360         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18361         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18362         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18363
18364         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18365         switch statement into default case.
18366         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18367
18368         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18369         a conditional in forcing "inexact".
18370         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18371         Likewise.
18372
18373 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18374
18375         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18376         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18377         for each INTERNAL_SYSCALL use.
18378
18379 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18380
18381         [BZ #438]
18382         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18383         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18384         variable.
18385
18386         [BZ #18444]
18387         * string/basename.c (basename): Rename to __basename and define as
18388         weak alias of __basename.  Use libc_hidden_weak.
18389         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18390         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18391         __basename instead of basename.
18392         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18393         Remove variable.
18394         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18395
18396 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18397
18398         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18399         (_IO_JUMPS_FILE_plus): New.
18400         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18401         _IO_CAST_FIELD_ACCESS.
18402         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18403         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18404         * libio/freopen.c (freopen): Likewise.
18405         * libio/freopen64.c (freopen64): Likewise.
18406         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18407         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18408         * libio/iofwide.c (_IO_fwide): Likewise.
18409         * libio/memstream.c (open_memstream): Likewise.
18410         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18411         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18412         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18413
18414 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18415
18416         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18417         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18418         NADJ.
18419         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18420         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18421         NADJ.
18422         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18423         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18424         NADJ.
18425
18426         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18427         (p == 4) case.
18428
18429         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18430         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18431         Remove variable.
18432         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18433         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18434         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18435
18436 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18437
18438         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18439         Adjust jump table label generation macros.
18440
18441 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18442
18443         * stdio-common/vfprintf.c (vfprintf): Move local variables
18444         args_malloced, specs, specs_malloced, and the code after
18445         do_positional to the printf_positional function.
18446         (printf_positional): New function.
18447
18448 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18449
18450         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18451         function.
18452         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18453         STEP4_TABLE, process_arg): Move macro definitions
18454         out of the vfprintf function.  (Cosmetic change only.)
18455
18456 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18457
18458         * benchtests/Makefile (stdio-common-bench): Define.
18459         (benchset): Add stdio-common-bench.
18460         * sprintf-inputs: New file.
18461         * sprintf-source.c: New file.
18462
18463 2015-05-21  Andreas Schwab  <schwab@suse.de>
18464
18465         [BZ #13028]
18466         [BZ #17053]
18467         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18468         of struct __res_state.
18469         * resolv/res_send.c (__libc_res_nsend): Likewise.
18470         (get_nsaddr): New function.
18471         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18472         statp directly.
18473
18474 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18475
18476         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18477         -D_POSIX_C_SOURCE=199506L.
18478
18479         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18480
18481         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18482         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18483         Do not mention otherwise.
18484         [POSIX] (_XOPEN_VERSION): Do not expect.
18485         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18486         [POSIX] (_POSIX2_C_BIND): Likewise.
18487         [POSIX] (_POSIX2_VERSION): Likewise.
18488         [POSIX] (_XOPEN_XPG2): Likewise.
18489         [POSIX] (_XOPEN_XPG3): Likewise.
18490         [POSIX] (_XOPEN_XPG4): Likewise.
18491         [POSIX] (_XOPEN_UNIX): Likewise.
18492         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18493         [POSIX] (_POSIX_BARRIERS): Likewise.
18494         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18495         [POSIX] (_POSIX_CPUTIME): Likewise.
18496         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18497         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18498         [POSIX] (_POSIX_SHELL): Likewise.
18499         [POSIX] (_POSIX_SPAWN): Likewise.
18500         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18501         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18502         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18503         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18504         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18505         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18506         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18507         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18508         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18509         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18510         [POSIX] (_POSIX2_PBS): Likewise.
18511         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18512         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18513         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18514         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18515         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18516         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18517         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18518         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18519         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18520         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18521         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18522         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18523         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18524         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18525         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18526         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18527         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18528         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18529         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18530         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18531         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18532         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18533         [POSIX] (_SC_2_C_BIND): Likewise.
18534         [POSIX] (_SC_2_C_VERSION): Likewise.
18535         [POSIX] (_SC_2_PBS): Likewise.
18536         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18537         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18538         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18539         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18540         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18541         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18542         [POSIX] (_SC_BARRIERS): Likewise.
18543         [POSIX] (_SC_BASE): Likewise.
18544         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18545         [POSIX] (_SC_DEVICE_IO): Likewise.
18546         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18547         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18548         [POSIX] (_SC_FD_MGMT): Likewise.
18549         [POSIX] (_SC_FIFO): Likewise.
18550         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18551         [POSIX] (_SC_FILE_LOCKING): Likewise.
18552         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18553         [POSIX] (_SC_IOV_MAX): Likewise.
18554         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18555         [POSIX] (_SC_NETWORKING): Likewise.
18556         [POSIX] (_SC_PAGE_SIZE): Likewise.
18557         [POSIX] (_SC_PASS_MAX): Likewise.
18558         [POSIX] (_SC_PIPE): Likewise.
18559         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18560         [POSIX] (_SC_REGEXP): Likewise.
18561         [POSIX] (_SC_SHELL): Likewise.
18562         [POSIX] (_SC_SIGNALS): Likewise.
18563         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18564         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18565         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18566         [POSIX] (_SC_USER_GROUPS): Likewise.
18567         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18568         [POSIX] (_SC_STREAMS): Likewise.
18569         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18570         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18571         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18572         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18573         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18574         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18575         [POSIX] (_PC_FILESIZEBITS): Likewise.
18576         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18577         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18578         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18579         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18580         [POSIX] (uid_t): Likewise.
18581         [POSIX] (gid_t): Likewise.
18582         [POSIX] (off_t): Likewise.
18583         [POSIX] (pid_t): Likewise.
18584         [POSIX] (cuserid): Allow.
18585         (_SC_2_CHAR_TERM): Require constant.
18586         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18587         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18588         variable.
18589
18590 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18591
18592         * sysdeps/nacl/pthread-pids.h: New file.
18593         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18594         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18595
18596         * nptl/pthread-pids.h: New file.
18597         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18598         * nptl/nptl-init.c: Include <pthread-pids.h>.
18599         (__pthread_initialize_minimal_internal):
18600         Call __pthread_initialize_pids instead of set_tid_address syscall.
18601
18602         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18603         * sysdeps/posix/usleep.c: ... here.
18604
18605 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18606
18607         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18608         call_pselect6 object.
18609         [$(subdir) = io]: Remove call_sync_file_range object.
18610         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18611         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18612         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18613         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18614
18615 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18616
18617         * math/s_cproj.c: Add include "math_private.h".
18618         * math/s_cprojf.c: Likewise.
18619         * math/s_cprojl.c: Likewise.
18620
18621 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18622
18623         [BZ #18244]
18624         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18625         high mantissa bit when testing whether P is a NaN.
18626         * math/libm-test.inc (remainder_test_data): Add more tests.
18627         (remquo_test_data): Likewise.
18628
18629         [BZ #18049]
18630         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18631         below -32, return the argument, with underflow if subnormal.
18632         * math/auto-libm-test-in: Add more tests of atanh.
18633         * math/auto-libm-test-out: Regenerated.
18634
18635 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18636
18637         [BZ #18434]
18638         * nptl/tst-sem15.c: New file.
18639         * nptl/Makefile (tests): Add it.
18640         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18641         s/<</>>/ to fix typo in EOVERFLOW check.
18642         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18643
18644 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18645
18646         * manual/strings.texi (envz_remove): Fix typo in safety
18647         annotations.
18648
18649 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18650             Steve Ellcey  <sellcey@imgtec.com>
18651
18652         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18653         in order to avoid strict alias warnings.
18654         (iruserok_af): Ditto for ra.
18655
18656 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18657
18658         [BZ #17581]
18659         * malloc/hooks.c
18660         (magicbyte): Convert to a function and avoid returning 0x01.
18661         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18662         (mem2chunk_check): Fix unsigned comparisons to zero.
18663         Hoist defs of sz and magic.
18664
18665 2015-05-19  Richard Henderson  <rth@redhat.com>
18666
18667         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18668
18669         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18670
18671 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18672
18673         [BZ #16159]
18674         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18675         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18676         (reused_arena): Find a non-corrupt arena.
18677         (heap_trim): Pass arena to unlink.
18678         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18679         malloc_printerr.
18680         (top_check): Likewise.
18681         (free_check): Likewise.
18682         (realloc_check): Likewise.
18683         * malloc/malloc.c (malloc_printerr): Add arena argument.
18684         (unlink): Likewise.
18685         (munmap_chunk): Adjust.
18686         (ARENA_CORRUPTION_BIT): New macro.
18687         (arena_is_corrupt): Likewise.
18688         (set_arena_corrupt): Likewise.
18689         (sysmalloc): Use mmap if there are no usable arenas.
18690         (_int_malloc): Likewise.
18691         (__libc_malloc): Don't fail if arena_get returns NULL.
18692         (_mid_memalign): Likewise.
18693         (__libc_calloc): Likewise.
18694         (__libc_realloc): Adjust for additional argument to
18695         malloc_printerr.
18696         (_int_free): Likewise.
18697         (malloc_consolidate): Likewise.
18698         (_int_realloc): Likewise.
18699         (_int_memalign): Don't touch corrupt arenas.
18700         * malloc/tst-malloc-backtrace.c: New test case.
18701
18702         * Makefile (summarize-tests): Fix return value on success.
18703
18704         * manual/string.texi (Envz Functions): Add envz_remove.
18705
18706 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18707
18708         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18709         (invalid_name): New function, broken out of ...
18710         (__opendirat): ... here.  Call it.
18711         (need_isdir_precheck): New function, broken out of ...
18712         (__opendirat): ... here.  Call it.
18713         Use __fxstatat64, not __xstatat64.
18714         (opendir_oflags): New function, broken out of ...
18715         (__opendirat): ... here.  Call it.
18716         (opendir_tail): New function, broken out of ...
18717         (__opendirat): ... here.  Call it.
18718         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18719         opendir_tail, rather than punting to __opendirat.
18720         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18721
18722 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18723
18724         * .gitignore: Ignore generated *.pyc.
18725
18726 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18727
18728         * include/stdio.h: Define __need_wint_t.
18729         * test-skeleton.c: Avoid `for' loop initial declaration.
18730         * nptl/tst-initializers1.c: Use test-skeleton.c.
18731
18732 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18733
18734         [BZ #18418]
18735         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18736
18737 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18738
18739         [BZ #16352]
18740         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18741         (__ieee754_atanh): Force underflow exception for results with
18742         small absolute value.
18743         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18744         (__ieee754_atanhf): Force underflow exception for results with
18745         small absolute value.
18746         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18747         (__ieee754_atanh): Force underflow exception for results with
18748         small absolute value.
18749         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18750         (__ieee754_atanhf): Force underflow exception for results with
18751         small absolute value.
18752         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18753         (__ieee754_atanhl): Force underflow exception for results with
18754         small absolute value.
18755         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18756         (__ieee754_atanhl): Force underflow exception for results with
18757         small absolute value.
18758         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18759         (__ieee754_atanhl): Force underflow exception for results with
18760         small absolute value.
18761         * math/auto-libm-test-in: Do not allow missing underflow
18762         exceptions from atanh.
18763         * math/auto-libm-test-out: Regenerated.
18764
18765         [BZ #18221]
18766         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18767         2**-28 as threshold for returning x or +/- 1/x.
18768         * math/auto-libm-test-in: Add more tests of tan.
18769         * math/auto-libm-test-out: Regenerated.
18770
18771         [BZ #18220]
18772         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18773         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18774         * math/auto-libm-test-in: Add another test of lgamma.
18775         * math/auto-libm-test-out: Regenerated.
18776
18777 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18778
18779         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18780         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18781         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18782         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18783         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18784         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18785         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18786         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18787         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18788         (log1): Use fabs.  (my_log2): Use fabs.
18789         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18790         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18791         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18792         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18793         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18794         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18795         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18796         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18797         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18798         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18799         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18800
18801 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18802
18803         [BZ #18217]
18804         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18805         as threshold for returning 1 - x.
18806         * math/auto-libm-test-in: Add more tests of erfc.
18807         * math/auto-libm-test-out: Regenerated.
18808
18809 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18810
18811         [BZ #18196]
18812         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18813         threshold for large arguments.
18814         * math/auto-libm-test-in: Add another test of atan.
18815         * math/auto-libm-test-out: Regenerated.
18816
18817         [BZ #16339]
18818         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18819         (__log1p): Force underflow exception for results with small
18820         absolute value.
18821         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18822         (__log1pf): Force underflow exception for results with small
18823         absolute value.
18824         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18825         (__log1p): Force underflow exception for results with small
18826         absolute value.
18827         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18828         (__log1pf): Force underflow exception for results with small
18829         absolute value.
18830         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18831         (__log1pl): Force underflow exception for results with small
18832         absolute value.
18833         * math/auto-libm-test-in: Do not allow missing underflow
18834         exceptions from log1p.
18835         * math/auto-libm-test-out: Regenerated.
18836
18837 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18838             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18839
18840         [BZ #16704]
18841         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18842
18843 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18844
18845         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18846         (libmvec): New variable.
18847         * configure.ac: Added option for mathvec build.
18848         * configure: Regenerated.
18849         * mathvec/Depend: New file.
18850         * mathvec/Makefile: New file.
18851         * shlib-versions: Added libmvec.
18852         * math/Makefile: Added rule for libm.so installation.
18853
18854         * bits/math-vector.h: New file.
18855         * bits/libm-simd-decl-stubs.h: New header.
18856         * math/Makefile (headers): Added new header
18857         libm-simd-decl-stubs.h.
18858         * math/math.h (__MATHCALL_VEC): New macro.
18859
18860         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18861         for conditions in testing functions.
18862         * math/Makefile: Added call of libm-have-vector-test.sh.
18863         * math/libm-test.inc (HAVE_VECTOR): New macros.
18864
18865         * math/libm-test.inc: START refactored.
18866         * math/test-double.c (TEST_MATHVEC): Add define.
18867         * math/test-float.c: Likewise.
18868         * math/test-idouble.c: Likewise.
18869         * math/test-ifloat.c: Likewise.
18870         * math/test-ildoubl.c: Likewise.
18871         * math/test-ldouble.c: Likewise.
18872         * sysdeps/generic/math-tests-arch.h
18873         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18874         architecture check.
18875
18876         * math/test-double.c (FUNC_TEST): New macro.
18877         * math/test-float.c: Likewise.
18878         * math/test-idouble.c: Likewise.
18879         * math/test-ifloat.c: Likewise.
18880         * math/test-ildoubl.c: Likewise.
18881         * math/test-ldouble.c: Likewise.
18882         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18883
18884 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18885
18886         * sysdeps/nacl/fdopendir.c: New file.
18887
18888         * dirent/scandir-tail.c: New file.
18889         * dirent/scandir64-tail.c: New file.
18890         * dirent/Makefile (routines): Add them.
18891         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18892         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18893         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18894         [!SCANDIR] (SCANDIR_TAIL): New macro.
18895         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18896         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18897         (SCANDIRAT): Macro removed.
18898         (SCANDIR_TAIL): New macro.
18899         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18900         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18901         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18902         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18903         (READDIR): Macro removed.
18904         (SCANDIR_TAIL): New macro.
18905         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18906         (SCANDIR_TAIL): New macro.
18907
18908         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18909         * dirent/scandir-cancel.c: ... to this new file.
18910         * dirent/Makefile (routines): Add it.
18911         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18912         * sysdeps/unix/sysv/linux/i386/scandir64.c
18913         (SKIP_SCANDIR_CANCEL): Macro removed.
18914         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18915
18916         * dirent/tst-scandir.c: New file.
18917         * dirent/tst-scandir64.c: New file.
18918         * dirent/Makefile (tests): Add them.
18919
18920 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18921
18922         [BZ #18409]
18923         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18924
18925 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18926
18927         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18928         list.
18929
18930 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18931
18932         * benchtests/bench-strcoll.c: New benchmark.
18933         * benchtests/Makefile: Generate locales and run benchmark.
18934         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18935         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18936         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18937         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18938         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18939         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18940         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18941         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18942         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18943         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18944         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18945         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18946         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18947         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18948         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18949         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18950         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18951         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18952         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18953         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18954         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18955         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18956         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18957         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18958
18959 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18960
18961         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18962         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18963
18964 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18965
18966         * posix/uname-values.h: New file.
18967         * posix/uname.c: Include that instead of <config-name.h>.
18968         * sysdeps/nacl/uname-values.h: New file.
18969         * sysdeps/arm/nacl/uname-values.h: New file.
18970
18971 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18972
18973         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18974         splitting into fields.
18975
18976 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18977
18978         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18979         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18980         * locale/localeinfo.h: Add enum collation_encoding_type.
18981         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18982         * programs/ld-collate.c (collate_output): Add encoding type info.
18983         * string/strcoll_l.c (STRDIFF): New function.
18984         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18985         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18986
18987 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18988
18989         [BZ #18397]
18990         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18991         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18992         <fpu_control.h> instead of <math/fpu_control.c>.
18993         * sysdeps/mips/mips32/fpu/Makefile: New file.
18994
18995 2015-05-11  Andreas Schwab  <schwab@suse.de>
18996
18997         [BZ #18007]
18998         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18999         nss_endgrent.
19000         (_nss_compat_endgrent): Call nss_endgrent.
19001         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
19002         nss_endpwent.
19003         (_nss_compat_endpwent): Call nss_endpwent.
19004         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
19005         needent, call nss_setspent only if non-zero.
19006         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
19007         (internal_endspent): Don't call nss_endspent.
19008         (_nss_compat_endspent): Call nss_endspent.
19009         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
19010         Remove.  All uses removed.
19011         (internal_setent): Remove parameter stayopen, add parameter
19012         stream.  Use it instead of global variable.
19013         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
19014         (internal_endent, internal_getent): Add parameter stream.  Use it
19015         instead of global variable.
19016         (CONCAT(_nss_files_end,ENTNAME))
19017         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
19018         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
19019         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
19020         uses removed.
19021         (internal_setent, internal_endent): Add parameter stream.  Use it
19022         instead of global variable.
19023         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
19024         stream.
19025         (get_next_alias): Add parameter stream.
19026         (_nss_files_getaliasent_r): Pass global stream.
19027         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
19028         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
19029         (_nss_files_gethostbyname4_r): Pass local stream to
19030         internal_setent, internal_getent and internal_endent.  Remove
19031         locking.
19032
19033 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
19034
19035         * tst-strfmon1.c (tests): Update expected currency symbol.
19036
19037 2015-05-08  Roland McGrath  <roland@hack.frob.com>
19038
19039         * sysdeps/nacl/gethostname.c: New file.
19040
19041 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
19042
19043         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
19044         and sinh.
19045         * math/auto-libm-test-out: Regenerated.
19046         * sysdeps/i386/fpu/libm-test-ulps: Update.
19047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19048
19049 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
19050
19051         [BZ #18125]
19052         * stdlib/tst-setcontext3.c: New file.
19053         * stdlib/tst-setcontext3.sh: New file.
19054         * stdlib/Makefile (tests): Add tst-setcontext3.
19055         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
19056         to verify test program created output file.
19057         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
19058         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
19059         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
19060         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
19061
19062 2015-05-06  Roland McGrath  <roland@hack.frob.com>
19063
19064         [BZ #18383]
19065         * elf/tst-tlsalign.c: New file.
19066         * elf/tst-tlsalign-static.c: New file.
19067         * elf/tst-tlsalign-lib.c: New file.
19068         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
19069         (tests-static): Add tst-tlsalign-static.
19070         (modules-names): Add tst-tlsalign-lib.
19071         (test-xfail-tst-tlsalign): New variable.
19072         (test-xfail-tst-tlsalign-static): New variable.
19073
19074         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
19075         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
19076
19077 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
19078
19079         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
19080         csqrt, erfc, sin and sincos.
19081         * math/auto-libm-test-out: Regenerated.
19082         * sysdeps/i386/fpu/libm-test-ulps: Update.
19083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19084
19085 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19086
19087         * sysdeps/aarch64/libm-test-ulps: Update.
19088
19089 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
19090
19091         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
19092         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
19093         * math/auto-libm-test-out: Regenerated.
19094         * sysdeps/i386/fpu/libm-test-ulps: Update.
19095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19096
19097 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
19098
19099         [BZ #18265]
19100         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
19101         (wcsncpy): Likewise.
19102
19103 2015-05-05  Florian Weimer  <fweimer@redhat.com>
19104
19105         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
19106         Assume __ASSUME_FALLOCATE is always true.
19107         * sysdeps/unix/sysv/linux/posix_fallocate64.c
19108         (__posix_fallocate64_l64): Likweise.
19109         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
19110         (posix_fallocate): Likewise.
19111         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
19112         (__posix_fallocate64_l64): Likewise.
19113         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19114         [!__ASSUME_FALLOCATE]: Add comment.
19115
19116 2015-05-05  Florian Weimer  <fweimer@redhat.com>
19117
19118         * sysdeps/unix/sysv/linux/i386/Makefile
19119         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
19120         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
19121         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
19122         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19123         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19124         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
19125         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
19126
19127 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
19128
19129         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
19130         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
19131         tgamma.
19132         * math/auto-libm-test-out: Regenerated.
19133         * sysdeps/i386/fpu/libm-test-ulps: Update.
19134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19135
19136 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19137
19138         * math/auto-libm-test-in: Add more tests of tgamma.
19139         * math/auto-libm-test-out: Regenerated.
19140         * sysdeps/i386/fpu/libm-test-ulps: Update.
19141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19142
19143         * math/auto-libm-test-in: Add more tests of tanh.
19144         * math/auto-libm-test-out: Regenerated.
19145         * sysdeps/i386/fpu/libm-test-ulps: Update.
19146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19147
19148         * math/auto-libm-test-in: Add more tests of tan.
19149         * math/auto-libm-test-out: Regenerated.
19150         * sysdeps/i386/fpu/libm-test-ulps: Update.
19151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19152
19153         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
19154         * math/auto-libm-test-out: Regenerated.
19155         * sysdeps/i386/fpu/libm-test-ulps: Update.
19156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19157
19158         * math/auto-libm-test-in: Add another test of pow.
19159         * math/auto-libm-test-out: Regenerated.
19160         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19161
19162         * math/auto-libm-test-in: Add more tests of lgamma.
19163         * math/auto-libm-test-out: Regenerated.
19164         * sysdeps/i386/fpu/libm-test-ulps: Update.
19165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19166
19167         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
19168         log1p.
19169         * math/auto-libm-test-out: Regenerated.
19170         * sysdeps/i386/fpu/libm-test-ulps: Update.
19171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19172
19173 2015-05-01  Mark Wielaard  <mjw@redhat.com>
19174
19175         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
19176         Elf64_Chdr structs and ELFCOMPRESS constants.
19177
19178 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19179
19180         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
19181         expm1.
19182         * math/auto-libm-test-out: Regenerated.
19183         * sysdeps/i386/fpu/libm-test-ulps: Update.
19184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19185
19186         * math/auto-libm-test-in: Add more tests of erf and erfc.
19187         * math/auto-libm-test-out: Regenerated.
19188         * sysdeps/i386/fpu/libm-test-ulps: Update.
19189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19190
19191 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19192
19193         * config.h.in (HAVE_AARCH64_BE): Add.
19194
19195 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
19196
19197         * math/auto-libm-test-in: Add more tests of csqrt.
19198         * math/auto-libm-test-out: Regenerated.
19199         * sysdeps/i386/fpu/libm-test-ulps: Update.
19200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19201
19202         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19203         * math/auto-libm-test-out: Regenerated.
19204         * sysdeps/i386/fpu/libm-test-ulps: Update.
19205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19206
19207         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19208
19209 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19210
19211         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19212         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19213
19214         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19215         (euidaccess, eaccess): Define as weak aliases.
19216
19217         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19218         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19219         but __suseconds_t is often 'long int' so some sources assume that
19220         type is being used (e.g. they use %ld to print tv_usec).
19221
19222 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19223
19224         [BZ #18007]
19225         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19226         (CVE-2014-8121)
19227         * nss/tst-nss-getpwent.c: New file.
19228         * nss/Makefile (tests): Add new test.
19229
19230 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19231
19232         [BZ #18346]
19233         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19234         exponents less than 48 as cases where high part of mantissa needs
19235         examining to determine whether argument is integral.
19236         * math/libm-test.inc (round_test_data): Add more tests.
19237
19238 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19239
19240         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19241
19242 2015-04-27  David S. Miller  <davem@davemloft.net>
19243
19244         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19245         __tls_get_addr.
19246         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19247
19248 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19249
19250         [BZ#18333]
19251         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19252
19253 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19254
19255         [BZ#18333]
19256         * time/tzset.c (parse_tzname): Return error on memory allocation
19257         failure.
19258         * test-skeleton.c (struct temp_name_list): Change type of name
19259         member to non-const.
19260         (add_temp_file): Create a copy of the file name.
19261         (delete_temp_files): Deallocate memory.
19262         (create_temp_file): Add comment.
19263
19264 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19265
19266         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19267         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19268
19269 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19270
19271         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19272         * sysdeps/arm/configure: Regenerated.
19273
19274 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19275
19276         [BZ #17715]
19277         * time/tzfile.c (__tzfile_read): Check for large values of
19278         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19279         * time/tzset.c (__tzstring_len): New function, based on the old
19280         __tzstring function.
19281         (__tzstring): Call __tzstring_len.
19282         (parse_tzname): New helper function extracted from
19283         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19284         the input string.
19285         (parse_offset): New helper function extracted from
19286         __tzset_parse_tz.  Replace switch with fallthrough with
19287         initialization before sscanf.
19288         (parse_rule): Likewise.
19289         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19290         new-style function definition.
19291         * timezone/Makefile (tests): Add tst-tzset.
19292         (tst-tzset.out): Dependencies on time zone files.
19293         (tst-tzset-ENV): Set TZDIR.
19294         (testdata/XT%): Copy crafted time zone files.
19295         * timezone/README: Mention crafted time zone files.
19296         * timezone/testdata/XT1, timezone/testdata/XT2,
19297         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19298         files.
19299         * timezone/tst-tzset.c: New test.
19300
19301 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19302
19303         * Makeconfig (+gccwarn): Remove -Winline.
19304
19305 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19306
19307         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19308
19309 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19310
19311         * NEWS: Mention sysconf() cache information support for s390.
19312         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19313
19314 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19315
19316         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19317         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19318         (__nearbyint): Likewise.
19319         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19320         (copysignl): Likewise.
19321
19322 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19323
19324         [BZ #18287]
19325         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19326         based on padding.  (CVE-2015-1781)
19327
19328 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19329
19330         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19331         libc-vdso.h.
19332         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19333         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19334         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19335         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19336         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19337         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19338         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19339         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19340         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19341         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19342         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19343         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19344         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19345         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19346         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19347         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19348         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19349         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19350         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19351         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19352         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19353         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19354         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19355
19356 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         * stdlib/setenv.c (__add_to_environ):
19359         Dump core quickly if setenv (..., NULL, ...) is called.
19360         This time, do it the right way, and pacify GCC with a pragma.
19361
19362 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19363
19364         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19365         IMAP->l_prev cannot be null, and #if out the code for the contrary
19366         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19367         believe that NS (&_dl_ns[NSID]) could point outside the array.
19368
19369         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19370         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19371         before using NSID as an index.
19372
19373 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19374
19375         [BZ #17825]
19376         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19377         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19378         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19379
19380 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19381
19382         Add preliminary port to Google Native Client on ARM.
19383         * abi-tags (.*-.*-nacl.*): New entry.
19384         * sysdeps/arm/nacl: New directory.
19385         * sysdeps/nacl: New directory.
19386
19387 2015-04-16  David S. Miller  <davem@davemloft.net>
19388
19389         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19390         lowlevellock-futex.h
19391
19392 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19393
19394         * sysdeps/tile/configure.ac: New file.
19395         * sysdeps/tile/configure: Regenerated.
19396
19397 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19398
19399         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19400         conditionals for weak_alias and libc_hidden_weak.
19401         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19402         libc_hidden_weak and weak_alias.
19403         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19404         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19405         and weak_alias for static one.
19406
19407 2015-04-15  David S. Miller  <davem@davemloft.net>
19408
19409         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19410
19411 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19412
19413         [BZ #18206]
19414         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19415           Use signed comparision instead of substraction to avoid
19416           overflow bug.
19417         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19418           Take the sign of ret.
19419         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19420           Do not expect precise return values. Only the sign matters.
19421         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19422         * wcsmbs/test-wcsncmp.c: New File.
19423         * string/test-strncmp.c: Add wcsncmp support.
19424
19425 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19426
19427         [BZ #6792]
19428         * math/w_log1p.c: New file.
19429         * math/w_log1pf.c: Likewise.
19430         * math/w_log1pl.c: Likewise.
19431         * math/Makefile (libm-calls): Add w_log1p.
19432         * math/s_log1pl.c (log1pl): Remove weak_alias.
19433         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19434         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19435         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19436         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19437         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19438         [NO_LONG_DOUBLE] (log1pl): Likewise.
19439         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19440         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19441         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19442         (log1p): Remove long_double_symbol.
19443         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19444         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19445         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19446         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19447         remove weak_alias for corresponding log1p function.
19448         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19449         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19450         * sysdeps/ia64/fpu/w_log1p.c: New file.
19451         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19452         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19453         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19454
19455 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19456
19457         [BZ #18247]
19458         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19459         decimal exponent by 1.
19460         * stdlib/tst-strtod-round-data: Add more tests.
19461         * stdlib/tst-strtod-round.c (tests): Regenerated.
19462
19463 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19464
19465         * math/auto-libm-test-in: Add more tests of clog and clog10.
19466         * math/auto-libm-test-out: Regenerated.
19467         * sysdeps/i386/fpu/libm-test-ulps: Update.
19468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19469
19470 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19471
19472         * Makeconfig (module-cppflags): Exclude all .v.i files.
19473         (skip-module-cppflags): Variable removed.
19474
19475         * configure.ac (libc_config_ok): Initialize before reading
19476         preconfigure scripts, not after.
19477         * configure: Regenerated.
19478
19479         * test-skeleton.c (TIMEOUT): Move #define to top level.
19480         (main): Grok environment variable TEST_DIRECT.  If set, print
19481         test expectation details into that file and then behave as if
19482         given --direct.
19483
19484 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19485
19486         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19487         warning on 32-bit.
19488
19489 2015-04-08  David S. Miller  <davem@davemloft.net>
19490
19491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19492
19493 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19494
19495         * math/auto-libm-test-in: Add more tests of atanh.
19496         * math/auto-libm-test-out: Regenerated.
19497         * sysdeps/i386/fpu/libm-test-ulps: Update.
19498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19499
19500         * math/auto-libm-test-in: Add more tests of atan.
19501         * math/auto-libm-test-out: Regenerated.
19502         * sysdeps/i386/fpu/libm-test-ulps: Update.
19503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19504
19505 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19506
19507         * elf/pldd.c (main): Rewrite to use struct
19508         scratch_buffer instead of extend_alloca.
19509         * elf/pldd-xx.c (find_maps): Likewise.
19510         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19511         <alloca.h>.
19512         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19513         scratch_buffer instead of extend_alloca.
19514         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19515         grp/compat-initgroups.c.
19516         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19517         Rewrite to use struct scratch_buffer instead of extend_alloca.
19518         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19519         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19520
19521 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19522
19523         * math/auto-libm-test-in: Add more tests of cbrt.
19524         * math/auto-libm-test-out: Regenerated.
19525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19526
19527         * math/auto-libm-test-in: Add more tests of cabs.
19528         * math/auto-libm-test-out: Regenerated.
19529         * sysdeps/i386/fpu/libm-test-ulps: Update.
19530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19531
19532         [BZ #18210]
19533         [BZ #18211]
19534         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19535         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19536         computations.
19537         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19538         clog10.
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         [BZ #18197]
19544         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19545         (atan): Set FE_TONEAREST mode for internal computations.
19546         * math/auto-libm-test-in: Add more tests of atan.
19547         * math/auto-libm-test-out: Regenerated.
19548
19549 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19550
19551         [BZ #17930]
19552         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19553
19554 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19555
19556         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19557
19558 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19559
19560         * include/scratch_buffer.h: New file.
19561         * malloc/scratch_buffer_grow.c: Likewise.
19562         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19563         * malloc/scratch_buffer_set_array_size.c: Likewise.
19564         * malloc/tst-scratch_buffer.c: Likewise.
19565         * malloc/Makefile (routines): Add scratch_buffer_grow.
19566         (tests): Add test case.
19567         * malloc/Versions (GLIBC_PRIVATE): Export
19568         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19569         __libc_scratch_buffer_set_array_size.
19570
19571 2015-04-06  Richard Henderson  <rth@redhat.com>
19572
19573         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19574         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19575
19576         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19577         unsigned int before printing.
19578
19579 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19580
19581         [BZ #17596]
19582         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19583         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19584
19585 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19586
19587         * include/libc-internal.h (libc_max_align_t): Define.
19588
19589 2015-04-02  Andreas Schwab  <schwab@suse.de>
19590
19591         [BZ #16850]
19592         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19593
19594 2015-04-02  Mel Gorman  <mgorman@suse.de>
19595
19596         [BZ #17195]
19597         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19598         as well as the main arena.
19599
19600 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19601
19602         [BZ #18185]
19603         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19604         sharing L2 cache to 2 for Silvermont/Knights Landing.
19605
19606 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19607
19608         [BZ #17711]
19609         * config.make.in (have-protected-data): New.
19610         * configure.ac: Check linker support for protected data symbol.
19611         * configure: Regenerated.
19612         * elf/Makefile (modules-names): Add tst-protected1moda and
19613         tst-protected1modb if $(have-protected-data) is yes.
19614         (tests): Add tst-protected1a and tst-protected1b if
19615         $(have-protected-data) is yes.
19616         ($(objpfx)tst-protected1a): New.
19617         ($(objpfx)tst-protected1b): Likewise.
19618         (tst-protected1modb.so-no-z-defs): Likewise.
19619         * elf/tst-protected1a.c: New file.
19620         * elf/tst-protected1b.c: Likewise.
19621         * elf/tst-protected1mod.h: Likewise.
19622         * elf/tst-protected1moda.c: Likewise.
19623         * elf/tst-protected1modb.c: Likewise.
19624
19625 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19626
19627         [BZ #17711]
19628         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19629         indicates it is called from do_lookup_x on relocation against
19630         protected data, skip the data definion in the executable from
19631         copy reloc.
19632         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19633         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19634         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19635         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19636         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19637         otherwise to 0.
19638         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19639         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19640         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19641         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19642         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19643         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19644
19645 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19646
19647         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19648         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19649
19650 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19651
19652         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19653         THREAD_SETMEM_NC.
19654         * sysdeps/x86_64/nptl/tls.h: Ditto.
19655
19656 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19657
19658         * dlfcn/tststatic.c (main): Converted to ...
19659         (do_test): ... this.
19660         (TEST_FUNCTION): New macro.
19661         Include test-skeleton.c.
19662
19663 2015-03-26  Alan Modra  <amodra@gmail.com>
19664
19665         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19666         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19667         zero for undefined weak.
19668         (elf_machine_plt_conflict): Similarly.
19669
19670 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19671
19672         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19673         atanh.
19674         * math/auto-libm-test-out: Regenerated.
19675         * sysdeps/i386/fpu/libm-test-ulps: Update.
19676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19677
19678         * math/auto-libm-test-in: Add another test of asin.
19679         * math/auto-libm-test-out: Regenerated.
19680         * sysdeps/i386/fpu/libm-test-ulps: Update.
19681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19682
19683         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19684         Remove macro.
19685         (LLL_EBX_REG): Likewise.
19686         (LLL_ENTER_KERNEL): Likewise.
19687
19688         * math/auto-libm-test-in: Add more tests of asin.
19689         * math/auto-libm-test-out: Regenerated.
19690         * sysdeps/i386/fpu/libm-test-ulps: Update.
19691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19692
19693         [BZ #18138]
19694         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19695         libc_do_syscall_args): New structure.
19696         (INTERNAL_SYSCALL_MAIN_0): New macro.
19697         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19698         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19699         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19700         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19701         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19702         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19703         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19704         Replace conditional definitions by conditional definitions of ....
19705         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19706         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19707         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19708         (libpthread-sysdep_routines): Add libc-do-syscall.
19709         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19710         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19711         to __NR_futex not 240.
19712
19713 2015-03-25  Alan Modra  <amodra@gmail.com>
19714
19715         * NEWS: Advertise TLS optimization.
19716         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19717         (DT_PPC_NUM): Increment.
19718         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19719         (CHECK_STATIC_TLS): Use here.
19720         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19721         TLS descriptors.
19722         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19723         * sysdeps/powerpc/dl-tls.c: New file.
19724         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19725         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19726         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19727         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19731
19732 2015-03-25  Alan Modra  <amodra@gmail.com>
19733
19734         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19735         for overlapping .opd entries" to "support...".
19736         * sysdeps/powerpc/powerpc64/configure: Regenerate
19737
19738 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19739
19740         * math/auto-libm-test-in: Add more tests of acos.
19741         * math/auto-libm-test-out: Regenerated.
19742         * sysdeps/i386/fpu/libm-test-ulps: Update.
19743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19744
19745         * math/auto-libm-test-in: Add more tests of expm1.
19746         * math/auto-libm-test-out: Regenerated.
19747         * sysdeps/i386/fpu/libm-test-ulps: Update.
19748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19749
19750 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19751
19752         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19753         * math/auto-libm-test-out: Regenerated.
19754         * sysdeps/i386/fpu/libm-test-ulps: Update.
19755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19756
19757         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19759
19760         * math/auto-libm-test-in: Add more tests of log2.
19761         * math/auto-libm-test-out: Regenerated.
19762         * sysdeps/i386/fpu/libm-test-ulps: Update.
19763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19764
19765 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19766
19767         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19768         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19769         _IO_IS_APPENDING bit in READ_WRITE instead.
19770
19771 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19772
19773         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19774         (__determine_cpumask_size): Replace extend_alloca with a
19775         variable-length array.  Do not treat res == 0 as an error.
19776
19777 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19778
19779         [BZ #18100]
19780         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19781         and integer overflow.
19782         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19783         (main): Add integer overflow tests.
19784         * manual/pattern.texi (Calling Wordexp): Document additional use
19785         for WRDE_SYNTAX.
19786
19787 2015-03-23  Alan Modra  <amodra@gmail.com>
19788
19789         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19790         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19791         and false branch of conditional.
19792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19793         Likewise.
19794
19795 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19796
19797         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19798         libc-modules.h
19799         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19800         unused declaration of _hurd_intr_rpc_msg_in_trap.
19801         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19802         defined instead of whether it is non-zero.
19803         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19804         input constraint instead of both input and output constraint.  Use ecx
19805         clobber instead of %ecx.
19806         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19807         mutex_unlock): Use a statement expression instead of an expression list.
19808         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19809         type to vm_size_t instead of vm_address_t.
19810         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19811         defined instead of whether it is non-zero.
19812         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19813         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19814         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19815         comparisons with mapaddr.
19816         * nscd/nscd-client.h: Include <time.h>.
19817         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19818         9th parameter to __vm_region instead of int.
19819         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19820         * scripts/check-local-headers.sh (exclude): Add device/,
19821         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19822         cthreads.h.
19823
19824 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19825
19826         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19827         to account for alignment padding.
19828         * sysdeps/arm/memmove.S: Likewise.
19829
19830 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19831
19832         * sysdeps/unix/sysv/linux/generic/README: New file.
19833
19834 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19835
19836         [BZ #18138]
19837         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19838         (futex_abstimed_wait)
19839         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19840         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19841         of lll_futex_timed_wait.
19842
19843 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19844
19845         [BZ #17542]
19846         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19847
19848 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19849
19850         [BZ #17090]
19851         [BZ #17620]
19852         [BZ #17621]
19853         [BZ #17628]
19854         * NEWS: Update.
19855         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19856         entries with Static TLS too.  Skip entries past the end of the
19857         allocated DTV, from Alan Modra.
19858         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19859         Static TLS DTV entry set up from...
19860         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19861         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19862         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19863         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19864         for Static TLS.
19865         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19866         that the slot we find is associated with the given map before
19867         using its generation count.
19868         * nptl_db/db_info.c: Include ldsodefs.h.
19869         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19870         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19871         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19872         (link_map::l_tls_offset): New struct field.
19873         (dtv_t::counter): Likewise.
19874         (rtld_global): New struct.
19875         (_rtld_global): New rtld variable.
19876         (dl_tls_dtv_slotinfo_list): New rtld global field.
19877         (dtv_slotinfo_list): New struct.
19878         (dtv_slotinfo): Likewise.
19879         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19880         (td_lookup): Rename to...
19881         (td_mod_lookup): ... this.  Use new mod parameter instead of
19882         LIBPTHREAD_SO.
19883         * nptl_db/td_thr_tlsbase.c: Include link.h.
19884         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19885         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19886         addresses even if the DTV is out of date or missing them.
19887         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19888         index zero-length arrays.
19889         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19890         (td_lookup): Make it a macro implemented in terms of...
19891         (td_mod_lookup): ... this declaration.
19892         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19893         (DB_MAIN_VARIABLE): Likewise.
19894
19895 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19896
19897         [BZ #18134]
19898         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19899
19900 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19901
19902         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19903
19904 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19905
19906         [BZ #18128]
19907         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19908         (atomic_add, atomic_increment_and_test)
19909         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19910
19911 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19912
19913         * stdlib/setenv.c (__add_to_environ):
19914         Dump core quickly if setenv (..., NULL, ...) is called.
19915
19916 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19917
19918         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19919         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19920         all the necessary asm magic in one place.
19921         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19922         using those.
19923
19924 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19925
19926         [BZ #14906]
19927         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19928         traced file mtime. Use consistent log message.
19929         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19930         (register_traced_file): Call install_watches. Always set mtime.
19931         (invalidate_cache): Iterate over all trace files. Call install_watches.
19932         (inotify_check_files): Don't inline. Handle watching parent
19933         directories and configuration file movement in and out.
19934         (handle_inotify_events): New function.
19935         (main_loop_poll): Call handle_inotify_events.
19936         (main_loop_epoll): Likewise.
19937         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19938         (struct traced_file): Use array of inotify fds. Add parent directory,
19939         and basename.
19940         (struct database_dyn): Remove unused file_mtime.
19941         (init_traced_file): New inline function.
19942         (define_traced_file): New macro.
19943         * nss/nss_db/db-init.c: Use define_traced_file.
19944         (_nss_db_init): Use init_traced_file.
19945         * nss/nss_files/files-init.c: Use define_traced_file.
19946         (_nss_files_init): Use init_traced_file.
19947
19948 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19949
19950         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19951         [_LIBC]: Do not include <stdlib.h>.
19952         [!_LIBC] (abort): Remove declaration.
19953         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19954         _FP_STATIC_ASSERT instead of conditionally calling abort.
19955         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19956         (_FP_EXTEND_CNAN): Likewise.
19957         (FP_TRUNC): Likewise.
19958         (__FP_CLZ): Likewise.
19959         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19960
19961 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19962
19963         * manual/string.texi (XPG basename): Fix prototype.
19964
19965 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19966
19967         [BZ #18080]
19968         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19969         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19970         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19971         (__setcontext): Likewise.
19972         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19973         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19974         Call rt_sigprocmask syscall one time to set new signal mask
19975         and retrieve the current signal mask instead of two calls.
19976         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19977         (__swapcontext): Likewise.
19978         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19979         * stdlib/tst-setcontext2.c: New file.
19980
19981 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19982
19983         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19984
19985 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19986
19987         [BZ #18093]
19988         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19989         the wrong size.
19990
19991 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19992
19993         [BZ #18043]
19994         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19995
19996 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19997
19998         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19999         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
20000         Remove define.
20001         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
20002         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
20003         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
20004         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
20005         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
20006         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
20007         define.
20008         * nptl_db/td_symbol_list.c (td_lookup): Remove
20009         HAVE_ASM_GLOBAL_DOT_NAME code.
20010         * sysdeps/powerpc/powerpc64/configure.ac: Remove
20011         HAVE_ASM_GLOBAL_DOT_NAME check.
20012         * sysdeps/powerpc/powerpc64/configure: Regenerate.
20013         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
20014         (DOT_LABEL): Remove define.
20015         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
20016         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
20017         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
20018         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
20019         (__TLS_GET_ADDR): Likewise.
20020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
20021         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
20022
20023 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
20024
20025         [BZ #18111]
20026         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
20027         (_FPU_SETCW): Initialize cw from fpsr before storing.
20028         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
20029         (fesetexceptflag): Rewrite using fpu_control.h.
20030         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
20031
20032 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
20033
20034         [BZ #18110]
20035         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
20036         asms.
20037         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
20038
20039 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
20040
20041         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
20042         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
20043         abort.
20044         (_FP_FMA): Likewise.
20045         (_FP_DIV): Likewise.
20046
20047 2015-03-10  Roland McGrath  <roland@hack.frob.com>
20048
20049         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
20050         with 0 in that case.
20051         * Makefile (summarize-tests): New canned sequence, factored out of
20052         commands for targets tests and xtests.  Display summary lines that
20053         don't start with PASS: or XFAIL: rather than ones that do start with
20054         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
20055         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
20056         do start with ERROR: or FAIL:.
20057         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
20058         (except for [$(build-shared) = yes]).
20059         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
20060         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
20061         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
20062         * nptl/Makefile: Revert 2015-03-04 changes.
20063         [$(CXX) empty] (tests-unsupported): New variable.
20064         * debug/Makefile: Likewise.
20065
20066         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
20067         gnulib file.  Replace __attribute with __attribute__ throughout.
20068
20069 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
20070
20071         * sysdeps/hppa/fpu/libm-test-ulps: Update.
20072
20073 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
20074
20075         [BZ #18104]
20076         * math/auto-libm-test-in: Add another test of pow.
20077         * math/auto-libm-test-out: Regenerated.
20078
20079 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20080
20081         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
20082         $(config-cflags-nofma).
20083
20084 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
20085
20086         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
20087         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
20088         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
20089         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
20090         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
20091         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
20092         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
20093         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
20094         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
20095         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
20096         Add comment on closing #endif.
20097
20098 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
20099
20100         * posix/wordexp.c (CHAR_IN_SET): New macro.
20101         (parse_param): Use it.
20102
20103 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20104
20105         * sysdeps/powerpc/fpu/libm-test-ulps: update.
20106
20107 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
20108
20109         [BZ #18043]
20110         * posix/wordexp.c (parse_param): Fix buffer overflow.
20111         * posix/wordexp-test.c (test_case): Add test case.
20112
20113 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
20114
20115         [BZ #18042]
20116         * posix/wordexp.c (parse_backtick): Fix off-by-one.
20117         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
20118
20119 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
20120
20121         [BZ #18043]
20122         * posix/wordexp-test.c (test_case): Add test for BZ #18043
20123         (do_bz18043): Delete.
20124         (at_page_end): New.
20125         (testit): Refactor to have words at the edge of unreadable page.
20126
20127 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20128
20129         [BZ #16734]
20130         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
20131         Cleanup read-only streams as well.
20132         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
20133
20134 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20135
20136         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
20137         <bits/libc-lockP.h>
20138
20139 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
20140
20141         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
20142         on [__KERNEL__].
20143         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
20144         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
20145         * soft-fp/op-common.h (_FP_DECL): Likewise.
20146
20147 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
20148
20149         * elf/ifuncdep2.c (global): Replace
20150         __attribute__((visibility("protected"))) with
20151         asm (".protected global").
20152         * elf/ifuncmod1.c (global): Likewise.
20153         * elf/ifuncmod5.c (global): Likewise.
20154
20155 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
20156
20157         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
20158         <asm/sfp-machine.h> instead of <sfp-machine.h>.
20159
20160 2015-03-06  Roland McGrath  <roland@hack.frob.com>
20161
20162         * manual/install.texi (Configuring and compiling):
20163         Document test-wrapper-env-only.
20164         * INSTALL: Regenerated.
20165
20166 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20167
20168         [BZ #18043]
20169         * posix/wordexp.c (parse_param): Fix buffer overflow.
20170         * posix/wordexp-test.c (do_bz18043): Add test case.
20171
20172 2015-03-06  Vincent Bernat  <vincent@bernat.im>
20173
20174         * time/tst-strptime2.c (do_test): Ensure failing tests are
20175         reported correctly.
20176         * time/tst-strptime3.c (do_test): Likewise.
20177
20178 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
20179
20180         Fix aio_error thread-safety.
20181         * sysdeps/pthread/aio_error.c: New file
20182         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
20183         synchronization.
20184
20185 2015-03-06  Florian Weimer  <fweimer@redhat.com>
20186
20187         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
20188         (group_number, vfprintf): Use it.
20189         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
20190         (JUMP, REF): Use it.
20191         (WORK_BUFFER_SIZE): New enum constant.
20192         (process_arg, vfprintf): Use it.
20193
20194 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
20195
20196         * manual/errno.texi (Error Messages): Complete example function
20197         by adding missing #define.
20198         (program_invocation_name): Add statement indicating GNU
20199         extension and reference which header file declares the variable.
20200         (program_invocation_short_name): Likewise.
20201
20202 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20203
20204         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20205         compatibility note.
20206
20207 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20208
20209         * Makeconfig (test-wrapper-env-only): New variable.
20210         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20211         then use that with $(test-wrapper-env-only) rather than using
20212         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20213
20214 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20215
20216         [BZ #18082]
20217         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20218         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20219         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20220         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20221         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20222         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20223         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20224         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20225         Likewise.
20226         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20227         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20228         Likewise.
20229         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20230         Likewise.
20231         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20232         Likewise.
20233         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20234         Likewise.
20235         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20236         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20237         Likewise.
20238         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20239         Likewise.
20240         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20241         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20242
20243 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20244
20245         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20246         (ETH_ALEN): New macro.
20247         (struct ether_addr): Use it for length of ether_addr_octet.
20248
20249         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20250         (setdb): Don't call __nss_configure_lookup for "rpc".
20251         (do_test): Don't call test_rpc.
20252         (output_rpcent, test_rpc): Functions moved ...
20253         * sunrpc/test-rpcent.c: ... to this new file.
20254         * sunrpc/Makefile (tests): Add it.
20255
20256         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20257         __xpg_sigpause.
20258         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20259         * nptl/tst-signal6.c: Likewise.
20260         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20261         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20262
20263         * configure.ac (libc_cv_cxx_link_ok): New check.
20264         Reset CXX to empty if it fails to link.
20265         * configure: Regenerated.
20266         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20267         bug-atexit3-lib only if $(CXX) is nonempty.
20268         * nptl/Makefile (tests): Likewise for tst-cancel24.
20269         (tests, tests-static): Likewise for tst-cancel24-static.
20270         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20271         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20272         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20273         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20274
20275 2015-03-04  Andreas Schwab  <schwab@suse.de>
20276
20277         [BZ #17631]
20278         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20279         for non-GCC compilers.
20280         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20281         Likewise.
20282
20283 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20284
20285         [BZ #17776]
20286         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20287         integer before bitwise and assembly operations.
20288         (feclearexcept): Likewise.
20289         * math/test-fenvinline.c: New file.
20290         * math/Makefile: Add test-fenvinline test.
20291
20292 2015-03-03  Alan Modra  <amodra@gmail.com>
20293
20294         [BZ #16512]
20295         * scripts/localplt.awk: Strip off symbol version.
20296         * NEWS: Mention bug fix.
20297
20298 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20299
20300         * sysdeps/pthread/timer_routines.c
20301         (timer_free_list, thread_free_list, thread_active_list): Make static.
20302
20303 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20304
20305         [BZ #17779]
20306         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20307         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20308         Undefine.
20309         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20310         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20311         Likewise.
20312         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20313         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20314         Likewise.
20315
20316 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20317
20318         [BZ #18036]
20319         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20320         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20321
20322 2015-03-02  Andreas Schwab  <schwab@suse.de>
20323
20324         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20325         variable name.
20326
20327 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20328
20329         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20330         Return error status.
20331
20332 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20333
20334         [BZ #15969]
20335         * locale/findlocale.c (_nl_find_locale): Introduce const
20336         version of loc_name and drop unsafe type casts.
20337
20338 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20339
20340         * dlfcn/tststatic2.c (main): Converted to ...
20341         (do_test): ... this.
20342         (TEST_FUNCTION): New macro.
20343         Include test-skeleton.c.
20344
20345 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20346
20347         [BZ #17711]
20348         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20349         (tests-pie): Add vismain.
20350         (CFLAGS-vismain.c): New.
20351         * elf/vismain.c: Add comments for PIE requirement.
20352
20353 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20354
20355         [BZ #18046]
20356         [BZ #18047]
20357         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20358         0x1p-56L as threshold for just returning the argument.
20359         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20360         0x1p-32L as threshold for just returning the argument.
20361         * math/auto-libm-test-in: Add more tests of atanh.
20362         * math/auto-libm-test-out: Regenerated.
20363         * sysdeps/i386/fpu/libm-test-ulps: Update.
20364         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20365
20366 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20367
20368         * string/bcopy.c (bcopy): Call memmove for performance.
20369
20370 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20371
20372         * string/bzero.c (__bzero): Call memset for performance.
20373
20374 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20375
20376         [BZ #18068]
20377         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20378         to 00100000.
20379
20380 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20381
20382         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20383
20384 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20385
20386         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20387         (__kernel_standard): Use CSTR macro when setting exc.name.
20388         * sysdeps/ieee754/Makefile [$(subdir) = math]
20389         (CFLAGS-k_standard.c): Remove variable.
20390
20391         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20392         setting p and q from "else if" to "else".
20393         (qzero): Likewise.
20394         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20395         (qone): Likewise.
20396         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20397         (qzerof): Likewise.
20398         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20399         (qonef): Likewise.
20400         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20401         (qzero): Likewise.
20402         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20403         (qone): Likewise.
20404
20405         [BZ #18038]
20406         [BZ #18039]
20407         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20408         return pi/2 for arguments below 0x1p-113L.
20409         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20410         return pi/2 for arguments below 0x1p-106L.
20411         * math/auto-libm-test-in: Add more tests of acos.
20412         * math/auto-libm-test-out: Regenerated.
20413
20414         [BZ #16351]
20415         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20416         (MO): New macro.
20417         (__ieee754_asin): Force underflow exception for results with small
20418         absolute value.
20419         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20420         (MO): New macro.
20421         (__ieee754_asinf): Force underflow exception for results with
20422         small absolute value.
20423         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20424         (__ieee754_asin): Force underflow exception for results with small
20425         absolute value.
20426         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20427         (__ieee754_asinf): Force underflow exception for results with
20428         small absolute value.
20429         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20430         (__ieee754_asinl): Force underflow exception for results with
20431         small absolute value.
20432         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20433         (__ieee754_asinl): Force underflow exception for results with
20434         small absolute value.
20435         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20436         (__ieee754_asinl): Force underflow exception for results with
20437         small absolute value.
20438         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20439         Include <math.h>.
20440         * math/auto-libm-test-in: Do not mark underflow exceptions as
20441         possibly missing for bug 16351.
20442         * math/auto-libm-test-out: Regenerated.
20443
20444         [BZ #18030]
20445         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20446         of power of 2 down when low part has opposite sign.
20447         * math/libm-test.inc (logb_test_data): Add more tests.
20448
20449 2015-02-26  Andreas Schwab  <schwab@suse.de>
20450
20451         [BZ #18032]
20452         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20453         over collating symbol inside a bracket expression.  Minor cleanup.
20454         * posix/tst-fnmatch3.c (do_test): Add test case.
20455
20456 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20457
20458         [BZ #18029]
20459         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20460         Adjust exponent of power of 2 down when low part has opposite
20461         sign.
20462         * math/libm-test.inc (ilogb_test_data): Add more tests.
20463
20464 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20465
20466         [BZ #15969]
20467         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20468         the previous change.
20469
20470         [BZ #15969]
20471         * locale/findlocale.c (_nl_find_locale): Retry archive search
20472         after alias expansion.
20473
20474 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20475
20476         * iconv/tst-iconv3.c (main): Converted to ...
20477         (do_test): ... this.
20478         (TEST_FUNCTION): New macro.
20479         Include test-skeleton.c.
20480
20481         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20482         (convert): Make function static.
20483         (test_unalign): Likewise.  Add const to argument pointee types.
20484         (main): Replace with static function do_test.
20485         Print "Succeeded." only if RET is zero.
20486         (TEST_FUNCTION): New macro.
20487         Include test-skeleton.c.
20488
20489         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20490         returns a null pointer.
20491
20492 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20493
20494         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20495         to __memcpy_ppc only for static builds.
20496
20497 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20498
20499         [BZ #18020]
20500         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20501         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20502         * math/auto-libm-test-in: Add more tests of asinh.
20503         * math/auto-libm-test-out: Regenerated.
20504         * sysdeps/i386/fpu/libm-test-ulps: Update.
20505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20506
20507 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20508
20509         [BZ #15850]
20510         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20511         and ip6_mtuinfo definitions here.
20512         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20513         in this define too.  Update comment.
20514
20515 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20516
20517         * elf/sprof.c (load_shobj): Tweak error message to match others.
20518
20519 2015-02-24  Kevin Easton  <kevin@guarana.org>
20520
20521         [BZ #16145] (partial fix)
20522         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20523         to reduce lock contention.
20524
20525 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20526
20527         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20528         (struct timex): Update time comment.
20529         (ADJ_SETOFFSET): Define.
20530
20531 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20532
20533         [BZ #18019]
20534         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20535         2**56 not 2**28 as threshold for log (2x) formula.
20536         * math/auto-libm-test-in: Add more tests of acosh.
20537         * math/auto-libm-test-out: Regenerated.
20538         * sysdeps/i386/fpu/libm-test-ulps: Update.
20539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20540
20541 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20542
20543         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20544         parenthesis around the buf assignment.
20545         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20546
20547 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20548
20549         [BZ #16783]
20550         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20551         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20552         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20553         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20554         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20555         * math/libm-test.inc (scalb_test_data): Add more tests.
20556
20557 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20558
20559         [BZ #17916]
20560         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20561         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20562
20563 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20564
20565         [BZ #17523]
20566         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20567         * io/bits/fcntl2.h (open): Use it.
20568         (openat): Likewise.
20569         * io/open.c (__libc_open): Likewise.
20570         * io/open64.c (__libc_open64): Likewise.
20571         * io/open64_2.c (__open64_2): Likewise.
20572         * io/open_2.c (__open_2): Likewise.
20573         * io/openat.c (__openat): Likewise.
20574         * io/openat64.c (__openat64): Likewise.
20575         * io/openat64_2.c (__openat64_2): Likewise.
20576         * io/openat_2.c (__openat_2): Likewise.
20577         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20578         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20579         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20580         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20581         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20582         (__open_nocancel): Likewise.
20583         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20584         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20585         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20586
20587 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20588
20589         [BZ #14841]
20590         * resolv/gethnamaddr.c (getanswer): Skip logging if
20591         RES_USE_DNSSEC is set.
20592         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20593
20594 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20595
20596         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20597
20598 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20599
20600         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20601         201304L, for Unicode 7.
20602
20603 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20604
20605         [BZ #17836]
20606         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20607         shared library.  Add gmon-start.os otherwise.
20608         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20609         $(objpfx)gmon-start.os if builing shared library.
20610         ($(objpfx)g$(static-start-installed-name)): Likewise.
20611
20612 2015-02-23  Andreas Schwab  <schwab@suse.de>
20613
20614         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20615
20616 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20617
20618         [BZ #17269]
20619         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20620         (enlarge_userbuf): Likewise.
20621
20622 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20623
20624         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20625         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20626         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20627         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20628
20629 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20630
20631         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20632         expression inside statement expression.
20633
20634 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20635
20636         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20637         <sysdeps/nptl/lowlevellock.h> and remove macros and
20638         functions that are now defined there.
20639         (SYS_futex): Remove.
20640         (lll_compare_and_swap): Remove.
20641         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20642
20643 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20644
20645         [BZ #17999]
20646         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20647         instead of scandirat.
20648         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20649         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20650         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20651         __scandirat.
20652         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20653         (__scandirat): Declare.  Use libc_hidden_proto.
20654         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20655         Remove variable.
20656         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20657
20658 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20659
20660         [BZ #15319]
20661         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20662         (MO): New macro.
20663         (__ieee754_atan2): For results with small absolute value, force
20664         underflow exception and remove excess range and precision from
20665         return value.
20666         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20667         (MO): New macro.
20668         (__ieee754_atan2f): For results with small absolute value, force
20669         underflow exception and remove excess range and precision from
20670         return value.
20671         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20672         (MO): New macro.
20673         (__atan): For results with small absolute value, force underflow
20674         exception and remove excess range and precision from return value.
20675         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20676         (MO): New macro.
20677         (__atanf): For results with small absolute value, force underflow
20678         exception and remove excess range and precision from return value.
20679         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20680         <math.h>.
20681         (__ieee754_atan2): Force underflow exception for results with
20682         small absolute value.
20683         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20684         <math_private.h>.
20685         (atan): Force underflow exception for results with small absolute
20686         value.
20687         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20688         (__atanf): Force underflow exception for results with small
20689         absolute value.
20690         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20691         <math.h>.
20692         (__atanl): Force underflow exception for results with small
20693         absolute value.
20694         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20695         (__atanl): Force underflow exception for results with small
20696         absolute value.
20697         * sysdeps/x86/fpu/bits/mathinline.h
20698         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20699         (__ieee754_atan2): Only define inline for long double.
20700         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20701         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20702         * math/auto-libm-test-in: Do not mark underflow exceptions as
20703         possibly missing for bug 15319.  Add more tests of atan2.
20704         * math/auto-libm-test-out: Regenerated.
20705         * math/libm-test.inc (casin_test_data): Do not mark underflow
20706         exceptions as possibly missing for bug 15319.
20707         (casinh_test_data): Likewise.
20708         * sysdeps/i386/fpu/libm-test-ulps: Update.
20709
20710 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20711
20712         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20713         * sysdeps/mips/bits/endian.h: Fix comments.
20714
20715 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20716
20717         [BZ #17996]
20718         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20719         (hdestroy_r): Likewise.
20720         (hsearch_r): Likewise.
20721         (__hcreate_r): Declare and use libc_hidden_proto.
20722         (__hdestroy_r): Likewise.
20723         (__hsearch_r): Likewise.
20724         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20725         (hcreate): Call __hcreate_r instead of hcreate_r.
20726         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20727         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20728         as weak alias of __hcreate_r.
20729         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20730         __hdestroy_r.
20731         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20732         __hsearch_r.
20733         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20734         Remove variable.
20735         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20736         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20737         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20738         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20739
20740 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20741
20742         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20743         arena_lock into a single arena_get.
20744
20745 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20746
20747         * dl-reloc.c: Inlucde libc-internal.h.
20748         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20749         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20750         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20751         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20752         (grow_heap): Likewise.
20753         * malloc/malloc.c: Include libc-internal.h.
20754         (do_check_malloc): Call powerof2.
20755         (sysmalloc): Use pagesize. Call ALIGN_UP.
20756         (systrim): Use pagesize.
20757         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20758         (__libc_valloc): Use pagesize.
20759         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20760
20761 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20762
20763         [BZ #17991]
20764         * include/sys/resource.h (__getrlimit64): Declare.  Use
20765         libc_hidden_proto.
20766         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20767         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20768         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20769         getrlimit64.
20770         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20771         __getrlimit64.
20772         [!getrlimit64] (getrlimit64): Define as weak alias of
20773         __getrlimit64.  Use libc_hidden_weak.
20774         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20775         using __getrlimit64 not __new_getrlimit64.
20776         (__GI_getrlimit64): Likewise.
20777         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20778         Likewise.
20779         (__GI_getrlimit64): Likewise.
20780         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20782         (getrlimit): Add __getrlimit64 alias.
20783         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20784         Likewise.
20785         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20786         Remove variable.
20787         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20788         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20789
20790 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20791
20792         * libio/fileops.c: Add missing sys/mman.h
20793         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20794
20795 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20796
20797         * manual/math.texi (Errors in Math Functions): Clarify goals
20798         regarding inexact and underflow exceptions.
20799
20800 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20801
20802         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20803         * sysdeps/mips/memset.S: Ditto.
20804
20805 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20806
20807         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20808
20809 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20810
20811         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20812         (__v1longjmp): Remove versioned symbol.
20813         (__v1siglongjmp): Remove alias and versioned symbol.
20814         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20815         (__v2siglongjmp): Likewise.
20816
20817 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20818
20819         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20820
20821 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20822
20823         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20824
20825 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20826
20827         [BZ #17987]
20828         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20829         zero result does not depend on the sign resulting from
20830         subtraction.
20831         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20832         Likewise.
20833         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20834         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20835         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20836         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20837         * math/libm-test.inc (remquo_test_data): Add more tests.
20838
20839 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20840
20841         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20842         Problem reported by J William Piggott.
20843
20844 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20845
20846         [BZ #17978]
20847         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20848         products 4 * y and 2 * y where those would overflow.
20849         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20850         Likewise.
20851         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20852         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20853         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20854         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20855         * math/libm-test.inc (remquo_test_data): Add more tests.
20856
20857         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20858
20859         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20860         [defined _COMPILING_NEWLIB].
20861         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20862         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20863
20864         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20865         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20866
20867 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20868
20869         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20870         acquired.
20871
20872 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20873
20874         [BZ #17792]
20875         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20876         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20877         HOST_STACK_END_ADDR): Likewise.
20878
20879 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20880
20881         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20882         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20883         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20884
20885 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20886
20887         * sysdeps/generic/c++-types.data: New file.
20888         * sysdeps/generic/ld.abilist: New file.
20889         * sysdeps/generic/libBrokenLocale.abilist: New file.
20890         * sysdeps/generic/libanl.abilist: New file.
20891         * sysdeps/generic/libc.abilist: New file.
20892         * sysdeps/generic/libcrypt.abilist: New file.
20893         * sysdeps/generic/libdl.abilist: New file.
20894         * sysdeps/generic/libm.abilist: New file.
20895         * sysdeps/generic/libpthread.abilist: New file.
20896         * sysdeps/generic/libresolv.abilist: New file.
20897         * sysdeps/generic/librt.abilist: New file.
20898
20899 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20900
20901         [BZ #17569]
20902         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20903         Compute absolute value of x as modified by fmod, not original
20904         value of x.
20905         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20906         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20907         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20908         RUN_TEST_ffI_f1_mod8.
20909         (remquo_test_data): Add more tests.
20910
20911 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20912
20913         * sysdeps/init_array/pt-crti.S: New file.
20914
20915 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20916
20917         [BZ #17967]
20918         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20919         __builtin_fmaf instead of relying on contraction of a * b + c.
20920
20921 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20922
20923         [BZ #17969]
20924         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20925         node.
20926
20927 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20928
20929         [BZ #17964]
20930         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20931         __builtin_fma instead of relying on contraction of a * b + c.
20932
20933 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20934
20935         * Makeconfig (ASFLAGS): Add -Werror=undef.
20936         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20937         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20938         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20939
20940         * Makeconfig (after-link): New variable.
20941         (+link-pie, +link-pie-tests): Use it.
20942         (+link-static, +link-static-tests): Likewise.
20943         (+link, +link-tests): Likewise.
20944         * Makerules (build-module, build-module-asneeded): Likewise.
20945         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20946         Likewise.
20947         * elf/Makefile ($(objpfx)ld.so): Likewise.
20948
20949 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20950
20951         [BZ #17965]
20952         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20953         both struct timeval and struct timespec.
20954
20955 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20956
20957         [BZ #16560]
20958         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20959         and redefine.
20960         (__ieee754_exp2l): Do not multiply small fractional parts by
20961         M_LN2l.
20962         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20963         small argument.
20964         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20965         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20966         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20967         * math/auto-libm-test-in: Add more tests of exp2.
20968         * math/auto-libm-test-out: Regenerated.
20969
20970 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20971
20972         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20973         unaligned path.
20974
20975 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20976
20977         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20978         little endian.
20979
20980 2015-02-12  Andreas Schwab  <schwab@suse.de>
20981
20982         [BZ #15790]
20983         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20984         Filter out elision flags from value returned in kind.
20985         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20986         * nptl/tst-pthread-mutexattr.c: New file.
20987
20988 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20989
20990         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20991         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20992         into gnu-gnu, and update comment to refer to abi-tags.
20993
20994 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20995
20996         [BZ #15467]
20997         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20998         (__sincos): Set errno to EDOM for infinite argument.
20999         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
21000         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
21001         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
21002         (__sincosl): Set errno to EDOM for infinite argument.
21003         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
21004         (__sincosl): Set errno to EDOM for infinite argument.
21005         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
21006         (__sincosl): Set errno to EDOM for infinite argument.
21007         * math/libm-test.inc (sincos_test_data): Test errno setting.
21008
21009 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
21010
21011         * string/strxfrm_l.c: Remove #define STRCMP.
21012         * string/strcoll_l.c: Remove #define STRLEN.
21013         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
21014         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
21015
21016 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
21017
21018         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
21019         * sysdeps/mips/mips32/sfp-machine.h: ... here.
21020         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
21021         * sysdeps/mips/mips64/Makefile: ... here.
21022         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
21023         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
21024         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
21025         * sysdeps/mips/mips64/sfp-machine.h: ... here.
21026         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
21027         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
21028         * sysdeps/mips/mips64/n64/Implies: Likewise.
21029
21030 2015-02-10  Roland McGrath  <roland@hack.frob.com>
21031
21032         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
21033         <sys/time.h>, <string.h>, and <errno.h>.
21034         (dest_offset, dest_address, value, zero): Remove unused variables.
21035         (ldouble): Remove typedef.
21036         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
21037         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
21038         1).  Fix code style.
21039         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
21040         (check): Function removed.
21041         (CHECK): New macro.
21042         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
21043         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
21044         Don't call set_sigaction_FP and remove_sigaction_FP here.
21045         (ldouble_test): Just use 'long double' as macro argument, no need for
21046         the 'ldouble' typedef.
21047         (do_test): Set up SIGFPE handler at start, using plain signal rather
21048         than sigaction.  Fix code style.
21049
21050 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
21051
21052         [BZ #17949]
21053         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
21054         jump label.
21055
21056 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21057
21058         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
21059         * sysdeps/powerpc/powerpc32/configure: Regenerated.
21060
21061         * sysdeps/powerpc/configure.ac: Remove file.
21062         * sysdeps/powerpc/configure: Likewise.
21063
21064         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
21065         [sysdep_routines]: Remove wordcopy-power6 object.
21066         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
21067         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
21068         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
21069         (__memmove_ppc32): Likewise.
21070         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
21071         file.
21072         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
21073         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
21074         Remove preprocessor.
21075
21076         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
21077         [sysdep_routines]: Remove wide chars objects.
21078         [wcsmbs]: New rule for wide char objects.
21079
21080         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21081         Remove wordcopy-power6 obejct.
21082         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
21083         Use local call for wordcopy and memcpy symbols.
21084         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
21085         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
21086         implementation for loader.
21087         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
21088
21089         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21090         Remove wordcopy-power7 object.
21091         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
21092         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
21093         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
21094         (_wordcopy_fwd_dest_aligned): Likewise.
21095         (_wordcopy_bwd_aligned): Likewise.
21096         (_wordcopy_bwd_dest_aligned): Likewise.
21097
21098         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
21099         Rewrite to call __memmove_ppc instead of include default
21100         implementation.
21101
21102         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21103         Remove wide chars objects.
21104         [wcsmbs]: New rule for wide char objects.
21105
21106 2015-02-09  Andreas Schwab  <schwab@suse.de>
21107
21108         [BZ #17912]
21109         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
21110         in terms of __O_DIRECTORY.
21111
21112 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21113
21114         * time/getdate.c: Include <stdbool.h>.
21115         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
21116         call PTR_MANGLE.
21117         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
21118         PTR_DEMANGLE.
21119
21120 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         Add ersatz _Static_assert on older C hosts
21123         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
21124         pre-C11 C platform that is not known to support _Static_assert.
21125
21126 2015-02-07  Richard Braun  <rbraun@sceen.net>
21127
21128         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
21129         sigstate.
21130         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
21131
21132 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21133
21134         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
21135         priority against unexistent AIO_PRIO_DELTA_MAX.
21136         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
21137         instead of int.
21138         * misc/fchflags.c (fchflags): Likewise.
21139         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
21140         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
21141         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
21142         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
21143         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
21144         Declare macros.
21145         [__USE_MISC] (chflags, fchflags): Declare functions.
21146         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
21147         EINVAL when nfds is greater than FD_SETSIZE.
21148         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
21149         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
21150         45.
21151         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
21152         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
21153         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
21154         MACH_RCV_TIMED_OUT.
21155         * hurd/hurd/signal.h (_hurd_self_sigstate,
21156         _hurd_critical_section_lock, _hurd_critical_section_unlock):
21157         Explicit casts from void *.
21158         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
21159         * abi-tags: Rename gnu-gnu os into gnu.
21160
21161         [BZ #4719]
21162         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
21163         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
21164         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
21165         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
21166         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
21167         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
21168
21169         [BZ #17944]
21170         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
21171         duplicates ADDR->sun_path with sockaddr LEN limitation.
21172         * sysdeps/mach/hurd/connect.c: Include <string.h>
21173         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
21174         * sysdeps/mach/hurd/sendmsg.c: Likewise.
21175         * sysdeps/mach/hurd/sendto.c: Likewise.
21176         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
21177         implementing it by hand.
21178
21179 2015-02-06  Roland McGrath  <roland@hack.frob.com>
21180
21181         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
21182         Use sfi_breg on ldr.
21183         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
21184         Likewise.
21185
21186         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
21187         it's defined.
21188         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
21189         Test SIGSETXID only if it's defined.
21190
21191         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
21192
21193         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
21194         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
21195
21196         * nptl/tst-align2.c: Moved ...
21197         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
21198         * nptl/Makefile (tests): Remove tst-align2.
21199         * sysdeps/unix/sysv/linux/Makefile
21200         [$(subdir) = nptl] (tests): Add tst-align-clone.
21201         * nptl/tst-getpid1.c: Moved ...
21202         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21203         * nptl/tst-getpid2.c: Moved ...
21204         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21205         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21206         * sysdeps/unix/sysv/linux/Makefile
21207         [$(subdir) = nptl] (tests): ... here.
21208         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21209         * sysdeps/unix/sysv/linux/Makefile
21210         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21211
21212         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21213         Drop trailing \n from perror argument.  Use return rather than exit.
21214
21215         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21216         on [SA_SIGINFO].
21217         * nptl/tst-cancel21.c (do_test): Likewise.
21218         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21219         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21220         [!SA_SIGINFO]: Make it a stub test.
21221
21222         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21223         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21224
21225         * posix/tst-getlogin.c: Move to ...
21226         * login/tst-getlogin.c: ... here.
21227         * posix/Makefile (tests): Move tst-getlogin to ...
21228         * login/Makefile (tests): ... here.
21229
21230         * libio/tst-atime.c (do_test): Move local variables SV and E
21231         inside [ST_NOATIME] conditional.
21232
21233         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21234
21235         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21236
21237         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21238         (wait_code): New function replaces macro.
21239         Call nanosleep rather than syscall.
21240
21241         * nptl/pt-system.c: Rewritten.  Put everything under
21242         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21243         Use IFUNC to redirect when possible.
21244
21245         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21246         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21247         Use IFUNC to redirect when possible.
21248
21249         * nptl/pt-fork.c: Rewritten.  Put everything under
21250         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21251         Use IFUNC to redirect when possible.
21252         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21253
21254         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21255         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21256         unconditionally nowadays.  This included the only reference to
21257         __vdso_clock_gettime that appears outside libc proper.
21258         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21259         Remove version set (containing only __vdso_clock_gettime).
21260         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21261         Add attribute_hidden.
21262         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21263         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21264         libc_hidden_data_def.
21265         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21266         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21267
21268         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21269         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21270         setrpcent, and getrpcport to ...
21271         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21272         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21273         getrpcbynumber_r, and getrpcent_r to ...
21274         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21275         * inet/getrpcbyname.c: Moved ...
21276         * sunrpc/getrpcbyname.c: ... here.
21277         * inet/getrpcbyname_r.c: Moved ...
21278         * sunrpc/getrpcbyname_r.c: ... here.
21279         * inet/getrpcbynumber.c: Moved ...
21280         * sunrpc/getrpcbynumber.c: ... here.
21281         * inet/getrpcbynumber_r.c: Moved ...
21282         * sunrpc/getrpcbynumber_r.c: ... here.
21283         * inet/getrpcent.c: Moved ...
21284         * sunrpc/getrpcent.c: ... here.
21285         * inet/getrpcent_r.c: Moved ...
21286         * sunrpc/getrpcent_r.c: ... here.
21287         * inet/Makefile (routines): Move those to ...
21288         * sunrpc/Makefile (routines): ... here.
21289         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21290         the $(subdirs) list.
21291         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21292         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21293         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21294         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21295
21296         * elf/Makefile (routines): Include $(all-dl-routines), not just
21297         $(dl-routines).
21298         (rtld-routines): Likewise.  Use = rather than :=.
21299         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21300         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21301         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21302         * sysdeps/arm/Makefile: Likewise.
21303         * sysdeps/i386/Makefile: Likewise.
21304         * sysdeps/x86_64/Makefile: Likewise.
21305         * sysdeps/hppa/Makefile [$(subdir) = elf]
21306         (sysdep_routines, sysdep-rtld-routines): Don't add
21307         $(sysdep-dl-routines) to these.
21308         * sysdeps/ia64/Makefile: Likewise.
21309         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21310         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21311         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21312         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21313         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21314         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21315         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21316         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21317         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21318         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21319         these; sysdep-dl-routines alone is enough.
21320
21321 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21322
21323         [BZ #17932]
21324         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21325         where multiplication results in zero and third argument is finite
21326         and nonzero.
21327         * math/auto-libm-test-in: Add more tests of fma.
21328         * math/auto-libm-test-out: Regenerated.
21329
21330         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21331         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21332         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21333         (_FP_CMP_EQ): Likewise.
21334         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21335
21336         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21337         extra argument CHECK_NAN.  Redefine as wrapper around
21338         _FP_EXTEND_CNAN.
21339
21340 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21341
21342         * version.h (RELEASE): Set to "stable".
21343         (VERSION): Set to "2.21"
21344         * include/features.h (__GLIBC_MINOR__): Set to 21.
21345
21346         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21347
21348 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21349             Paul Eggert  <eggert@cs.ucla.edu>
21350
21351         [BZ #16618]
21352         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21353         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21354         size in bytes. Store needed elements in wpmax. Use needed size
21355         in bytes for extend_alloca.
21356
21357 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21358
21359         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21360         binutls 2.25, and texinfo 5.2.
21361         * INSTALL: Regenerate.
21362         * sysdeps/nios2/configure: Regenerate.
21363         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21364         * manual/contrib.texi: Update.
21365         * po/be.po: Update.
21366         * po/bg.po: Update.
21367         * po/ca.po: Update.
21368         * po/cs.po: Update.
21369         * po/da.po: Update.
21370         * po/de.po: Update.
21371         * po/el.po: Update.
21372         * po/eo.po: Update.
21373         * po/es.po: Update.
21374         * po/fi.po: Update.
21375         * po/fr.po: Update.
21376         * po/gl.po: Update.
21377         * po/hr.po: Update.
21378         * po/hu.po: Update.
21379         * po/ia.po: Update.
21380         * po/id.po: Update.
21381         * po/it.po: Update.
21382         * po/ja.po: Update.
21383         * po/ko.po: Update.
21384         * po/lt.po: Update.
21385         * po/nb.po: Update.
21386         * po/nl.po: Update.
21387         * po/pl.po: Update.
21388         * po/pt_BR.po: Update.
21389         * po/ru.po: Update.
21390         * po/rw.po: Update.
21391         * po/sk.po: Update.
21392         * po/sl.po: Update.
21393         * po/sv.po: Update.
21394         * po/tr.po: Update.
21395         * po/uk.po: Update.
21396         * po/vi.po: Update.
21397         * po/zh_CN.po: Update.
21398         * po/zh_TW.po: Update.
21399
21400         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21401         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21402         * sysdeps/hppa/dl-irel.h: Remove #warning.
21403         * sysdeps/hppa/entry.h: Provide prototype for
21404         __canonicalize_funcptr_for_compare and cast argument.
21405         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21406         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21407         * sysdeps/hppa/sotruss-lib.c: New file.
21408         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21409         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21410         (atomic_compare_and_exchange_bool_acq): Likewise.
21411         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21412         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21413
21414         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21415         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21416         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21417
21418 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21419
21420         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21421         called function in non-PIC case.
21422
21423 2015-01-31  David S. Miller  <davem@davemloft.net>
21424
21425         * sysdeps/sparc/sparc32/bits/atomic.h
21426         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21427         unlock not after it.
21428         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21429         volatile register usage warnings from the compiler.
21430
21431         * sysdeps/sparc/nptl/sem_init.c: Delete.
21432         * sysdeps/sparc/nptl/sem_post.c: Delete.
21433         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21434         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21435         * sysdeps/sparc/sparc32/sem_init.c: New file.
21436         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21437         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21438         padding explicitly initialized.
21439         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21440         padding for in-semaphore spinlock.
21441         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21442         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21443         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21444         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21445         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21446         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21447         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21448         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21449         version.
21450         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21451         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21452
21453 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21454
21455         [BZ #17801]
21456         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21457         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21458         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21459         New.
21460         (index_AVX_Fast_Unaligned_Load): Likewise.
21461         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21462         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21463         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21464         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21465         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21466         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21467         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21468         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21469         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21470
21471 2015-01-29  Andreas Schwab  <schwab@suse.de>
21472
21473         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21474
21475 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21476
21477         [BZ #17892]
21478         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21479
21480 2015-01-28  Martin Sebor  <msebor@redhat.com>
21481
21482         * math/README.libm-test: Clarify. Add "How to read the test output."
21483
21484 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21485
21486         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21487         Define to 0.
21488
21489 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21490
21491         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21492         (__HAVE_64B_ATOMICS): Define to 0.
21493
21494 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21495
21496         [BZ #17885]
21497         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21498         value to set as new flag.
21499
21500         [BZ #16576]
21501         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21502         and use _ARCH_PPCSQ instead.
21503         (__ieee754_sqrt): Likewise.
21504         (__ieee754_sqrtf): Likewise.
21505         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21506         _ARCH_PPCSQ is defined.
21507         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21508         fsqrt instruction.
21509         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21510         _ARCH_PPCSQ is defined.
21511         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21512         fsqrts instruction.
21513         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21514
21515 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21516
21517         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21518         bug (GCC BZ #64739).
21519
21520 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21521
21522         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21523         Mark _retval as used.
21524         (lll_futex_wake_unlock): Likewise.
21525         (lll_futex_timed_wait_requeue_pi): Likewise.
21526
21527         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21528         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21529         register variables.
21530
21531         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21532         libm_hidden_def.
21533
21534         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21535         (__bswap_64): Mark as __always_inline.
21536
21537 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21538
21539         [BZ #15378]
21540         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21541         when none of the search directories exist.
21542
21543 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21544
21545         [BZ #17869]
21546         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21547         power8 in .machine directive.
21548
21549         [BZ #17868]
21550         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21551         set dependency from opd value.
21552
21553 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21554
21555         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21556         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21557         architecture.
21558
21559 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21560
21561         [BZ #17870]
21562         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21563         with uint64_t.
21564         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21565         (uint64_t) 1.
21566         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21567         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21568         Replace 1UL with (uint64_t) 1.
21569         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21570         int with uint64_t.
21571
21572 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21573
21574         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21575         (if_freenameindex): Likewise.
21576
21577         * resource/getrlimit64.c: Add missing libc_hidden_def.
21578
21579 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21580
21581         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21582         __label__.
21583         (_FP_FMA): Likewise.
21584         (_FP_TO_INT_ROUND): Likewise.
21585         (_FP_FROM_INT): Likewise.
21586
21587 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21588
21589         [BZ #16418]
21590         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21591         Make code racy and cancel safe.
21592
21593 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21594
21595         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21596         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21597         attribution.
21598
21599         * pwd/tst-getpw.c: Rewrite.
21600
21601         [BZ #17702]
21602         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21603         (modules-names): Add moddummy1 and moddummy2.
21604         ($(objpfx)tst-rec-dlopen): Define.
21605         * dlfcn/moddummy1.c: New file.
21606         * dlfcn/moddummy2.c: New file.
21607         * dlfcn/tst-rec-dlopen.c: New file.
21608         * elf/dl-cache.c (_dl_load_cache_lookup):
21609         Return char*. Copy result with alloca/strcpy/strdup.
21610         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21611         returns char*. Free cached. If not saving realname
21612         free cached.
21613         * elf/dl-open.c (dl_open_worker): Do not assert that
21614         _r_debug->r_state is RT_CONSISTENT.
21615         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21616         returns char*.
21617
21618 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21619             Carlos O'Donell  <carlos@redhat.com>
21620
21621         [BZ #12674]
21622         * nptl/sem_waitcommon.c: New file.
21623         * nptl/sem_wait.c: Include sem_waitcommon.c.
21624         (__sem_wait_cleanup, do_futex_wait): Remove.
21625         (__new_sem_wait): Adapt.
21626         (__new_sem_trywait): New function.
21627         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21628         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21629         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21630         (sem_timedwait): Adapt.
21631         * nptl/sem_post.c (__new_sem_post): Adapt.
21632         (futex_wake): New function.
21633         (__old_sem_post): Add release MO fence.
21634         * nptl/sem_open.c (sem_open): Adapt.
21635         * nptl/sem_init.c (__new_sem_init): Adapt.
21636         (futex_private_if_supported): New function.
21637         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21638         (__old_sem_getvalue): Add using previous code.
21639         * sysdeps/nptl/internaltypes.h: Adapt.
21640         * nptl/tst-sem13.c (do_test): Adapt.
21641         * nptl/tst-sem11.c (main): Adapt.
21642         * nptl/sem_trywait.c: Remove.
21643         * nptl/DESIGN-sem.txt: Remove.
21644         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21645         (gen-as-const-headers): Remove structsem.sym.
21646         * nptl/structsem.sym: Remove.
21647         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21648         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21649         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21650         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21651         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21652         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21653         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21654         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21655         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21656         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21657         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21658         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21659         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21660         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21661         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21662         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21663         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21664         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21665         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21666         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21667         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21668         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21669
21670 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21671
21672         * INSTALL: Regenerated.
21673
21674         * po/libc.pot: Regenerated.
21675
21676 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21677             Sandra Loosemore  <sandra@codesourcery.com>
21678             Andrew Jenner  <andrew@codesourcery.com>
21679             Joseph Myers  <joseph@codesourcery.com>
21680             Nathan Sidwell  <nathan@codesourcery.com>
21681
21682         * NEWS: Mention new Nios II port.
21683         * sysdeps/nios2/Implies: New file.
21684         * sysdeps/nios2/Makefile: New file.
21685         * sysdeps/nios2/Subdirs: New file.
21686         * sysdeps/nios2/Versions: New file.
21687         * sysdeps/nios2/__longjmp.S: New file.
21688         * sysdeps/nios2/abort-instr.h: New file.
21689         * sysdeps/nios2/backtrace.c: New file.
21690         * sysdeps/nios2/bits/endian.h: New file.
21691         * sysdeps/nios2/bits/fenv.h: New file.
21692         * sysdeps/nios2/bits/link.h: New file.
21693         * sysdeps/nios2/bits/setjmp.h: New file.
21694         * sysdeps/nios2/bsd-_setjmp.S: New file.
21695         * sysdeps/nios2/bsd-setjmp.S: New file.
21696         * sysdeps/nios2/configure: New generated file.
21697         * sysdeps/nios2/configure.ac: New file.
21698         * sysdeps/nios2/crti.S: New file.
21699         * sysdeps/nios2/crtn.S: New file.
21700         * sysdeps/nios2/dl-init.c: New file.
21701         * sysdeps/nios2/dl-machine.h: New file.
21702         * sysdeps/nios2/dl-sysdep.h: New file.
21703         * sysdeps/nios2/dl-tls.h: New file.
21704         * sysdeps/nios2/dl-trampoline.S: New file.
21705         * sysdeps/nios2/gccframe.h: New file.
21706         * sysdeps/nios2/gmp-mparam.h: New file.
21707         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21708         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21709         * sysdeps/nios2/ldsodefs.h: New file.
21710         * sysdeps/nios2/libc-tls.c: New file.
21711         * sysdeps/nios2/libm-test-ulps: New file.
21712         * sysdeps/nios2/machine-gmon.h: New file.
21713         * sysdeps/nios2/math-tests.h: New file.
21714         * sysdeps/nios2/math_private.h: New file.
21715         * sysdeps/nios2/memusage.h: New file.
21716         * sysdeps/nios2/nptl/Makefile: New file.
21717         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21718         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21719         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21720         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21721         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21722         * sysdeps/nios2/nptl/tls.h: New file.
21723         * sysdeps/nios2/preconfigure: New file.
21724         * sysdeps/nios2/s_fma.c: New file.
21725         * sysdeps/nios2/s_fmaf.c: New file.
21726         * sysdeps/nios2/setjmp.S: New file.
21727         * sysdeps/nios2/sfp-machine.h: New file.
21728         * sysdeps/nios2/sotruss-lib.c: New file.
21729         * sysdeps/nios2/stackguard-macros.h: New file.
21730         * sysdeps/nios2/stackinfo.h: New file.
21731         * sysdeps/nios2/start.S: New file.
21732         * sysdeps/nios2/sysdep.h: New file.
21733         * sysdeps/nios2/tls-macros.h: New file.
21734         * sysdeps/nios2/tst-audit.h: New file.
21735         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21736         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21737         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21738         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21739         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21740         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21741         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21742         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21743         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21744         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21745         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21746         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21747         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21748         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21749         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21750         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21751         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21752         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21753         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21754         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21755         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21756         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21757         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21758         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21759         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21760         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21761         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21762         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21763         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21764         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21765         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21766         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21767         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21768         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21769         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21770         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21771         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21772         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21773         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21774         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21775         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21776         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21777         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21778         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21779
21780 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21781
21782         [BZ #17844]
21783         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21784         (getutent): Use weak_alias in non SHARED case
21785         and default_symbol_version in SHARED case.
21786         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21787         (getutent_r, pututline): Likewise.
21788         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21789         (getutid): Likewise.
21790         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21791         (getutid_r): Likewise.
21792         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21793         (getutline): Likewise.
21794         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21795         (getutline_r): Likewise.
21796         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21797         (updwtmp): Likewise.
21798
21799 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21800
21801         [BZ #17848]
21802         * sysdeps/s390/s390-32/memcmp.S
21803         (memcmp_g5): Rename to __memcmp_g5.
21804         * sysdeps/s390/s390-32/memcpy.S
21805         (memcpy_g5): Rename to __memcpy_g5.
21806         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21807         (memcpy_mvcle) Rename to __memcpy_mvcle.
21808         * sysdeps/s390/s390-32/memset.S
21809         (memset_g5): Rename to __memset_g5.
21810         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21811         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21812         and use prefixed functions.
21813         * sysdeps/s390/s390-32/multiarch/memcmp.S
21814         (memcmp_z196): Rename to __memcmp_z196.
21815         (memcmp_z10): Rename to __memcmp_z10.
21816         (memcmp): Set alias to __memcmp_g5.
21817         (bcmp): Set alias to __memcmp_g5.
21818         * sysdeps/s390/s390-32/multiarch/memcpy.S
21819         (memcpy_z196): Rename to __memcpy_z196.
21820         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21821         (memcpy_z10): Rename to __memcpy_z10.
21822         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21823         (memcpy): Set alias to __memcpy_g5.
21824         * sysdeps/s390/s390-32/multiarch/memset.S
21825         (memset_z196): Rename to __memset_z196.
21826         Jump to __memset_mvcle instead of memset_mvcle.
21827         (memset_z10): Rename to __memset_z10.
21828         Jump to __memset_mvcle instead of memset_mvcle.
21829         (memset_mvcle) Rename to __memset_mvcle.
21830         (memset): Set alias to __memset_g5.
21831         * sysdeps/s390/s390-64/memcmp.S
21832         (memcmp_z900): Rename to __memcmp_z900.
21833         * sysdeps/s390/s390-64/memcpy.S
21834         (memcpy_z900): Rename to __memcpy_z900.
21835         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21836         (memcpy_mvcle) Rename to __memcpy_mvcle.
21837         * sysdeps/s390/s390-64/memset.S
21838         (memset_z900): Rename to __memset_z900.
21839         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21840         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21841         and use prefixed functions.
21842         * sysdeps/s390/s390-64/multiarch/memcmp.S
21843         (memcmp_z196): Rename to __memcmp_z196.
21844         (memcmp_z10): Rename to __memcmp_z10.
21845         (memcmp): Set alias to __memcmp_z900.
21846         (bcmp): Set alias to __memcmp_z900.
21847         * sysdeps/s390/s390-64/multiarch/memcpy.S
21848         (memcpy_z196): Rename to __memcpy_z196.
21849         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21850         (memcpy_z10): Rename to __memcpy_z10.
21851         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21852         (memcpy): Set alias to __memcpy_z900.
21853         * sysdeps/s390/s390-64/multiarch/memset.S
21854         (memset_z196): Rename to __memset_z196.
21855         Jump to __memset_mvcle instead of memset_mvcle.
21856         (memset_z10): Rename to __memset_z10.
21857         Jump to __memset_mvcle instead of memset_mvcle.
21858         (memset_mvcle) Rename to __memset_mvcle.
21859         (memset): Set alias to __memset_z900.
21860
21861 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21862
21863         [BZ #17748]
21864         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21865         __fesetenv instead of fesetenv.
21866
21867 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21868
21869         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21870         macro.
21871
21872 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21873
21874         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21875         regression on LE.
21876
21877         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21878         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21879         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21880         strncmp-power8 object.
21881         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21882         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21883         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21884         * NEWS: Update.
21885
21886 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21887             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21888
21889         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21890         trailing byte check.
21891
21892 2015-01-13  David S. Miller  <davem@davemloft.net>
21893
21894         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21895
21896 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21897
21898         * login/logout.c (logout): Use memset rather than bzero.
21899         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21900         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21901         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21902         (_gethtbyaddr): Likewise.
21903         * locale/programs/simple-hash.c (bcopy): Macro removed.
21904
21905 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21906
21907         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21908         Add strcmp-power8 object.
21909         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21910         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21911         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21912         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21913         __strcmp_power8 implementation.
21914         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21915         * NEWS: Update.
21916
21917         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21918         Add strncpy-power8 and stpncpy-power8 objects.
21919         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21920         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21921         implementations.
21922         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21923         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21924         __stpncpy_power8 implementation.
21925         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21926         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21927         __strncpy_power8 implementation.
21928         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21929         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21930         * NEWS: Update.
21931
21932         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21933         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21934         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21935
21936         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21937         strncat-power8 object.
21938         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21939         __strcat_power8 implementation.
21940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21941         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21942         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21943         optimized strcat for power8.
21944
21945         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21946         strcpy-power8 and stpcpy-power8 objects.
21947         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21948         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21949         implementations.
21950         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21951         multiarch stpcpy implementation for POWER8.
21952         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21953         multiarch strcpy implementation for POWER8.
21954         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21955         __strcpy_power8 function.
21956         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21957         stpcpy for POWER8.
21958         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21959         strcpy for POWER8.
21960         * NEWS: Update.
21961
21962 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21963
21964         [BZ #16009]
21965         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21966         weights and rules. Use do_xfrm_cached if data fits in cache,
21967         do_xfrm otherwise.  Moved former main loop to...
21968         * (do_xfrm_cached): New function.
21969         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21970         find_idx, find_position and stack_push.
21971         * (find_idx): New function.
21972         * (find_position): Likewise.
21973         * localedata/sort-test.sh: Added test run for do_xfrm.
21974         * localedata/xfrm-test.c (main): Added command line option
21975         -nocache to run the test with strings that are too large for
21976         the STRXFRM cache.
21977
21978 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21979
21980         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21981         variable to lll_futex_wake call, not the value itself.
21982
21983 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21984
21985         [BZ #17803]
21986         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21987         twom64.  Adjust value to 0x1p-64L.
21988         (__scalblnl): Only return standard underflowing result for K <=
21989         -64 not K <= -63; adjust exponent for underflowing result by 64
21990         not 63.
21991         * math/libm-test.inc (scalbn_test_data): Add more tests.
21992         (scalbln_test_data): Likewise.
21993
21994         [BZ #17834]
21995         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21996         0x1p63L.
21997         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21998         not HX.
21999         * math/libm-test.inc (scalbn_test_data): Add more tests.
22000         (scalbln_test_data): Likewise.
22001
22002 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22003             Stefani Seibold  <stefani@seibold.net>
22004
22005         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
22006         (sysdep_routines): Add dl-vdso here, ...
22007         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
22008         (sysdep_routines): ... not here.
22009         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
22010         fallback when vDSO is not presented.
22011         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
22012         Define with libc_hidden_proto/libc_hidden_data_def definitions.
22013         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
22014         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
22015         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
22016         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
22017         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
22018         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
22019         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
22020         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
22021         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
22022         fallback configurable symbol when vDSO is not available.
22023         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
22024         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
22025         be able to redefine fallback symbol when vDSO is not available.
22026         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
22027         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
22028
22029 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22030
22031         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
22032         (TLS_INIT_TP): Add tm_capable initialization.
22033         (TLS_DEFINE_INIT_TP): Likewise.
22034         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
22035         TCB.
22036         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
22037         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
22038         calculation.
22039         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
22040         transactoion is lock elision is built and TCB tm_capable is set.
22041         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
22042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22043         (INTERNAL_SYSCALL_NCS): Likewise.
22044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
22045         (INTERNAL_SYSCALL_NCS): Likewise.
22046         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
22047
22048         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
22049         for powerpc.
22050         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
22051         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
22052         and remove it for 32 bits case.
22053         [pthread_rwlock_t] (__rwelision): New field for lock elision.
22054         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
22055         initialization.
22056         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
22057         Disable lock elision with rdlocks if elision is not available.
22058
22059         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
22060         (sysdep_routines): Add lock elision objects.
22061         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
22062         [pthread_mutex_t] (__spins): Rework to add lock elision field.
22063         [pthread_mutex_t] (__elision): Add field.
22064         [__PTHREAD_SPINS]: Adjust to init lock elision field.
22065         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
22066         elision definitions for powerpc.
22067         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
22068         implementation of lock elision for powerpc.
22069         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
22070         implementation of timed lock elision for powerpc.
22071         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
22072         implementation of trylock with lock elision for powerpc.
22073         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
22074         implementaion of unlock for lock elision for powerpc.
22075         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
22076         automatic enable lock elision for mutexes.
22077         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
22078         transaction execution definitions for powerpc.
22079         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
22080         definitions.
22081         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
22082         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
22083         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
22084         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
22085         * NEWS: Update.
22086
22087 2015-01-09  Roland McGrath  <roland@hack.frob.com>
22088
22089         * sysdeps/posix/shm-directory.c: Use <> rather than ""
22090         for #include of <shm-directory.h>.
22091
22092 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
22093
22094         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
22095         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
22096
22097 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
22098
22099         [BZ #17791]
22100         * NEWS: Mention bug fix.
22101         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
22102         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
22103         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
22104
22105 2015-01-09  Torvald Riegel <triegel@redhat.com>
22106
22107         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
22108
22109 2015-01-09  Torvald Riegel <triegel@redhat.com>
22110
22111         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
22112
22113 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
22114
22115         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
22116         pointer and cast to uintptr_t.
22117
22118 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
22119
22120         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
22121         removed.
22122         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
22123
22124 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
22125
22126         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
22127         of 0.
22128
22129 2015-01-08  Roland McGrath  <roland@hack.frob.com>
22130
22131         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
22132         <nptl/pthreadP.h> instead.
22133         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
22134
22135         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
22136         already defined.
22137         [__SIGRTMIN] (init): Function removed.
22138         [__SIGRTMIN] (initialized): Variable removed.
22139         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
22140         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
22141         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
22142         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
22143         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
22144         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
22145         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
22146         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
22147         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
22148         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
22149         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
22150         * sysdeps/nptl/allocrtsig.c: New file.
22151         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
22152         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
22153         * sysdeps/generic/testrtsig.h: File removed.
22154
22155         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
22156         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
22157
22158         * nptl/nptl-init.c (pthread_functions): Conditionalize
22159         .ptr__nptl_setxid initialization on [SIGSETXID].
22160
22161         * sysdeps/nptl/sys/procfs.h: New file.
22162         * nptl_db/Makefile (headers): Add it.
22163         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
22164
22165         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
22166         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
22167         * nptl/pthread_attr_setaffinity.c: Include it.
22168         * nptl/pthread_setattr_default_np.c: Likewise.
22169         * nptl/check-cpuset.h: New file.
22170
22171 2015-01-08  Richard Henderson  <rth@redhat.com>
22172
22173         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
22174         (CFLAGS-tst-execstack-prog.c): Likewise.
22175         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
22176
22177 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
22178             Sandra Loosemore  <sandra@codesourcery.com>
22179             Andrew Jenner  <andrew@codesourcery.com>
22180             Joseph Myers  <joseph@codesourcery.com>
22181             Nathan Sidwell  <nathan@codesourcery.com>
22182
22183         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
22184         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
22185         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
22186         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
22187         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
22188         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
22189         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
22190         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
22191         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
22192         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
22193         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
22194         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
22195         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
22196         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
22197         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
22198         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
22199         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
22200
22201 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22202
22203         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22204         timespec struct member in syscall macro.
22205         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22206         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22207         first timeval struct member in syscall macro.
22208         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22209
22210 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22211
22212         [BZ #17748]
22213         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22214         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22215         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22216         __feupdateenv and define as weak alias of __feupdateenv.  Use
22217         libm_hidden_weak.
22218         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22219         libm_hidden_def.
22220         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22221         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22222         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22223         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22224         libm_hidden_def.
22225         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22226         __feupdateenv and define as weak alias of __feupdateenv.  Use
22227         libm_hidden_weak.
22228         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22229         libm_hidden_def.
22230         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22231         __feupdateenv and define as weak alias of __feupdateenv.  Use
22232         libm_hidden_weak.
22233         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22234         libm_hidden_def.
22235         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22236         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22237         (__feupdateenv): Likewise.
22238         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22239         __feupdateenv and define as weak alias of __feupdateenv.  Use
22240         libm_hidden_weak.
22241         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22242         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22243         libm_hidden_def.
22244         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22245         function.
22246         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22247         libm_hidden_def.
22248         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22249         __feupdateenv instead of feupdateenv.
22250         (default_libc_feupdateenv_test): Likewise.
22251         (libc_feresetround_ctx): Likewise.
22252
22253 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22254
22255         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22256         prototype.
22257
22258 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22259
22260         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22261         COLL_SYM in a couple of places to avoid uninitialized variable
22262         wanings on tilegx gcc 4.8.2.
22263
22264 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22265
22266         * sysdeps/aarch64/strcpy.S: New file.
22267         * sysdeps/aarch64/stpcpy.S: New file.
22268         * NEWS: Updated.
22269
22270 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22271
22272         * sysdeps/aarch64/strrchr.S: New file.
22273         * NEWS: Updated.
22274
22275 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22276
22277         [BZ #17658]
22278         * stdlib/setenv.c: Fix memory leak when setting large,
22279         duplicate string.
22280
22281 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22282
22283         [BZ #17273]
22284         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22285         and tabs from buffer before parsing fstab entry.
22286         * misc/tst-mntent.c (main): Add test for mount entry with
22287         trailing spaces and tabs.
22288
22289 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22290
22291         [BZ #17748]
22292         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22293         * math/fesetround.c (fesetround): Rename to __fesetround and
22294         define as weak alias of __fesetround.  Use libm_hidden_weak.
22295         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22296         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22297         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22298         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22299         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22300         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22301         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22302         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22303         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22304         __fesetround_inline.
22305         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22306         __fesetround_inline instead of __fesetround.
22307         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22308         __fesetround and define as weak alias of __fesetround.  Use
22309         libm_hidden_weak.  Call __fesetround_inline instead of
22310         __fesetround.
22311         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22312         __fesetround and define as weak alias of __fesetround.  Use
22313         libm_hidden_weak.
22314         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22315         Likewise.
22316         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22317         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22318         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22319         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22320         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22321         __fesetround and define as weak alias of __fesetround.  Use
22322         libm_hidden_weak.
22323         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22324         __fesetround instead of fesetround.
22325         (default_libc_feholdexcept_setround): Likewise.
22326         (libc_feholdsetround_ctx): Likewise.
22327         (libc_feholdsetround_noex_ctx): Likewise.
22328
22329         [BZ #17748]
22330         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22331         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22332         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22333         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22334         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22335         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22336         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22337         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22338         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22339         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22340         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22341         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22342         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22343         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22344         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22345         libm_hidden_def.
22346         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22347         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22348         Likewise.
22349         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22350         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22351         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22352         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22353         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22354         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22355         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22356         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22357         __fesetenv instead of fesetenv.
22358         (libc_feresetround_noex_ctx): Likewise.
22359         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22360         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22361         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22362         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22363         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22364         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22365         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22366         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22367         (__feupdateenv): Likewise.
22368         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22369         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22370         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22371         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22372
22373 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22374
22375         [BZ #17806]
22376         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22377         addresses have been freed.
22378
22379 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22380
22381         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22382         and nservall.
22383
22384 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22385
22386         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22387         Clean up check_pf allocation pattern. addresses
22388
22389 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22390
22391         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22392         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22393         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22394         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22395         * nptl/pthread_join.c (pthread_join): Likewise.
22396         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22397         * sysdeps/posix/waitid.c (__waitid): Likewise.
22398         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22399         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22400         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22401         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22402         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22403         Likewise.
22404         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22405         (__libc_pread64): Likewise.
22406         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22407         (__libc_pwrite): Likewise.
22408         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22409         (__libc_pwrite64): Likewsie.
22410         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22411         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22412         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22413         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22414         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22415         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22416         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22418         Likewise.
22419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22420         (__libc_pread64): Likewise.
22421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22422         Likewise.
22423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22424         (__libc_pwrite64): Likewise.
22425         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22426         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22427         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22428         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22429         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22430         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22431         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22432         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22433         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22434         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22435         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22436         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22437         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22438         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22439         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22440         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22441         Likewise.
22442
22443 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22444
22445         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22446         (CFLAGS-test-double.c): Likewise.
22447         (CFLAGS-test-ldouble.c): Likewise.
22448         (CPPFLAGS-test-ifloat.c): Likewise.
22449         (CPPFLAGS-test-idouble.c): Likewise.
22450         (CPPFLAGS-test-ildoubl.c): Likewise.
22451         (CFLAGS-test-test-fenv.c): Remove variable.
22452         (CFLAGS-test-misc.c): Likewise.
22453
22454 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22455
22456         [BZ #17797]
22457         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22458         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22459         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22460         CLOCKS_PER_SEC == 1000000.
22461         * time/clocktest.c (main): Replace %ld with %jd and cast to
22462         intmax_t.
22463
22464 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22465
22466         * sysdeps/generic/unwind-resume.h: New file.
22467         * sysdeps/gnu/unwind-resume.c: Include it.
22468         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22469         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22470         argument list.
22471         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22472         global rather than static.
22473         (_Unwind_Resume): Update user.
22474         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22475         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22476         rather than static.  Add __attribute__ ((cold)).
22477         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22478         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22479         * sysdeps/arm/arm-unwind-resume.S: New file.
22480         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22481         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22482         * sysdeps/arm/Makefile [$(subdir) = csu]
22483         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22484         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22485         Add rt-arm-unwind-resume.
22486         [$(subdir) = nptl]
22487         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22488         Add pt-arm-unwind-resume.
22489         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22490         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22491
22492 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22493
22494         [BZ #17748]
22495         * include/fenv.h (__feholdexcept): Declare.  Use
22496         libm_hidden_proto.
22497         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22498         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22499         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22500         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22501         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22502         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22503         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22504         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22505         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22506         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22507         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22508         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22509         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22510         (feholdexcept): Likewise.
22511         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22512         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22513         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22514         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22515         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22516         __feholdexcept instead of feholdexcept.
22517         (default_libc_feholdexcept_setround): Likewise.
22518
22519 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22520
22521         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22522         to avoid using stl/str to align destination.
22523
22524 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22525
22526         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22527
22528 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22529
22530         [BZ #17796]
22531         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22532         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22533         Define as weak alias not strong alias.
22534
22535 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22536
22537         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22538         bltzal with addiupc.
22539         (RTLD_START): Ditto.
22540
22541 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22542
22543         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22544         for __vdso_* functions in declarations.
22545         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22546         definitions.
22547         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22548         INTERNAL_VSYSCALL): Use struct return types to check for error.
22549
22550         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22551         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22552         function with cast from llround().
22553         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22554         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22555         Define.
22556
22557 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22558
22559         [BZ #17793]
22560         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22561         Define as weak alias not strong alias.
22562
22563         [BZ #17635]
22564         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22565         ...
22566         * ctype/ctype-extn.c: ... here.
22567         (__isblank_l): Move to ...
22568         * ctype/ctype-c99_l.c: ... here.  New file.
22569         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22570         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22571         Remove variable.
22572         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22573         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22574         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22575         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22576         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22577
22578         [BZ #17777]
22579         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22580         (posix_fadvise64): Define as weak alias not strong alias.
22581         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22582         (posix_fallocate64): Likewise.
22583         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22584         Remove variable.
22585         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22586         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22587         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22588         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22589         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22590
22591 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22592
22593         [BZ #16191]
22594         * NEWS: Mention bug fix.
22595         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22596         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22597         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22598         (HOST_STACK_END_ADDR): Likewise.
22599
22600 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22601
22602         [BZ #17748]
22603         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22604         * math/fegetround.c (fegetround): Rename to __fegetround and
22605         define as weak alias of __fegetround.  Use libm_hidden_weak.
22606         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22607         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22608         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22609         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22610         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22611         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22612         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22613         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22614         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22615         Undefine after rather than before function definition; use
22616         parentheses around function name in definition.
22617         (__fegetround): Also undefine macro after function definition.
22618         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22619         __fegetround and define as weak alias of __fegetround.  Use
22620         libm_hidden_weak.  Do not undefine as macro.
22621         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22622         Likewise.
22623         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22624         __fegetround and define as weak alias of __fegetround.  Use
22625         libm_hidden_weak.
22626         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22627         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22628         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22629         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22630         __fegetround and define as weak alias of __fegetround.  Use
22631         libm_hidden_weak.
22632         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22633         __fegetround instead of fegetround.
22634
22635         [BZ #17782]
22636         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22637         Condition macro definition on [__USE_MISC].
22638
22639         [BZ #17781]
22640         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22641         (struct sigaction): Change type of sa_flags field to int.
22642
22643         [BZ #17780]
22644         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22645         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22646         __glibc_reserved0.
22647
22648         * nptl/version.c (banner): Use single year in copyright notice.
22649
22650         * NEWS: Update copyright dates.
22651         * catgets/gencat.c (print_version): Likewise.
22652         * csu/version.c (banner): Likewise.
22653         * debug/catchsegv.sh: Likewise.
22654         * debug/pcprofiledump.c (print_version): Likewise.
22655         * debug/xtrace.sh (do_version): Likewise.
22656         * elf/ldconfig.c (print_version): Likewise.
22657         * elf/ldd.bash.in: Likewise.
22658         * elf/pldd.c (print_version): Likewise.
22659         * elf/sotruss.sh: Likewise.
22660         * elf/sprof.c (print_version): Likewise.
22661         * iconv/iconv_prog.c (print_version): Likewise.
22662         * iconv/iconvconfig.c (print_version): Likewise.
22663         * locale/programs/locale.c (print_version): Likewise.
22664         * locale/programs/localedef.c (print_version): Likewise.
22665         * login/programs/pt_chown.c (print_version): Likewise.
22666         * malloc/memusage.sh (do_version): Likewise.
22667         * malloc/memusagestat.c (print_version): Likewise.
22668         * malloc/mtrace.pl: Likewise.
22669         * manual/libc.texinfo: Likewise.
22670         * nptl/version.c (banner): Likewise.
22671         * nscd/nscd.c (print_version): Likewise.
22672         * nss/getent.c (print_version): Likewise.
22673         * nss/makedb.c (print_version): Likewise.
22674         * posix/getconf.c (main): Likewise.
22675         * scripts/test-installation.pl: Likewise.
22676         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22677
22678 2015-01-02  Will Newton  <will.newton@linaro.org>
22679
22680         * sysdeps/arm/armv7/configure: Removed.
22681         * sysdeps/arm/armv7/configure.ac: Likewise.
22682
22683 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22684
22685         * All files with FSF copyright notices: Update copyright dates
22686         using scripts/update-copyrights.
22687         * intl/plural.c: Regenerated.
22688         * locale/programs/charmap-kw.h: Likewise.
22689         * locale/programs/locfile-kw.h: Likewise.
22690
22691 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22692
22693         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22694
22695 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22696
22697         [BZ #17748]
22698         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22699         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22700         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22701         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22702         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22703         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22704         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22705         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22706         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22707         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22708         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22709         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22710         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22711         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22712         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22713         libm_hidden_def.
22714         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22715         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22716         Likewise.
22717         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22718         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22719         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22720         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22721         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22722         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22723         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22724         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22725         __fegetenv instead of fegetenv.
22726         (libc_feholdsetround_noex_ctx): Likewise.
22727
22728 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22729
22730         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22731         (Elf_MIPS_ABIFlags_v0): New structure.
22732         (EF_MIPS_FP64): Define.
22733         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22734         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22735         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22736         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22737         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22738         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22739         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22740         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22741         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22742         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22743         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22744         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22745         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22746         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22747         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22748         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22749         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22750         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22751         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22752         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22753         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22754         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22755         field.
22756         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22757         EF_MIPS_FP64.
22758         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22759         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22760         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22761         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22762         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22763         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22764         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22765         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22766         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22767         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22768         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22769         record the current FP ABI extension.
22770         (mips-mode-switch): Define to show if kernel headers support mode
22771         switching.
22772         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22773         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22774         supported SYSV ABI version to 3.
22775         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22776         feature.
22777
22778 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22779             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22780
22781         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22782         path.
22783         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22784
22785 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22786
22787         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22788         __fegetround and redefine to call __fegetround.  Remove condition
22789         on [!__NO_MATH_INLINES].
22790         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22791         function.
22792         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22793         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22794         Remove macro.
22795         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22796         instead of <fenv_libc.h>.
22797         (__llrintl): Call fegetround instead of __fegetround.
22798         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22799         instead of <fenv_libc.h>.
22800         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22801         (__lrintl): Call fegetround instead of __fegetround.
22802         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22803         instead of <fenv_libc.h>.
22804         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22805         (__rintl): Call fegetround instead of __fegetround.
22806
22807 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22808
22809         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22810         arrays.
22811
22812 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22813
22814         [BZ #17775]
22815         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22816         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22817         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22818
22819 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22820
22821         * sysdeps/i386/tls-macros.h: Include <features.h>.
22822         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22823         (TLS_IE): Likewise.
22824         (TLS_LD): Likewise.
22825         (TLS_GD): Likewise.
22826         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22827         define for GCC >= 5.0.
22828
22829 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22830
22831         * math/test-fenv.c (test_single_exception, set_single_exc,
22832         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22833         feexcp_mask_test, feenable_test, fe_single_test): Add
22834         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22835         case where they are not used.
22836         * math/libm-test.inc: Likewise.
22837         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22838         unused in the absence of FP rounding/exception support.
22839         * stdio-common/tst-printf-round.c: Likewise.
22840         * stdlib/tst-strtod-round.c: Likewise.
22841         * stdlib/tst-strtod-underflow.c: Likewise.
22842
22843 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22844
22845         [BZ #17723]
22846         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22847         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22848         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22849         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22850         libm_hidden_weak.
22851         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22852         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22853         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22854         libm_hidden_def.
22855         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22856         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22857         libm_hidden_weak.
22858         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22859         Likewise.
22860         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22861         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22862         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22863         libm_hidden_weak.
22864         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22865         libm_hidden_def.
22866         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22867         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22868         (__feraiseexcept): Likewise.
22869         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22870         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22871         libm_hidden_weak.
22872         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22873         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22874         libm_hidden_def.
22875         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22876         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22877         Use libm_hidden_def.
22878         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22879         libm_hidden_def.
22880         (feraiseexcept): Define as weak not strong alias.  Use
22881         libm_hidden_weak.
22882         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22883         New inline function.  Factored out of ...
22884         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22885         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22886         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22887         feraiseexcept.
22888         * math/w_acos.c (__acos): Likewise.
22889         * math/w_asin.c (__asin): Likewise.
22890         * math/w_ilogb.c (__ilogb): Likewise.
22891         * math/w_j0.c (y0): Likewise.
22892         * math/w_j1.c (y1): Likewise.
22893         * math/w_jn.c (yn): Likewise.
22894         * math/w_log.c (__log): Likewise.
22895         * math/w_log10.c (__log10): Likewise.
22896         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22897         * sysdeps/aarch64/fpu/math_private.h
22898         (libc_feupdateenv_test_aarch64): Likewise.
22899         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22900         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22901         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22902         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22903         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22904         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22905         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22906         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22907         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22908         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22909
22910 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22911
22912         [BZ #17732]
22913         * io/test-utime.c (main): Replace %ld with %jd and cast to
22914         intmax_t.
22915         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22916         * nptl/tst-mutex5.c: Include <stdint.h>.
22917         (do_test): Replace %ld with %jd and cast to intmax_t.
22918         * posix/tst-regex.c (run_test): Likewise.
22919         (run_test_backwards): Likewise.
22920         * rt/tst-clock.c: Include <stdint.h>.
22921         (clock_test): Replace %ld with %jd and cast to intmax_t.
22922         * rt/tst-cpuclock1.c: Include <stdint.h>.
22923         (do_test): Replace %lu with %ju and cast to uintmax_t.
22924         * rt/tst-cpuclock2.c: Include <stdint.h>.
22925         (do_test): Replace %lu with %ju and cast to uintmax_t.
22926         * rt/tst-mqueue1.c: Include <stdint.h>.
22927         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22928         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22929         intmax_t.
22930         * rt/tst-mqueue4.c (do_test): Likewise.
22931         * rt/tst-timer4.c: Include <stdint.h>.
22932         (check_ts): Replace %ld with %jd and cast to intmax_t.
22933         (do_test): Likewise.
22934         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22935         and cast to intmax_t.
22936         * sysdeps/pthread/tst-timer.c (main): Likewise.
22937         * time/clocktest.c (main): Likewise.
22938         * time/tst-posixtz.c (do_test): Likewise.
22939         * timezone/tst-timezone.c (main): Likewise.
22940
22941 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22942             H.J. Lu  <hongjiu.lu@intel.com>
22943
22944         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22945         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22946         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22947         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22948         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22949         version if bit_Fast_Unaligned_Load is set.
22950         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22951         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22952         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22953         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22954         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22955         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22956         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22957         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22958         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22959         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22960         to 4.
22961         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22962         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22963         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22964         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22965
22966 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22967
22968         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22969         instead of #if to avoid a Wundef warning.
22970         * stdlib/tst-limits.c (do_test): Likewise.
22971
22972         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22973         parallel other exception macros.
22974         (fegetenv): Convert from macro to extern inline so that it applies
22975         retroactively to inline functions already seen by the compiler.
22976         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22977
22978         * posix/Makefile (before-compile): Use $(objpfx) for
22979         posix-conf-vars-def.h.
22980
22981 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22982
22983         * posix/getconf.c (main): Use size_t for type of I.
22984         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22985         NSPEC.
22986
22987         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22988         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22989         * posix/posix-envs.def: Likewise.
22990         * sysdeps/posix/sysconf.c: Likewise.
22991         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22992         (specs): Remove array.
22993         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22994         array.
22995
22996         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22997         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22998         (__sysconf): Use CONF_IS_* macros.
22999
23000         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
23001         ($(objpfx)posix-conf-vars-def.h): New target.
23002         * posix/posix-conf-vars.list: New file.
23003         * posix/posix-conf-vars.h: New file.
23004         * posix/confstr.c: Include posix-conf-vars.h.
23005         (confstr): Use CONF_IS_* macros.
23006         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
23007         CONF_IS_* macros.
23008         * scripts/gen-posix-conf-vars.awk: New file.
23009
23010 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
23011
23012         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
23013         fegetround): Add no-op macros to avoid linknamespace issues.
23014
23015         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
23016         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
23017
23018         * sysdeps/unix/sysv/linux/tile/sysdep.h
23019         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
23020         assembly-specific section to avoid a redefinition warning.
23021
23022         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
23023         long before casting to pointer to avoid a cast warning.
23024
23025 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
23026
23027         * sysdeps/tile/tilegx/Implies: New file.
23028
23029 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
23030
23031         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
23032
23033 2014-12-23  Florian Weimer  <fweimer@redhat.com>
23034
23035         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
23036
23037 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
23038
23039         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
23040         not define.
23041         * sysdeps/unix/sysv/linux/utimes.c: Do not include
23042         <kernel-features.h>.
23043         (__utimes) [__NR_utimes]: Make code unconditional.
23044         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
23045         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
23046         (__ASSUME_UTIMES): Do not undefine.
23047         * sysdeps/unix/sysv/linux/tile/kernel-features.h
23048         (__ASSUME_UTIMES): Likewise.
23049         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23050         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
23051         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
23052         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
23053
23054 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
23055
23056         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
23057
23058 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
23059
23060         [BZ #17747]
23061         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
23062         alias to weak alias for j0l, y0l.
23063         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
23064         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
23065
23066         [BZ #17746]
23067         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
23068         conversion.
23069
23070 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
23071
23072         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
23073         to zero if not already defined.
23074
23075 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
23076
23077         [BZ #17724]
23078         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
23079         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
23080         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
23081         (char *) casts added.
23082         * sysdeps/ieee754/k_standardf.c: New file.
23083         * sysdeps/ieee754/k_standardl.c: Likewise.
23084         * math/Makefile (libm-support): Remove k_standard.
23085         (libm-calls): Add k_standard.
23086
23087 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
23088
23089         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
23090         Optimize to avoid an unnecessary FPCR read.
23091
23092 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
23093
23094         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
23095         Optimize to reduce FPCR/FPSR accesses.
23096
23097 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
23098
23099         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
23100         Call libc_fetestexcept_aarch64.
23101
23102 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
23103
23104         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
23105         Call libc_fesetround_aarch64.
23106
23107 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
23108
23109         [BZ #17733]
23110         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
23111         (__bind): Do not define as weak alias.
23112         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
23113         define.
23114         (__getsockname): Do not define as weak alias.
23115
23116 2014-12-22  Will Newton  <will.newton@linaro.org>
23117
23118         * manual/install.texi: Document that we require bison 2.7
23119         or above.
23120         * INSTALL: Regenerate.
23121         * configure.ac: Use AC_CHECK_PROG_VER instead of
23122         AC_PATH_PROG when checking for bison and check for
23123         version 2.7 or above.
23124         * configure: Regenerate.
23125
23126 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
23127
23128         [BZ #17745]
23129         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
23130         * sysdeps/tile/ffsll.c (ffsll): To here.
23131
23132         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
23133
23134 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
23135
23136         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
23137         if not defined.
23138         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
23139         definition.
23140         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23141         hidden ___tls_get_addr.
23142         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23143         hidden __tls_get_addr.
23144         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
23145         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
23146         Likewise.
23147
23148 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23149
23150         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
23151         _dl_init call.
23152
23153 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
23154
23155         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
23156         from "call _dl_init@PLT".
23157         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
23158
23159 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
23160
23161         * manual/search.texi: (Array Sort Function): Clarify stable sorting
23162         guarantees.
23163
23164 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
23165
23166         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
23167
23168 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23169
23170         [BZ #17744]
23171         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
23172         strnlen.
23173
23174 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23175
23176         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
23177         of multu on MIPSr6.
23178         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
23179         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
23180         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
23181         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
23182         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
23183
23184 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23185
23186         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
23187         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
23188         (PTR_SUBU): Use subu for mips32r6/mips64r6.
23189         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
23190         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
23191         mips32r6/mips64r6.
23192         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
23193
23194 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
23195
23196         * string/strncat.c (STRNCAT): Simplify implementation.
23197
23198 2014-12-19  David S. Miller  <davem@davemloft.net>
23199
23200         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23201         access the quad as both a long double and as a series of 4 words.
23202
23203         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23204         link_map->l_info array access.
23205
23206 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23207
23208         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23209
23210         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23211         * math/atest-exp2.c (TIMEOUT): Likewise.
23212         * math/atest-sincos.c (TIMEOUT): Likewise.
23213
23214 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23215
23216         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23217         -Wno-error with -fno-builtin-lround.
23218
23219 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23220
23221         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23222         Contains futex constants and functions moved over from ...
23223         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23224         <lowlevellock-futex.h>.
23225         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23226         (lll_timedwait_tid): Add comments and parentheses around macro
23227         arguments.
23228
23229 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23230
23231         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23232         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23233         (__lll_private_flag): Remove.
23234         (lll_futex_wait): Likewise.
23235         (lll_futex_timed_wait): Likewise.
23236         (lll_futex_wake): Likewise.
23237         (lll_futex_requeue): Likewise.
23238         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23239         (__lll_timedwait_tid): Spell out argument names.
23240         (lll_timedwait_tid): Add comments and parentheses around macro
23241         arguments.
23242         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23243         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23244
23245 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23246
23247         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23248         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23249         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23250         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23251         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23252         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23253         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23254         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23255         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23256         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23257         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23258         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23259         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23260         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23261         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23262         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23263         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23264         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23265         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23266
23267 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23268
23269         * sysdeps/x86_64/x32/Makefile: New file.
23270
23271 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23272
23273         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23274         1L with (mp_limb_t) 1.
23275
23276 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23277
23278         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23279         * nptl/libc_pthread_init.c: ... here.
23280         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23281         * nptl/register-atfork.c: ... here.
23282
23283         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23284         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23285         Use assert_perror to check its return value.
23286         (__gai_create_helper_thread): Likewise.
23287
23288         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23289
23290         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23291
23292 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23293
23294         [BZ #17725]
23295         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23296         __profil_counter.
23297         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23298         Likewise.
23299         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23300         Likewise.
23301         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23302         Likewise.
23303         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23304         (profil_counter): Likewise.
23305         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23306         (profil_counter): Likewise.
23307         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23308         Likewise.
23309         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23310         Likewise.
23311         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23312         (profil_counter): Likewise.
23313         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23314         Likewise.
23315         [!__profil_counter] (profil_counter): Define as weak alias of
23316         __profil_counter.
23317         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23318         (profil_counter): Rename to __profil_counter.
23319         [!__profil_counter] (profil_counter): Define as weak alias of
23320         __profil_counter.
23321         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23322         (profil_counter): Rename to __profil_counter.
23323         [!__profil_counter] (profil_counter): Define as weak alias of
23324         __profil_counter.
23325         * sysdeps/posix/profil.c: Update comment referring to
23326         profil_counter.
23327         (__profil): Use __profil_counter instead of profil_counter.
23328         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23329         __profil_counter.  Use __profil_counter_ushort and
23330         __profil_counter_uint in definitions.
23331         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23332         instead of profil_counter_uint and profil_counter_ushort.
23333
23334         [BZ #17722]
23335         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23336         define as weak alias of __inet_makeaddr.
23337         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23338         as weak alias of __inet_addr.
23339         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23340         as weak alias of __inet_pton.  Use libc_hidden_weak.
23341         * include/arpa/inet.h (__inet_pton): Declare.  Use
23342         libc_hidden_proto.
23343         (inet_makeaddr): Don't use libc_hidden_proto.
23344         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23345         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23346         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23347         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23348         Remove variable.
23349         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23350         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23351
23352 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23353
23354         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23355
23356 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23357
23358         * stdio-common/bug-vfprintf-nargs.c (do_test):
23359         Cast value to intptr_t to avoid format warning
23360         for usage with PRIdPTR printing macro.
23361
23362 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23363
23364         * libio/tst-widetext.c (do_test):
23365         Use format type %td instead of %Zd for ptrdiff_t
23366         in order to avoid format warning.
23367
23368 2014-12-17  Andreas Schwab  <schwab@suse.de>
23369
23370         * nscd/mem.c (gc): Add size_t cast to match printf format.
23371
23372 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23373
23374         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23375         (init): Apply PTR_MANGLE to pointers before storing them.
23376         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23377         before using them.
23378
23379 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23380
23381         [BZ #17719]
23382         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23383         define as weak alias of __memrchr.
23384         (__memrchr): Do not define as strong alias of memrchr.
23385         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23386         Remove variable.
23387         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23388         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23389         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23390
23391         [BZ #17717]
23392         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23393         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23394         (if_indextoname): Rename to __if_indextoname and define as weak
23395         alias of __if_indextoname.  Use libc_hidden_weak.
23396         (if_freenameindex): Rename to __if_freenameindex and define as
23397         weak alias of __if_freenameindex.
23398         (if_nameindex): Rename to __if_nameindex and define as weak alias
23399         of __if_nameindex.
23400         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23401         __if_nametoindex and define as weak alias of __if_nametoindex.
23402         Use libc_hidden_weak.
23403         (if_freenameindex): Rename to __if_freenameindex and define as
23404         weak alias of __if_freenameindex.
23405         (if_nameindex): Rename to __if_nameindex and define as weak alias
23406         of __if_nameindex.
23407         (if_indextoname): Rename to __if_indextoname and define as weak
23408         alias of __if_indextoname.  Use libc_hidden_weak.
23409         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23410         __if_nametoindex and define as weak alias of __if_nametoindex.
23411         Use libc_hidden_weak.
23412         (if_freenameindex): Rename to __if_freenameindex and define as
23413         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23414         (if_nameindex_netlink): Use __if_freenameindex instead of
23415         if_freenameindex.
23416         (if_nameindex): Rename to __if_nameindex and define as weak alias
23417         of __if_nameindex.  Use libc_hidden_weak.
23418         (if_indextoname): Rename to __if_indextoname and define as weak
23419         alias of __if_indextoname.  Use libc_hidden_weak.
23420         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23421         libc_hidden_proto.
23422         [!_ISOMAC] (__if_freenameindex): Likewise.
23423         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23424         if_nametoindex.
23425         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23426         variable.
23427         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23428         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23429         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23430         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23431         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23432         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23433         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23434
23435         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23436         Remove variable.
23437         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23438         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23439
23440 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23441
23442         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23443         subscript above bounds'
23444
23445         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23446         bounds.
23447
23448 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23449
23450         * libio/tst-fopenloc.c: Use test-skeleton.c.
23451
23452         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23453         (entry): Rename to ITEM.
23454         (do_test, comp): Adjust.
23455
23456         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23457
23458 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23459
23460         * string/tester.c: Include <libc-internal.h>.
23461         (test_memset): Ignore -Wmemset-transposed-args.
23462
23463 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23464
23465         * misc/tst-mntent2.c (do_test): Fix warning.
23466
23467 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23468
23469         * elf/tst-unique4lib.cc(a): Mark as used.
23470
23471 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23472
23473         [BZ #17630]
23474         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23475         names.
23476
23477 2014-12-16  Allan McRae  <allan@archlinux.org>
23478
23479         * stdio-common/Makefile (tests): Re-add bug26.
23480
23481 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23482
23483         [BZ #17657]
23484         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23485         static array.
23486
23487 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23488
23489         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23490         (__lll_lock_wait): Likewise.
23491         (__lll_timedlock_wait): Likewise.
23492         (__lll_timedwait_tid): Likewise.
23493         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23494         (__lll_robust_timedlock_wait): Likewise.
23495         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23496         (lll_cond_trylock): Likewise.
23497         (__lll_lock): Likewise.
23498         (__lll_robust_lock): Likewise.
23499         (__lll_cond_lock): Likewise.
23500         (lll_robust_cond_lock): Likewise.
23501         (__lll_timedlock): Likewise.
23502         (__lll_robust_timedlock): Likewise.
23503         (__lll_unlock): Likewise.
23504         (__lll_robust_unlock): Likewise.
23505         (lll_wait_tid): Likewise.
23506         (lll_timedwait_tid): Likewise.
23507
23508 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23509
23510         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23511
23512 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23513
23514         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23515
23516 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23517
23518         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23519         * stdio-common/tst-sprintf.c: Likewise.
23520
23521 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23522
23523         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23524
23525 2014-12-15  Jeff Law  <law@redhat.com>
23526
23527         [BZ #16617]
23528         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23529         on the heap.  (CVE-2012-3406)
23530         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23531         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23532         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23533
23534 2014-12-15  Will Newton  <will.newton@linaro.org>
23535
23536         * manual/install.texi: Bump required version of texinfo
23537         to 4.7 from 4.5.
23538         * INSTALL: Regenerated.
23539         * configure.ac: Check for makeinfo version 4.7 and above.
23540         * configure: Regenerated.
23541
23542 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23543
23544         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23545         PREFIX, string constant to insert between directory and name.
23546         * sysdeps/posix/shm_open.c: Update caller.
23547         * sysdeps/posix/shm_unlink.c: Likewise.
23548         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23549         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23550         (SEM_SHM_PREFIX): New macro.
23551         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23552         [$(have-thread-library) = no].
23553         * nptl/Makefile (libpthread-routines): Add shm-directory.
23554         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23555         * sysdeps/nptl/shm-directory.h: New file.
23556         * sysdeps/posix/shm-directory.c
23557         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23558         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23559         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23560         INTERNAL_SYSCALL.
23561         (__where_is_shmfs): Function removed.
23562         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23563         Variables removed.
23564         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23565         Use SHM_GET_NAME.
23566         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23567
23568         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23569         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23570         unconditional for use inside libpthread.
23571         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23572
23573 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23574
23575         * nptl/pthread_getaffinity.c: New file.
23576         * nptl/pthread_setaffinity.c: New file.
23577         * nptl/pthread_getname.c: New file.
23578         * nptl/pthread_setname.c: New file.
23579
23580         * nptl/pthread_create.c (START_THREAD_DEFN)
23581         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23582
23583 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23584             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23585
23586         * resolv/res_send.c (send_vc): Disable warning resplen may
23587         be used uninitialized.
23588
23589 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23590
23591         * nptl/tst-mutex6.c
23592         (ATTR_NULL): New define checks ATTR against NULL.
23593         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23594         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23595
23596 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23597
23598         [BZ #17581]
23599         * malloc/hooks.c
23600         (mem2mem_check): Revert my previous change.
23601         (malloc_check_get_size): Revert my previous change.
23602         (mem2chunk_check): Revert my previous change.
23603
23604 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23605
23606         * sysdeps/posix/shm-directory.c: New file.
23607         * sysdeps/posix/shm-directory.h: New file.
23608         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23609         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23610         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23611         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23612         Transmute EPERM to EACCES.
23613         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23614         from ...
23615         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23616         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23617
23618 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23619
23620         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23621         pointer and cast to uintptr_t.
23622         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23623         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23624         Add cast to avoid warning.
23625         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23626
23627 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23628
23629         * nptl/semaphore.h: Move to ...
23630         * sysdeps/pthread/semaphore.h: ... here.
23631         * Makefile (installed-headers): Change nptl/semaphore.h to
23632         sysdeps/pthread/semaphore.h.
23633
23634 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23635
23636         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23637         generated error format strings.
23638
23639         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23640         -Wformat-extra-args warnings for scanf formats.
23641         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23642         test of zero-length format (duh).
23643         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23644         corner-case scanf format test.
23645         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23646         generated fprintf format string.
23647         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23648         corner-case sprintf format tests.
23649         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23650         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23651         -Wformat-extra-args warnings throughout.
23652         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23653         (CFLAGS-scanf4.c): Likewise.
23654         (CFLAGS-scanf7.c): Likewise.
23655         (CFLAGS-tst-sprintf.c): Likewise.
23656         (CFLAGS-tst-printf.c): Likewise.
23657         (CFLAGS-tst-printfsz.c): Likewise.
23658
23659 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23660
23661         * include/cpio.h: New file.
23662         * include/fmtmsg.h: Likewise.
23663
23664         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23665         corresponding format argument to size_t.
23666         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23667         arguments.
23668         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23669         corresponding format argument to size_t.
23670         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23671         arguments.
23672         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23673         corresponding format argument to size_t.
23674         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23675         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23676         (CFLAGS-tst-mbswcs2.c): Likewise.
23677         (CFLAGS-tst-mbswcs3.c): Likewise.
23678         (CFLAGS-tst-mbswcs4.c): Likewise.
23679         (CFLAGS-tst-mbswcs5.c): Likewise.
23680         (CFLAGS-tst-trans.c): Likewise.
23681
23682 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23683
23684         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23685         rather than assuming they won't contain any '%'s.
23686
23687 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23688
23689         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23690         inhibit_loop_to_libcall to avoid recursive calls.
23691         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23692         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23693
23694 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23695
23696         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23697         prototype.
23698
23699 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23700
23701         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23702         integer value instead of boolean.
23703
23704 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23705
23706         * malloc/malloc.c: Fix powerof2 check.
23707
23708 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23709
23710         * locale/programs/locfile.h (maybe_swap_uint32):
23711         Remove inline and add unused attribute.
23712
23713 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23714
23715         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23716         Truncating assembler expression to a .long expression.
23717
23718 2014-12-11  Andreas Schwab  <schwab@suse.de>
23719
23720         * elf/rtld.c (struct map_args): Constify str member.
23721         (do_preload): Constify fname argument.
23722
23723 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23724
23725         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23726         constants definition.
23727
23728 2014-12-11  Andreas Schwab  <schwab@suse.de>
23729
23730         [BZ #16657]
23731         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23732         FORCE_ELISION instead of DO_ELISION.
23733         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23734         Remove.
23735         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23736         Likewise.
23737
23738         * iconvdata/gconv-modules: Remove duplicate entry.
23739
23740 2014-12-11  Will Newton  <will.newton@linaro.org>
23741
23742         Merge gettext 0.19.3 into intl/.
23743
23744         This involves a number of cosmetic changes to comments
23745         and ANSI function definitions and prototypes throughout
23746         all the files. The gettext copyright header is used but
23747         with the date ranges taken from the glibc copy.
23748
23749         * NEWS: Add gettext merge to 2.21.
23750         * intl/bindtextdom.c: Switch to gettext copyright.
23751         Use ANSI definitions and prototypes.
23752         Use gl_* locking primitives rather than __libc_* ones.
23753         Use __builtin_expect rather than __glibc_likely/unlikely.
23754         * intl/dcgettext.c: Switch to gettext copyright.
23755         Use ANSI definitions and prototypes.
23756         * intl/dcigettext.c: Switch to gettext copyright.
23757         Use ANSI definitions and prototypes.
23758         (INTDIV0_RAISES_SIGFPE): New define.
23759         Use gl_* locking primitives rather than __libc_* ones.
23760         Include eval-plural.h instead of plural-eval.c.
23761         Use __builtin_expect rather than __glibc_likely/unlikely.
23762         * intl/dcngettext.c: Switch to gettext copyright.
23763         Use ANSI definitions and prototypes.
23764         * intl/dgettext.c: Likewise.
23765         * intl/dngettext.c: Likewise.
23766         * intl/plural-eval.c: Renamed to...
23767         * intl/eval-plural.h: ...this.
23768         * intl/explodename.c: Switch to gettext copyright.
23769         Use ANSI definitions and prototypes.
23770         (_nl_explode_name): Use strchr instead of __rawmemchr.
23771         * intl/finddomain.c: Switch to gettext copyright.
23772         Use ANSI definitions and prototypes.
23773         Use gl_* locking primitives rather than __libc_* ones.
23774         (_nl_find_domain): Use malloc rather than alloca for
23775         allocation of temporary locale name.
23776         * intl/gettext.c: Switch to gettext copyright.
23777         Use ANSI definitions and prototypes.
23778         * intl/gettextP.h: Switch to gettext copyright.
23779         Use ANSI definitions and prototypes.
23780         Use gl_* locking primitives rather than __libc_* ones.
23781         * intl/gmo.h: Switch to gettext copyright.
23782         (struct sysdep_string): Move struct segment_pair outside of
23783         struct definition.
23784         * intl/hash-string.c: Use ANSI definitions and prototypes.
23785         * intl/hash-string.h: Switch to gettext copyright.
23786         Use ANSI definitions and prototypes.
23787         * intl/l10nflist.c: Switch to gettext copyright.
23788         Use ANSI definitions and prototypes.
23789         (_nl_normalize_codeset): Avoid integer overflow.
23790         * intl/loadinfo.h: Switch to gettext copyright.
23791         Use ANSI definitions and prototypes.
23792         (LIBINTL_DLL_EXPORTED): New define.
23793         (PATH_SEPARATOR): New define.
23794         * intl/loadmsgcat.c: Switch to gettext copyright.
23795         * intl/localealias.c: Switch to gettext copyright.
23796         Use ANSI definitions and prototypes.
23797         (_nl_expand_alias): Use PATH_SEPARATOR.
23798         * intl/ngettext.c: Switch to gettext copyright.
23799         Use ANSI definitions and prototypes.
23800         * intl/plural-exp.c: Likewise.
23801         * intl/plural-exp.h: Switch to gettext copyright.
23802         Use ANSI definitions and prototypes.
23803         (struct expression): Move definition of enum operator outside
23804         of struct definition.
23805         * intl/plural.c: Regenerate.
23806         * intl/plural.y: Switch to gettext copyright.
23807         Use ANSI definitions and prototypes.
23808         Port to bison 3.0.
23809         * intl/textdomain.c: Switch to gettext copyright.
23810         Use ANSI definitions and prototypes.
23811         Use gl_* locking primitives rather than __libc_* ones.
23812
23813 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23814
23815         * debug/warning-nop.c: Add used atrribute.
23816
23817 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23818
23819         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23820
23821         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23822         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23823         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23824
23825 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23826             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23827
23828         [BZ #17634]
23829         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23830         Undefine after defining function.  Define as weak alias of
23831         __wcschr.  Use libc_hidden_weak.
23832         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23833         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23834         (libc_hidden_def): Also define __GI___wcschr alias.
23835         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23836         __wcschr and define as weak alias of __wcschr.
23837         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23838         __wcschr.
23839         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23840         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23841         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23842         libc_hidden_weak.  Do not use libc_hidden_def.
23843         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23844         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23845         __GI___wcschr alias.
23846         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23847         [IS_IN (libc)] (wcschr): Define as macro expanding to
23848         __redirect_wcschr.
23849         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23850         [IS_IN (libc)] (__wcschr_power6): Likewise.
23851         [IS_IN (libc)] (__wcschr_power7): Likewise.
23852         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23853         instead of wcschr.
23854         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23855         __libc_wcschr.
23856         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23857         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23858         __wcschr and define as weak alias of __wcschr.  Use
23859         libc_hidden_builtin_def.
23860         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23861         as weak alias of __wcschr.  Use libc_hidden_weak.
23862         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23863         wcschr.
23864         * time/era.c (_nl_init_era_entries): Likewise.
23865         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23866         variable.
23867         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23868         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23869
23870 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23871
23872         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23873         format for long int variable.
23874
23875 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23876
23877         [BZ #10672]
23878         * manual/search.texi: (Array Sort Function): Remove claim how to make
23879         qsort stable.
23880
23881 2014-12-10  Andreas Schwab  <schwab@suse.de>
23882
23883         [BZ #12847]
23884         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23885         user-controlled locks.
23886
23887 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23888
23889         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23890         register.
23891
23892 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23893
23894         * configure.ac (--disable-werror): New configure option.
23895         (enable_werror): New AC_SUBST.
23896         * configure: Regenerated.
23897         * config.make.in (enable-werror): New variable.
23898         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23899         -Wno-error=undef.
23900         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23901         * manual/install.texi (Configuring and compiling): Document
23902         --disable-werror.
23903         * INSTALL: Regenerated.
23904         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23905         (CFLAGS-tst-chk2.c): Likewise.
23906         (CFLAGS-tst-chk3.c): Likewise.
23907         (CFLAGS-tst-chk4.cc): Likewise.
23908         (CFLAGS-tst-chk5.cc): Likewise.
23909         (CFLAGS-tst-chk6.cc): Likewise.
23910         (CFLAGS-tst-lfschk1.c): Likewise.
23911         (CFLAGS-tst-lfschk2.c): Likewise.
23912         (CFLAGS-tst-lfschk3.c): Likewise.
23913         (CFLAGS-tst-lfschk4.cc): Likewise.
23914         (CFLAGS-tst-lfschk5.cc): Likewise.
23915         (CFLAGS-tst-lfschk6.cc): Likewise.
23916
23917         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23918         (main): Disable -Wdeprecated-declarations around calls to
23919         register_printf_function.
23920
23921         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23922         (do_test): Disable -Wdiv-by-zero around some calls to
23923         fwrite_unlocked and fread_unlocked.
23924
23925         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23926         (DIAG_POP_NEEDS_COMMENT): Likewise.
23927         (_DIAG_STR1): Likewise.
23928         (_DIAG_STR): Likewise.
23929         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23930         * stdio-common/bug21.c: Include <libc-internal.h>.
23931         (do_test): Disable -Wformat around call to sscanf.
23932         * stdio-common/scanf14.c: Include <libc-internal.h>.
23933         (main): Disable -Wformat around some calls to scanf functions.
23934
23935 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23936
23937         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23938
23939 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23940
23941         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23942         stack variable alignment.
23943
23944 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23945
23946         [BZ #17682]
23947         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23948         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23949         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23950         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23951         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23952         __getrlimit instead of getrlimit.
23953         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23954         __gettimeofday instead of gettimeofday.
23955         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23956         Likewise.
23957         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23958         Likewise.
23959         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23960         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23961         Remove variable.
23962         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23963         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23964
23965 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23966
23967         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23968         for wide-character tests.
23969
23970 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23971
23972         * io/openat64.c: #include <libc-internal.h>
23973         (__openat64): Prototypify.  Use ignore_value on MODE.
23974         * io/openat.c: Likewise.
23975         * misc/reboot.c: #include <libc-internal.h>
23976         (reboot): Prototypify.  Use ignore_value on HOWTO.
23977         * misc/ptrace.c: #include <libc-internal.h>
23978         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23979
23980 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23981
23982         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23983         XPG4, UNIX98 and XOPEN2K.
23984         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23985         Remove variable.
23986         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23987
23988 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23989
23990         * libio/fileops.c: Use ISO C style for function definitions.
23991         * libio/iofopen.c: Likewise.
23992         * libio/wfileops.c: Likewise.
23993
23994         [BZ #17653]
23995         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23996         offset on EOF.
23997         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23998         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23999         (fgets_func): Function pointer to fgets and fgetws.
24000         (do_ftell_test): Add test to verify ftell value after read
24001         EOF.
24002         (do_test): Set fgets_func.
24003
24004         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
24005         O_TRUNC flag for w and w+ modes.
24006         (do_rewind_test): Likewise.
24007         (do_ftell_test): Likewise.
24008         (do_write_test): Likewise.
24009
24010         [BZ #17647]
24011         * libio/fileops.c (do_ftell): Seek only when there are
24012         unflushed writes.
24013         * libio/wfileops.c (do_ftell_wide): Likewise.
24014         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
24015         test case.
24016         (do_one_test): Call it.
24017
24018 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
24019
24020         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
24021         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
24022         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
24023         Remove variable.
24024         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24025         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24026         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24027
24028 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
24029
24030         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
24031         Remove variable.
24032         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24033
24034         [BZ #17668]
24035         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
24036         as weak alias of __getifaddrs.  Use libc_hidden_weak.
24037         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
24038         __freeifaddrs.  Use libc_hidden_weak.
24039         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
24040         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
24041         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
24042         __freeifaddrs.  Use libc_hidden_weak.
24043         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
24044         __getifaddrs and define as weak alias of __getifaddrs.  Use
24045         libc_hidden_weak.
24046         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
24047         __freeifaddrs.  Use libc_hidden_weak.
24048         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
24049         Remove variable.
24050         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24051         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24052
24053 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
24054
24055         [BZ #17601]
24056         * sysdeps/mips/start.S (__start): Use indirect jump to call
24057         __libc_start_main.
24058
24059 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
24060
24061         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
24062
24063         * nptl/tst-mutex1.c: Include <stdbool.h>.
24064         [!ATTR] (ATTR_NULL): New macro.
24065         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
24066         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
24067         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
24068
24069         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
24070         to char *.
24071
24072         [BZ #17665]
24073         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
24074         Change conditional to [__USE_MISC].
24075
24076         [BZ #17664]
24077         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
24078         fgets_unlocked.
24079         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
24080         __fgets_unlocked.
24081         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
24082         fgets_unlocked.
24083         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
24084         Remove variable.
24085         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24086         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24087         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24088         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24089         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24090         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24091         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24092         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24093         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24094
24095         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
24096
24097 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24098
24099         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24100         Remove strpbrk objects.
24101         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24102         (__libc_ifunc_impl_list): Remove strpbrk implementation.
24103         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
24104         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
24105         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
24106         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
24107
24108         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24109         Remove strcspn objects.
24110         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24111         (__libc_ifunc_impl_list): Remove strcspn implementation.
24112         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
24113         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
24114         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
24115         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
24116
24117         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24118         Remove strspn objetcs.
24119         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24120         (__libc_ifunc_impl_list): Remove strspn implementation.
24121         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
24122         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24123         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
24124         * sysdeps/powerpc/powerpc64/strspn.S: New file.
24125
24126 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
24127
24128         [BZ #17581]
24129         * malloc/hooks.c
24130         (mem2mem_check): Add a terminator to the chain of checking blocks.
24131         (malloc_check_get_size): Use it here.
24132         (mem2chunk_check): Ditto.
24133
24134 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24135
24136         * sysdeps/powerpc/powerpc64/strtok.S: New file.
24137         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
24138
24139 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
24140
24141         * bits/ioctl-types.h: Indent preprocessor directives correctly.
24142
24143         * nptl/nptl-init.c: Include libc-internal.h.
24144         (__pthread_initialize_minimal_internal): Use ROUND_UP.
24145
24146         * elf/ldconfig.c (search_dir): Expand comment.
24147
24148 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
24149
24150         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
24151         variable.
24152         (linknamespace-symlist-stdlibs-tests): Likewise.
24153         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
24154         instead of $(objpfx)symlist-stdlibs.
24155         (linknamespace-libs-isoc): New variable.
24156         (linknamespace-libs): Use $(linknamespace-libs-isoc).
24157         (linknamespace-libs-ISO): New variable.
24158         (linknamespace-libs-ISO99): Likewise.
24159         (linknamespace-libs-ISO11): Likewise.
24160         (linknamespace-libs-XPG3): Likewise.
24161         (linknamespace-libs-XPG4): Likewise.
24162         (linknamespace-libs-POSIX): Likewise.
24163         (linknamespace-libs-UNIX98): Likewise.
24164         (linknamespace-libs-XOPEN2K): Likewise.
24165         (linknamespace-libs-POSIX2008): Likewise.
24166         (linknamespace-libs-XOPEN2K8): Likewise.
24167         ($(objpfx)symlist-stdlibs): Replace by
24168         $(linknamespace-symlist-stdlibs-tests).  Use
24169         $(linknamespace-libs-$*) as set of libraries.
24170         ($(linknamespace-header-tests)): Update dependencies.  Use
24171         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
24172         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
24173         * conform/linknamespace.pl: Remove comment about considering
24174         definitions of symbols from irrelevant libraries.
24175
24176 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24177
24178         [BZ #13862]
24179         * elf/dl-tls.c: Include <atomic.h>.
24180         (oom): Remove #ifdef SHARED/#endif.
24181         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
24182         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
24183         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
24184         big enough.
24185         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
24186         * nptl/Makefile (tests): Add tst-stack4.
24187         (modules-names): Add tst-stack4mod.
24188         ($(objpfx)tst-stack4): New.
24189         (tst-stack4mod.sos): Likewise.
24190         ($(objpfx)tst-stack4.out): Likewise.
24191         ($(tst-stack4mod.sos)): Likewise.
24192         (clean): Likewise.
24193         * nptl/tst-stack4.c: New file.
24194         * nptl/tst-stack4mod.c: Likewise.
24195
24196 2014-11-27  J. Brown  <jb999@gmx.de>
24197
24198         * sysdeps/x86/bits/string.h: Add recent CPUs.
24199
24200 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24201
24202         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24203         sigblock.
24204
24205         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24206         feof.
24207
24208         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24209         variable.
24210
24211 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24212
24213         * nscd/connections.c: Include libc-internal.h because of macro
24214         usage ignore_value.
24215
24216 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24217
24218         * string/bits/string3.h (__warn_memset_zero_len): Don't
24219         declare for gcc newer than 5.0.
24220         (memset): Don't test for zero-length __LEN for gcc newer than
24221         5.0.
24222
24223 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24224
24225         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24226         size_t for %zu format.
24227
24228         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24229         difference, not %ju.
24230
24231 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24232
24233         * include/libc-internal.h (ignore_value): New macro.
24234         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24235         with ignore_value.
24236
24237         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24238         definition.
24239
24240         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24241         pthread_cleanup_push to void *.
24242
24243         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24244         Undefine.
24245
24246         [BZ #16619]
24247         [BZ #16740]
24248         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24249         instead of 1L << 52.
24250
24251         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24252         * libio/bug-rewind2.c (do_test): Likewise.
24253
24254         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24255         * debug/test-strcpy_chk-ifunc.c: Likewise.
24256         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24257         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24258         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24259         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24260         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24261         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24262         * Rules [$(multi-arch) = no] (tests): Do not filter out
24263         $(tests-ifunc).
24264         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24265         * debug/Makefile (tests-ifunc): Remove variable.
24266         (tests): Do not add $(tests-ifunc).
24267         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24268         (tests): Do not add $(tests-ifunc).
24269         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24270         [TEST_IFUNC]: Remove conditionals.
24271         * string/test-string.h (TEST_IFUNC): Remove macro.
24272         [TEST_IFUNC]: Remove conditionals.
24273
24274         * string/test-strchr.c [!WIDE] (L): New macro.
24275         [WIDE] (L): Likewise.
24276         (check1): Use CHAR instead of char.  Use L on string and character
24277         constants.
24278
24279 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24280
24281         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24282         tests.
24283         * sysdeps/powerpc/bits/atomic.h
24284         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24285         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24286         (atomic_exchange_and_add_acq): Likewise.
24287         (atomic_exchange_and_add_rel): Likewise.
24288         * sysdeps/powerpc/powerpc32/bits/atomic.h
24289         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24290         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24291         * sysdeps/powerpc/powerpc64/bits/atomic.h
24292         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24293         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24294
24295 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24296
24297         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24298         Change synchronization of __sched_fifo_min_prio and
24299         __sched_fifo_max_prio.
24300         * nptl/pthread_mutexattr_getprioceiling.c
24301         (pthread_mutexattr_getprioceiling): Likewise.
24302         * nptl/pthread_mutexattr_setprioceiling.c
24303         (pthread_mutexattr_setprioceiling): Likewise.
24304         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24305         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24306         Likewise.
24307
24308 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24309
24310         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24311         void.
24312
24313 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24314
24315         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24316         third argument const.
24317
24318 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24319
24320         fnmatch: work around GCC compiler warning bug with uninit var
24321         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24322         This works around a bug with x86-64 GCC 4.9.2 and earlier
24323         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24324         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24325         used uninitialized in this function [-Wmaybe-uninitialized]".
24326
24327 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24328
24329         * posix/bug-regex31.c (main): Return RES not 0.
24330
24331 2014-11-25  Anton Blanchard <anton@samba.org>
24332
24333         * sysdeps/powerpc/bits/atomic.h
24334         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24335
24336 2014-11-24  Sterling Augustine  <saugustine@google.com>
24337
24338         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24339
24340 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24341
24342         [BZ #17608]
24343         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24344
24345 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24346
24347         [BZ #17633]
24348         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24349         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24350         variable.
24351         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24352         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24353
24354 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24355
24356         * string/strncpy.c (strncpy): Improve performance by using memset.
24357
24358 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24359
24360         * string/strcpy.c (strcpy):
24361         Improve performance by using strlen and memcpy.
24362
24363 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24364
24365         * string/strcoll_l.c (get_next_seq): __always_inline.
24366         * string/strcoll_l.c (do_compare): __always_inline.
24367
24368 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24369
24370         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24371         defined.
24372         * include/mqueue.h: Likewise.
24373         * include/stdlib.h: Likewise.
24374
24375         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24376         (get_null_defines): Adjust.
24377         * sunrpc/Makefile: Adjust comment.
24378         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24379         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24380         (CFLAGS-interp.c): Likewise.
24381         (CFLAGS-ldconfig.c): Likewise.
24382         (CPPFLAGS-.os): Likewise.
24383         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24384         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24385         * extra-modules.mk (extra-modules.mk): Likewise.
24386         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24387         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24388         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24389         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24390         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24391         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24392         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24393         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24394         * iconvdata/Makefile (CPPFLAGS): Likewise.
24395         (cpp-srcs-left): Add libof for all iconvdata routines.
24396         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24397         * include/assert.h: Likewise.
24398         * include/ctype.h: Likewise.
24399         * include/errno.h: Likewise.
24400         * include/libc-symbols.h: Likewise.
24401         * include/math.h: Likewise.
24402         * include/netdb.h: Likewise.
24403         * include/resolv.h: Likewise.
24404         * include/stdio.h: Likewise.
24405         * include/stdlib.h: Likewise.
24406         * include/string.h: Likewise.
24407         * include/sys/stat.h: Likewise.
24408         * include/wctype.h: Likewise.
24409         * intl/l10nflist.c: Likewise.
24410         * libidn/idn-stub.c: Likewise.
24411         * libio/libioP.h: Likewise.
24412         * nptl/libc_multiple_threads.c: Likewise.
24413         * nptl/pthreadP.h: Likewise.
24414         * posix/regex_internal.h: Likewise.
24415         * resolv/res_hconf.c: Likewise.
24416         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24417         * sysdeps/arm/memmove.S: Likewise.
24418         * sysdeps/arm/sysdep.h: Likewise.
24419         * sysdeps/generic/_itoa.h: Likewise.
24420         * sysdeps/generic/symbol-hacks.h: Likewise.
24421         * sysdeps/gnu/errlist.awk: Likewise.
24422         * sysdeps/gnu/errlist.c: Likewise.
24423         * sysdeps/i386/i586/memcpy.S: Likewise.
24424         * sysdeps/i386/i586/memset.S: Likewise.
24425         * sysdeps/i386/i686/memcpy.S: Likewise.
24426         * sysdeps/i386/i686/memmove.S: Likewise.
24427         * sysdeps/i386/i686/mempcpy.S: Likewise.
24428         * sysdeps/i386/i686/memset.S: Likewise.
24429         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24430         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24431         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24432         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24433         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24434         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24435         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24436         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24437         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24438         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24439         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24440         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24441         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24442         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24443         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24444         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24445         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24446         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24447         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24448         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24449         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24450         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24451         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24452         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24453         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24454         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24455         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24456         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24457         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24458         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24459         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24460         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24461         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24462         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24463         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24464         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24465         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24466         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24467         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24468         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24469         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24470         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24471         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24472         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24473         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24474         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24475         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24476         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24477         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24478         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24479         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24480         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24481         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24482         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24483         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24484         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24485         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24486         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24487         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24488         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24489         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24490         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24491         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24492         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24493         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24494         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24495         * sysdeps/posix/closedir.c: Likewise.
24496         * sysdeps/posix/opendir.c: Likewise.
24497         * sysdeps/posix/readdir.c: Likewise.
24498         * sysdeps/posix/rewinddir.c: Likewise.
24499         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24500         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24501         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24502         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24503         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24504         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24505         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24506         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24507         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24508         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24509         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24510         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24511         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24512         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24513         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24514         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24515         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24516         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24517         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24518         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24519         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24520         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24521         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24522         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24523         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24524         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24525         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24526         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24527         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24528         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24529         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24530         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24531         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24532         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24533         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24534         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24535         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24536         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24537         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24538         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24539         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24540         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24541         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24542         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24543         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24544         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24545         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24546         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24547         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24548         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24549         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24550         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24551         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24552         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24553         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24554         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24555         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24556         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24557         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24558         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24559         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24560         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24561         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24562         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24563         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24564         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24565         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24566         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24567         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24568         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24569         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24570         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24571         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24572         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24573         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24574         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24575         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24576         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24577         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24578         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24579         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24580         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24581         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24582         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24583         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24584         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24585         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24586         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24587         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24588         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24589         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24590         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24591         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24592         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24593         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24594         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24595         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24596         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24597         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24598         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24599         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24600         * sysdeps/unix/alpha/sysdep.S: Likewise.
24601         * sysdeps/unix/alpha/sysdep.h: Likewise.
24602         * sysdeps/unix/make-syscalls.sh: Likewise.
24603         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24604         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24605         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24606         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24607         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24608         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24609         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24610         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24611         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24612         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24613         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24614         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24615         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24616         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24617         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24618         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24619         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24620         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24621         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24622         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24623         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24624         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24625         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24626         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24627         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24628         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24629         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24632         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24633         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24634         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24635         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24636         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24637         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24638         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24640         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24641         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24642         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24643         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24644         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24645         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24646         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24647         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24648         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24649         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24650         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24651         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24652         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24653         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24654         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24655         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24656         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24657         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24658         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24659         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24660         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24661         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24662         * sysdeps/x86_64/memcpy.S: Likewise.
24663         * sysdeps/x86_64/memmove.c: Likewise.
24664         * sysdeps/x86_64/memset.S: Likewise.
24665         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24666         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24667         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24668         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24669         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24670         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24671         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24672         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24673         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24674         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24675         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24676         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24677         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24678         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24679         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24680         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24681         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24682         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24683         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24684         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24685         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24686         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24687         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24688         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24689         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24690         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24691         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24692         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24693         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24694         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24695         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24696         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24697         * sysdeps/x86_64/strcmp.S: Likewise.
24698
24699         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24700
24701         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24702         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24703         * elf/rtld-Rules: Likewise.
24704         * elf/setup-vdso.h: Likewise.
24705         * include/assert.h: Likewise.
24706         * include/bits/stdlib-float.h: Likewise.
24707         * include/errno.h: Likewise.
24708         * include/sys/stat.h: Likewise.
24709         * include/unistd.h: Likewise.
24710         * sysdeps/aarch64/setjmp.S: Likewise.
24711         * sysdeps/alpha/setjmp.S: Likewise.
24712         * sysdeps/arm/__longjmp.S: Likewise.
24713         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24714         * sysdeps/arm/setjmp.S: Likewise.
24715         * sysdeps/arm/sysdep.h: Likewise.
24716         * sysdeps/generic/_itoa.h: Likewise.
24717         * sysdeps/generic/dl-sysdep.h: Likewise.
24718         * sysdeps/generic/ldsodefs.h: Likewise.
24719         * sysdeps/i386/dl-tls.h: Likewise.
24720         * sysdeps/i386/setjmp.S: Likewise.
24721         * sysdeps/m68k/setjmp.c: Likewise.
24722         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24723         * sysdeps/mach/hurd/opendir.c: Likewise.
24724         * sysdeps/posix/getcwd.c: Likewise.
24725         * sysdeps/posix/opendir.c: Likewise.
24726         * sysdeps/posix/profil.c: Likewise.
24727         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24728         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24729         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24730         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24731         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24732         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24733         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24734         * sysdeps/s390/dl-tls.h: Likewise.
24735         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24736         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24737         * sysdeps/sh/sh3/setjmp.S: Likewise.
24738         * sysdeps/sh/sh4/setjmp.S: Likewise.
24739         * sysdeps/unix/alpha/sysdep.h: Likewise.
24740         * sysdeps/unix/arm/sysdep.S: Likewise.
24741         * sysdeps/unix/i386/sysdep.S: Likewise.
24742         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24743         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24744         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24745         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24746         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24747         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24748         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24749         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24750         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24751         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24752         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24753         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24754         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24757         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24758         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24759         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24760         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24761         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24762         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24763         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24764         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24765         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24766         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24767         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24768         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24769         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24770         * sysdeps/x86_64/setjmp.S: Likewise.
24771
24772         * include/math.h: Use IS_IN instead of IS_IN_libm.
24773         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24774         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24775         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24776         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24777         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24778         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24779         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24780         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24781         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24782         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24783         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24784         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24785         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24786         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24787         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24788         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24789         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24790         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24791         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24792         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24793         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24794         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24795         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24796         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24797         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24798         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24799         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24800         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24801         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24802         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24803         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24804         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24805         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24807         Likewise.
24808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24809         Likewise.
24810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24811         Likewise.
24812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24813         Likewise.
24814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24815         Likewise.
24816         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24817         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24818         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24819         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24820         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24821         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24822         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24827         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24828         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24829         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24830         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24831         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24832         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24833         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24834         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24835         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24836         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24837         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24838         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24839         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24840         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24842         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24843
24844         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24845         * nptl/pthreadP.h: Likewise.
24846         * nptl_db/structs.def: Likewise.
24847         * sysdeps/arm/sysdep.h: Likewise.
24848         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24849         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24850         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24851         * sysdeps/unix/alpha/sysdep.h: Likewise.
24852         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24853         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24854         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24855         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24856         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24857         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24858         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24859         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24860         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24861         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24862         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24863         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24864         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24865         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24868         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24869         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24870         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24871         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24872         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24873         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24874         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24875         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24876         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24877         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24878
24879         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24880         * nptl/pthreadP.h: Likewise.
24881         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24882         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24883         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24884         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24885         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24886         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24887         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24888         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24889         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24890         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24891         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24892         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24894         Likewise.
24895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24896         Likewise.
24897         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24899         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24900         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24901         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24902         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24903         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24904         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24905
24906         * dlfcn/dladdr.c: Use IS_IN.
24907         * dlfcn/dladdr1.c: Likewise.
24908         * dlfcn/dlclose.c: Likewise.
24909         * dlfcn/dlerror.c: Likewise.
24910         * dlfcn/dlinfo.c: Likewise.
24911         * dlfcn/dlmopen.c: Likewise.
24912         * dlfcn/dlopen.c: Likewise.
24913         * dlfcn/dlsym.c: Likewise.
24914         * dlfcn/dlvsym.c: Likewise.
24915
24916         * include/ifaddrs.h: Use IS_IN.
24917         * inet/check_pf.c: Likewise.
24918         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24919         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24920
24921         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24922         IS_IN_ldconfig.
24923         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24924         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24925
24926         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24927         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24928         IS_IN (libc).
24929
24930         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24931
24932         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24933         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24934         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24935         * include/libc-symbols.h (IS_IN_LIB): New macro.
24936         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24937         * include/netdb.h: Likewise.
24938         * include/stap-probe.h: Remove all uses of IN_LIB.
24939
24940         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24941         instead of IN_MODULE.
24942         * include/libc-symbols.h (IN_MODULE): Define using
24943         MODULE_NAME.
24944         (PASTE_NAME, PASTE_NAME1): New macros.
24945         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24946         of IN_LIB.
24947         (STAP_PROBE_ASM): Likewise.
24948
24949 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24950
24951         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24952         __mach_init in dlopened libc.
24953
24954 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24955
24956         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24957         * sysdeps/arm/preconfigure: Regenerate.
24958
24959 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24960
24961         * nptl/pthread_create.c (__pthread_create_2_1): Set
24962         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24963         when copying values from IATTR into PD.
24964
24965 2014-11-21  Will Newton  <will.newton@linaro.org>
24966             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24967
24968         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24969         Refactor inline-asm.  Also add comment.
24970
24971         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24972         ElfW macro instead of hardcoded Elf64 types.
24973         (la_aarch64_gnu_pltenter): Likewise.
24974         * sysdeps/aarch64/dl-machine.h
24975         (elf_machine_runtime_setup): Use ElfW(Addr).
24976
24977         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24978         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24979         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24980         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24981         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24982         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24983         (R_AARCH64_TLS_DTPMOD): This.
24984         (R_AARCH64_TLS_DTPREL64): Rename to ...
24985         (R_AARCH64_TLS_DTPREL): This.
24986         (R_AARCH64_TLS_TPREL64): Rename to ...
24987         (R_AARCH64_TLS_TPREL): This.
24988         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24989         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24990         R_AARCH64_TLS_TPREL64.
24991         (elf_machine_rela): Likewise.
24992
24993 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24994
24995         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24996         by setting it to 0.  64b atomics are not supported currently.
24997
24998 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24999
25000         [BZ #16469]
25001         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
25002         search domain names.
25003
25004 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
25005
25006         [BZ #16469]
25007         * NEWS: Update.
25008         * resolv/res_query.c (__libc_res_nquerydomain): Retain
25009         trailing dot.
25010         * posix/tst-getaddrinfo5.c: New.
25011         * posix/Makefile (tests): Add it.
25012
25013 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
25014
25015         [BZ #14498]
25016         * NEWS: Fixed.
25017         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
25018         after parsing line but before break_if_match.
25019         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
25020         if there is a protocol mismatch.
25021
25022 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
25023
25024         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
25025         because the potential race is on the user-supplied stream.
25026
25027 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
25028
25029         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
25030         string literal if not passed a buffer.
25031         * manual/job.texi (ctermid): Update reasoning, note deviation
25032         from posix, suggest mtasurace when not passed a buffer, for
25033         future non-preliminary safety notes.
25034
25035 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
25036
25037         * manual/users.texi (cuserid): Fix MT-Safety note for the case
25038         of not passing it a buffer.
25039         Reported by Peng Haitao.
25040
25041 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
25042
25043         * manual/Makefile ($(objpfx)stamp-summary): Require
25044         check-safety.sh to pass.
25045         * manual/check-safety.sh: Wish for verification that every
25046         @deftypefn and @deftypefun is followed by a @safety remark.
25047
25048 2014-11-20  Roland McGrath  <roland@hack.frob.com>
25049
25050         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
25051
25052         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
25053         PTHREAD_CANCEL_ASYNCHRONOUS.
25054         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
25055         send SIGCANCEL.
25056
25057         * nptl/default-sched.h: New file.
25058         * sysdeps/unix/sysv/linux/default-sched.h: New file.
25059         * nptl/pthread_create.c: Include it.
25060         (__pthread_create_2_1): Use collect_default_sched instead of making
25061         Linux syscalls here directly.
25062
25063 2014-11-20  Torvald Riegel  <triegel@redhat.com>
25064
25065         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
25066         __pthread_once): Use C11 atomics.
25067
25068 2014-11-20  Torvald Riegel  <triegel@redhat.com>
25069
25070         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
25071
25072 2014-11-20  Torvald Riegel  <triegel@redhat.com>
25073
25074         * include/atomic.h (__atomic_link_error, __atomic_check_size,
25075         atomic_thread_fence_acquire, atomic_thread_fence_release,
25076         atomic_thread_fence_seq_cst, atomic_load_relaxed,
25077         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
25078         atomic_compare_exchange_weak_relaxed,
25079         atomic_compare_exchange_weak_acquire,
25080         atomic_compare_exchange_weak_release,
25081         atomic_exchange_acquire, atomic_exchange_release,
25082         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
25083         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
25084         atomic_fetch_and_acquire,
25085         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
25086
25087 2014-11-20  Torvald Riegel  <triegel@redhat.com>
25088
25089         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
25090         USE_ATOMIC_COMPILER_BUILTINS): Define.
25091         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
25092         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25093         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
25094         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25095         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
25096         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25097         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
25098         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25099         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
25100         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25101         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
25102         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25103         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
25104         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25105         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
25106         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25107         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
25108         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25109         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
25110         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25111         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
25112         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25113         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
25114         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25115         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
25116         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25117         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
25118         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25119         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
25120         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25121         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
25122         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25123         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
25124         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25125         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
25126         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25127         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
25128         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25129         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
25130         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25131
25132 2014-11-19  Roland McGrath  <roland@hack.frob.com>
25133
25134         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
25135         the sched_priority value here.  It was already checked when the user
25136         called pthread_attr_setschedparam.
25137
25138         * nptl/tst-bad-schedattr.c: New file.
25139         * nptl/Makefile (tests): Add it.
25140
25141 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
25142             Florian Weimer  <fweimer@redhat.com>
25143             Joseph Myers  <joseph@codesourcery.com>
25144             Adam Conrad  <adconrad@0c3.net>
25145             Andreas Schwab  <schwab@suse.de>
25146             Brooks  <bmoses@google.com>
25147
25148         [BZ #17625]
25149         * wordexp-test.c (__dso_handle): Add prototype.
25150         (__register_atfork): Likewise.
25151         (__app_register_atfork): New function.
25152         (registered_forks): New global.
25153         (register_fork): New function.
25154         (test_case): Add 3 new tests for WRDE_CMDSUB.
25155         (main): Call __app_register_atfork.
25156         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
25157         fork count is non-zero fail the test.
25158         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
25159         is set.
25160         (parse_dollars): Remove check for WRDE_NOCMD.
25161         (parse_dquote): Likewise.
25162
25163 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25164
25165         * Makeconfig (built-modules): List non-library modules to be
25166         built.
25167         (module-cppflags): Include libc-modules.h for
25168         everything except shlib-versions.v.i.
25169         (CPPFLAGS): Use it.
25170         (before-compile): Add libc-modules.h.
25171         ($(common-objpfx)libc-modules.h,
25172         $(common-objpfx)libc-modules.stmp): New targets.
25173         (common-generated): Add libc-modules.h and libc-modules.stmp.
25174         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
25175         * include/libc-symbols.h: Don't include libc-modules.h.
25176         * include/libc-modules.h: Remove file.
25177         * scripts/gen-libc-modules.awk: New script to generate
25178         libc-modules.h.
25179         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
25180         Depend on libc-modules.stmp.
25181
25182         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
25183
25184         * Makeconfig (in-module): Get value of libof set for the
25185         translation unit.
25186         (CPPFLAGS): Use $(in-module).
25187         * Makerules: Don't suffix routine names for nonlib.
25188         * include/libc-modules.h: New file.
25189         * include/libc-symbols.h: Include libc-modules.h
25190         (IS_IN): New macro to replace IS_IN_* macros.
25191         * elf/Makefile: Set libof-* for each routine.
25192         * elf/rtld-Rules: Likewise.
25193         * extra-modules.mk: Likewise.
25194         * iconv/Makefile: Likewise.
25195         * iconvdata/Makefile: Likewise.
25196         * locale/Makefile: Likewise.
25197         * malloc/Makefile: Likewise.
25198         * nss/Makefile: Likewise.
25199         * sysdeps/gnu/Makefile: Likewise.
25200         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25201         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25202         * sysdeps/s390/s390-64/Makefile: Likewise.
25203         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25204         CPPFLAGS for nscd instead of nonlib.
25205
25206 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25207
25208         * nptl/createthread.c: New file.
25209
25210         * nptl/createthread.c: Moved ...
25211         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25212
25213         * nptl/createthread.c: Add proper top-line comment.
25214         (do_clone): Folded into ...
25215         (create_thread): ... here.  Take new arguments STOPPED_START and
25216         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25217         increment __nptl_threads, do event-reporting logic, do
25218         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25219         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25220         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25221         just send SIGCANCEL.
25222         * nptl/pthread_create.c: Forward-declare create_thread before
25223         including createthread.c.
25224         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25225         declaration, and new macro START_THREAD_SELF to replace argument.
25226         Remove return statement.
25227         (report_thread_creation): New function.
25228         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25229         synchronization logic, and __nptl_nthreads increment here, around
25230         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25231         PD->parent_cancelhandling here, before create_thread.  When
25232         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25233         __deallocate_stack, and ENOMEM translation here.
25234
25235 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25236
25237         [BZ #17616]
25238         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25239         (mptwo): Rename to __mptwo.
25240         (__inv): Use __mptwo instead of mptwo.
25241         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25242         (mptwo): Rename to __mptwo.
25243         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25244         of mpone and __mptwo instead of mptwo.
25245         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25246         instead of mpone.
25247         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25248         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25249         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25250         of mpone and __mptwo instead of mptwo.
25251         (__mpranred): Use __mpone instead of mpone.
25252         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25253         variable.
25254         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25255         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25256         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25257         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25258         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25259         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25260         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25261         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25262         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25263         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25264         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25265         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25266         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25267         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25268         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25269         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25270         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25271         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25272         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25273
25274 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25275
25276         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25277         replace BSD Handler xref with BSD Signal Handling.
25278
25279 2014-11-17  Richard Henderson  <rth@redhat.com>
25280
25281         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25282         (_FP_PACK_RAW_2): Remove.
25283         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25284         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25285         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25286         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25287         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25288         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25289         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25290         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25291         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25292         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25293         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25294         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25295         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25296         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25297         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25298         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25299
25300 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25301
25302         * signal/signal.h [__USE_MISC]
25303         (struct sigvec): Remove type.
25304         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25305         (sigvec): Remove declaration.
25306         * sysdeps/posix/sigvec.c: Moved ...
25307         * signal/sigvec.c: ... here, replacing old file.
25308         (struct sigvec): New type, copied from old signal.h definition.
25309         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25310         (__sigvec): Convert definition to prototype.
25311         (sigvec): Replace weak_alias with compat_symbol.
25312         * signal/Versions (libc: GLIBC_2.21): New version set.
25313         * include/signal.h: Remove __sigvec declaration.
25314         * sysdeps/unix/bsd/sigvec.c: Remove file.
25315         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25316         * manual/signal.texi (BSD Handler): Remove subsection.
25317         Move siginterrupt up to ...
25318         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25319         (Blocking in BSD): Fold subsection into its parent.
25320         * NEWS: Mention sigvec removal.
25321
25322 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25323
25324         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25325         (DLA_FMS): Make definition conditional only on [__FMA4__].
25326         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25327         definition.
25328
25329         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25330         Make definition conditional only on [PROF].
25331         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25332         definition.
25333         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25334         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25335
25336         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25337         !__GNUC__].
25338         * include/signal.h (__sigpause): Move declaration above call to
25339         libc_hidden_proto.
25340         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25341         variable.
25342         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25343         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25344
25345 2014-11-14  David S. Miller  <davem@davemloft.net>
25346
25347         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25348         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25349
25350 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25351
25352         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25353         * configure: Regenerated.
25354         * manual/install.texi (Tools for Compilation): Document a
25355         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25356         compiler verified to work.
25357         * INSTALL: Regenerated.
25358
25359         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25360         redeclare with asm name.
25361         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25362         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25363         including <string.h>.
25364         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25365         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25366         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25367         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25368         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25369         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25370         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25371
25372 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25373
25374         * stdlib/strtol.c (__strtol): Use prototype definition.
25375
25376         [BZ #17594]
25377         * stdlib/strtol.c (SYM__): New macro.
25378         (SYM__1): Likewise.
25379         (__strtol): Likewise.
25380         (strtol): Rename to __strtol and define as weak alias of
25381         __strtol.  Use libc_hidden_weak.
25382
25383 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25384
25385         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25386         Use numbered labels in inline assembly.
25387
25388 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25389
25390         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25391         Add setjmp LIBC_PROBE.
25392         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25393         Likewise.
25394         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25395         Add longjmp, longjmp_target LIBC_PROBE.
25396         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25397         Likewise.
25398
25399 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25400
25401         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25402         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25403         to get rid of unused variable warning.
25404
25405 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25406
25407         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25408         Check for unwind_backtrace ==  NULL only in SHARED case.
25409         (__backchain_backtrace): Compile only in SHARED case.
25410         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25411         Likewise.
25412         (__backchain_backtrace): Declare as static.
25413
25414 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25415
25416         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25417         (__libc_multiple_threads_ptr): Variable moved ...
25418         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25419
25420 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25421
25422         * conform/GlibcConform.pm: New file.
25423         * conform/conformtest.pl: Use GlibcConform module.
25424         * conform/linknamespace.pl: New file.
25425         * conform/list-header-symbols.pl: Likewise.
25426         * conform/Makefile (linknamespace-symlists-base): New variable.
25427         (linknamespace-symlists-tests): Likewise.
25428         (linknamespace-header-base): Likewise.
25429         (linknamespace-header-tests): Likewise.
25430         (tests-special): Add new tests.
25431         ($(linknamespace-symlists-tests)): New rule.
25432         (linknamespace-libs): New variable.
25433         ($(objpfx)symlist-stdlibs): New rule.
25434         ($(linknamespace-header-tests)): Likewise.
25435         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25436         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25437         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25438         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25439         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25440         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25441         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25442         (test-xfail-ISO/math.h/linknamespace): Likewise.
25443         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25444         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25445         (test-xfail-ISO/time.h/linknamespace): Likewise.
25446         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25447         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25448         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25449         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25450         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25451         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25452         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25453         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25454         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25455         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25456         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25457         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25458         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25459         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25460         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25461         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25462         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25463         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25464         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25465         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25466         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25467         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25468         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25469         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25470         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25471         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25472         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25473         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25474         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25475         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25476         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25477         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25478         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25479         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25480         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25481         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25482         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25483         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25484         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25485         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25486         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25487         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25488         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25489         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25490         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25491         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25492         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25493         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25494         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25495         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25496         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25497         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25498         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25499         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25500         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25501         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25502         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25503         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25504         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25505         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25506         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25507         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25508         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25509         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25510         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25511         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25512         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25513         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25514         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25515         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25516         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25517         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25518         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25519         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25520         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25521         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25522         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25523         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25524         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25525         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25526         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25527         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25528         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25529         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25530         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25531         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25532         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25533         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25534         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25535         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25536         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25537         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25538         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25539         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25540         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25541         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25542         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25543         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25544         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25545         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25546         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25547         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25548         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25549         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25550         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25551         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25552         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25553         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25554         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25555         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25556         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25557         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25558         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25559         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25560         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25561         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25562         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25563         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25564         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25565         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25566         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25567         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25568         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25569         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25570         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25571         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25572         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25573         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25574         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25575         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25576         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25577         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25578         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25579         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25580         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25581         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25582         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25583         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25584         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25585         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25586         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25587         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25588         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25589         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25590         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25591         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25592         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25593         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25594         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25595         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25596
25597         [BZ #17589]
25598         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25599         of fgets_unlocked.
25600
25601         [BZ #17585]
25602         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25603         (memmem): Rename to __memmem and define as weak alias of
25604         __memmem.  Use libc_hidden_weak.
25605         (__memmem): Use libc_hidden_def.
25606         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25607         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25608         memmem.
25609
25610         [BZ #17582]
25611         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25612         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25613         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25614         and define as weak alias of __fgets_unlocked.  Use
25615         libc_hidden_weak.
25616         (__fgets_unlocked): Use libc_hidden_def.
25617         * include/stdio.h (__fgets_unlocked): Declare.  Use
25618         libc_hidden_proto.
25619         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25620         __fgets_unlocked instead of fgets_unlocked.
25621         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25622         (GET_NPROCS_CONF_PARSER): Likewise.
25623         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25624         (GET_NPROCS_CONF_PARSER): Likewise.
25625
25626         [BZ #17574]
25627         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25628         weak alias of __wmemset.  Use libc_hidden_weak.
25629         (__wmemset): Use libc_hidden_def.
25630         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25631         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25632         of wmemset.
25633
25634         [BZ #17573]
25635         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25636         with asm name __mempcpy.
25637         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25638
25639         [BZ #17572]
25640         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25641         and define as weak alias of __rawmemchr.
25642         (__rawmemchr): Do not define as strong alias of rawmemchr.
25643
25644         [BZ #17571]
25645         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25646         alias of __qsort_r.
25647         (qsort): Call __qsort_r instead of qsort_r.
25648         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25649         (__qsort_r): Declare.  Call libc_hidden_proto.
25650         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25651         instead of qsort_r.
25652         * nscd/gai.c (__qsort_r): Define to qsort_r.
25653         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25654         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25655         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25656
25657         [BZ #17570]
25658         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25659         define as weak alias of __malloc_info.
25660
25661         [BZ #17584]
25662         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25663         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25664         (__rewinddir): Use libc_hidden_def.
25665         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25666         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25667         (__rewinddir): Use libc_hidden_def.
25668         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25669         weak alias of __rewinddir.  Don't use libc_hidden_def.
25670         (__rewinddir): Use libc_hidden_def.
25671         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25672         (__rewinddir): Use libc_hidden_proto.
25673         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25674         rewinddir.
25675         (__getcwd): Use __rewinddir instead of rewinddir.
25676
25677         [BZ #17583]
25678         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25679         alias of __fileno.  Use libc_hidden_weak.
25680         (__fileno): Use libc_hidden_def.
25681         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25682         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25683         alias of __ftello.
25684         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25685         __ftello.
25686         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25687         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25688         libc_hidden_def.
25689         (fread_unlocked): Don't use libc_hidden_ver.
25690         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25691         and define as weak alias of __fread_unlocked.  Don't use
25692         libc_hidden_def.
25693         (__fread_unlocked): Use libc_hidden_def.
25694         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25695         (ftello): Don't use libc_hidden_proto.
25696         (__ftello): Declare.  Use libc_hidden_proto.
25697         (fread_unlocked): Don't use libc_hidden_proto.
25698         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25699         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25700         and __ftello instead of fileno, fread_unlocked and ftello.
25701
25702 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25703
25704         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25705         GOT12.
25706         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25707         Likewise.
25708         (_dl_start_user): Likewise.
25709         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25710
25711 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25712             Siddhesh Poyarekar  <siddhesh@redhat.com>
25713
25714         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25715         Move argv and envp down instead of moving argc up.
25716         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25717
25718 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25719
25720         [BZ #17506]
25721         * test-skeleton.c (main): Return successful if one of
25722         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25723         * string/tst-strcoll-overflow.c: Define expected status.
25724
25725 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25726
25727         [BZ #17475]
25728         * locale/iso-639.def: Define Bhili and Tulu language codes.
25729
25730 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25731
25732         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25733
25734 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25735
25736         [BZ #17555]
25737         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25738
25739 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25740
25741         * configure.ac: Updated check of minimal required version to
25742         2.22.
25743         * manual/install.texi (Tools for Compilation): Updated version
25744         number.
25745         * configure: Regenerated.
25746         * INSTALL: Likewise.
25747
25748 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25749
25750         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25751         __tls_get_addr.
25752
25753 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25754
25755         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25756         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25757         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25758         libc_hidden_weak.
25759         (waitpid): Define as alias of __waitpid.
25760         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25761         __waitpid.
25762         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25763         libc_hidden_weak.
25764         (waitpid): Define as alias of __waitpid.
25765         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25766         __libc_waitpid alias.
25767         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25768         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25769         Likewise.
25770         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25771         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25772         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25773         alias.
25774         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25775         __waitpid.
25776         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25777         libc_hidden_weak.
25778         (waitpid): Define as alias of __waitpid.
25779
25780 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25781
25782         * manual/llio.texi: Add comment that write safety has been
25783         fixed in Linux.
25784
25785         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25786         (localplt-build-dso): Add elf/ld.so.
25787         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25788         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25789         and free for ld.so.
25790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25791         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25793         Likewise.
25794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25795         Likewise.
25796         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25797         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25798         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25799         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25800         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25801         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25802         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25803         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25804         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25805         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25806         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25807
25808 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25809
25810         [BZ #14132]
25811         * include/libc-symbols.h (INTUSE): Remove macro.
25812         (INTDEF): Likewise.
25813         (INTVARDEF): Likewise.
25814         (_INTVARDEF): Likewise.
25815         (INTDEF2): Likewise.
25816         (INTVARDEF2): Likewise.
25817         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25818         rtld_hidden_def instead of INTVARDEF.
25819         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25820         (_dl_starting_up_internal): Remove declaration.
25821         (_dl_starting_up): Use rtld_hidden_proto.
25822         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25823         declaration.
25824         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25825         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25826         _dl_starting_up.
25827         * elf/dl-writev.h (_dl_writev): Likewise.
25828         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25829         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25830         _dl_starting_up_internal.
25831
25832 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25833
25834         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25835         test-skeleton.c.
25836
25837 2014-11-05  Will Newton  <will.newton@linaro.org>
25838
25839         * benchtests/Makefile: (bench-malloc): Add malloc thread
25840         scalability benchmark.
25841         * benchtests/bench-malloc-threads.c: New file.
25842
25843 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25844
25845         * sysdeps/aarch64/strchrnul.S: New file.
25846
25847 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25848
25849         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25850         definition.
25851         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25852         Likwise.
25853         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25854         Likewise.
25855         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25856         Likewise.
25857         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25858         Likewise.
25859         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25860         Likewise.
25861
25862 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25863
25864         * catgets/test-gencat.c: Use test-skeleton.c.
25865         * catgets/tst-catgets.c: Likewise.
25866         * csu/tst-empty.c: Likewise.
25867         * elf/tst-audit2.c: Likewise.
25868         * elf/tst-global1.c: Likewise.
25869         * elf/tst-pathopt.c: Likewise.
25870         * elf/tst-piemod1.c: Likewise.
25871         * elf/tst-tls10.c: Likewise.
25872         * elf/tst-tls11.c: Likewise.
25873         * elf/tst-tls12.c: Likewise.
25874         * gnulib/tst-gcc.c: Likewise.
25875         * iconvdata/tst-e2big.c: Likewise.
25876         * iconvdata/tst-loading.c: Likewise.
25877         * iconv/tst-iconv1.c: Likewise.
25878         * iconv/tst-iconv2.c: Likewise.
25879         * inet/test-inet6_opt.c: Likewise.
25880         * inet/tst-gethnm.c: Likewise.
25881         * inet/tst-network.c: Likewise.
25882         * inet/tst-ntoa.c: Likewise.
25883         * intl/tst-codeset.c: Likewise.
25884         * intl/tst-gettext2.c: Likewise.
25885         * intl/tst-gettext3.c: Likewise.
25886         * intl/tst-ngettext.c: Likewise.
25887         * intl/tst-translit.c: Likewise.
25888         * io/test-stat.c: Likewise.
25889         * libio/test-fmemopen.c: Likewise.
25890         * libio/tst-freopen.c: Likewise.
25891         * libio/tst-sscanf.c: Likewise.
25892         * libio/tst-ungetwc1.c: Likewise.
25893         * libio/tst-ungetwc2.c: Likewise.
25894         * libio/tst-widetext.c: Likewise.
25895         * localedata/tst-ctype.c: Likewise.
25896         * localedata/tst-digits.c: Likewise.
25897         * localedata/tst-leaks.c: Likewise.
25898         * localedata/tst-mbswcs1.c: Likewise.
25899         * localedata/tst-mbswcs2.c: Likewise.
25900         * localedata/tst-mbswcs3.c: Likewise.
25901         * localedata/tst-mbswcs4.c: Likewise.
25902         * localedata/tst-mbswcs5.c: Likewise.
25903         * localedata/tst-setlocale.c: Likewise.
25904         * localedata/tst-trans.c: Likewise.
25905         * localedata/tst-wctype.c: Likewise.
25906         * localedata/tst-xlocale1.c: Likewise.
25907         * login/tst-grantpt.c: Likewise.
25908         * malloc/tst-calloc.c: Likewise.
25909         * malloc/tst-malloc.c: Likewise.
25910         * malloc/tst-mallocstate.c: Likewise.
25911         * malloc/tst-mcheck.c: Likewise.
25912         * malloc/tst-mtrace.c: Likewise.
25913         * malloc/tst-obstack.c: Likewise.
25914         * math/atest-exp2.c: Likewise.
25915         * math/atest-exp.c: Likewise.
25916         * math/atest-sincos.c: Likewise.
25917         * math/test-matherr.c: Likewise.
25918         * math/test-misc.c: Likewise.
25919         * math/test-powl.c: Likewise.
25920         * math/tst-definitions.c: Likewise.
25921         * misc/tst-dirname.c: Likewise.
25922         * misc/tst-efgcvt.c: Likewise.
25923         * misc/tst-fdset.c: Likewise.
25924         * misc/tst-hsearch.c: Likewise.
25925         * misc/tst-mntent2.c: Likewise.
25926         * nptl/tst-sem7.c: Likewise.
25927         * nptl/tst-sem8.c: Likewise.
25928         * nptl/tst-sem9.c: Likewise.
25929         * nss/test-netdb.c: Likewise.
25930         * posix/tst-fnmatch.c: Likewise.
25931         * posix/tst-getlogin.c: Likewise.
25932         * posix/tst-gnuglob.c: Likewise.
25933         * posix/tst-mmap.c: Likewise.
25934         * pwd/tst-getpw.c: Likewise.
25935         * resolv/tst-inet_ntop.c: Likewise.
25936         * rt/tst-timer.c: Likewise.
25937         * stdio-common/test-fseek.c: Likewise.
25938         * stdio-common/test-popen.c: Likewise.
25939         * stdio-common/test-vfprintf.c: Likewise.
25940         * stdio-common/tst-cookie.c: Likewise.
25941         * stdio-common/tst-fileno.c: Likewise.
25942         * stdio-common/tst-gets.c: Likewise.
25943         * stdio-common/tst-obprintf.c: Likewise.
25944         * stdio-common/tst-perror.c: Likewise.
25945         * stdio-common/tst-sprintf2.c: Likewise.
25946         * stdio-common/tst-sprintf3.c: Likewise.
25947         * stdio-common/tst-sprintf.c: Likewise.
25948         * stdio-common/tst-swprintf.c: Likewise.
25949         * stdio-common/tst-tmpnam.c: Likewise.
25950         * stdio-common/tst-unbputc.c: Likewise.
25951         * stdio-common/tst-wc-printf.c: Likewise.
25952         * stdlib/tst-environ.c: Likewise.
25953         * stdlib/tst-fmtmsg.c: Likewise.
25954         * stdlib/tst-limits.c: Likewise.
25955         * stdlib/tst-rand48-2.c: Likewise.
25956         * stdlib/tst-rand48.c: Likewise.
25957         * stdlib/tst-random2.c: Likewise.
25958         * stdlib/tst-random.c: Likewise.
25959         * stdlib/tst-strtol.c: Likewise.
25960         * stdlib/tst-strtoll.c: Likewise.
25961         * stdlib/tst-tls-atexit.c: Likewise.
25962         * stdlib/tst-xpg-basename.c: Likewise.
25963         * string/test-ffs.c: Likewise.
25964         * string/tst-bswap.c: Likewise.
25965         * string/tst-inlcall.c: Likewise.
25966         * string/tst-strtok.c: Likewise.
25967         * string/tst-strxfrm.c: Likewise.
25968         * sysdeps/x86_64/tst-audit10.c: Likewise.
25969         * sysdeps/x86_64/tst-audit3.c: Likewise.
25970         * sysdeps/x86_64/tst-audit4.c: Likewise.
25971         * sysdeps/x86_64/tst-audit5.c: Likewise.
25972         * time/tst-ftime_l.c: Likewise.
25973         * time/tst-getdate.c: Likewise.
25974         * time/tst-mktime3.c: Likewise.
25975         * time/tst-mktime.c: Likewise.
25976         * time/tst-posixtz.c: Likewise.
25977         * time/tst-strptime2.c: Likewise.
25978         * time/tst-strptime3.c: Likewise.
25979         * wcsmbs/tst-btowc.c: Likewise.
25980         * wcsmbs/tst-mbrtowc.c: Likewise.
25981         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25982         * wcsmbs/tst-wchar-h.c: Likewise.
25983         * wcsmbs/tst-wcpncpy.c: Likewise.
25984         * wcsmbs/tst-wcrtomb.c: Likewise.
25985         * wcsmbs/tst-wcsnlen.c: Likewise.
25986         * wcsmbs/tst-wcstof.c: Likewise.
25987
25988 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25989
25990         [BZ #14132]
25991         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25992         INTDEF.
25993         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25994         declaration.
25995         (_dl_mcount): Use rtld_hidden_proto.
25996         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25997         _dl_mcount.
25998         * elf/rtld.c (_rtld_global_ro): Likewise.
25999
26000         [BZ #14132]
26001         * elf/dl-init.c (_dl_init): Don't use INTDEF.
26002         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
26003         of _dl_init_internal.
26004         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
26005         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
26006         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
26007         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
26008         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
26009         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
26010         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
26011         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
26012         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
26013         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
26014         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
26015         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
26016         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
26017         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
26018         * sysdeps/tile/dl-start.S (_start): Likewise.
26019         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
26020         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
26021
26022         [BZ #14132]
26023         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
26024         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
26025         (rtld_progname): Make macro definition unconditional.
26026         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
26027         INTDEF.
26028         (dlmopen_doit): Do not use INTUSE with _dl_argv.
26029         (dl_main): Likewise.
26030         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
26031         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
26032         instead of _dl_argv_internal.
26033         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
26034         __GI__dl_argv instead of INTUSE(_dl_argv).
26035         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
26036         __GI__dl_argv instead of _dl_argv_internal.
26037
26038         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
26039         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
26040         macro.
26041         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
26042         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
26043         New macro.
26044         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
26045         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
26046         macro.
26047         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
26048         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
26049
26050 2014-11-04  Andreas Schwab  <schwab@suse.de>
26051
26052         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
26053
26054 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26055
26056         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
26057         mtvsrd instruction in binary form.
26058
26059 2014-11-03  Andreas Schwab  <schwab@suse.de>
26060
26061         [BZ #17522]
26062         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
26063         for less than MB_LEN_MAX use a local buffer of that size.
26064         * libio/tst-fputws.c: New file.
26065         * libio/Makefile (tests): Add tst-fputws.
26066
26067 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
26068
26069         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
26070         the size of the fpu_fr.fpu_dregs[] array.
26071
26072 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
26073
26074         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
26075         (__nanosleep): Do not define as alias.
26076         (nanosleep): Define as alias of __nanosleep.
26077         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
26078         __libc_nanosleep name.
26079
26080 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
26081
26082         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
26083         install.texi in comment.
26084
26085 2014-10-31  Torvald Riegel  <triegel@redhat.com>
26086
26087         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
26088         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
26089         ... add here and use lwsync or sync ...
26090         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
26091         ... and add here using lwsync.
26092
26093 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
26094
26095         * elf/dl-machine-reject-phdr.h: New file.
26096         * elf/dl-load.c: #include that.
26097         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
26098         if that returned true.
26099
26100 2014-10-31  Roland McGrath  <roland@hack.frob.com>
26101
26102         [BZ #17496]
26103         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
26104         gen-as-const-headers chunk.  Add a big scare comment after the last
26105         safe place to touch before-compile.
26106
26107 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
26108
26109         * manual/install.texi (Tools for Compilation): Update autoconf
26110         version requirements.
26111         * INSTALL: Regenerated.
26112
26113         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
26114         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
26115         (__libc_pselect): Likewise.
26116
26117         [BZ #14138]
26118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
26119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
26120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
26121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
26122
26123 2014-10-31  Torvald Riegel  <triegel@redhat.com>
26124
26125         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
26126         correct barrier instruction.
26127         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
26128         Likewise.
26129         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
26130         Likewise.
26131
26132 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26133
26134         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
26135         after defining inlines.  Instead, just use parens to defeat macro
26136         expansion of __isctype in its declaration.
26137
26138 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26139
26140         * include/sys/uio.h (__libc_readv): Remove declaration.
26141         (__libc_writev): Likewise.
26142         * misc/readv.c (__libc_readv): Rename to __readv.
26143         (__readv): Do not define as alias.
26144         (readv): Define as alias of __readv.
26145         * misc/writev.c (__libc_writev): Rename to __writev.
26146         (__writev): Do not define as alias.
26147         (writev): Define as alias of __writev.
26148         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
26149         (__readv): Do not define as alias.
26150         (readv): Define unconditionally as alias of __readv.
26151         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
26152         (__writev): Do not define as alias.
26153         (writev): Define unconditionally as alias of __writev.
26154         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
26155         name.
26156         (writev): Do not define __libc_writev name.
26157
26158 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26159
26160         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
26161         (convert_charseq): New function, broken out of ...
26162         (use_from_charmap): ... here.  Call it.
26163         (use_to_charmap): Use convert_charseq and free instead of duplicating
26164         its code with a variable-length stack struct.
26165
26166 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26167
26168         * include/fcntl.h (__libc_creat): Remove declaration.
26169         * io/creat.c (__libc_creat): Rename to creat.
26170         (creat): Do not define as alias.
26171         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
26172         of creat instead of __libc_creat.
26173         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
26174         to creat.
26175         (creat): Do not define as alias.
26176         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
26177         __libc_creat.
26178         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
26179         __libc_creat name.
26180         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
26181         Likewise.
26182
26183 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
26184
26185         * manual/llio.texi: Add comments discussing why write() may be
26186         considered MT-unsafe on Linux.
26187
26188 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
26189
26190         * dl-load.c (local_strdup): Remove.
26191         (expand_dynamic_string_token): Use __strdup.
26192         (decompose_rpath): Likewise.
26193         (_dl_map_object): Likewise.
26194
26195 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
26196
26197         [BZ #14132]
26198         * sysdeps/generic/unwind-dw2-fde.c
26199         (__register_frame_info_bases_internal): Do not declare.
26200         (__register_frame_info_table_bases_internal): Likewise.
26201         (__deregister_frame_info_bases_internal): Likewise.
26202         (__register_frame_info_bases): Declare and use hidden_proto before
26203         definition.  Use hidden_def instead of INTDEF.
26204         (__register_frame_info_table_bases): Likewise.
26205         (__deregister_frame_info_bases): Likewise.
26206         (__register_frame_info): Do not use INTUSE.
26207         (__register_frame): Likewise.
26208         (__register_frame_info_table): Likewise.
26209         (__register_frame_table): Likewise.
26210         (__deregister_frame_info): Likewise.
26211         (__deregister_frame): Likewise.
26212
26213 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26214
26215         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26216         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26217         not undefine.
26218         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26219         Likewise.
26220         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26221         Likewise.
26222
26223 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26224
26225         [BZ #14138]
26226         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26227         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26228         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26229         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26230         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26231         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26232         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26233         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26234         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26235         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26236         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26237         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26238         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26239         syscall.
26240         (setfsuid): Likewise.
26241         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26242         (setfsuid): Likewise.
26243         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26244         (setfsuid): Likewise.
26245         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26246         Likewise.
26247         (setfsuid): Likewise.
26248         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26249         (setfsuid): Likewise.
26250         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26251         Likewise.
26252         (setfsuid): Likewise.
26253
26254 2014-10-27  Andreas Schwab  <schwab@suse.de>
26255
26256         [BZ #17501]
26257         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26258         check for Slow_SSE4_2 feature bit.
26259         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26260         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26261         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26262         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26263
26264 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26265
26266         * configure.ac: Validate compiler version with a empirical test of
26267         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26268         $CC -v output.
26269         * configure: Regenerated.
26270
26271         * inet/htons.c (htons): Prototypify.
26272         * inet/htonl.c (htonl): Likewise.
26273
26274 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26275
26276         * string/strncat.c (strncat): Improve performance by using strlen.
26277
26278 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26279
26280         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26281
26282 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26283
26284         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26285         Call libc_fetestexcept_aarch64.
26286
26287 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26288
26289         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26290         Call libc_feholdexcept_aarch64.
26291
26292 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26293
26294         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26295         Call get_rounding_mode.
26296
26297 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26298
26299         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26300         Simplify logic.
26301
26302 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26303
26304         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26305         Simplify logic.
26306
26307 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26308
26309         [BZ #14138]
26310         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26311         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26312         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26313         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26314         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26315         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26316         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26317         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26318         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26319         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26320         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26321         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26322         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26323         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26324         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26325         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26326         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26327         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26328         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26329         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26330         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26331         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26332         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26333         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26334         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26335         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26336         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26337         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26338         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26339         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26340         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26341         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26342         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26343         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26344         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26345         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26346         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26347         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26348         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26349         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26350         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26351         syscall.
26352         (geteuid): Likewise.
26353         (getgid): Likewise.
26354         (getuid): Likewise.
26355         (getresgid): Likewise.
26356         (getresuid): Likewise.
26357         (getgroups): Likewise.
26358         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26359         (geteuid): Likewise.
26360         (getgid): Likewise.
26361         (getuid): Likewise.
26362         (getresgid): Likewise.
26363         (getresuid): Likewise.
26364         (getgroups): Likewise.
26365         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26366         (geteuid): Likewise.
26367         (getgid): Likewise.
26368         (getuid): Likewise.
26369         (getresgid): Likewise.
26370         (getresuid): Likewise.
26371         (getgroups): Likewise.
26372         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26373         Likewise.
26374         (geteuid): Likewise.
26375         (getgid): Likewise.
26376         (getuid): Likewise.
26377         (getresgid): Likewise.
26378         (getresuid): Likewise.
26379         (getgroups): Likewise.
26380         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26381         (geteuid): Likewise.
26382         (getgid): Likewise.
26383         (getuid): Likewise.
26384         (getresgid): Likewise.
26385         (getresuid): Likewise.
26386         (getgroups): Likewise.
26387         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26388         Likewise.
26389         (geteuid): Likewise.
26390         (getgid): Likewise.
26391         (getuid): Likewise.
26392         (getgroups): Likewise.
26393
26394         [BZ #14138]
26395         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26396         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26397         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26398         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26399         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26400         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26401         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26402         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26403         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26404         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26405         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26406         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26407         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26408         __chown.
26409         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26410         (lchown): Likewise.
26411         (fchown): Likewise.
26412         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26413         Likewise.
26414         (lchown): Likewise.
26415         (fchown): Likewise.
26416         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26417         (lchown): Likewise.
26418         (fchown): Likewise.
26419         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26420         Likewise.
26421         (lchown): Likewise.
26422         (fchown): Likewise.
26423
26424 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26425
26426         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26427         Simplify logic.
26428
26429 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26430
26431         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26432         Cleanup logic.
26433
26434 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26435
26436         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26437         Remove unused include.
26438
26439 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26440
26441         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26442         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26443         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26444         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26445
26446 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26447             Helge Deller <deller@gmx.de>
26448
26449         [BZ #17508]
26450         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26451         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26452         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26453
26454 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26455
26456         [BZ #14132]
26457         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26458         Remove macro definition.
26459         (__ashrdi3_v_glibc20): Likewise.
26460         (__lshrdi3_v_glibc20): Likewise.
26461         (__cmpdi2_v_glibc20): Likewise.
26462         (__ucmpdi2_v_glibc20): Likewise.
26463         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26464         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26465         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26466         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26467         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26468         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26469
26470 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26471
26472         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26473         old GNU extension [0] syntax.
26474         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26475         alloca rather than an array member with variable length.
26476         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26477         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26478         (parse_opt): ... here.  Likewise use alloca there.
26479         Validate the -i argument before checking for rootness.
26480         (send_shutdown): New function, broken out of ...
26481         (parse_opt): ... here.
26482
26483 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26484
26485         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26486         macro to get at the _rt_local_ro field.
26487         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26488         ([PIC] case) or _dl_hwcap ([!PIC] case).
26489         * sysdeps/arm/setjmp.S: Likewise.
26490
26491         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26492         * sysdeps/arm/configure.ac: New check to define it.
26493         * sysdeps/arm/configure: Regenerated.
26494         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26495         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26496         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26497         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26498         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26499         Use move/movt pair instead of a load.
26500         (LDST_GLOBAL): Macro removed.
26501         (LDR_GLOBAL): New macro replaces it.
26502         (LDR_HIDDEN): New macro.
26503         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26504         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26505
26506         * setjmp/tst-setjmp-static.c: New file.
26507         * setjmp/Makefile (tests): Add it.
26508         (tests-static): New variable.
26509
26510 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26511
26512         [BZ #17485]
26513         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26514
26515 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26516
26517         [BZ #14132]
26518         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26519
26520 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26521
26522         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26523
26524 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26525
26526         * io/fts.c (dirent_not_directory): New function.
26527         (fts_build): Call it.
26528
26529 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26530
26531         * nptl/version.c (__nptl_main): Use normal __write rather than
26532         INTERNAL_SYSCALL.
26533         (banner): Update copyright years.
26534
26535         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26536         gettimeofday.
26537         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26538         * nptl/pthread_cond_timedwait.c: Likewise.
26539         * nptl/pthread_mutex_timedlock.c: Likewise.
26540         * nptl/sem_timedwait.c: Likewise.
26541
26542         * sysdeps/nptl/bits/libc-lock.h
26543         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26544         (__libc_lock_init_recursive): Return void, not 0.
26545         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26546         (__libc_rwlock_init): Likewise.
26547         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26548
26549 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26550
26551         [BZ #15215]
26552         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26553         (__pthread_once_slow): ... here.
26554         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26555         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26556
26557 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26558
26559         [BZ #15215]
26560         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26561         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26562         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26563         * nptl/pthread_once.c (__pthread_once): Likewise.
26564         Update comments.
26565
26566 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26567
26568         [BZ #14138]
26569         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26570         name.
26571         (writev): Use __libc_writev as strong name.
26572         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26573         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26574
26575 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26576
26577         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26578
26579         * sysdeps/i386/nptl/tls.h
26580         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26581         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26582         New macros.
26583         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26584         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26585         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26586         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26587         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26588         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26589
26590         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26591         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26592         on [__NR_futex].
26593         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26594         broken out of ...
26595         (__pthread_mutex_init): ... here.  Call it.
26596         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26597         Conditionalize PI cases on [__NR_futex].
26598         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26599         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26600         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26601
26602         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26603         conditional on [SIGSETXID].
26604         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26605         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26606         is defined.  Likewise for SIGSETXID.
26607         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26608         Conditionalize definitions on [SIGSETXID].
26609         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26610         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26611         unblocking on [SIGCANCEL].
26612
26613         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26614         [__NR_set_robust_list].
26615
26616 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26617
26618         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26619         (do_compare): Likewise.
26620
26621 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26622
26623         [BZ #15884]
26624         * string/strcoll_l.c: Don't include stdio.h.
26625         (coll_seq): Remove members idxarr and rulearr.
26626         (get_next_seq_cached): Remove function.
26627         (get_next_seq): Likewise.
26628         (get_next_seq_nocache): Rename to get_next_seq.
26629         (do_compare): Remove function.
26630         (do_compare_nocache): Rename to do_compare.
26631         (STRCOLL): Remove weight and rules cache.
26632
26633 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26634
26635         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26636         * sysdeps/arm/sfp-machine.h: ... to here.
26637         * sysdeps/arm/Implies: Remove arm/soft-fp.
26638
26639 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26640
26641         * conform/data/sys/utsname.h-data (*_t): Allow.
26642         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26643         [POSIX] (WEXITED): Do not expect constant.
26644         [POSIX] (WSTOPPED): Likewise.
26645         [POSIX] (WNOHANG): Likewise.
26646         [POSIX] (WNOWAIT): Likewise.
26647         [POSIX] (siginfo_t): Do not expect type or elements.
26648         [POSIX] (pid_t): Do not expect type.
26649         [POSIX] (signal.h): Do not allow header.
26650         [POSIX] (sys/resource.h): Likewise.
26651         [POSIX] (si_*): Do not allow pattern.
26652         [POSIX] (W*): Likewise.
26653         [POSIX] (P_*): Likewise.
26654         [POSIX] (BUS_*): Likewise.
26655         [POSIX] (CLD_*): Likewise.
26656         [POSIX] (FPE_*): Likewise.
26657         [POSIX] (ILL_*): Likewise.
26658         [POSIX] (POLL_*): Likewise.
26659         [POSIX] (SEGV_*): Likewise.
26660         [POSIX] (SI_*): Likewise.
26661         [POSIX] (TRAP_*): Likewise.
26662         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26663         variable.
26664
26665 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26666
26667         [BZ #12926]
26668         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26669         infinite loop when __recvmsg returns 0.
26670
26671 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26672
26673         * CANCEL-FCT-WAIVE: Remove file.
26674         * CANCEL-FILE-WAIVE: Likewise.
26675
26676         [BZ #14132]
26677         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26678         instead of INTVARDEF.
26679         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26680         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26681         rtld_hidden_data_def instead of INTVARDEF.
26682         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26683         * elf/dl-deps.c (expand_dst): Likewise.
26684         * elf/dl-load.c (_dl_dst_count): Likewise.
26685         (_dl_dst_substitute): Likewise.
26686         (decompose_rpath): Likewise.
26687         (_dl_init_paths): Likewise.
26688         (open_path): Likewise.
26689         (_dl_map_object): Likewise.
26690         * elf/rtld.c (dl_main): Likewise.
26691         (process_dl_audit): Likewise.
26692         (process_envvars): Likewise.
26693         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26694         Remove declaration.
26695         (__libc_enable_secure): Use rtld_hidden_proto.
26696
26697 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26698
26699         * elf/dl-load.c
26700         (add_path): New function broken out of _dl_rtld_di_serinfo.
26701         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26702
26703 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26704
26705         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26706         parentheses around macro arguments.
26707         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26708         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26709         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26710         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26711         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26712         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26713         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26714         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26715         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26716         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26717         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26718         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26719         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26720         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26721         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26722         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26723         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26724         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26725         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26726         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26727         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26728         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26729         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26730         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26731         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26732         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26733         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26734         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26735         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26736         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26737         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26738         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26739         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26740         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26741         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26742         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26743         Likewise.
26744         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26745         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26746         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26747         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26748         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26749         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26750         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26751         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26752         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26753         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26754         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26755         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26756         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26757         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26758         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26759         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26760         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26761         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26762         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26763         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26764         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26765         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26766         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26767         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26768         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26769         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26770         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26771         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26772         (_FP_FRAC_SRS_1): Likewise.
26773         (_FP_FRAC_CLZ_1): Likewise.
26774         (_FP_MUL_MEAT_1_imm): Likewise.
26775         (_FP_MUL_MEAT_1_wide): Likewise.
26776         (_FP_MUL_MEAT_1_hard): Likewise.
26777         (_FP_SQRT_MEAT_1): Likewise.
26778         (_FP_FRAC_ASSEMBLE_1): Likewise.
26779         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26780         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26781         (__FP_CLZ_2): Likewise.
26782         (_FP_MUL_MEAT_2_wide): Likewise.
26783         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26784         (_FP_MUL_MEAT_2_gmp): Likewise.
26785         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26786         (_FP_SQRT_MEAT_2): Likewise.
26787         (_FP_FRAC_ASSEMBLE_2): Likewise.
26788         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26789         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26790         (_FP_FRAC_CLZ_4): Likewise.
26791         (_FP_MUL_MEAT_4_wide): Likewise.
26792         (_FP_MUL_MEAT_4_gmp): Likewise.
26793         (_FP_SQRT_MEAT_4): Likewise.
26794         (_FP_FRAC_ASSEMBLE_4): Likewise.
26795         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26796         * soft-fp/op-common.h (_FP_CMP): Likewise.
26797         (_FP_CMP_EQ): Likewise.
26798         (_FP_CMP_UNORD): Likewise.
26799         (_FP_TO_INT): Likewise.
26800         (_FP_FROM_INT): Likewise.
26801         [!__FP_CLZ] (__FP_CLZ): Likewise.
26802         (_FP_DIV_HELP_imm): Likewise.
26803         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26804         Likewise.
26805         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26806         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26807         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26808         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26809         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26810         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26811         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26812         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26813         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26814         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26815         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26816         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26817         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26818         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26819         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26820         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26821         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26822         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26823         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26824         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26825         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26826         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26827         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26828         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26829         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26830         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26831         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26832         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26833         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26834         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26835         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26836         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26837         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26838         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26839         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26840         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26841         (FP_UNPACK_RAW_SP): Likewise.
26842         (FP_PACK_RAW_S): Likewise.
26843         (FP_PACK_RAW_SP): Likewise.
26844         (FP_UNPACK_S): Likewise.
26845         (FP_UNPACK_SP): Likewise.
26846         (FP_UNPACK_SEMIRAW_S): Likewise.
26847         (FP_UNPACK_SEMIRAW_SP): Likewise.
26848         (FP_PACK_S): Likewise.
26849         (FP_PACK_SP): Likewise.
26850         (FP_PACK_SEMIRAW_S): Likewise.
26851         (FP_PACK_SEMIRAW_SP): Likewise.
26852         (_FP_SQRT_MEAT_S): Likewise.
26853         (FP_CMP_S): Likewise.
26854         (FP_CMP_EQ_S): Likewise.
26855         (FP_CMP_UNORD_S): Likewise.
26856         (FP_TO_INT_S): Likewise.
26857         (FP_FROM_INT_S): Likewise.
26858
26859         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26860
26861         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26862         (FP_EX_INVALID_IMZ): Likewise.
26863         (FP_EX_INVALID_IMZ_FMA): Likewise.
26864         (FP_EX_INVALID_ISI): Likewise.
26865         (FP_EX_INVALID_ZDZ): Likewise.
26866         (FP_EX_INVALID_IDI): Likewise.
26867         (FP_EX_INVALID_SQRT): Likewise.
26868         (FP_EX_INVALID_CVI): Likewise.
26869         (FP_EX_INVALID_VC): Likewise.
26870         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26871         "invalid" exceptions.
26872         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26873         (_FP_ADD_INTERNAL): Likewise.
26874         (_FP_MUL): Likewise.
26875         (_FP_FMA): Likewise.
26876         (_FP_DIV): Likewise.
26877         (_FP_CMP_CHECK_NAN): Likewise.
26878         (_FP_SQRT): Likewise.
26879         (_FP_TO_INT): Likewise.
26880         (FP_EXTEND): Likewise.
26881
26882 2014-10-09  Allan McRae  <allan@archlinux.org>
26883
26884         * po/fr.po: Update French translation from translation project.
26885
26886 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26887
26888         [BZ #14132]
26889         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26890         of INTDEF.
26891         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26892         (__cxa_atexit): Use libc_hidden_proto.
26893         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26894
26895         [BZ #14132]
26896         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26897         declaration.
26898         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26899         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26900         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26901         [!_ISOMAC] (__iswctype_internal): Likewise.
26902         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26903         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26904         alias.
26905         (fcntl): Remove __fcntl_internal alias.
26906         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26907         __connect_internal alias.
26908         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26909         Likewise.
26910
26911         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26912         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26913         FP_DENORM_ZERO.
26914         (_FP_CHECK_FLUSH_ZERO): New macro.
26915         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26916         (_FP_CMP): Likewise.
26917         (_FP_CMP_EQ): Likewise.
26918         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26919         FP_DENORM_ZERO.
26920         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26921         (FP_TRUNC): Likewise.
26922
26923         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26924         treated as invalid conversion, not as normal exponent.
26925
26926         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26927         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26928         (_FP_CMP_EQ): Likewise.
26929         (_FP_CMP_UNORD): Likewise.
26930         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26931         (FP_CMP_EQ_D): Likewise.
26932         (FP_CMP_UNORD_D): Likewise.
26933         * soft-fp/extended.h (FP_CMP_E): Likewise.
26934         (FP_CMP_EQ_E): Likewise.
26935         (FP_CMP_UNORD_E): Likewise.
26936         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26937         (FP_CMP_EQ_Q): Likewise.
26938         (FP_CMP_UNORD_Q): Likewise.
26939         * soft-fp/single.h (FP_CMP_S): Likewise.
26940         (FP_CMP_EQ_S): Likewise.
26941         (FP_CMP_UNORD_S): Likewise.
26942         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26943         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26944         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26945         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26946         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26947         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26948         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26949         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26950         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26951         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26952         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26953         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26954         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26955         to FP_CMP_Q.
26956         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26957         FP_CMP_Q.
26958         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26959         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26960         FP_CMP_EQ_Q.
26961         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26962         FP_CMP_Q.
26963         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26964         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26965         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26966         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26967         FP_CMP_EQ_Q.
26968         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26969         FP_CMP_Q.
26970         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26971         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26972         FP_CMP_EQ_Q.
26973         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26974         FP_CMP_Q.
26975         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26976         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26977         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26978         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26979         FP_CMP_EQ_Q.
26980
26981         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26982         a subnormal result, set the underflow exception if trapping on
26983         underflow is enabled.
26984         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26985         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26986         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26987         redefine to 0.
26988         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26989         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26990         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26991         * soft-fp/extendxftf2.c (__extendxftf2): Use
26992         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26993
26994         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26995         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26996         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26997         FP_HANDLE_EXCEPTIONS.
26998         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26999         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
27000         FP_HANDLE_EXCEPTIONS.
27001         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
27002         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
27003         FP_HANDLE_EXCEPTIONS.
27004         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
27005         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
27006         FP_HANDLE_EXCEPTIONS.
27007
27008 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
27009
27010         [BZ #14132]
27011         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
27012         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
27013         use INTUSE.
27014         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
27015         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
27016         Remove alias.
27017         (__adjtimex): Define using libc_hidden_ver.
27018         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
27019         Remove declaration.
27020         (ntp_gettime): Call __adjtimex directly.
27021         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
27022         Remove declaration.
27023         (ntp_gettimex): Call __adjtimex directly.
27024         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
27025         __adjtimex_internal alias.
27026
27027 2014-10-08  Roland McGrath  <roland@hack.frob.com>
27028
27029         [BZ #17460]
27030         * nscd/nscd.c (more_help): Rewrite list of tables collection
27031         using xstrdup and asprintf.
27032
27033         * nscd/nscd_conf.c: Remove local xstrdup declaration.
27034
27035 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27036             Roland McGrath  <roland@hack.frob.com>
27037
27038         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
27039         (do_lookup_unique): ... local function 'enter' here; update callers.
27040
27041 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
27042
27043         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
27044         compat_symbol calls on [SHARED].
27045         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
27046         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
27047         Remove.
27048         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
27049         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
27050         (oldsetrlimit): Remove.
27051         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
27052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27053         (lchown): New syscall entry.
27054         (oldsetrlimit): Remove.
27055         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
27056         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
27057         (oldsetrlimit): Remove.
27058         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
27059
27060         [BZ #14138]
27061         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
27062         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
27063         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
27064         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
27065         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
27066         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
27067         (fchown): Likewise.
27068         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
27069         (fchown): Likewise.
27070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
27071         Likewise.
27072
27073 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27074
27075         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
27076         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
27077         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
27078         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
27079         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
27080         Likewise.
27081         (__old_sem_post): Likewise.
27082
27083 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
27084
27085         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
27086         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
27087         HAVE_CLOCK_GETTIME_VSYSCALL macros.
27088         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
27089         Use INLINE_VSYSCALL macro.
27090         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
27091         __vdso_clock_gettime.
27092         * sysdeps/unix/sysv/linux/tile/init-first.c
27093         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
27094         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
27095         __vdso_clock_gettime.
27096
27097         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
27098         to set up frame more cleanly.
27099
27100         * sysdeps/tile/memcmp.c: New file.
27101
27102         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
27103
27104         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
27105         * sysdeps/tile/tilegx/strcasestr.c: New file.
27106         * sysdeps/tile/tilegx/strnlen.c: New file.
27107         * sysdeps/tile/tilegx/strstr.c: New file.
27108
27109         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
27110
27111 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
27112
27113         * nptl/tst-setuid3.c: Write errors to stdout.
27114
27115 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27116
27117         * elf/dl-deps.c
27118         (preload): New functions broken out of _dl_map_object_deps.
27119         (_dl_map_object_deps):  Remove a nested function. Update call sites.
27120
27121 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
27122
27123         [BZ #14138]
27124         * sysdeps/unix/sysv/linux/execve.c: Remove file.
27125         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
27126
27127 2014-10-01  Steve Ellcey  <sellcey@mips.com>
27128
27129         * sysdeps/mips/strcmp.S: New.
27130
27131 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
27132
27133         [BZ #14138]
27134         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
27135         (linkat): Likewise.
27136         (mkdirat): Likewise.
27137         (readlinkat): Likewise.
27138         (renameat): Likewise.
27139         (symlinkat): Likewise.
27140         (unlinkat): Likewise.
27141         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
27142         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
27143         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
27144         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
27145         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
27146         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
27147         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
27148
27149 2014-09-30  Will Newton  <will.newton@linaro.org>
27150
27151         * math/math.h: Define long double math functions if
27152         _LIBC_TEST is defined.
27153         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
27154
27155         * localedata/Makefile: Move assignment to tests-special
27156         into an ifdef testing run-built-tests.
27157         * timezone/Makefile: Likewise.
27158
27159 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
27160
27161         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
27162         with $(BASH) not $(SHELL).
27163
27164 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
27165             Matthew LeGendre  <legendre1@llnl.gov>
27166
27167         [BZ #17411]
27168         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
27169         l_reloc_result.
27170
27171 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27172
27173         * stdio-common/printf_fp.c
27174         (hack_digit): New function, broken out of ...
27175         (__printf_fp): ... local function here.  Update call sites.
27176         hack_digit now takes an additional parameter that is a pointer
27177         to a struct of the referenced locals.  Those locals moved inside
27178         the struct and references updated.
27179
27180 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27181
27182         * aclocal.m4: Require autoconf 2.69.
27183         * configure: Regenerated.
27184         * sysdeps/aarch64/configure: Likewise.
27185         * sysdeps/alpha/configure: Likewise.
27186         * sysdeps/arm/armv7/configure: Likewise.
27187         * sysdeps/arm/configure: Likewise.
27188         * sysdeps/ia64/configure: Likewise.
27189         * sysdeps/mach/configure: Likewise.
27190         * sysdeps/mips/configure: Likewise.
27191         * sysdeps/s390/configure: Likewise.
27192         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
27193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
27194
27195         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
27196         file.
27197         * sysdeps/ia64/configure.ac: Likewise.
27198
27199 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
27200
27201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27202         specify symbol version for ld.so.  Do not include entry for
27203         libpthread.
27204         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27205         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27206         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27207
27208         [BZ #14171]
27209         * Makeconfig [$(build-shared) = yes]
27210         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27211         makefiles.
27212         [$(build-shared) = yes && $(soversions.mk-done) = t]
27213         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27214         [$(build-shared) = yes && $(soversions.mk-done) = t]
27215         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27216         to Makerules.
27217         [$(build-shared) = yes && $(soversions.mk-done) = t]
27218         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27219         here.
27220         [$(build-shared) = yes && $(soversions.mk-done) = t]
27221         (common-generated): Don't append gnu/lib-names.h and
27222         gnu/lib-names.stmp here.
27223         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27224         (lib-names-h-abi): New variable.
27225         [$(build-shared) = yes && $(soversions.mk-done) = t]
27226         (lib-names-stmp-abi): Likewise.
27227         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27228         abi-variants] (before-compile): Append
27229         $(common-objpfx)$(lib-names-h-abi).
27230         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27231         abi-variants] (common-generated): Append gnu/lib-names.h.
27232         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27233         abi-variants] (install-others-nosubdir): Depend on
27234         $(inst_includedir)/$(lib-names-h-abi).
27235         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27236         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27237         [$(build-shared) = yes && $(soversions.mk-done) = t]
27238         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27239         [$(build-shared) = yes && $(soversions.mk-done) = t]
27240         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27241         [$(build-shared) = yes && $(soversions.mk-done) = t]
27242         (common-generated): Append $(lib-names-h-abi) and
27243         $(lib-names-stmp-abi).
27244         * scripts/lib-names.awk: Do not handle multi being set.
27245         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27246         Remove variable.
27247         (abi-lp64_be-ld-soname): Likewise.
27248         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27249         Likewise.
27250         (abi-hard-ld-soname): Likewise.
27251         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27252         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27253         Remove variable.
27254         (abi-o32_hard-ld-soname): Likewise.
27255         (abi-o32_soft_2008-ld-soname): Likewise.
27256         (abi-o32_hard_2008-ld-soname): Likewise.
27257         (abi-n32_soft-ld-soname): Likewise.
27258         (abi-n32_hard-ld-soname): Likewise.
27259         (abi-n32_soft_2008-ld-soname): Likewise.
27260         (abi-n32_hard_2008-ld-soname): Likewise.
27261         (abi-n64_soft-ld-soname): Likewise.
27262         (abi-n64_hard-ld-soname): Likewise.
27263         (abi-n64_soft_2008-ld-soname): Likewise.
27264         (abi-n64_hard_2008-ld-soname): Likewise.
27265         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27266         Likewise.
27267         (abi-64-v2-ld-soname): Likewise.
27268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27269         ld.so entries.
27270         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27271         variable.
27272         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27273         entry.
27274         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27275         variable.
27276         (abi-64-ld-soname): Likewise.
27277         (abi-x32-ld-soname): Likewise.
27278         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27279         entry.
27280         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27281
27282 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27283
27284         [BZ #14138]
27285         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27286         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27287         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27288         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27289         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27290         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27291         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27292         syscall entry for GLIBC_2.2 symbol version.
27293         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27294         Likewise.
27295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27296         (setrlimit): Likewise.
27297         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27298         Likewise.
27299
27300 2014-09-23  Will Newton  <will.newton@linaro.org>
27301
27302         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27303         _LINUX_ARM_SYSDEP_H include guard too.
27304         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27305         define.
27306
27307 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27308
27309         * sysdeps/unix/sysv/linux/eventfd.c:
27310         Make first argument unsigned.
27311         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27312         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27313
27314 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27315
27316         [BZ #16852]
27317         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27318         * socket/sys/socket.h: Likewise.
27319         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27320
27321 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27322
27323         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27324
27325 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27326
27327         * time/tst-ftime.c: New test.
27328         * time/Makefile (tests): Add tst-ftime.
27329
27330 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27331
27332         * soft-fp/extended.h: Fix comment formatting.
27333         * soft-fp/op-1.h: Likewise.
27334         * soft-fp/op-2.h: Likewise.
27335         * soft-fp/op-4.h: Likewise.
27336         * soft-fp/op-8.h: Likewise.
27337         * soft-fp/op-common.h: Likewise.
27338         * soft-fp/soft-fp.h: Likewise.
27339
27340         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27341
27342 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27343
27344         [BZ #6652]
27345         * Makeconfig (soversions-default-setname): Remove variable.
27346         ($(common-objpfx)soversions.i): Don't pass default_setname to
27347         soversions.awk.
27348         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27349         oldest_abi to abi-versions.awk.
27350         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27351         * config.make.in (oldest-abi): Remove variable.
27352         * configure.ac (--enable-oldest-abi): Remove configure option.
27353         * configure: Regenerated.
27354         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27355         text.
27356         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27357         * scripts/soversions.awk: Do not handle default_setname variable.
27358         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27359         variable.
27360         * sysdeps/mach/hurd/configure: Regenerated.
27361         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27362         variable.
27363         * sysdeps/unix/sysv/linux/configure: Regenerated.
27364
27365 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27366
27367         * elf/Makefile (CFLAGS-interp.c): Remove.
27368         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27369         path string.
27370         * elf/interp.c: Include generated runtime-linker.h
27371
27372         * Makerules (lib%.so): Don't include $(+interp) in
27373         prerequisites.
27374         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27375         * dlfcn/eval.c: Remove file.
27376
27377         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27378         macros.
27379
27380         [BZ #17266]
27381         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27382         4.2 and newer.
27383
27384         [BZ #17370]
27385         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27386
27387 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27388             Jakub Jelinek  <jakub@redhat.com>
27389
27390         [BZ #17266]
27391         * libio/stdio.h: Check definition of __fortify_function
27392         instead of __extern_always_inline to include bits/stdio2.h.
27393         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27394         check if __extern_always_inline is defined.
27395         [__USE_MISC || __USE_XOPEN]: Likewise.
27396         [__USE_ISOC99] Likewise.
27397         * misc/sys/cdefs.h (__fortify_function): Define only if
27398         __extern_always_inline is defined.
27399         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27400         __extern_always_inline and __extern_inline only for g++-4.3
27401         and newer or a compatible gcc.
27402
27403 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27404
27405         [BZ #17371]
27406         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27407         last change to handle zero prefix length.
27408
27409 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27410
27411         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27412         _SC_REGEX_VERSION.
27413
27414         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27415         _POSIX_RAW_SOCKETS.
27416
27417 2014-09-13  Allan McRae  <allan@archlinux.org>
27418
27419         * po/ru.po: Update Russian translation from translation project.
27420
27421 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27422
27423         * locale/programs/locale.c (show_locale_vars): Inline local function
27424         into its sole call site.  Clean up some style nits.
27425         (print_item): New function, broken out of ...
27426         (show_info): ... local function here.  Clean up style nits.
27427
27428         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27429         out of ...
27430         (set_class_defaults): ... local function set_default here.
27431         Define set_default as a macro locally to pass constant parameters.
27432         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27433         rather than a shared local.
27434
27435         * stdlib/rpmatch.c (try): New function, broken out of ...
27436         (rpmatch): ... local function here.  Also, prototypify definition.
27437
27438 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27439
27440         * scripts/soversions.awk: Do not handle configuration names.
27441         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27442         vendor and os variables to soversions.awk.
27443         * configure.ac: Do not modify gnu-* host_os.
27444         * configure: Regenerated
27445         * shlib-versions: Remove first column with configuration names.
27446         * nptl/shlib-versions: Likewise.
27447         * nptl_db/shlib-versions: Likewise.
27448         * sysdeps/hppa/shlib-versions: Likewise.
27449         * sysdeps/m68k/shlib-versions: Likewise.
27450         * sysdeps/mach/hurd/shlib-versions: Likewise.
27451         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27452         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27453         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27454         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27455         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27456         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27457         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27458         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27460         Likewise.
27461         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27462         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27463         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27464         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27465         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27466         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27467         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27468         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27469
27470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27471         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27473         Regenerated.
27474         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27476         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27477
27478         * shlib-versions: Remove OS-specific entries.  Moved to files in
27479         sysdeps.
27480         * sysdeps/mach/hurd/shlib-versions: New file.
27481         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27482
27483         * nptl/shlib-versions: Remove architecture-specific entries.
27484         Moved to files in sysdeps.
27485         * shlib-versions: Likewise.
27486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27487         file.
27488         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27489         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27490         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27491         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27492
27493         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27494         (UDP_NO_CHECK6_RX): Likewise.
27495
27496 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27497
27498         * sysdeps/posix/sysconf.c (__sysconf): Spell
27499         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27500
27501 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27502
27503         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27504         loading.
27505         * iconv/Versions (__gconv_transliterate): Export for use from
27506         gconv modules.
27507         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27508         (struct __gconv_trans_data, __gconv_trans_fct,
27509         __gconv_trans_context_fct, __gconv_trans_query_fct,
27510         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27511         definitions.
27512         (struct __gconv_step_data): Remove __trans member.
27513         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27514         longer hidden.  Remove unused trans_data argument.
27515         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27516         (__gconv_translit_find): Remove declaration.
27517         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27518         prototype.
27519         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27520         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27521         trans_data argument.  Add hidden definition.
27522         (__gconv_translit_find): Remove.
27523         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27524         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27525         * iconv/skeleton.c: Remove transliteration initialization.
27526         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27527         __gconv_step_data initialization.
27528         * libio/iofwide.c (__libio_translit_): Remove.
27529         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27530         * wcsmbs/btowc.c (__btowc): Likewise.
27531         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27532         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27533         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27534         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27535         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27536         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27537         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27538         * wcsmbs/wctob.c (wctob): Likewise.
27539
27540 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27541
27542         [BZ #16194]
27543         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27544         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27545         register usage.
27546         * sysdeps/x86/Makefile: Adjust.
27547
27548 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27549             Roland McGrath  <roland@hack.frob.com>
27550
27551         * locale/weight.h: Add include guard.
27552         (findidx): Make static rather than auto; take new parameters
27553         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27554         * locale/weightwc.h: Likewise.
27555         * posix/fnmatch_loop.c
27556         (FCT): Change type of EXTRA from int32_t to wint_t.
27557         Don't include either header inside the function.
27558         Call FINDIDX rather than findidx, and pass new arguments.
27559         #undef FINDIDX at the end of the file.
27560         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27561         FINDIDX before including fnmatch_loop.c for the non-wide version.
27562         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27563         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27564         for the wide version.
27565         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27566         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27567         Pass new arguments to findidx.
27568         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27569         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27570         Don't #include it inside the function.  Pass new arguments to findidx.
27571         * posix/regex_internal.h
27572         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27573         (re_string_elem_size_at): Don't #include it inside the function.
27574         Pass new arguments to findidx.
27575         * string/strcoll_l.c: #include WEIGHT_H at top level.
27576         (get_next_seq): Don't #include it inside the function.
27577         Pass new arguments to findidx.
27578         (get_next_seq_nocache): Likewise.
27579         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27580         (STRXFRM): Don't #include it inside the function.
27581         Pass new arguments to findidx.
27582
27583 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27584
27585         [BZ #17344]
27586         * malloc/malloc.c (unlink): Turn asserts into a call to
27587         malloc_printerr.
27588
27589 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27590
27591         [BZ #17370]
27592         * libio/wfileops (do_ftell_wide): Free OUT.
27593
27594 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27595
27596         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27597
27598 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27599
27600         [BZ #17363]
27601         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27602         group if the current group is empty.
27603
27604 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27605
27606         * benchtests/bench-memset.c (test_main): Add more test from size
27607         from 32 to 512 bytes.
27608         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27609         Add POWER8 memset object.
27610         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27611         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27612         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27613         implementation.
27614         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27615         Likewise.
27616         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27617         multiarch POWER8 memset optimization.
27618         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27619         POWER8 memset optimization.
27620
27621         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27622         Remove bzero multiarch objects.
27623         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27624         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27625         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27626         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27627         Remove define.
27628         [__bzero]: Redefine to specific name.
27629         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27630         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27631         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27632         define.
27633         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27634         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27635
27636 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27637
27638         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27639         warnings into errors.
27640
27641         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27642         __cxa_thread_atexit_impl prototype.
27643
27644 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27645
27646         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27647         Fix capitalization of error message.
27648
27649 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27650
27651         * sysdeps/mips/preconfigure: Modify ABI tests.
27652
27653 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27654
27655         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27656
27657 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27658             Carlos O'Donell  <carlos@systemhalted.org>
27659
27660         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27661         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27662         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27663         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27664         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27665         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27666         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27667         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27668         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27669         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27670         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27671         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27672         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27673         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27674         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27675         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27676         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27677         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27678         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27679         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27680         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27681         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27682         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27683         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27684         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27685         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27686         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27687         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27688         Deconditionalize the code that was previously under [RESET_PID].
27689         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27690         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27691         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27692         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27693         include sysdep.h.
27694
27695 2014-09-08  Allan McRae  <allan@archlinux.org>
27696
27697         * version.h (RELEASE): Set to "development".
27698         (VERSION): Set to "2.20.90"
27699
27700 2014-09-07  Allan McRae  <allan@archlinux.org
27701
27702         * version.h (RELEASE): Set to "stable".
27703         (VERSION): Set to "2.20"
27704         * include/features.h (__GLIBC_MINOR__): Set to 20.
27705
27706         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27707         Liebler.
27708
27709         * po/ko.po: Update Korean translation from translation project.
27710
27711 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27712
27713         [BZ #17354]
27714         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27715         macro for handling signed relocations.
27716
27717 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27718
27719         [BZ #17325]
27720         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27721         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27722         assert.
27723         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27724         * iconvdata/ibm935.c (BODY): Likewise.
27725         * iconvdata/ibm937.c (BODY): Likewise.
27726         * iconvdata/ibm939.c (BODY): Likewise.
27727         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27728         assert.
27729         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27730         script.
27731         * iconvdata/run-iconv-test.sh: New test loop for checking for
27732         decoder crashers.
27733
27734 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27735
27736         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27737         libm_hidden_ver.
27738
27739 2014-09-01  Allan McRae  <allan@archlinux.org>
27740
27741         * po/eo.po: Update Esperanto translation from translation project.
27742
27743         * po/ca.po: Update Catalan translation from translation project.
27744
27745 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27746
27747         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27748         __proc_dostop call.
27749
27750 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27751
27752         [BZ #17319]
27753         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27754         to call set_thread_area instead of hand written asm.
27755         (__NR_set_thread_area): Removed define.
27756         (TLS_FLAG_WRITABLE): Likewise.
27757         (__ASSUME_SET_THREAD_AREA): Remove check.
27758         (TLS_EBX_ARG): Remove define.
27759         (TLS_LOAD_EBX): Likewise.
27760
27761 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27762
27763         Simplify atomicity of socket creation in bind.
27764
27765         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27766         looking up the name after linking the file.
27767
27768 2014-08-27  Allan McRae  <allan@archlinux.org>
27769
27770         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27771
27772 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27773
27774         [BZ #17187]
27775         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27776         trans_compare, open_translit, __gconv_translit_find):
27777         Remove module loading code.
27778
27779 2014-08-26  Allan McRae  <allan@archlinux.org>
27780
27781         * po/vi.po: Update Vietnamese translation from translation project.
27782
27783         * po/uk.po: Update Ukrainian translation from translation project.
27784
27785         * po/fr.po: Update French translation from translation project.
27786
27787         * po/ru.po: Update Russian translation from translation project.
27788
27789         * po/pl.po: Update Polish translation from translation project.
27790
27791         * po/cs.po: Update Czech translation from translation project.
27792
27793         * po/de.po: Update German translation from translation project.
27794
27795         * po/bg.po: Update Bulgarian translation from translation project.
27796
27797         * po/sv.po: Update Sweedish translation from translation project.
27798
27799         * po/nl.po: Update Dutch translation from translation project.
27800
27801         * po/es.po: Update Spanish translation from translation project.
27802
27803 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27804
27805         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27806
27807         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27808         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27809         (CPPFLAGS-iconvconfig): Likewise.
27810         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27811
27812         * include/libc-symbols.h: Remove unnecessary check for
27813         NOT_IN_libc.
27814         * nptl/pthreadP.h: Likewise.
27815         * sysdeps/aarch64/setjmp.S: Likewise.
27816         * sysdeps/alpha/setjmp.S: Likewise.
27817         * sysdeps/arm/sysdep.h: Likewise.
27818         * sysdeps/i386/setjmp.S: Likewise.
27819         * sysdeps/m68k/setjmp.c: Likewise.
27820         * sysdeps/posix/getcwd.c: Likewise.
27821         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27822         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27823         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27824         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27825         * sysdeps/sh/sh3/setjmp.S: Likewise.
27826         * sysdeps/sh/sh4/setjmp.S: Likewise.
27827         * sysdeps/unix/alpha/sysdep.h: Likewise.
27828         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27829         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27830         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27831         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27834         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27835         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27836         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27837         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27838         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27839         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27841         * sysdeps/x86_64/setjmp.S: Likewise.
27842
27843 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27844
27845         [BZ #17263]
27846         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27847         <stdint.h>.
27848         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27849         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27850
27851 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27852
27853         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27854
27855         [BZ #17262]
27856         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27857         and __x86_64__ when disabling x87 inline functions.
27858
27859 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27860
27861         [BZ #17259]
27862         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27863         asm statement with __cpuid_count.
27864
27865 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27866
27867         * configure.ac: Change __ehdr_start code to dereference the struct.
27868         Run readelf on the output to look for relocations.
27869         * configure: Regenerated.
27870
27871 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27872
27873         [BZ #17261]
27874         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27875         value to 0.
27876         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27877
27878 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27879
27880         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27881
27882 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27883
27884         [BZ #16892]
27885         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27886         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27887
27888 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27889
27890         * malloc/malloc.c: Fix typo in comment.
27891
27892 2014-08-09  Allan McRae  <allan@archlinux.org>
27893
27894         * Regenerate libc.po.
27895
27896 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27897
27898         * intl/tst-gettext2.sh: Check every lang file for creation.
27899
27900 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27901
27902         * sysdeps/aarch64/fpu/math_private.h
27903         (libc_feholdsetround_noex_aarch64_ctx): New function.
27904
27905 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27906
27907         * sysdeps/arm/armv6/strcpy.S (strcpy):
27908         Fix performance issue in misaligned cases.
27909
27910 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27911
27912         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27913         Move definition from termios.h.
27914         (struct termio): Likewise.
27915         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27916         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27917         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27918         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27919         Likewise.
27920         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27921         Move definition to ioctl-types.h
27922         (struct termio): Likewise.
27923         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27924         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27925         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27926         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27927         Likewise.
27928
27929 2014-08-05  Richard Henderson  <rth@redhat.com>
27930
27931         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27932         exceptions.
27933         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27934         Add fraiseexcpt.
27935         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27936         Use __feraiseexcept.
27937         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27938         Protect libm symbols with IS_IN_libm.
27939
27940         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27941
27942 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27943
27944         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27945
27946 2014-08-04  Will Newton  <will.newton@linaro.org>
27947
27948         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27949         file.
27950
27951 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27952
27953         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27954         variants for each function.
27955
27956 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27957
27958         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27959         appended ...
27960         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27961         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27962         appended ...
27963         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27964         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27965         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27966         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27967         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27968         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27969         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27970         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27971         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27972         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27973         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27974         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27975         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27976         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27977         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27978         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27979         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27980         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27981         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27982         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27983         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27984         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27985         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27986         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27987         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27988         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27989         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27990         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27991         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27992         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27993         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27994         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27995         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27996         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27997         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27998         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27999         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
28000         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
28001         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
28002         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
28003         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
28004         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
28005         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
28006         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
28007         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
28008         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
28009         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
28010         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
28011         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
28012         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
28013         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
28014         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
28015         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
28016         Update #include.
28017         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
28018         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
28019
28020 2014-08-04  Roland McGrath  <roland@hack.frob.com>
28021
28022         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
28023         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
28024         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
28025         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
28026         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
28027         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
28028
28029 2014-08-04  Roland McGrath  <roland@hack.frob.com>
28030
28031         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
28032         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
28033         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
28034         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
28035
28036 2014-08-04  Roland McGrath  <roland@hack.frob.com>
28037
28038         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
28039         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
28040         (__libc_vfork): Define function under this name.
28041         (__vfork): Define as an alias.
28042         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
28043         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
28044
28045 2014-08-04  Roland McGrath  <roland@hack.frob.com>
28046
28047         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
28048         that was previously under [RESET_PID].
28049         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
28050
28051 2014-08-04  Andreas Schwab  <schwab@suse.de>
28052
28053         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
28054
28055 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
28056
28057         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
28058         (main): Likewise.
28059
28060 2014-08-01  Roland McGrath  <roland@hack.frob.com>
28061
28062         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
28063
28064 2014-08-01  Richard Henderon  <rth@redhat.com>
28065
28066         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
28067         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
28068         typo in exact zero test.
28069         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
28070         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
28071         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28072
28073 2014-08-01  Roland McGrath  <roland@hack.frob.com>
28074
28075         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
28076         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
28077         * sysdeps/arm/sysdep.h: ... here.
28078         [!__ASSEMBLER__]: Include <stdint.h>.
28079
28080 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28081
28082         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
28083         (HAVE_WCTYPE_H): Likewise.
28084         (HAVE_ISWCTYPE): Likewise.
28085         (ENABLE_NLS): Likewise.
28086         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
28087         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
28088
28089         * posix/regex_internal.c: Check if DEBUG is defined and is
28090         set.
28091
28092         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
28093         (HAVE_MBSRTOWCS): Likewise.
28094         * posix/fnmatch.c: Include string.h unconditionally.
28095
28096 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28097
28098         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
28099         reversal.
28100
28101 2014-07-31  Roland McGrath  <roland@hack.frob.com>
28102
28103         * sysdeps/generic/safe-fatal.h: New file.
28104         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
28105         * nptl/forward.c: Include it.
28106         (__pthread_unwind): Use __safe_fatal as default action, rather
28107         than a bogus use of INTERNAL_SYSCALL that could never work.
28108
28109         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
28110         * configure.ac (libc_cv_builtin_trap): New test.
28111         * configure: Regenerated.
28112         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
28113         (ABORT_INSTRUCTION): Define using __builtin_trap.
28114
28115         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
28116         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
28117         * sysdeps/nptl/nptl-signals.h: New file.
28118         * nptl/pthreadP.h: Include <nptl-signals.h>.
28119
28120 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
28121
28122         * sysdeps/s390/s390-64/utf16-utf32-z9.c
28123         (ONE_DIRECTION): Define.
28124         * sysdeps/s390/s390-64/utf8-utf16-z9.c
28125         (ONE_DIRECTION): Define.
28126         * sysdeps/s390/s390-64/utf8-utf32-z9.c
28127         (ONE_DIRECTION): Define.
28128
28129 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
28130
28131         * sysdeps/s390/Makefile: Delete file.
28132         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
28133         * sysdeps/s390/__longjmp.c: Delete file.
28134         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
28135         Remove fields __flags and __reserved.
28136         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
28137         and add versioning.
28138         * sysdeps/s390/rtld-__longjmp.c: Delete file.
28139         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
28140         * sysdeps/s390/rtld-setjmp.S: Likewise.
28141         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
28142         * sysdeps/s390/s390-32/__longjmp.c: ... here.
28143         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
28144         * sysdeps/s390/s390-32/setjmp.S: ... here.
28145         Add versioning.
28146         (__sigsetjmp): Remove setting __flags field.
28147         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
28148         * sysdeps/s390/s390-64/__longjmp.c: ... here.
28149         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
28150         * sysdeps/s390/s390-64/setjmp.S: ... here.
28151         Add versioning.
28152         (__sigsetjmp): Remove setting __flags field.
28153         * sysdeps/s390/setjmp.S: Delete file.
28154         * sysdeps/s390/sigjmp.c: Likewise.
28155         * sysdeps/s390/v1-longjmp.c: Likewise.
28156         * sysdeps/s390/v1-setjmp.h: Likewise.
28157         * sysdeps/s390/v1-sigjmp.c: Likewise.
28158         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
28159         Remove v1-longjmp_chk.
28160         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
28161         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
28162         Include debug/longjmp_chk.c and add versioning.
28163         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
28164         Include nptl/pt-longjmp.c and add versioning.
28165         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
28166         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
28167         Include __longjmp.c.
28168         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
28169         Move to ...
28170         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
28171         (__getcontext): Remove setting __flags field.
28172         Add versioning.
28173         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
28174         Don't restore upper high grps.
28175         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
28176         Likewise.
28177         (__swapcontext): Remove setting uc_flags field.
28178         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
28179         Delete file.
28180         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
28181         Include __longjmp.c.
28182         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
28183         Move to ...
28184         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
28185         (__getcontext): Remove setting __flags field.
28186         Add versioning.
28187         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
28188         (__swapcontext): Remove setting uc_flags field.
28189         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
28190         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
28191         Remove fields uc_high_gprs and __reserved.
28192         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
28193         New file with reverted content.
28194         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
28195         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
28196         Regenerated.
28197         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
28198         Regenerated.
28199
28200 2014-07-31  Andreas Schwab  <schwab@suse.de>
28201
28202         * config.h.in (HAVE_IFUNC): Define to 0.
28203         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28204         definedness.
28205
28206 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28207
28208         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28209         memmove-avx-unaligned, memcpy-avx-unaligned and
28210         mempcpy-avx-unaligned.
28211         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28212         Add tests for AVX memcpy functions.
28213         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28214         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28215         memcpy_chk.
28216         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28217         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28218         memmove_chk.
28219         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28220         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28221         mempcpy_chk.
28222         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28223         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28224         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28225
28226 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28227
28228         [BZ #17213]
28229         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28230         powerpc64le.
28231
28232 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28233
28234         [BZ #16839]
28235         * manual/llio.texi: Add section about open file description locks.
28236         * manual/examples/ofdlocks.c: Example of open file description
28237         lock usage.
28238         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28239         F_OFD_SETLK, and F_OFD_SETLKW.
28240
28241 2014-07-23  Allan McRae  <allan@archlinux.org>
28242
28243         * po/es.po: Update Spanish translation from translation project.
28244
28245 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28246
28247         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28248
28249 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28250
28251         [BZ #17078]
28252         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28253         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28254         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28255
28256 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28257
28258         [BZ #17088]
28259         * math/fesetenv.c (__fesetenv)
28260         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28261         * math/feupdateenv.c (__feupdateenv)
28262         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28263
28264         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28265         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28266         (__ASSUME_SOCKETCALL): Do not define.
28267
28268         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28269         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28270         (__ASSUME_SOCKETCALL): Do not define.
28271         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28272         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28273         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28274         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28275         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28276         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28277         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28278         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28279
28280         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28281         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28282         (__ASSUME_SOCKETCALL): Do not define.
28283         (__ASSUME_IPC64): Define unconditionally.
28284         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28285         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28286         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28287         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28288         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28289         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28290         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28291         Likewise.
28292
28293         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28294         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28295         (__ASSUME_SOCKETCALL): Do not define.
28296         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28297         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28298         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28299         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28300         (__ASSUME_REQUEUE_PI): Define unconditionally.
28301         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28302         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28303         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28304         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28305         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28306         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28307
28308         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28309         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28310         (__ASSUME_SOCKETCALL): Do not define.
28311         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28312         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28313         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28314         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28315         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28316         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28317
28318         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28319         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28320         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28321         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28322         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28323         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28324         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28325         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28326         (__ASSUME_GETCPU_SYSCALL): Likewise.
28327
28328         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28329         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28330         cases for individual architectures.
28331         * sysdeps/gnu/configure: Regenerated.
28332         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28333         LIBC_SLIBDIR_RTLDDIR.
28334         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28335         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28336         LIBC_SLIBDIR_RTLDDIR.
28337         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28339         LIBC_SLIBDIR_RTLDDIR.
28340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28341         Regenerated.
28342         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28343         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28344         file.
28345         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28346         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28347         file.
28348         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28349         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28350         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28351         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28352
28353         * sysdeps/aarch64/shlib-versions: Move to ...
28354         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28355         * sysdeps/alpha/shlib-versions: Move to ...
28356         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28357         * sysdeps/arm/shlib-versions: Move to ...
28358         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28359         * sysdeps/hppa/shlib-versions: Move all contents except for
28360         libgcc_s entry to ...
28361         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28362         entry from ...
28363         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28364         * sysdeps/ia64/shlib-versions: Move to ...
28365         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28366         entry from ...
28367         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28368         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28369         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28370         * sysdeps/microblaze/shlib-versions: Move to ...
28371         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28372         * sysdeps/mips/shlib-versions: Move to ...
28373         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28374         entry from ...
28375         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28376         * sysdeps/tile/shlib-versions: Move to ...
28377         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28378         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28379         from ...
28380         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28381         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28382         entry from ...
28383         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28384
28385 2014-07-17  Will Newton  <will.newton@linaro.org>
28386
28387         * sysdeps/arm/bits/atomic.h
28388         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28389         (__arch_compare_and_exchange_bool_16_int): Likewise.
28390         (__arch_compare_and_exchange_bool_64_int): Likewise.
28391
28392         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28393         into an #else block.
28394
28395 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28396
28397         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28398         just Linux configurations.  Test empirically that the compiler sets
28399         __ARM_EABI__, rather than using the tuple to decide.
28400         * sysdeps/arm/preconfigure: Regenerated.
28401         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28402         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28403         contents appended ...
28404         * sysdeps/arm/configure.ac: ... here.
28405         * sysdeps/arm/configure: Regenerated.
28406
28407 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28408
28409         * nptl/pthread_kill.c: New file.
28410         * nptl/pthread_sigmask.c: New file.
28411         * nptl/pthread_sigqueue.c: New file.
28412
28413         * sysdeps/nptl/lowlevellock.h: New file.
28414         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28415         * sysdeps/nptl/lowlevellock-futex.h: New file.
28416
28417         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28418         Remove dead declarations.
28419
28420 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28421
28422         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28423         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28424         config-cflags-avx2.
28425         * sysdeps/x86_64/configure.ac: Likewise.
28426         * sysdeps/i386/configure: Regenerated.
28427         * sysdeps/x86_64/configure: Likewise.
28428         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28429         memset-avx2 only if config-cflags-avx2 is yes.
28430         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28431         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28432         defined.
28433         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28434         only if HAVE_AVX2_SUPPORT is defined.
28435         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28436
28437 2014-07-14  Alan Modra  <amodra@gmail.com>
28438
28439         [BZ #17153]
28440         * elf/elf.h (DT_PPC64_NUM): Correct value.
28441         * NEWS: Add to fixed bug list.
28442
28443 2014-07-13  Jim Meyering  <meyering@fb.com>
28444
28445         [BZ 17150]
28446         regex: don't deref NULL upon heap allocation failure
28447         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28448         failure in one more place.
28449         To trigger the segfault, configure grep -with-included-regex,
28450         build it, and run these commands:
28451         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28452
28453 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28454
28455         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28456
28457 2014-07-11  Richard Henderson  <rth@redhat.com>
28458
28459         * sysdeps/aarch64/libm-test-ulps: Update.
28460
28461 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28462
28463         [BZ #17135]
28464         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28465         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28466         (__nptl_setxid): Initialize error member.  Call
28467         __nptl_setxid_error.
28468         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28469         * nptl/descr.h (struct xid_command): Add error member.
28470         * nptl/tst-setuid3.c: New file.
28471         * nptl/Makefile (tests): Add it.
28472
28473 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28474
28475         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28476         New define.
28477         (__lll_trylock): Use __lll_base_trylock.
28478         (__lll_cond_trylock): Likewise.
28479
28480 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28481
28482         * nptl/pthread_create.c (start_thread): Use atomic_or and
28483         lll_futex_wake directly rather than lll_robust_dead.
28484         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28485         (lll_robust_dead): Macro removed.
28486         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28487         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28488         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28489         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28490         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28491         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28492         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28493         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28494         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28495         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28496         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28497         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28498         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28499         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28500         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28501
28502         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28503         Use atomic_compare_and_exchange_val_acq directly rather than
28504         lll_robust_trylock.
28505         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28506         (__lll_robust_trylock, lll_robust_trylock): Removed.
28507         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28508         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28509         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28510         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28511         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28512         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28513         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28514         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28515         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28516         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28517         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28518         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28519         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28520         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28521
28522 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28523
28524         * manual/locale.texi (Locale Names): New section documenting
28525         locale name syntax.  Adjust menu and node chaining accordingly.
28526         (Choosing Locale): Reference Locale Names, Locale Categories.
28527         Mention setting LC_ALL=C.  Reflect that name syntax is now
28528         documented.
28529         (Locale Categories): New section title.  Reference Locale Names.
28530         LC_ALL is an environment variable, but not a category.
28531         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28532         description, now in Locale Name.  Reference that section.  Locale
28533         name syntax is now documented.
28534
28535 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28536
28537         [BZ #17137]
28538         * locale/findlocale.c (name_present, valid_locale_name): New
28539         functions.
28540         (_nl_find_locale): Use the loc_name variable to store name
28541         candidates.  Call name_present and valid_locale_name to check and
28542         validate locale names.  Return an error if the locale is invalid.
28543
28544 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28545
28546         * locale/setlocale.c (setlocale): Use strdup for allocating
28547         composite name copy.
28548
28549 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28550
28551         Sync up with gnulib.
28552         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28553         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28554         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28555         and _GL_ARG_NONNULL.
28556         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28557         [!_LIBC]: Include code for Windows and Cygwin.
28558         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28559         Include prototype for int strerror_r.
28560         [!_LIBC] (is_open): New function.
28561         (flush_stdout): New function.
28562         (print_errno_message): Use it.
28563         (error): Likewise.
28564         (error_at_line): Likewise.
28565         (error_tail) Add function attribute macros.  Use
28566         __builtin_expect.
28567
28568         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28569
28570         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28571
28572         * io/ftw.c: Include sys/param.h unconditionally.
28573
28574         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28575
28576         [BZ #17125]
28577         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28578         libc_freeres_ptr.
28579         (freecache): New function to free CACHE on exit.
28580
28581         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28582         initialization.
28583
28584 2014-07-09  David S. Miller  <davem@davemloft.net>
28585
28586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28587
28588         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28589         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28590         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28591         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28592         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28593         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28594         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28595         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28596         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28597         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28598         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28599         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28600         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28601
28602 2014-07-09  Andreas Schwab  <schwab@suse.de>
28603
28604         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28605         output.
28606         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28607         (do_test): Likewise.
28608
28609         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28610
28611 2014-07-09  Will Newton  <will.newton@linaro.org>
28612
28613         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28614         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28615         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28616         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28617         * sysdeps/hppa/start.S (_start): Likewise.
28618
28619 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28620
28621         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28622
28623         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28624         defined.
28625
28626 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28627
28628         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28629         after checking that it is non-NULL.
28630
28631         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28632
28633 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28634
28635         * sysdeps/powerpc/memmove.c: Remove file.
28636         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28637         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28638         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28639         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28640         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28641         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28642         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28643         string memmove instead of removed powerpc one.
28644
28645         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28646         [weak_alias]: Fix compiler warning due trailing data.
28647         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28648         [weak_alias]: Likewise.
28649         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28650         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28651
28652         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28653         (__libc_ifunc_impl_list): Add memmove functions.
28654
28655 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28656
28657         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28658         Remove code.
28659         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28660         Likewise.
28661         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28662         Likewise.
28663         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28664         Likewise.
28665         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28666         Likewise.
28667         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28668         Likewise.
28669         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28670         Likewise.
28671         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28672         Likewise.
28673         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28674         Likewise.
28675         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28676         Likewise.
28677         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28678         Likewise.
28679         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28680         Likewise.
28681         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28682         Likewise.
28683         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28684         Likewise.
28685         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28686         Likewise.
28687         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28688         Likewise.
28689         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28690         Likewise.
28691
28692 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28693
28694         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28695         to avoid alignment traps in non-cacheable memory.
28696         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28697
28698         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28699         multiarch objects.
28700         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28701         file: multiarch power7 memmove.
28702         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28703         multiarch default memmove.
28704         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28705         multiarch memove for powerpc32/power4.
28706
28707         * string/bcopy.c: Use full path to include memmove.c.
28708         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28709         multiarch objects.
28710         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28711         bcopy for powerpc64.
28712         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28713         bcopy for powerpc64.
28714         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28715         and memmove implementations.
28716         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28717         optimized multiarch memmove for POWER7/powerpc64.
28718         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28719         default multiarch memmove for powerpc64.
28720         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28721         multiarch for powerpc64.
28722         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28723         for POWER7/powerpc64.
28724         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28725         memmove for POWER7/powerpc64.
28726
28727         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28728         glibc default one.
28729
28730         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28731         __ELF_NATIVE_CLASS equal to 64.
28732
28733 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28734
28735         * sysdeps/nptl/lowlevellock.h: File removed.
28736
28737         * NEWS: NPTL is no longer an add-on!
28738         * nptl/internaltypes.h: Moved ...
28739         * sysdeps/nptl/internaltypes.h: ... here.
28740         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28741         * sysdeps/nptl/fork.c: Likewise.
28742         * sysdeps/nptl/gai_misc.h: Likewise.
28743         * sysdeps/nptl/librt-cancellation.c: Likewise.
28744         * sysdeps/nptl/jmp-unwind.c: Likewise.
28745         * sysdeps/nptl/setxid.h: Likewise.
28746         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28747         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28748         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28749         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28750         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28751         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28752         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28753         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28754         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28755         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28756         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28757         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28758         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28759         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28760         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28761         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28762         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28763         * nptl/Makeconfig: Moved ...
28764         * sysdeps/nptl/Makeconfig: ... here.
28765         * nptl/configure: File removed.
28766         * nptl/ANNOUNCE: File removed.
28767         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28768         * sysdeps/unix/sysv/linux/configure: Regenerated.
28769
28770         * nptl/Makefile (routines): Add libc_pthread_init,
28771         libc_multiple_threads, register-atfork and unregister-atfork.
28772         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28773         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28774         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28775         pthread-pi-defines.sym, structsem.sym.
28776         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28777         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28778         [$(subdir) = nptl] (tests): Add tst-setgetname.
28779         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28780         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28781         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28782         [!LIBC_SIGACTION]: Remove aliases.
28783         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28784         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28785         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28786         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28787         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28788         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28789         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28790         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28791         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28792         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28793         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28794         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28795         __libc_allocate_rtsig_private.
28796         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28797         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28798         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28799         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28800         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28801         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28802         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28803         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28804         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28805         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28806         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28807         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28808         * nptl/internaltypes.h: ... here.
28809         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28810         * sysdeps/nptl/jmp-unwind.c: ... here.
28811         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28812         * nptl/libc-lowlevellock.c: ... here.
28813         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28814         * nptl/libc_multiple_threads.c: ... here.
28815         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28816         * nptl/libc_pthread_init.c: ... here.
28817         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28818         * nptl/lowlevelbarrier.sym: ... here.
28819         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28820         * nptl/lowlevelcond.sym: ... here.
28821         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28822         * nptl/lowlevellock.c: ... here.
28823         * nptl/lowlevellock.h: Moved ...
28824         * sysdeps/nptl/lowlevellock.h: ... here.
28825         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28826         * nptl/lowlevelrobustlock.c: ... here.
28827         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28828         * nptl/lowlevelrobustlock.sym: ... here.
28829         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28830         * nptl/lowlevelrwlock.sym: ... here.
28831         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28832         * nptl/pt-fork.c: ... here.
28833         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28834         * nptl/pthread-pi-defines.sym: ... here.
28835         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28836         * nptl/pthread_attr_getaffinity.c: ... here.
28837         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28838         * nptl/pthread_attr_setaffinity.c: ... here.
28839         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28840         * nptl/pthread_mutex_cond_lock.c: ... here.
28841         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28842         Update #include.
28843         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28844         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28845         * nptl/pthread_once.c: ... here, replacing old file.
28846         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28847         * nptl/pthread_yield.c: ... here.
28848         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28849         * nptl/register-atfork.c: ... here.
28850         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28851         * nptl/sem_post.c: ... here.
28852         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28853         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28854         * nptl/sem_timedwait.c: ... here.
28855         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28856         * nptl/sem_trywait.c: ... here.
28857         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28858         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28859         * nptl/sem_wait.c: ... here.
28860         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28861         * nptl/structsem.sym: ... here.
28862         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28863         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28864         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28865         * nptl/unregister-atfork.c: ... here.
28866         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28867         * nptl/unwindbuf.sym: ... here.
28868         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28869         * sysdeps/nptl/fork.c: ... here.
28870         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28871         * sysdeps/nptl/fork.h: ... here.
28872         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28873         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28874         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28875         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28876         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28877         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28878         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28879         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28880         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28881         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28882         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28883         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28884         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28885         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28886         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28887         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28888         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28889         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28890         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28891         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28892         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28893         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28894         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28895         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28896         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28897         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28898         * sysdeps/unix/sysv/linux/raise.c: ... here.
28899         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28900         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28901         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28902         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28903         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28904         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28905         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28906         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28907         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28908         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28909         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28910         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28911         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28912         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28913         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28914
28915 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28916
28917         * sysdeps/generic/memcopy.h: Add comment for
28918         MEMCPY_OK_FOR_FWD_MEMMOVE.
28919
28920 2014-07-04  Will Newton  <will.newton@linaro.org>
28921
28922         * string/memchr.c: Merge from gnulib.
28923         [_LIBC]: Remove conditionals.
28924         (__ptr_t): Remove define.
28925         (LONG_MAX_32_BITS): Likewise.
28926         (LONG_MAX): Likewise.
28927         (MEMCHR): Use ANSI prototype and optimize algorithm.
28928
28929         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28930
28931 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28932
28933         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28934         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28935
28936         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28937         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28938         in a bare environment with no <stdlib.h> installed.
28939         * sysdeps/nptl/configure: Regenerated.
28940
28941         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28942
28943         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28944         AC_EGREP_CPP for kernel header checks, so they only succeed if
28945         including <linux/version.h> actually works right.
28946         * sysdeps/unix/sysv/linux/configure: Regenerated.
28947
28948         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28949         value so it's not diagnosed as unused.
28950
28951         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28952         thing) with "ifeq ($(subdir),rt)".
28953
28954 2014-07-03  Richard Henderson  <rth@redhat.com>
28955
28956         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28957         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28958         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28959
28960         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28961         (math_force_eval): New.
28962
28963         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28964         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28965
28966         * sysdeps/alpha/fpu/s_round.c: Remove file.
28967         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28968
28969         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28970         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28971         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28972         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28973         (_dl_start, print_statistics): Likewise.
28974         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28975         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28976
28977         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28978         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28979         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28980         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28981         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28982         (HP_SMALL_TIMING_AVAIL): Define.
28983         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28984         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28985         (HP_SMALL_TIMING_AVAIL): Define.
28986         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28987         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28988
28989         * sysdeps/aarch64/hp-timing.h: New file.
28990
28991         * sysdeps/generic/hp-timing.h: Remove dead comment.
28992         * sysdeps/generic/hp-timing-common.h: New file.
28993         * sysdeps/alpha/hp-timing.h: Include it.
28994         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28995         * sysdeps/i386/i686/hp-timing.h: Likewise.
28996         * sysdeps/ia64/hp-timing.h: Likewise.
28997         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28998         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28999         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
29000         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
29001         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
29002         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
29003         (hp_timing_t): New.
29004
29005         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
29006         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
29007         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
29008         * elf/rtld.c (_dl_start_final): Likewise.
29009         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
29010         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29011         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29012         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29013         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29014         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
29015         (HP_TIMING_DIFF_INIT): Remove.
29016         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29017         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
29018         (HP_TIMING_DIFF_INIT): Remove.
29019         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
29020         * sysdeps/i386/i686/hp-timing.c: Remove file.
29021         * sysdeps/x86_64/hp-timing.c: Remove file.
29022         * sysdeps/ia64/hp-timing.c: Remove file.
29023         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
29024         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
29025         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
29026         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
29027
29028         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
29029         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
29030         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
29031         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
29032         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
29033         (HP_TIMING_ACCUM): Remove.
29034         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
29035         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
29036         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
29037
29038         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
29039         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
29040         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
29041         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
29042         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
29043         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
29044         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
29045         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
29046
29047         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
29048
29049 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
29050
29051         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
29052
29053 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29054
29055         Sync up with gettext.
29056         * intl/loadmsgcat.c: Define O_BINARY if not defined.
29057         [_MSC_VER]: Include malloc.h
29058         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
29059         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
29060         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
29061         TEMP_FAILURE_RETRY.  Cast return of alloca.
29062         [!_LIBC] Call gl_rwlock_init.
29063         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
29064
29065 2014-07-02  Roland McGrath  <roland@hack.frob.com>
29066
29067         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
29068         before checking its value.
29069
29070 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29071
29072         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
29073
29074         * debug/memcpy_chk.c: Don't include pagecopy.h.
29075         * debug/mempcpy_chk.c: Likewise.
29076         * string/memcpy.c: Likewise.
29077         * string/memmove.c: Likewise.
29078         * sysdeps/powerpc/memmove.c: Likewise.
29079         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
29080         definition of PAGE_COPY_FWD_MAYBE here...
29081         * sysdeps/generic/pagecopy.h: ... from here.
29082         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
29083
29084 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
29085             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29086
29087         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
29088         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
29089         optimizations.
29090         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
29091         (__libc_ifunc_impl_list): Likewise.
29092         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
29093         multiarch strcat for PPC64.
29094         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
29095         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
29096
29097 2014-07-02  Roland McGrath  <roland@hack.frob.com>
29098
29099         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
29100
29101 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29102
29103         * intl/loadmsgcat.c: Remove declaration of
29104         get_sysdep_segment_value.
29105         (get_sysdep_segment_value): Use ISO C style.
29106         (_nl_load_domain): Use ISO C style.  Get rid of redundant
29107         semicolon.  Fix typo and formatting in comment.
29108         (_nl_unload_domain): Use ISO C style.
29109
29110         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
29111
29112 2014-07-02  Will Newton  <will.newton@linaro.org>
29113
29114         * malloc/obstack.c: Merge from gnulib master.
29115         [HAVE_CONFIG_H]: Remove conditional code.
29116         [!_LIBC]: Include config.h.
29117         [!ELIDE_CODE]: Don't include inttypes.h, include
29118         stdint.h unconditionally.
29119         (print_and_abort): Mark as _Noreturn.
29120         (_obstack_allocated_p): Mark as __attribute_pure__.
29121         (obstack_free): Rename to __obstack_free.
29122         [!__attribute__]: Remove conditional code.
29123         * malloc/obstack.h: Merge from gnulib master.
29124         [__cplusplus]: Move conditional down.
29125         [!__attribute_pure__]: Define __attribute_pure__ here
29126         if it is not already defined.
29127         (_obstack_memory_used): Mark as __attribute_pure__.
29128         [!__obstack_free]: Define as obstack_free.
29129         [__GNUC__]: Remove check for ancient NeXT gcc.
29130
29131 2014-07-02  Will Newton  <will.newton@linaro.org>
29132             Paul Eggert  <eggert@cs.ucla.edu>
29133
29134         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
29135
29136 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29137
29138         * resolv/gethnamaddr.c: Add comment warning that the file is
29139         not maintained.
29140
29141 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
29142
29143         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
29144         entries.
29145
29146         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
29147         entry for aio_cancel and aio_cancel64.
29148         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
29149         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
29150         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
29151         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
29152         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
29153         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
29154         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
29155         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
29156         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
29157         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
29158         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
29159         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
29160         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
29161
29162 2014-07-01  Roland McGrath  <roland@hack.frob.com>
29163
29164         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
29165         * nptl/pthread_mutex_lock.c: Likewise.
29166         * nptl/pthread_mutex_timedlock.c: Likewise.
29167         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
29168
29169 2014-07-01  Richard henderson  <rth@redhat.com>
29170
29171         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
29172         (__isnan, __isnanl): Remove.
29173         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
29174
29175         * sysdeps/alpha/fpu/libm-test-ulps: Update.
29176
29177 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
29178
29179         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
29180
29181 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29182
29183         * resolv/nss_dns/dns-host.c (getanswer_r)
29184         [MULTI_PTRS_ARE_ALIASES]: Remove code.
29185
29186 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
29187
29188         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29189         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
29190         undefine.
29191         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
29192         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
29193
29194 2014-07-01  Roland McGrath <roland@hack.frob.com>
29195
29196         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
29197         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
29198
29199         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
29200         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29201
29202         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29203         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29204         ... here.
29205         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29206         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29207
29208         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29209         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29210         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29211         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29212
29213         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29214         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29215         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29216         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29217         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29218         Moved ...
29219         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29220         ... here.
29221         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29222         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29223         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29224         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29225         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29226         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29227         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29228         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29229         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29230         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29231         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29232         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29233         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29234         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29235         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29236         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29237         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29238         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29239         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29240         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29241         ... here.
29242         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29243         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29244         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29245         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29246         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29247         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29248         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29249         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29250
29251 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29252
29253         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29254         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29255         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29256         Add sysdep.
29257
29258 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29259
29260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29261
29262 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29263
29264         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29265         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29266
29267         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29268
29269         * sysdeps/arm/libm-test-ulps: Regenerated.
29270
29271 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29272             Roland McGrath <roland@hack.frob.com>
29273
29274         * test-skeleton.c (signal_handler): Kill the whole process group
29275         before killing the child individually.
29276         (main): Report any failure on `setpgid'.
29277
29278 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29279
29280         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29281         from _TLS_H to _ARM_NPTL_TLS_H.
29282         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29283         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29284
29285 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29286
29287         [BZ #16539]
29288         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29289         (__expm1l): Return argument unchanged when small but not
29290         subnormal.
29291
29292         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29293         include macro name.
29294         (_FP_UNPACK_RAW_1_P): Likewise.
29295         (_FP_PACK_RAW_1): Likewise.
29296         (_FP_PACK_RAW_1_P): Likewise.
29297         (_FP_MUL_MEAT_1_wide): Likewise.
29298         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29299         (_FP_MUL_MEAT_1_hard): Likewise.
29300         (_FP_DIV_MEAT_1_imm): Likewise.
29301         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29302         (_FP_DIV_MEAT_1_udiv): Likewise.
29303         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29304         (_FP_UNPACK_RAW_2): Likewise.
29305         (_FP_UNPACK_RAW_2_P): Likewise.
29306         (_FP_PACK_RAW_2): Likewise.
29307         (_FP_PACK_RAW_2_P): Likewise.
29308         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29309         (_FP_MUL_MEAT_2_wide): Likewise.
29310         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29311         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29312         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29313         (_FP_MUL_MEAT_2_gmp): Likewise.
29314         (_FP_DIV_MEAT_2_udiv): Likewise.
29315         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29316         (_FP_FRAC_SRL_4): Likewise.
29317         (_FP_FRAC_SRST_4): Likewise.
29318         (_FP_FRAC_SRS_4): Likewise.
29319         (_FP_UNPACK_RAW_4): Likewise.
29320         (_FP_UNPACK_RAW_4_P): Likewise.
29321         (_FP_PACK_RAW_4): Likewise.
29322         (_FP_PACK_RAW_4_P): Likewise.
29323         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29324         (_FP_MUL_MEAT_4_wide): Likewise.
29325         (_FP_MUL_MEAT_4_gmp): Likewise.
29326         (umul_ppppmnnn): Likewise.
29327         (_FP_DIV_MEAT_4_udiv): Likewise.
29328         (__FP_FRAC_ADD_4): Likewise.
29329         (__FP_FRAC_SUB_3): Likewise.
29330         (__FP_FRAC_SUB_4): Likewise.
29331         (__FP_FRAC_DEC_3): Likewise.
29332         (__FP_FRAC_DEC_4): Likewise.
29333         (__FP_FRAC_ADDI_4): Likewise.
29334         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29335         (_FP_FRAC_SRL_8): Likewise.
29336         (_FP_FRAC_SRS_8): Likewise.
29337
29338         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29339         include macro name.
29340         (FP_UNPACK_RAW_EP): Likewise.
29341         (FP_PACK_RAW_E): Likewise.
29342         (FP_PACK_RAW_EP): Likewise.
29343         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29344         (_FP_ISSIGNAN): Likewise.
29345         (_FP_ADD_INTERNAL): Likewise.
29346         (_FP_FMA): Likewise.
29347         (_FP_CMP): Likewise.
29348         (_FP_SQRT): Likewise.
29349         (_FP_TO_INT): Likewise.
29350         (_FP_FROM_INT): Likewise.
29351         (FP_EXTEND): Likewise.
29352         (_FP_DIV_MEAT_N_loop): Likewise.
29353
29354 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29355
29356         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29357         throughout.
29358
29359 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29360
29361         [BZ #17097]
29362         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29363         result with correct sign in case of exponents that produce
29364         overflow except for X very close to 1.
29365
29366 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         mktime: merge #if/#ifdef usage from glibc
29369         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29370         as that works with both Glibc's and Gnulib's style.
29371         See thread starting at Siddhesh Poyarekar's bug report at:
29372         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29373
29374 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29375
29376         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29377         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29378         * sysdeps/tile/tilegx/memmove.c: Remove file.
29379
29380 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29381
29382         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29383         abi-name definition.
29384         * scripts/soversions.awk: Do not handle or generate ABI lines.
29385         * shlib-versions: Remove ABI entries.
29386         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29387         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29388
29389 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29390
29391         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29392         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29393         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29394         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29395         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29396         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29397         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29398         Moved ...
29399         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29400         ... here.
29401         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29402         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29403         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29404         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29405         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29406         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29407         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29408         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29409         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29410         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29411         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29412         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29413         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29414         Moved ...
29415         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29416         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29417         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29418         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29419         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29420         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29421         Moved ...
29422         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29423         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29424         Moved ...
29425         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29426         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29427         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29428         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29429         Moved ...
29430         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29431         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29432         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29433         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29434         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29435         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29436         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29437         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29438         Moved ...
29439         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29440         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29441         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29442         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29443         Moved ...
29444         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29445         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29446         Moved ...
29447         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29448         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29449         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29450         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29451         Moved ...
29452         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29453         ... here.
29454         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29455         Identical file removed.
29456         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29457         Moved ...
29458         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29459         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29460         Identical file removed.
29461         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29462         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29463         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29464         Moved ...
29465         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29466         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29467         Identical file removed.
29468         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29469         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29470         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29471         Identical file removed.
29472         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29473         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29474         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29475         Identical file removed.
29476         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29477         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29478         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29479         Identical file removed.
29480         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29481         Moved ...
29482         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29483         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29484         Identical file removed.
29485         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29486         Moved ...
29487         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29488         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29489         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29490         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29491         Identical file removed.
29492         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29493         Moved ...
29494         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29495         ... here.
29496         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29497         Identical file removed.
29498         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29499         Moved ...
29500         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29501         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29502         Identical file removed.
29503         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29504         Moved ...
29505         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29506         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29507         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29509         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29510         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29511         Moved ...
29512         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29513         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29514         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29515
29516         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29517         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29518         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29519         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29520         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29521
29522 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29523
29524         [BZ #17092]
29525         * nscd/nscd.c (monitor_child): Return exit status of child
29526         instead of return value from wait syscall.
29527
29528 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29529
29530         * configure.ac (libc_commonpagesize): Remove variable.
29531         (libc_relro_required): Likewise.
29532         (libc_cv_z_relro): Remove configure test.
29533         * configure: Regenerated.
29534         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29535         variable.
29536         (libc_relro_required): Likewise.
29537         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29538         (libc_relro_required): Likewise.
29539         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29540         (libc_relro_required): Likewise.
29541         * sysdeps/arm/preconfigure: Regenerated.
29542         * sysdeps/ia64/preconfigure: Remove file.
29543         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29544         variable.
29545         (libc_relro_required): Likewise.
29546
29547         [BZ #16561]
29548         [BZ #16562]
29549         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29550         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29551         recompute overflowing results in original rounding mode.
29552         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29553         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29554         recompute overflowing results in original rounding mode.
29555         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29556         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29557         recompute overflowing results in original rounding mode.
29558         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29559         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29560         recompute overflowing results in original rounding mode.
29561         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29562         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29563         recompute overflowing results in original rounding mode.
29564         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29565         (libc_feholdsetround_ctx): New macro.
29566         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29567         * sysdeps/i386/fpu/libm-test-ulps: Update.
29568         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29569
29570 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29571
29572         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29573         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29574         corresponding .cpsetup call.
29575
29576 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29577
29578         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29579         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29580         * sysdeps/arm/Makefile [$(subdir) = csu]
29581         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29582         (static-only-routines): Add aeabi_read_tp here.
29583         (shared-only-routines): Add libc-aeabi_read_tp here.
29584         (CFLAGS-libc-start.c): Add -fexceptions here.
29585         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29586         (sysdep_routines, static-only-routines, shared-only-routines):
29587         Don't add to these here.
29588         (CFLAGS-libc-start.c): Likewise.
29589
29590         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29591         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29592         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29593         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29594         * sysdeps/arm/Makefile [$(subdir) = rt]
29595         (librt-sysdep_routines, librt-shared-only-routines):
29596         Append rt-aeabi_unwind_cpp_pr1 here.
29597         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29598         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29599         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29600         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29601         Append nptl-aeabi_unwind_cpp_pr1 here.
29602         (tests): Filter out tst-cleanupx4 here.
29603         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29604         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29605         Don't do those here.
29606
29607 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29608
29609         * scripts/list-sources.sh: Do not handle ports specially.
29610
29611 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29612
29613         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29614         * sysdeps/arm/feupdateenv.c: Likewise.
29615
29616         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29617
29618 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29619
29620         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29621         trailing whitespace removed.
29622         * scripts/config.guess: Update to version 2014-03-23.
29623         * scripts/config.sub: Update to version 2014-05-01
29624         * scripts/install-sh: Update to version 2013-12-25.23.
29625         * scripts/move-if-change: Update from gnulib.
29626
29627 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29628
29629         * debug/memmove_chk.c: Remove pagecopy.h include.
29630
29631 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29632
29633         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29634         identical to gnulib mktime.
29635
29636 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29637
29638         * configure.ac: Do not test for machine being rs6000.  Do not test
29639         for powerpc*-*soft.
29640         * configure: Regenerated.
29641
29642         [BZ #11505]
29643         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29644         test.
29645         * configure: Regenerated.
29646         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29647         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29648         Remove configure test.
29649         * sysdeps/arm/configure: Regenerated.
29650         * sysdeps/nptl/configure.ac: Do not check
29651         libc_cv_asm_cfi_directives.
29652         * sysdeps/nptl/configure: Regenerated.
29653         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29654         * sysdeps/x86_64/nptl/configure: Remove generated file.
29655         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29656         unconditional.
29657         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29658
29659 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29660
29661         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29662         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29663         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29664         it is defined.
29665
29666         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29667         instead of whether it is defined.
29668         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29669         * sysdeps/hppa/dl-machine.h: Likewise.
29670         * sysdeps/ia64/dl-machine.h: Likewise.
29671         * sysdeps/m68k/dl-machine.h: Likewise.
29672         * sysdeps/microblaze/dl-machine.h: Likewise.
29673         * sysdeps/mips/dl-machine.: Likewise.
29674         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29675         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29676         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29677         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29678         * sysdeps/sh/dl-machine.h: Likewise.
29679         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29680         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29681         * sysdeps/tile/dl-machine.h: Likewise.
29682         * sysdeps/x86_64/dl-machine.h: Likewise.
29683
29684         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29685         code.
29686         (verify_persistent_db): Likewise.
29687
29688 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29689
29690         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29691         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29693         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29694         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29695         Moved ...
29696         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29697         ... here.
29698         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29699         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29701         Identical file removed.
29702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29703         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29705         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29706         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29707         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29708         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29709         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29710         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29711         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29712         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29713         Moved ...
29714         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29715         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29716         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29718         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29720         Moved ...
29721         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29722         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29723         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29724         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29725         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29727         Identical file removed.
29728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29729         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29730         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29731         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29732         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29733         Moved ...
29734         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29735         ... here.
29736         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29737         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29738         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29739         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29741         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29743         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29745         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29747         Moved ...
29748         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29749         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29750         Moved ...
29751         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29752         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29753         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29755         Moved ...
29756         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29757         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29758         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29759
29760         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29761         folded into ...
29762         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29763         * sysdeps/unix/sysv/linux/s390/Versions
29764         (libpthread: GLIBC_2.19): New version set.
29765         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29766         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29767         (librt: GLIBC_2.3.3): New version set.
29768         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29769         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29770         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29771         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29772         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29773         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29774         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29775         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29776         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29777         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29778         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29779         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29780         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29781         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29782         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29783         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29784         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29785         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29786         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29787         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29788         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29789         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29790         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29791         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29792         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29793         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29794         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29795         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29796         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29797         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29798         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29799         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29800         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29801         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29802         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29803         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29804         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29805         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29806         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29807         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29808         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29809         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29810         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29811         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29812         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29813
29814         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29815         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29816         (__libc_vfork): Define the function under this name.
29817         [!NOT_IN_libc] (__vfork): Make this an alias.
29818         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29819         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29820         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29821         (__libc_vfork): Define the function under this name.
29822         [!NOT_IN_libc] (__vfork): Make this an alias.
29823         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29824         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29825         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29826         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29827         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29828         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29829
29830         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29831         code that was previously under [RESET_PID].
29832         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29833         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29834         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29835
29836         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29837         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29838         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29839         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29840         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29841         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29842         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29843         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29844         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29845         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29846         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29847         Moved ...
29848         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29849         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29850         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29851         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29852         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29853         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29854         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29855         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29856         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29857         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29858         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29859         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29860         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29861         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29862         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29863         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29864         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29865         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29866         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29867         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29868         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29869         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29870         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29871         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29872         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29873         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29874         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29875         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29876         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29877
29878 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29879
29880         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29881         that was previously under [RESET_PID].
29882         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29883
29884 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29885
29886         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29887         not undefine and redefine.
29888         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29889         [O_CLOEXEC]: Make code unconditional.
29890         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29891         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29892         <kernel-features.h>.
29893         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29894         conditional variable definition.
29895         (shm_open) [O_CLOEXEC]: Make code unconditional.
29896         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29897         code.
29898
29899         * configure.ac (USE_REGPARMS): Don't define here.
29900         * configure: Regenerated.
29901         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29902         * sysdeps/i386/configure: Regenerated.
29903
29904         * nptl/createthread.c: Don't include kernel-features.h.
29905         * nptl/pthread_cancel.c: Likewise.
29906         * nptl/pthread_condattr_setclock.c: Likewise.
29907         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29908         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29909         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29910         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29911         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29912         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29913         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29914         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29915         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29916         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29917         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29918         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29919         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29920         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29921         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29922         * nscd/gai.c: Likewise.
29923         * nss/nss_db/db-open.c: Likewise.
29924         * sysdeps/generic/ldsodefs.h: Likewise.
29925         * sysdeps/sh/nptl/tls.h: Likewise.
29926         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29927         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29928         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29929         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29930         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29931         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29932         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29933         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29934         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29935         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29936         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29937         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29938         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29939         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29940         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29941         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29942         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29943         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29944         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29945         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29946         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29947         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29948         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29949         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29950         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29951         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29952         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29953         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29954         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29955         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29956         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29957         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29958         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29959         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29960         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29961         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29962         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29963         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29964         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29965         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29966         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29967         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29968         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29969         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29970         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29971         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29972         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29973         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29974         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29975         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29976         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29977         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29978         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29979         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29980         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29981         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29982         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29983         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
30000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
30002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
30004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
30006         * sysdeps/unix/sysv/linux/pread.c: Likewise.
30007         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
30008         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
30009         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
30010         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
30011         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
30012         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
30013         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
30014         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
30015         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
30016         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
30017         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
30018         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
30019         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
30020         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
30021         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
30022         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
30023         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
30024         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
30025         * sysdeps/unix/sysv/linux/system.c: Likewise.
30026         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
30027         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
30028         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
30029         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
30030         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
30031         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
30032         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
30033
30034         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
30035         * configure: Regenerated.
30036         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
30037
30038         * configure.ac (base_machine): Do not set specially for particular
30039         machines here.
30040         * configure: Regenerated.
30041         * sysdeps/powerpc/preconfigure: Move machine and base_machine
30042         settings from configure.ac.
30043         * sysdeps/i386/preconfigure: New file.
30044         * sysdeps/s390/preconfigure: Likewise.
30045         * sysdeps/sh/preconfigure: Likewise.
30046         * sysdeps/sparc/preconfigure: Likewise.
30047
30048 2014-06-25  Roland McGrath  <roland@hack.frob.com>
30049
30050         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
30051         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
30052         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
30053         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
30054         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
30055         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
30056         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
30057         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
30058         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
30059         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
30060         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
30061         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
30062         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
30063         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
30064         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
30065         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
30066         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
30067         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
30068         * sysdeps/sparc/sparc64/Makefile: ... appended here.
30069
30070         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
30071         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
30072         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
30073         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
30074         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
30075         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
30076         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
30077         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
30078         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
30079         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
30080         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
30081         * sysdeps/sparc/sparc32/sem_post.c: ... here.
30082         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
30083         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
30084         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
30085         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
30086         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
30087         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
30088         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
30089         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
30090         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
30091         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
30092         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
30093         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
30094         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
30095         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
30096         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
30097         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
30098         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
30099         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
30100         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
30101         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
30102         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
30103         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
30104         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
30105         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
30106         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
30107         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
30108
30109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
30110         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
30111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
30112         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
30113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
30114         Moved ...
30115         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
30116         ... here.
30117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
30118         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
30119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
30120         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
30121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
30122         Moved ...
30123         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
30124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
30125         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
30126         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
30127         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
30128         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
30129         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
30130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
30131         Moved ...
30132         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
30133         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
30134         Moved ...
30135         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
30136         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
30137         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
30138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
30139         Moved ...
30140         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
30141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
30142         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
30143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
30144         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
30145         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
30146         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
30147         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
30148         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
30149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
30150         Moved ...
30151         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
30152         ... here.
30153         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
30154         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
30155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
30156         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
30157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
30158         Moved ...
30159         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
30160         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
30161         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
30162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
30163         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
30164         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
30165         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
30166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
30167         Moved ...
30168         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
30169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
30170         Moved ...
30171         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
30172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
30173         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
30174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
30175         Moved ...
30176         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
30177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
30178         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
30179         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
30180         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
30181
30182 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30183
30184         * timezone/checktab.awk: Update from tzcode 2014e.
30185         * timezone/private.h: Likewise.
30186         * timezone/tzfile.h: Likewise.
30187         * timezone/zdump.c: Likewise.
30188         * timezone/zic.c: Likewise.
30189
30190         * sysdeps/unix/sysv/linux/kernel-features.h
30191         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
30192         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
30193         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
30194         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
30195         Remove conditional code.
30196
30197 2014-06-25  Will Newton  <will.newton@linaro.org>
30198
30199         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
30200         (_dl_arm_cap_flags): Add HWCAP2 values.
30201         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30202         (_DL_HWCAP_COUNT): Increase to 37.
30203         (_DL_HWCAP_LAST): New define.
30204         (_DL_HWCAP2_LAST): New define.
30205         (_dl_procinfo): Add support for printing
30206         AT_HWCAP2 entries.
30207         (_dl_string_hwcap): Use _dl_hwcap_string.
30208
30209 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30210
30211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30212
30213 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30214
30215         * README: Do not mention ports directory.
30216
30217         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30218         Remove macro.
30219         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30220         <kernel-features.h>.
30221         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30222         conditional variable definition.
30223         (__futimes): Update comment.
30224         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30225         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30226
30227         [BZ #16560]
30228         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30229         arguments close to 0.
30230         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30231         Likewise.
30232         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30233         Likewise.
30234         * math/auto-libm-test-in: Add more tests of exp10.
30235         * math/auto-libm-test-out: Regenerated.
30236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30237
30238         * sysdeps/unix/sysv/linux/kernel-features.h
30239         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30240         * sysdeps/unix/sysv/linux/readv.c: Do not include
30241         <kernel-features.h>.
30242         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30243         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30244         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30245         unconditional.
30246         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30247         conditional code.
30248         * sysdeps/unix/sysv/linux/writev.c: Do not include
30249         <kernel-features.h>.
30250         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30251         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30252         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30253         unconditional.
30254         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30255         conditional code.
30256
30257 2014-06-25  Will Newton  <will.newton@linaro.org>
30258
30259         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30260         comment changes throughout the file.  Remove checks
30261         for HAVE_*_H definitions that are not required.
30262         (__gen_tempname): Call abort if an unknown kind value is
30263         passed.
30264
30265 2014-06-25  Andreas Schwab  <schwab@suse.de>
30266
30267         [BZ #17086]
30268         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30269         scalbln, scalblnf, scalblnl in libc.
30270
30271 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30272
30273         [BZ #17086]
30274         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30275         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30276         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30277
30278 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30279
30280         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30281         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30282         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30283         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30284         Update #include.
30285         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30286         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30287         Update #include.
30288         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30289         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30290         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30291         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30292         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30293         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30294         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30295         * sysdeps/x86/bits/semaphore.h: ... here.
30296         * sysdeps/x86/nptl/elide.h: Moved ...
30297         * sysdeps/x86/elide.h: ... here.
30298         * sysdeps/x86_64/nptl/Implies: File removed.
30299         * sysdeps/i386/nptl/Implies: File removed.
30300
30301 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30302
30303         [BZ #16539]
30304         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30305         return the argument for normal arguments with exponent below -64.
30306         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30307         Likewise.
30308         * math/auto-libm-test-in: Add another test of expm1.
30309         * math/auto-libm-test-out: Regenerated.
30310
30311         [BZ #16287]
30312         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30313         calling __erfcl for arguments at least 16.
30314         * math/auto-libm-test-in: Add more tests of erf.
30315         * math/auto-libm-test-out: Regenerated.
30316
30317         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30318         individual architectures.
30319         * sysdeps/unix/sysv/linux/configure: Regenerated.
30320         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30321         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30322         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30323         (ldd_rewrite_script): Define variable.
30324         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30326         file.
30327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30328         generated file.
30329         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30330         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30331         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30332         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30333         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30334         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30335         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30336         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30337
30338 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30339
30340         [BZ #17084]
30341         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30342         Rename member __data.d to __data.__elision_data.
30343
30344 2014-06-24  Wilco  <wdijkstr@arm.com>
30345
30346         * NEWS: Add 16918 to fixed bug list.
30347
30348 2014-06-24  Wilco  <wdijkstr@arm.com>
30349
30350         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30351
30352 2014-06-24  Wilco  <wdijkstr@arm.com>
30353
30354         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30355         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30356         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30357         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30358         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30359         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30360         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30361         Use _FPU_MASK_RM.
30362
30363 2014-06-24  Wilco  <wdijkstr@arm.com>
30364
30365         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30366
30367 2014-06-24  Wilco  <wdijkstr@arm.com>
30368
30369         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30370         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30371         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30372         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30373
30374 2014-06-24  Wilco  <wdijkstr@arm.com>
30375
30376         [BZ #16918]
30377         * sysdeps/arm/feupdateenv.c (feupdateenv):
30378         Rewrite to reduce FPSCR accesses and fix return value.
30379
30380 2014-06-24  Wilco  <wdijkstr@arm.com>
30381
30382         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30383         Optimize to avoid unnecessary FPSCR writes.
30384         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30385         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30386         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30387         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30388
30389 2014-06-24  Wilco  <wdijkstr@arm.com>
30390
30391         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30392         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30393         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30394         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30395         Call libc_fetestexcept_vfp.
30396         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30397         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30398         __SOFTFP__ ifdef so that they can be built for softfp.
30399
30400 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30401
30402         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30403         argument type signed char.
30404
30405         * Makerules (check-abi): Dump diff of symlist if the test
30406         fails.
30407
30408 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30409
30410         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30411         using abort.
30412
30413         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30414         Remove unused variable ST.
30415
30416 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30417
30418         [BZ #16354]
30419         [BZ #17061]
30420         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30421         small arguments before calling __expm1.
30422         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30423         small arguments before calling __expm1f.
30424         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30425         small arguments before calling __expm1l.
30426         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30427         Likewise.
30428         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30429         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30430         spurious underflow for some cosh tests.
30431         * math/auto-libm-test-out: Regenerated.
30432         * sysdeps/i386/fpu/libm-test-ulps: Update.
30433
30434         [BZ #17050]
30435         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30436         (__ieee754_y1): Set errno if return value overflows.
30437         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30438         (__ieee754_y1f): Set errno if return value overflows.
30439         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30440         (__ieee754_y1l): Set errno if return value overflows.
30441         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30442         (__ieee754_y1l): Set errno if return value overflows.
30443         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30444         * math/auto-libm-test-out: Regenerated.
30445
30446         * math/gen-auto-libm-tests.c: Document use of
30447         ignore-zero-inf-sign.
30448         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30449         (input_flags): Add ignore-zero-inf-sign.
30450         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30451         * math/gen-libm-test.pl (generate_testfile): Handle
30452         ignore-zero-inf-sign.
30453         * math/auto-libm-test-in: Mark some cpow tests with
30454         ignore-zero-inf-sign and some with xfail-rounding.
30455         * math/auto-libm-test-out: Regenerated.
30456         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30457         * sysdeps/i386/fpu/libm-test-ulps: Update.
30458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30459
30460         [BZ #16315]
30461         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30462         overflowing or underflowing operations take place with sign of
30463         result.
30464         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30465         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30466         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30467         (__ieee754_pow): Recompute overflowing and underflowing results in
30468         original rounding mode.
30469         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30470         (__powl_helper): Allow negative argument X and scale negated value
30471         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30472         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30473         overflowing or underflowing operations take place with sign of
30474         result.
30475         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30476         Include <math.h>.
30477         * math/auto-libm-test-in: Add more tests of pow.
30478         * math/auto-libm-test-out: Regenerated.
30479         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30480         (pow_tonearest_test_data): Remove.
30481         (pow_test_tonearest): Likewise.
30482         (pow_towardzero_test_data): Likewise.
30483         (pow_test_towardzero): Likewise.
30484         (pow_downward_test_data): Likewise.
30485         (pow_test_downward): Likewise.
30486         (pow_upward_test_data): Likewise.
30487         (pow_test_upward): Likewise.
30488         (main): Don't call removed functions.
30489         * sysdeps/i386/fpu/libm-test-ulps: Update.
30490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30491
30492 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30493
30494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30495         Moved ...
30496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30498         Moved ...
30499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30501         Moved ...
30502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30504         Moved ...
30505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30507         File removed.
30508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30509         File removed.
30510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30511         File removed.
30512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30513         File removed.
30514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30515         File removed.
30516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30517         File removed.
30518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30519         File removed.
30520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30521         File removed.
30522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30523         File removed.
30524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30525         File removed.
30526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30527         File removed.
30528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30529         File removed.
30530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30531         Moved ...
30532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30534         Moved ...
30535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30536         ... here.
30537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30538         Moved ...
30539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30541         Moved ...
30542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30544         Moved ...
30545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30547         Moved ...
30548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30550         Moved ...
30551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30553         Moved ...
30554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30556         Moved ...
30557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30560         ... here.
30561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30562         Moved ...
30563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30565         Moved ...
30566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30567         ... here.
30568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30569         Moved ...
30570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30571         ... here.
30572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30573         Moved ...
30574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30575         ... here.
30576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30577         Moved ...
30578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30580         Moved ...
30581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30585         Moved ...
30586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30587         ... here.
30588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30589         Moved ...
30590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30591         ... here.
30592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30593         Moved ...
30594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30596         Moved ...
30597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30599         Moved ...
30600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30602         Moved ...
30603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30605         Moved ...
30606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30607         ... here.
30608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30609         Moved ...
30610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30612         Moved ...
30613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30615         Moved ...
30616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30618         Moved ...
30619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30623         Moved ...
30624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30626         Moved ...
30627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30629         Moved ...
30630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30631         ... here.
30632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30633         Moved ...
30634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30635         ... here.
30636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30637         Moved ...
30638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30639         ... here.
30640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30641         Moved ...
30642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30644         Moved ...
30645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30647         Moved ...
30648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30650         Moved ...
30651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30652         ... here.
30653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30654         Moved ...
30655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30656         ... here.
30657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30658         Moved ...
30659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30660         ... here.
30661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30662         Moved ...
30663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30665         Moved ...
30666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30667
30668 2014-06-23  Will Newton  <will.newton@linaro.org>
30669             Wilco  <wdijkstr@arm.com>
30670
30671         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30672         implementation.  Include get-rounding-mode.h.
30673         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30674         [!libc_feholdsetround_noex_ctx]: Define
30675         libc_feholdsetround_noex_ctx.
30676         [!libc_feholdsetround_noexf_ctx]: Define
30677         libc_feholdsetround_noexf_ctx.
30678         [!libc_feholdsetround_noexl_ctx]: Define
30679         libc_feholdsetround_noexl_ctx.
30680         (libc_feholdsetround_ctx): New function.
30681         (libc_feresetround_ctx): New function.
30682         (libc_feholdsetround_noex_ctx): New function.
30683         (libc_feresetround_noex_ctx): New function.
30684
30685 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30686
30687         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30688         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30689         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30690         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30691         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30692         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30693
30694         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30695         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30696         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30697         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30698         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30699         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30700         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30701         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30702         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30703         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30704         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30705         Moved ...
30706         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30707         ... here.
30708         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30709         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30710         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30711         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30712         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30713         Moved ...
30714         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30715         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30716         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30717         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30718         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30719         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30720         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30721         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30722         Moved ...
30723         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30724         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30725         Moved ...
30726         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30727         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30728         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30729         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30730         Moved ...
30731         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30732         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30733         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30734         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30735         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30736         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30737         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30738         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30739         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30740         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30741         Moved ...
30742         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30743         ... here.
30744         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30745         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30746         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30747         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30748         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30749         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30750         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30751         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30752         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30753         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30754         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30755         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30756         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30757         Moved ...
30758         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30759         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30760         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30761         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30762         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30763         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30764         Moved ...
30765         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30766         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30767         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30768         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30769         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30770
30771         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30772         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30773         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30774         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30775         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30776         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30777         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30778         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30779         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30780         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30781         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30782         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30783         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30784         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30785         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30786         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30787         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30788         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30789         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30790         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30791         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30792         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30793         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30794         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30795         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30796         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30797         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30798         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30799
30800 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30801
30802         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30803         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30804         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30805         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30806         (IPV6_PMTUDISC_INTERFACE): Likewise.
30807         (IPV6_PMTUDISC_OMIT): Likewise.
30808
30809 2014-06-23  Andreas Schwab  <schwab@suse.de>
30810
30811         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30812         Remove unused errout label.
30813
30814 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30815
30816         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30817         macro: hardware supports Vector Crypto instructions.
30818
30819 2014-06-23  Will Newton  <will.newton@linaro.org>
30820
30821         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30822         rather than __builtin_expect.
30823
30824         * elf/dl-lookup.c (undefined_msg): Remove variable.
30825         (_dl_lookup_symbol_x): Replace undefined_msg with string
30826         literal.
30827
30828         * elf/dl-lookup.c (do_lookup_unique): New function.
30829         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30830         to a separate function.
30831
30832 2014-06-23  Andreas Schwab  <schwab@suse.de>
30833
30834         [BZ #17079]
30835         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30836         before reading the next line.
30837
30838 2014-06-23  Will Newton  <will.newton@linaro.org>
30839
30840         * test-skeleton.c (signal_handler): Use printf and %m
30841         rather than perror.  Use printf rather than fprintf to
30842         stderr.  Use puts rather than fputs to stderr.
30843         (main): Likewise.
30844
30845 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30846
30847         * nscd/nscd.c (thread_info_t): Remove typedef.
30848         (thread_info): Remove variable.
30849
30850 2014-06-21  Allan McRae  <allan@archlinux.org>
30851
30852         * NEWS: Mention CVE-2014-4043.
30853
30854 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30855
30856         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30857         * nptl/smp.h: ... here.
30858
30859         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30860
30861         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30862         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30863         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30864         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30865
30866         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30867         * nptl/stack-aliasing.h: New file.
30868         * sysdeps/i386/i686/stack-aliasing.h: New file.
30869         * sysdeps/i386/i686/nptl/Makefile: File removed.
30870         * sysdeps/x86_64/stack-aliasing.h: New file.
30871         * sysdeps/x86_64/nptl/Makefile
30872         (CFLAGS-pthread_create.c): Variable removed.
30873
30874         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30875         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30876         old file.
30877         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30878         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30879         old file.
30880
30881 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30882
30883         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30884         (__ASSUME_SIGFRAME_V2): Remove macro.
30885         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30886         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30887         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30888         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30889         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30890         Declare as function.  Remove conditional macro definitions.
30891         (__default_rt_sa_restorer): Likewise.
30892         (__default_sa_restorer_v1): Remove declaration.
30893         (__default_sa_restorer_v2): Likewise.
30894         (__default_rt_sa_restorer_v1): Likewise.
30895         (__default_rt_sa_restorer_v2): Likewise.
30896         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30897         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30898         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30899
30900 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30901
30902         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30903         (libpthread-routines): Add sysdep.
30904         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30905         * sysdeps/unix/sysv/linux/sparc/Versions
30906         (libpthread: GLIBC_2.3.3): New version set.
30907         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30908         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30909         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30910         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30911         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30912         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30913         Moved ...
30914         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30915         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30916         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30917         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30918         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30919         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30920         * sysdeps/sparc/nptl/sem_init.c: ... here.
30921         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30922         * sysdeps/sparc/nptl/sem_post.c: ... here.
30923         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30924         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30925         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30926         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30927         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30928         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30929         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30930         (libpthread-routines): Add cpu_relax.
30931         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30932         File removed.
30933         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30934         (librt: GLIBC_2.3.3): New version set.
30935         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30936         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30937         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30938         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30939         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30940         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30941         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30942         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30943         Moved ...
30944         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30945         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30946         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30947         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30948         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30949         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30950         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30951         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30952         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30953         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30954         Moved ...
30955         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30956         Update #include.
30957         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30958         Moved ...
30959         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30960         Update #include.
30961         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30962         Moved ...
30963         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30964         Update #include.
30965         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30966         Moved ...
30967         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30968         Update #include.
30969         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30970         Moved ...
30971         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30972         Update #include.
30973         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30974         Moved ...
30975         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30976         Update #include.
30977         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30978         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30979         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30980         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30981         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30982         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30983         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30984         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30985         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30986         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30987         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30988         Moved ...
30989         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30990         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30991         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30992         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30993         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30994
30995 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30996
30997         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30998         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30999         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
31000         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
31001         * nscd/nscd.c: Likewise.
31002         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
31003         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
31004         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
31005         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
31006
31007         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
31008         <kernel-features.h>.
31009         (init_mq_netlink): Remove conditional have_sock_cloexec
31010         definitions.  Remove code conditional on have_sock_cloexec < 0.
31011         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
31012         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
31013         * sysdeps/unix/sysv/linux/opensock.c: Do not include
31014         <kernel-features.h>.
31015         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
31016         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
31017
31018 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31019
31020         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
31021         Add tests for memset_chk and memset.
31022
31023         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
31024         with AVX2_Usable.
31025
31026 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
31027
31028         [BZ #16046]
31029         * elf/tst-dl-iter-static.c: New file.
31030         * elf/Makefile (tests-static): Add tst-dl-iter-static.
31031
31032         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
31033         error.
31034
31035 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
31036
31037         * sysdeps/unix/sysv/linux/kernel-features.h
31038         (__ASSUME_F_GETOWN_EX): Remove macro.
31039         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
31040         <kernel-features.h>.
31041         (miss_F_GETOWN_EX): Remove variable or macro.
31042         (do_fcntl): Do not check miss_F_GETOWN_EX.
31043         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
31044
31045         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
31046         Remove macro.
31047         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
31048         [!__ASSUME_AT_RANDOM]: Remove conditional code.
31049         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
31050
31051         * sysdeps/unix/sysv/linux/kernel-features.h
31052         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
31053         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
31054         [ADJ_OFFSET_SS_READ]: Make code unconditional.
31055         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
31056
31057 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
31058
31059         [BZ #17075]
31060         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
31061         Fix calculation of the symbol's value.
31062         * sysdeps/arm/tst-armtlsdescloc.c: New file.
31063         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
31064         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
31065         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
31066         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
31067         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
31068         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
31069         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
31070         (modules-names): Add `tst-armtlsdescmod',
31071         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
31072         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
31073         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
31074         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
31075         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
31076         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
31077         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
31078         ($(objpfx)tst-armtlsdescloc): New dependency.
31079         ($(objpfx)tst-armtlsdescextnow): Likewise.
31080         ($(objpfx)tst-armtlsdescextlazy): Likewise.
31081         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
31082         TLS scheme support.
31083         * sysdeps/arm/configure: Regenerate.
31084
31085 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
31086
31087         * include/fcntl.h (__atfct_seterrno): Remove prototype.
31088         (__atfct_seterrno_2): Likewise.
31089         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
31090         <kernel-features.h>.
31091         (__ASSUME_ATFCTS): Do not undefine and redefine.
31092         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
31093         (__have_atfcts): Remove conditional definition.
31094         (__fxstatat([__NR_fstatat64]: Make code unconditional.
31095         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
31096         unreachable if [__ASSUME_ATFCTS].
31097         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
31098         not undefine and redefine.
31099         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
31100         <kernel-features.h>.
31101         (faccessat) [__NR_faccessat]: Make code unconditional.
31102         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
31103         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
31104         <kernel-features.h>.
31105         (fchmodat) [__NR_fchmodat]: Make code unconditional.
31106         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31107         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
31108         <kernel-features.h>.
31109         (fchownat) [__NR_fchownat]: Make code unconditional.
31110         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
31111         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
31112         <kernel-features.h>.
31113         (futimesat) [__NR_futimesat]: Make code unconditional.
31114         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
31115         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
31116         <kernel-features.h>.
31117         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
31118         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31119         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
31120         <kernel-features.h>.
31121         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
31122         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
31123         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
31124         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
31125         <kernel-features.h>.
31126         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
31127         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31128         * sysdeps/unix/sysv/linux/linkat.c: Do not include
31129         <kernel-features.h>.
31130         (linkat) [__NR_linkat]: Make code unconditional.
31131         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31132         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
31133         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
31134         <kernel-features.h>.
31135         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
31136         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
31137         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
31138         <kernel-features.h>.
31139         (mkdirat) [__NR_mkdirat]: Make code unconditional.
31140         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
31141         * sysdeps/unix/sysv/linux/openat.c: Do not include
31142         <kernel-features.h>.
31143         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
31144         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
31145         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
31146         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
31147         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
31148         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
31149         <kernel-features.h>.
31150         (readlinkat) [__NR_readlinkat]: Make code unconditional.
31151         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
31152         result of INLINE_SYSCALL directly, not via int variable.
31153         * sysdeps/unix/sysv/linux/renameat.c: Do not include
31154         <kernel-features.h>.
31155         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
31156         (renameat) [__NR_renameat]: Make code unconditional.
31157         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
31158         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
31159         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
31160         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
31161         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
31162         (__ASSUME_ATFCTS): Do not undefine and redefine.
31163         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
31164         <kernel-features.h>.
31165         (symlinkat) [__NR_symlinkat]: Make code unconditional.
31166         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31167         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
31168         <kernel-features.h>.
31169         (unlinkat) [__NR_unlinkat]: Make code unconditional.
31170         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31171         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
31172         (__ASSUME_ATFCTS): Do not undefine and redefine.
31173         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
31174         <kernel-features.h>.
31175         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
31176         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31177         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
31178         <kernel-features.h>.
31179         (__xmknodat) [__NR_mknodat]: Make code unconditional.
31180         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31181
31182 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31183
31184         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
31185
31186 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
31187
31188         [BZ #17069]
31189         * posix/regcomp.c (parse_reg_exp): Deallocate partially
31190         constructed tree before returning error.
31191         * posix/bug-regexp36.c: Expand test case.
31192
31193 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
31194
31195         [BZ #6803]
31196         * math/libm-test.inc (scalbln_test_date):
31197         Add errno expectations.
31198         * math/w_scalblnf.c: New File.
31199         Add wrapper which checks for setting errno to ERANGE.
31200         Add weak_alias for corresponding scalbln function.
31201         * math/w_scalbln.c: Likewise.
31202         * math/w_scalblnl.c: Likewise.
31203         * math/Makefile (libm-calls): Add w_scalbln.
31204         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31205         Remove weak_alias for corresponding scalbln function.
31206         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31207         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31208         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31209         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31210         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31211         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31212         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31213         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31214         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31215         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31216         Remove long_double_symbol for scalblnl function in libm, libc.
31217         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31218         Add wrapper which checks for setting errno to ERANGE.
31219         Add long_double_symbol for scalblnl function in libm, libc.
31220         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31221         Remove long_double_symbol for scalblnl in libm.
31222         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31223         Add wrapper which checks for setting errno to ERANGE.
31224         Add long_double_symbol for scalblnl function in libm.
31225         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31226         Do not use wrapper because of own implementation.
31227
31228 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31229
31230         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31231         3 bytes for __pad1 for x32.
31232         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31233
31234 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31235             H.J. Lu  <hongjiu.lu@intel.com>
31236
31237         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31238         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31239         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31240         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31241         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31242
31243 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31244
31245         [BZ #17069]
31246         * posix/regcomp.c (parse_expression): Deallocate partially
31247         constructed tree before returning error.
31248         * posix/Makefile.c (tests): Add bug-regex36.
31249         (generated): Add bug-regex36.mtrace.
31250         (tests-special): Add $(objpfx)bug-regex36-mem.out
31251         (bug-regex36-ENV): New variable.
31252         ($(objpfx)bug-regex36-mem.out): New rule.
31253         * posix/bug-regex36.c: New file.
31254
31255 2014-06-19  Will Newton  <will.newton@linaro.org>
31256
31257         * malloc/malloc.c (systrim): If extra is zero then return
31258         early.
31259
31260 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31261
31262         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31263
31264 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31265
31266         * sysdeps/aarch64/strchr.S: New file.
31267
31268 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31269
31270         [BZ #17022]
31271         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31272         from arguments -2 or below.
31273         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31274         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31275
31276 2014-06-18  Andreas Schwab  <schwab@suse.de>
31277
31278         [BZ #17062]
31279         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31280         of a bracket expr not to run off the end of the string.
31281         * posix/Makefile (tests): Add tst-fnmatch3.
31282         * posix/tst-fnmatch3.c: New file.
31283
31284 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31285
31286         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31287         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31288         [$(cross-compiling) = no]: Likewise.
31289         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31290         [$(cross-compiling) = no]: Likewise.
31291
31292 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31293
31294         [BZ #17031]
31295         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31296         double, adjusted for any remainder from the high double.
31297         * math/libm-test.inc (nearbyint): Add tests.
31298         (rint): Likewise.
31299
31300 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31301
31302         * nptl/sysdeps/powerpc/Makefile: Moved ...
31303         * sysdeps/powerpc/nptl/Makefile: ... here.
31304         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31305         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31306         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31307         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31308         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31309         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31310         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31311         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31312         * nptl/sysdeps/powerpc/tls.h: Moved ...
31313         * sysdeps/powerpc/nptl/tls.h: ... here.
31314
31315 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31316
31317         [BZ #16681]
31318         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31319         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31320         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31321         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31322         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31323         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31324         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31325         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31326         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31327
31328 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31329
31330         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31331
31332 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31333
31334         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31335         defined operator.
31336
31337         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31338         $TIMEOUTFACTOR.
31339
31340 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31341
31342         [BZ #17058]
31343         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31344         non-executed part of the test.
31345
31346 2014-06-16  Andreas Schwab  <schwab@suse.de>
31347
31348         * string/bits/string2.h (strdup, strndup): Update feature guard.
31349
31350 2014-06-14  David S. Miller  <davem@davemloft.net>
31351
31352         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31353
31354 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31355
31356         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31357         that was previously under [RESET_PID].
31358         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31359
31360         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31361         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31362         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31363         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31364         (__libc_vfork): New strong alias.
31365         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31366
31367 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31368
31369         * sysdeps/generic/elide.h: New file.
31370
31371 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31372
31373         * Makefile (installed-headers): Adjust path of pthread.h header.
31374
31375 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31376
31377         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31378         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31379         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31380         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31381
31382         * nptl/sysdeps/s390/Makefile: Moved ...
31383         * sysdeps/s390/nptl/Makefile: ... here.
31384         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31385         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31386         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31387         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31388         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31389         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31390         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31391         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31392         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31393         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31394         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31395         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31396         * nptl/sysdeps/s390/tls.h: Moved ...
31397         * sysdeps/s390/nptl/tls.h: ... here.
31398
31399         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31400         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31401
31402 2014-06-13  David S. Miller  <davem@davemloft.net>
31403
31404         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31405         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31406         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31407         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31408         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31409         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31410         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31411         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31412         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31413         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31414         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31415         Remove RESET_PID cpp guards.
31416         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31417         Remove RESET_PID cpp guards.
31418         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31419
31420 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31421
31422         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31423         __sp to uintptr_t.
31424
31425 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31426
31427         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31428         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31429         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31430         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31431         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31432         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31433         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31434         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31435         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31436         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31437         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31438         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31439         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31440         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31441         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31442         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31443         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31444         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31445         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31446         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31447
31448         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31449         (pthread_rwlock_rdlock): Add elision.
31450         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31451         (pthread_rwlock_wrlock): Add elision.
31452         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31453         (pthread_rwlock_trywrlock): Add elision.
31454         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31455         (pthread_rwlock_tryrdlock): Add elision.
31456         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31457         (pthread_rwlock_tryrdlock): Add elision unlock.
31458         * nptl/sysdeps/pthread/pthread.h:
31459         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31460         (PTHREAD_RWLOCK_INITIALIZER,
31461         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31462         Handle new elision field.
31463         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31464         * sysdeps/arm/nptl/bits/pthreadtypes.h
31465         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31466         * sysdeps/sh/nptl/bits/pthreadtypes.h
31467         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31468         * sysdeps/tile/nptl/bits/pthreadtypes.h
31469         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31470         * sysdeps/a/nptl/bits/pthreadtypes.h
31471         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31472         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31473         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31474         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31475         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31476         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31477         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31478         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31479         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31480         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31481         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31482         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31483         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31484         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31485         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31486         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31487         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31488         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31489         (elision_init): Set try_xbegin to zero when no RTM.
31490         * sysdeps/x86/nptl/bits/pthreadtypes.h
31491         (pthread_rwlock_t): Change __pad1 to __rwelision.
31492         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31493
31494 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31495
31496         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31497         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31498         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31499         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31500
31501 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31502
31503         [BZ #16996]
31504         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31505         that the cached result has been set before returning it.
31506
31507 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31508
31509         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31510         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31511         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31512         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31513         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31514         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31515
31516         * nptl/sysdeps/sparc/Makefile: Moved ...
31517         * sysdeps/sparc/nptl/Makefile: ... here.
31518         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31519         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31520         * nptl/sysdeps/sparc/tls.h: Moved ...
31521         * sysdeps/sparc/nptl/tls.h: ... here.
31522         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31523         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31524         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31525         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31526         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31527         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31528         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31529         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31530         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31531         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31532         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31533         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31534         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31535         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31536         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31537         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31538         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31539         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31540         Update #include.
31541         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31542         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31543         Update #include.
31544         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31545         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31546         Update #include.
31547         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31548         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31549         Update #include.
31550
31551         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31552
31553         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31554         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31555
31556         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31557         (struct list_links): Type removed.
31558         (struct thread_node, struct timer_node): Replace struct list_links
31559         with struct list_head.
31560         (list_unlink_ip): Likewise.
31561         * sysdeps/pthread/timer_routines.c
31562         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31563         (list_append, list_insbefore): Likewise.
31564         (list_init): Function removed.
31565         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31566         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31567         * sysdeps/pthread/Makefile: ... here, new file.
31568
31569         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31570         * sysdeps/nptl/Implies: ... here.
31571         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31572         * nptl/sysdeps/pthread/list.h: Moved ...
31573         * include/list.h: ... here.
31574         * nptl/sysdeps/pthread/createthread.c: Moved ...
31575         * nptl/createthread.c: ... here.
31576         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31577         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31578         * nptl/pt-longjmp.c: ... here.
31579         * nptl/sysdeps/pthread/Makefile: Moved ...
31580         * sysdeps/nptl/Makefile: ... here.
31581         * nptl/sysdeps/pthread/Subdirs: Moved ...
31582         * sysdeps/nptl/Subdirs: ... here.
31583         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31584         * sysdeps/nptl/aio_misc.h: ... here.
31585         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31586         * sysdeps/nptl/bits/libc-lock.h: ... here.
31587         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31588         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31589         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31590         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31591         * nptl/sysdeps/pthread/configure: Moved ...
31592         * sysdeps/nptl/configure: ... here.
31593         * nptl/sysdeps/pthread/configure.ac: Moved ...
31594         * sysdeps/nptl/configure.ac: ... here.
31595         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31596         * sysdeps/nptl/gai_misc.h: ... here.
31597         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31598         * sysdeps/nptl/librt-cancellation.c: ... here.
31599         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31600         * sysdeps/nptl/malloc-machine.h: ... here.
31601         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31602         * sysdeps/nptl/pthread-functions.h: ... here.
31603         * nptl/sysdeps/pthread/pthread.h: Moved ...
31604         * sysdeps/nptl/pthread.h: ... here.
31605         * nptl/sysdeps/pthread/setxid.h: Moved ...
31606         * sysdeps/nptl/setxid.h: ... here.
31607         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31608         * sysdeps/nptl/sigfillset.c: ... here.
31609         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31610         * sysdeps/nptl/tcb-offsets.h: ... here.
31611         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31612         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31613         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31614         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31615         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31616         * sysdeps/pthread/allocalim.h: ... here.
31617         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31618         * sysdeps/pthread/bits/sigthread.h: ... here.
31619         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31620         * sysdeps/pthread/flockfile.c: ... here.
31621         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31622         * sysdeps/pthread/ftrylockfile.c: ... here.
31623         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31624         * sysdeps/pthread/funlockfile.c: ... here.
31625         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31626         * sysdeps/pthread/posix-timer.h: ... here.
31627         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31628         * sysdeps/pthread/timer_create.c: ... here.
31629         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31630         * sysdeps/pthread/timer_delete.c: ... here.
31631         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31632         * sysdeps/pthread/timer_getoverr.c: ... here.
31633         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31634         * sysdeps/pthread/timer_gettime.c: ... here.
31635         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31636         * sysdeps/pthread/timer_routines.c: ... here.
31637         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31638         * sysdeps/pthread/timer_settime.c: ... here.
31639         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31640         * sysdeps/pthread/tst-timer.c: ... here.
31641         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31642         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31643
31644         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31645         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31646
31647         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31648         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31649         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31650         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31651         Update #include target.
31652         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31653         * sysdeps/i386/i686/nptl/Makefile: ... here.
31654         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31655         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31656         Update #include target.
31657         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31658         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31659         * nptl/sysdeps/i386/Makefile: Moved ...
31660         * sysdeps/i386/nptl/Makefile: ... here.
31661         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31662         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31663         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31664         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31665         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31666         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31667         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31668         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31669         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31670         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31671         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31672         * nptl/sysdeps/i386/tls.h: Moved ...
31673         * sysdeps/i386/nptl/tls.h: ... here.
31674
31675         * sysdeps/sh/Makefile [$(subdir) = csu]
31676         (gen-as-const-headers): Add tcb-offsets.sym.
31677         * nptl/sysdeps/sh/Makefile: File removed.
31678         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31679         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31680         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31681         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31682         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31683         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31684         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31685         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31686         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31687         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31688         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31689         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31690         * nptl/sysdeps/sh/tls.h: Moved ...
31691         * sysdeps/sh/nptl/tls.h: ... here.
31692         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31693         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31694         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31695         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31696         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31697         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31698         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31699         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31700         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31701         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31702         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31703         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31704         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31705         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31706         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31707         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31708         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31709         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31710         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31711         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31712         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31713         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31714         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31715         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31716         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31717         Moved ...
31718         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31719         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31720         Moved ...
31721         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31722         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31723         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31724         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31725         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31726         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31727         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31728         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31729         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31730         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31731         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31732         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31733         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31734         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31735         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31736         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31737         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31738         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31739         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31740
31741 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31742
31743         * posix/spawn_faction_addopen.c: Include string.h.
31744
31745 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31746
31747         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31748         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31749         * nptl/sysdeps/x86_64/Makefile: Moved ...
31750         * sysdeps/x86_64/nptl/Makefile: ... here.
31751         * nptl/sysdeps/x86_64/configure: Moved ...
31752         * sysdeps/x86_64/nptl/configure: ... here.
31753         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31754         * sysdeps/x86_64/nptl/configure.ac: ... here.
31755         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31756         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31757         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31758         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31759         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31760         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31761         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31762         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31763         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31764         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31765         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31766         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31767         * nptl/sysdeps/x86_64/tls.h: Moved ...
31768         * sysdeps/x86_64/nptl/tls.h: ... here.
31769         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31770         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31771         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31772         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31773
31774         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31775
31776 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31777
31778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31779
31780 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31781
31782         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31783         type.
31784         [POSIX] (off_t): Likewise.
31785         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31786         [POSIX] (S_ISBLK): Require macro.
31787         [POSIX] (S_ISCHR): Likewise.
31788         [POSIX] (S_ISDIR): Likewise.
31789         [POSIX] (S_ISFIFO): Likewise.
31790         [POSIX] (S_ISREG): Likewise.
31791         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31792         optional-macro.
31793         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31794         type.
31795         [POSIX] (time_t): Likewise.
31796         [POSIX] (timer_t): Likewise.
31797
31798 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31799
31800         [BZ #17048]
31801         * posix/spawn_int.h (struct __spawn_action): Make the path string
31802         non-const to support deallocation.
31803         * posix/spawn_faction_addopen.c
31804         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31805         * posix/spawn_faction_destroy.c
31806         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31807         path in all spawn_do_open actions.
31808         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31809         posix_spawn_file_actions_addopen.
31810
31811 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31812
31813         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31814         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31815         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31816         conditional code always true.
31817         (__libc_vfork): New alias.
31818
31819 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31820
31821         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31822         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31823
31824         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31825
31826         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31827         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31828
31829         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31830         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31831
31832         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31833         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31834
31835 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31836
31837         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31838         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31839         multiarch strcmp for PPC64.
31840         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31841         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31842         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31843         multiarch optimizations.
31844         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31845         (__libc_ifunc_impl_list): Likewise.
31846
31847 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31848
31849         * benchtests/scripts/validate_benchout.py: New script.
31850         * benchtests/Makefile (bench-func): Call it.
31851         * benchtests/scripts/benchout.schema.json: New file.
31852
31853 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31854
31855         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31856         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31857         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31858         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31859         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31860         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31861         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31862         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31863         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31864         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31865         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31866         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31867         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31868         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31869         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31870         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31872         Moved ...
31873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31874         ... here.
31875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31876         Moved ...
31877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31878         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31879         Moved ...
31880         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31881         ... here.
31882         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31883         Moved ...
31884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31885         ... here.
31886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31887         Moved ...
31888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31889         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31890         Moved ...
31891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31892         ... here.
31893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31894         Moved ...
31895         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31896         ... here.
31897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31898         Moved ...
31899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31901         Moved ...
31902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31903         ... here.
31904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31905         Moved ...
31906         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31907         ... here.
31908         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31909         Moved ...
31910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31911         ... here.
31912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31913         Moved ...
31914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31916         Moved ...
31917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31918         ... here.
31919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31920         Moved ...
31921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31922         ... here.
31923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31924         Moved ...
31925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31926         ... here.
31927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31928         Moved ...
31929         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31931         Moved ...
31932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31933         ... here.
31934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31935         Moved ...
31936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31937         ... here.
31938         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31939         Moved ...
31940         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31942         Moved ...
31943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31944         ... here.
31945         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31946         Moved ...
31947         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31948         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31949         Moved ...
31950         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31951         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31952         Moved ...
31953         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31954         ... here.
31955         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31956         Moved ...
31957         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31958         ... here.
31959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31960         Moved ...
31961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31962         ... here.
31963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31964         Moved ...
31965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31966         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31967         Moved ...
31968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31969         ... here.
31970         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31971         Moved ...
31972         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31973         ... here.
31974         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31975         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31976         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31977         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31978         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31979         Moved ...
31980         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31981         ... here.
31982         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31983         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31984         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31985         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31986         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31987         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31988         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31989         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31990         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31991         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31992         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31993         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31994         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31995         Moved ...
31996         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31997         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31998         Moved ...
31999         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
32000         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
32001         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
32002         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
32003         Moved ...
32004         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
32005         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
32006         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
32007         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
32008         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
32009         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
32010         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
32011
32012 2014-06-10  Wilco  <wdijkstr@arm.com>
32013
32014         * math/test-fenv-return.c: New file.
32015         * math/Makefile: Add new test test-fenv-return.
32016
32017 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
32018
32019         [BZ #17042]
32020         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
32021         when x - 1 is zero.
32022         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
32023         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
32024         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
32025         0.0L for an argument of 1.0L.
32026         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
32027         Likewise.
32028         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
32029         value when x - 1 is zero.
32030         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
32031         * sysdeps/i386/fpu/libm-test-ulps: Update.
32032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32033
32034 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
32035
32036         [BZ #15119]
32037         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
32038
32039 2014-06-09  Roland McGrath  <roland@hack.frob.com>
32040
32041         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
32042         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
32043
32044 2014-06-09  Roland McGrath  <roland@hack.frob.com>
32045
32046         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
32047         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
32048
32049         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
32050         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
32051
32052         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
32053         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
32054
32055         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
32056         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
32057
32058         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
32059         if not already defined.
32060         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
32061         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
32062         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
32063         (TLS_INIT_TP): Use it.
32064         (TLS_DEFINE_INIT_TP): New macro.
32065         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
32066
32067 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
32068
32069         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
32070         constant.
32071         [POSIX] (IXANY): Likewise.
32072         [POSIX] (OLCUC): Likewise.
32073         [POSIX || POSIX2008] (CBAUD): Do not allow.
32074         [POSIX || POSIX2008] (DEFECHO): Likewise.
32075         [POSIX || POSIX2008] (ECHOCTL): Likewise.
32076         [POSIX || POSIX2008] (ECHOKE): Likewise.
32077         [POSIX || POSIX2008] (ECHOPRT): Likewise.
32078         [POSIX || POSIX2008] (EXTA): Likewise.
32079         [POSIX || POSIX2008] (EXTB): Likewise.
32080         [POSIX || POSIX2008] (FLUSHO): Likewise.
32081         [POSIX || POSIX2008] (LOBLK): Likewise.
32082         [POSIX || POSIX2008] (PENDIN): Likewise.
32083         [POSIX || POSIX2008] (SWTCH): Likewise.
32084         [POSIX || POSIX2008] (VDISCARD): Likewise.
32085         [POSIX || POSIX2008] (VDSUSP): Likewise.
32086         [POSIX || POSIX2008] (VLNEXT): Likewise.
32087         [POSIX || POSIX2008] (VREPRINT): Likewise.
32088         [POSIX || POSIX2008] (VSTATUS): Likewise.
32089         [POSIX || POSIX2008] (VWERASE): Likewise.
32090         (B*): Change to B[0123456789]*.
32091         * conform/data/time.h-data [POSIX || UNIX98]
32092         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
32093         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
32094         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
32095         [POSIX] (tm_*): Do not allow.
32096
32097 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
32098
32099         * Makefile (install): Don't set LANGUAGE.
32100         * Makefile.in (install): Likewise.
32101         * assert/Makefile (test-assert-ENV): Remove variable.
32102         (test-assert-perr-ENV): Likewise.
32103         * elf/Makefile (neededtest4-ENV): Likewise.
32104         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32105         [$(cross-compiling) = no]: Don't set LANGUAGE.
32106         * io/ftwtest-sh (LANG): Remove variable.
32107         * libio/Makefile (tst-widetext-ENV): Likewise.
32108         * manual/install.texi (Running make install): Don't refer to
32109         environment settings for make install.
32110         * INSTALL: Regenerated.
32111         * nptl/tst-tls6.sh: Don't set LANG.
32112         * posix/globtest.sh (LANG): Remove variable.
32113         * string/Makefile (tester-ENV): Likewise.
32114         (inl-tester-ENV): Likewise.
32115         (noinl-tester-ENV): Likewise.
32116         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32117         [$(cross-compiling) = no]: Don't set LANGUAGE.
32118         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
32119         without explicit environment settings.
32120
32121 2014-06-06  Roland McGrath  <roland@hack.frob.com>
32122
32123         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
32124         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
32125         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
32126         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
32127
32128 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
32129
32130         * crypt/crypt-private.h [DOS]: Add some includes taken from the
32131         other files in the crypt directory.
32132         * crypt/crypt.c: Remove duplicate includes.
32133         * crypt/crypt-entry.c: Likewise.
32134         * crypt/crypt_util.c: Likewise.
32135
32136 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
32137
32138         * Makeconfig (run-program-env): New variable.
32139         (run-program-prefix-before-env): Likewise.
32140         (run-program-prefix-after-env): Likewise.
32141         (run-program-prefix): Define in terms of new variables.
32142         (built-program-cmd-before-env): New variable.
32143         (built-program-cmd-after-env): Likewise.
32144         (built-program-cmd): Define in terms of new variables.
32145         (test-program-prefix-before-env): New variable.
32146         (test-program-prefix-after-env): Likewise.
32147         (test-program-prefix): Define in terms of new variables.
32148         (test-program-cmd-before-env): New variable.
32149         (test-program-cmd-after-env): Likewise.
32150         (test-program-cmd): Define in terms of new variables.
32151         * Rules (make-test-out): Use $(run-program-env).
32152         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
32153         (help): Do not mention environment variables.  Mention
32154         --timeoutfactor option.
32155         (timeoutfactor): New variable.
32156         (blacklist_exports): Remove function.
32157         (exports): Remove variable.
32158         (command): Do not include ${exports}.
32159         * manual/install.texi (Configuring and compiling): Do not mention
32160         test wrappers preserving environment variables.  Mention that last
32161         assignment to a variable must take precedence.
32162         * INSTALL: Regenerated.
32163         * benchtests/Makefile (run-bench): Use $(run-program-env).
32164         * catgets/Makefile ($(objpfx)test1.cat): Use
32165         $(built-program-cmd-before-env), $(run-program-env) and
32166         $(built-program-cmd-after-env).
32167         ($(objpfx)test2.cat): Do not specify environment variables
32168         explicitly.
32169         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
32170         $(run-program-env) and $(built-program-cmd-after-env).
32171         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
32172         $(run-program-env) and $(test-program-cmd-after-env).
32173         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
32174         explicitly.
32175         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
32176         run_program_env and test_program_cmd_after_env arguments.
32177         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
32178         * elf/tst-pathopt.sh: Use run_program_env argument.
32179         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
32180         $(test-wrapper-env) and $(run-program-env).
32181         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
32182         run_program_env arguments.
32183         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
32184         * intl/Makefile ($(objpfx)tst-gettext.out): Use
32185         $(test-program-prefix-before-env), $(run-program-env) and
32186         $(test-program-prefix-after-env).
32187         ($(objpfx)tst-gettext2.out): Likewise.
32188         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
32189         run_program_env and test_program_prefix_after_env arguments.
32190         * intl/tst-gettext2.sh: Likewise.
32191         * intl/tst-gettext4.sh: Do not set environment variables
32192         explicitly.
32193         * intl/tst-gettext6.sh: Likewise.
32194         * intl/tst-translit.sh: Likewise.
32195         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
32196         $(test-program-prefix-before-env), $(run-program-env) and
32197         $(test-program-prefix-after-env).
32198         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
32199         run_program_env and test_program_prefix_after_env arguments.
32200         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32201         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32202         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32203         explicitly with each use of ${test_wrapper_env}.
32204         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32205         $(test-program-prefix-before-env), $(run-program-env) and
32206         $(test-program-prefix-after-env).
32207         * posix/tst-getconf.sh: Do not set environment variables
32208         explicitly.
32209         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32210         run_program_env and test_program_prefix_after_env arguments.
32211         * stdio-common/tst-printf.sh: Do not set environment variables
32212         explicitly.
32213         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32214         $(test-program-prefix-before-env), $(run-program-env) and
32215         $(test-program-prefix-after-env).
32216         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32217         run_program_env and test_program_prefix_after_env arguments.
32218         Split $test calls into $test_pre and $test.
32219         * timezone/Makefile (build-testdata): Use
32220         $(built-program-cmd-before-env), $(run-program-env) and
32221         $(built-program-cmd-after-env).
32222
32223 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32224
32225         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32226         strlen for non SHARED builds.
32227
32228 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32229
32230         * nptl/allocatestack.c (check_list): Inlined function...
32231         (__reclaim_stacks): ... here.
32232
32233 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32234
32235         [BZ #15698]
32236         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32237         memory overrun.
32238
32239 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32240
32241         * Rules (make-test-out): Include
32242         LOCPATH=$(common-objpfx)localedata in default environment.
32243         * debug/Makefile (tst-chk1-ENV): Remove variable.
32244         (tst-chk2-ENV): Likewise.
32245         (tst-chk3-ENV): Likewise.
32246         (tst-chk4-ENV): Likewise.
32247         (tst-chk5-ENV): Likewise.
32248         (tst-chk6-ENV): Likewise.
32249         (tst-lfschk1-ENV): Likewise.
32250         (tst-lfschk2-ENV): Likewise.
32251         (tst-lfschk3-ENV): Likewise.
32252         (tst-lfschk4-ENV): Likewise.
32253         (tst-lfschk5-ENV): Likewise.
32254         (tst-lfschk6-ENV): Likewise.
32255         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32256         (tst-iconv7-ENV): Likewise.
32257         * intl/Makefile (LOCPATH-ENV): Likewise.
32258         (tst-codeset-ENV): Likewise.
32259         (tst-gettext3-ENV): Likewise.
32260         (tst-gettext5-ENV): Likewise.
32261         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32262         (tst-fopenloc-ENV): Likewise.
32263         (tst-fgetws-ENV): Remove variable.
32264         (tst-ungetwc1-ENV): Likewise.
32265         (tst-ungetwc2-ENV): Likewise.
32266         (bug-ungetwc2-ENV): Likewise.
32267         (tst-swscanf-ENV): Likewise.
32268         (bug-ftell-ENV): Likewise.
32269         (tst-fgetwc-ENV): Likewise.
32270         (tst-fseek-ENV): Likewise.
32271         (tst-ftell-partial-wide-ENV): Likewise.
32272         (tst-ftell-active-handler-ENV): Likewise.
32273         (tst-ftell-append-ENV): Likewise.
32274         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32275         (tst-regexloc-ENV): Likewise.
32276         (bug-regex1-ENV): Likewise.
32277         (tst-regex-ENV): Likewise.
32278         (tst-regex2-ENV): Likewise.
32279         (bug-regex5-ENV): Likewise.
32280         (bug-regex6-ENV): Likewise.
32281         (bug-regex17-ENV): Likewise.
32282         (bug-regex18-ENV): Likewise.
32283         (bug-regex19-ENV): Likewise.
32284         (bug-regex20-ENV): Likewise.
32285         (bug-regex22-ENV): Likewise.
32286         (bug-regex23-ENV): Likewise.
32287         (bug-regex25-ENV): Likewise.
32288         (bug-regex26-ENV): Likewise.
32289         (bug-regex30-ENV): Likewise.
32290         (bug-regex32-ENV): Likewise.
32291         (bug-regex33-ENV): Likewise.
32292         (bug-regex34-ENV): Likewise.
32293         (bug-regex35-ENV): Likewise.
32294         (tst-rxspencer-ENV): Likewise.
32295         (tst-rxspencer-no-utf8-ENV): Likewise.
32296         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32297         (tst-sscanf-ENV): Likewise.
32298         (tst-swprintf-ENV): Likewise.
32299         (tst-swscanf-ENV): Likewise.
32300         (test-vfprintf-ENV): Likewise.
32301         (scanf13-ENV): Likewise.
32302         (bug14-ENV): Likewise.
32303         (tst-grouping-ENV): Likewise.
32304         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32305         (tst-strtod3-ENV): Likewise.
32306         (tst-strtod4-ENV): Likewise.
32307         (tst-strtod5-ENV): Likewise.
32308         (testmb2-ENV): Likewise./
32309         * string/Makefile (tst-strxfrm-ENV): Likewise.
32310         (tst-strxfrm2-ENV): Likewise.
32311         (bug-strcoll1-ENV): Likewise.
32312         (test-strcasecmp-ENV): Likewise.
32313         (test-strncasecmp-ENV): Likewise.
32314         * time/Makefile (tst-strptime-ENV): Likewise.
32315         (tst-ftime_l-ENV): Likewise.
32316         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32317         (tst-mbrtowc-ENV): Likewise.
32318         (tst-wcrtomb-ENV): Likewise.
32319         (tst-mbrtowc2-ENV): Likewise.
32320         (tst-c16c32-1-ENV): Likewise.
32321         (tst-mbsnrtowcs-ENV): Likewise.
32322
32323 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32324
32325         * manual/resource.texi (How to get information about the memory
32326         subsystem?): Fix typo.
32327         Reported by Peon de la Parra Ivan <peon@keba.com>
32328
32329 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32330
32331         [BZ #16882]
32332         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32333         (pthread_spin_lock): Branch out of spin loop to proper location.
32334         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32335         (pthread_spin_lock): Likewise.
32336
32337         * nptl/tst-spin4.c: New test.
32338         * nptl/Makefile (tests): Add tst-spin4.
32339
32340 2014-06-03  Andreas Schwab  <schwab@suse.de>
32341
32342         [BZ #15946]
32343         * resolv/res_send.c (send_dg): Reload file descriptor after
32344         calling reopen.
32345
32346 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32347
32348         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32349
32350 2014-06-03  Richard Henderson  <rth@redhat.com>
32351
32352         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32353         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32354         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32355         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32356         in the SAVE_PID block.
32357         (__libc_vfork): New alias.
32358         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32359
32360         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32361         child in registers, not on the stack.  Remove RESET_PID conditionals.
32362         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32363
32364 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32365
32366         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32367
32368 2014-06-03  Wilco  <wdijkstr@arm.com>
32369
32370         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32371         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32372         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32373         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32374         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32375         Likewise.
32376
32377 2014-06-03  Wilco  <wdijkstr@arm.com>
32378
32379         * sysdeps/aarch64/fpu/math_private.h
32380         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32381         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32382         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32383         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32384         Fix declarations.
32385
32386 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32387
32388         * crypt/crypt-private.h: Include ufc-crypt.h.
32389         (__b64_from_24bit): Declare extern.
32390         * crypt/crypt_util.c(__b64_from_24bit): New function.
32391         (b64t): New static const variable.
32392         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32393         (b64t): Remove variable.
32394         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32395         * crypt/sha256-crypt.c: Include crypt-private.h.
32396         (b64t): Remove variable.
32397         (__sha256_crypt_r): Remove b64_from_24bit and replace
32398         with __b64_from_24bit.
32399         * crypt/sha512-crypt.c: Likewise.
32400
32401 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32402
32403         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32404         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32405         Label the code __libc_vfork rather than __vfork.
32406         [!NOT_IN_libc] (vfork): Define as weak alias.
32407         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32408         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32409         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32410
32411 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32412
32413         * malloc/malloc.c (malloc_info): Fix format specifier for
32414         n_mmaps.
32415
32416 2014-06-02  Wilco  <wdijkstr@arm.com>
32417
32418         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32419         FPCR write.
32420
32421 2014-06-02  Wilco  <wdijkstr@arm.com>
32422
32423         [BZ #17009]
32424         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32425         Rewrite to reduce FPCR/FPSR accesses.
32426
32427 2014-06-01  David S. Miller  <davem@davemloft.net>
32428
32429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32430
32431 2014-05-31  David S. Miller  <davem@davemloft.net>
32432
32433         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32434         to occur in round to nearest mode when |x| >= 2.0
32435
32436 2014-05-30  Richard Henderson  <rth@twiddle.net>
32437
32438         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32439         (PSEUDO_RET_NOERRNO): Remove.
32440         (ret): Don't redefine.
32441         (ret_NOERRNO): Define in terms of ret.
32442         (ret_ERRVAL): Likewise.
32443
32444         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32445         use of PSEUDO_RET; perform the error check directly.
32446
32447 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32448
32449         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32450         with __int128_t.
32451
32452 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32453
32454         * malloc/malloc (malloc_info): Fix formatting.
32455
32456 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32457             Roland McGrath  <roland@hack.frob.com>
32458
32459         * malloc/malloc (malloc_info): Also print mmapped statistics.
32460
32461 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32462
32463         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32464         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32465
32466 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32467
32468         * malloc/malloc.c (malloc_info): Inline mi_arena.
32469
32470 2014-05-29  Richard Henderson  <rth@twiddle.net>
32471
32472         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32473         Remove comma before expanding ASM_ARGS_##nr.
32474         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32475         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32476         of ASM_ARGS_##nr.
32477         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32478         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32479         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32480         (ASM_ARGS_1): Add leading comma.
32481
32482         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32483         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32484         to __errno_location.
32485         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32486         Remove the expected plt for __errno_location.
32487
32488         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32489         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32490         call to __read_tp.
32491
32492         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32493         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32494         it and break it down.
32495         (DOCARGS_0, DOCARGS_1): Do nothing.
32496         (DOCARGS_2): Update to store into the new stack frame.
32497         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32498         (UNDOCARGS_1): Update to restore from the new stack frame.
32499         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32500         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32501
32502         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32503         (SINGLE_THREAD_P): New parameter for result regno.
32504         (PSEUDO): Update to match; use cbz instead of beq.
32505
32506         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32507         Use ENTRY to define the _nocancel entry point.  Share the syscall
32508         and syscall error check paths with the cancel path.
32509         (PSEUDO_END): New.
32510
32511         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32512         whitespace; tabs before and after asm mnemonics.
32513
32514 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32515
32516         [BZ #15132]
32517         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32518         Call fstat64 or stat64 internally, depending on arguments passed.
32519         Replace stat buffer argument with file descriptor argument.
32520         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32521         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32522         Pass fd to __internal_statvfs instead of calling fstat64.
32523         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32524         Pass fd to __internal_statvfs64 instead of calling fstat64.
32525         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32526         Pass -1 to __internal_statvfs instead of calling stat64.
32527         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32528         Pass -1 to __internal_statvfs64 instead of calling stat64.
32529
32530 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32531
32532         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32533         that was previously under [RESET_PID].
32534         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32535
32536         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32537         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32538
32539 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32540
32541         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32542
32543         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32544         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32545
32546 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32547
32548         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32549
32550 2014-05-27  Andreas Schwab  <schwab@suse.de>
32551
32552         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32553         TLS_INIT_TP macro.
32554         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32555         * elf/rtld.c (init_tls, dl_main): Likewise.
32556         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32557         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32558         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32559         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32560         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32561         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32562         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32563         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32564         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32565         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32566         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32567         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32568         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32569         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32570         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32571         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32572         * sysdeps/generic/tls.h: Update description.
32573
32574 2014-05-27  Will Newton  <will.newton@linaro.org>
32575
32576         [BZ #16990]
32577         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32578         and restore r2 rather than just restoring.
32579
32580 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32581
32582         [BZ #16724]
32583         * libio/tst-ftell-append.c: New test case.
32584         * libio/Makefile (tests): Add test case.
32585         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32586         append mode.
32587         * libio/wfileops.c (do_ftell_wide): Likewise.
32588
32589 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32590
32591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32592
32593         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32594         ...
32595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32597         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32598         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32599         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32600         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32601         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32602         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32603         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32604         Moved ...
32605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32606         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32607         Moved ...
32608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32609         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32610         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32611         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32612         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32613         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32614         ...
32615         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32616         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32617         Moved ...
32618         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32619         here.
32620         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32621         ...
32622         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32623         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32624         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32625
32626         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32627         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32628         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32629         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32630
32631         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32632         merge into ...
32633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32634         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32635         ...
32636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32637         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32638         ...
32639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32640         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32641         Moved ...
32642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32643         here.
32644         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32645         Moved ...
32646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32647         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32648         Moved ...
32649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32650
32651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32652         conditional [RESET_PID].
32653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32654         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32655         removed.
32656         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32657         removed.
32658
32659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32660         <tcb-offsets.h>.
32661         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32662         (__libc_vfork): New strong alias.
32663         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32664         removed.
32665         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32666         Removed.
32667
32668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32669         <tcb-offsets.h>.
32670         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32671         (__libc_vfork): New strong alias.
32672         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32673         removed.
32674         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32675         removed.
32676
32677 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32678
32679         * malloc/malloc.c (mi_arena): New function.
32680         (malloc_info): Remove nested function mi_arena. Call non-nosted
32681         function mi_arena.
32682
32683 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32684
32685         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32686         by insrwi.
32687         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32688         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32689         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32690         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32691         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32692         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32693         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32694
32695 2014-05-26  Andreas Schwab  <schwab@suse.de>
32696
32697         [BZ #16984]
32698         * locale/programs/repertoire.c (repertoire_read): Add slash
32699         between I18NPATH element and file name.
32700         * locale/programs/locfile.c (locfile_read): Likewise.
32701
32702 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32703
32704         * nptl/pthread_mutexattr_settype.c
32705         (__pthread_mutexattr_settype):
32706         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32707
32708 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32709
32710         * nptl/tst-mutex5 (do_test):
32711         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32712
32713 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32714
32715         * benchtests/README: Document 'init' directive.
32716         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32717         BENCH_INIT.
32718         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32719         (parse_file): Recognize 'init' directive.
32720
32721 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32722
32723         [BZ #16796]
32724         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32725         alignment of struct pthread.
32726
32727 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32728
32729         [BZ #16878]
32730         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32731         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32732         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32733         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32734
32735 2014-05-25  Richard Henderson  <rth@twiddle.net>
32736
32737         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32738         (SINGLE_THREAD_P_PIC): Remove.
32739         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32740         (SINGLE_THREAD_P_PIC): Remove.
32741
32742         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32743         branch to syscall error ...
32744         (PSEUDO): ... here.
32745         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32746         from __local_syscall_error to .Lsyscall_error.
32747         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32748         (SYSCALL_ERROR): Update label name.
32749
32750         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32751         Do not use DOARGS/UNDOARGS.
32752         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32753         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32754         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32755         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32756         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32757
32758         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32759         block comment.
32760
32761         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32762         define if !NOT_IN_libc.
32763         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32764         define with non-default symbol versions.
32765
32766 2014-05-23  Richard Henderson  <rth@twiddle.net>
32767
32768         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32769         (vfork, __vfork): Define via compat_symbol.
32770
32771         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32772         [!HAVE_IFUNC] (vfork_compat): Remove.
32773         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32774
32775 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32776
32777         [BZ #16978]
32778         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32779         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32780         variable.
32781
32782 2014-05-23  Richard Henderson  <rth@twiddle.net>
32783
32784         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32785         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32786         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32787         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32788
32789         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32790         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32791         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32792         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32793         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32794         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32795         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32796         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32797         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32798         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32799         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32800         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32801         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32802         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32803         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32804         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32805         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32806         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32807         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32808         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32809         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32810         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32811         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32812         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32813         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32814         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32815         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32816         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32817         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32818         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32819         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32820         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32821         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32822         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32823         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32824         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32825         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32826         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32827         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32828         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32829         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32830         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32831         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32832         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32833         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32834         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32835         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32836         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32837         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32838         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32839         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32840         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32841         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32842         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32843         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32844         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32845
32846         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32847         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32848         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32849         before exiting on error.
32850         (__libc_vfork): New strong alias.
32851         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32852         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32853
32854         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32855         that was previously under [RESET_PID].
32856         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32857
32858         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32859
32860 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32861
32862         [BZ #16977]
32863         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32864         value when x - 1 is zero.
32865         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32866         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32867         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32868         0.0L for an argument of 1.0L.
32869         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32870         Likewise.
32871         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32872         value when x - 1 is zero.
32873         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32874         * sysdeps/i386/fpu/libm-test-ulps: Update.
32875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32876
32877 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32878
32879         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32880         alphasort and versionsort.
32881
32882 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32883
32884         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32885         macro.
32886         [copysignf]: Likewise.
32887
32888 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32889
32890         * crypt/md5-crypt.c: Fix formatting.
32891
32892 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32893
32894         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32895         (b64_from_24bit): New function.
32896
32897 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32898
32899         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32900         libc_hidden_builtin_def to ifunc.
32901         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32902         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32903
32904 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32905
32906         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32907         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32908
32909 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32910
32911         * nscd/Depend (linuxthreads): Remove.
32912         (nptl): Add.
32913         * resolv/Depend (linuxthreads): Remove.
32914         * rt/Depend (linuxthreads): Remove.
32915
32916         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32917         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32918         $(common-objpfx)elf/.
32919         (link-libc-before-gnulib): Likewise.
32920         (elfobjdir): Remove variable.
32921         * Makefile (install): Use $(elf-objpfx) instead of
32922         $(common-objpfx)elf/.
32923         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32924         $(elfobjdir)/.
32925         (link-libc-deps): Likewise.
32926         ($(common-objpfx)libc.so): Likewise.
32927         ($(common-objpfx)linkobj/libc.so): Likewise.
32928         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32929         instead of $(common-objpfx)elf/.
32930         (symbolic-link-list): Likewise.
32931         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32932         [$(cross-compiling) = no]: Likewise.
32933         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32934         $(elfobjdir)/.
32935         (static-gnulib-arch): Likewise.
32936         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32937         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32938         $(common-objpfx)elf/.
32939
32940 2014-05-21  Richard Henderson  <rth@redhat.com>
32941
32942         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32943         (SINGLE_THREAD_P): Use the correct width load.  Fold
32944         into the ldr offset.
32945
32946         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32947         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32948
32949 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32950
32951         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32952         (libgcc_s_resume): Use __attribute_used__.
32953         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32954         Likewise.
32955
32956 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32957
32958         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32959         optimization when used with float constants.
32960
32961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32962
32963 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32964
32965         [BZ #16915]
32966         * locale/nl_langinfo_l.c: Make direct reference to every
32967         _nl_current_CATEGORY symbol.
32968         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32969         (tests-static): Add tst-langinfo-static.
32970         (tests-special): Add tst-langinfo-static.out.
32971         ($(objpfx)tst-langinfo.out): Redirect output.
32972         ($(objpfx)tst-langinfo-static.out): New.
32973         * localedata/tst-langinfo.sh: Send output to stdout.
32974         * localedata/tst-langinfo-static.c: New file.
32975
32976         [BZ #16965]
32977         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32978         when the shift amount is modulo the limb size.
32979
32980 2014-05-20  Richard Henderson  <rth@redhat.com>
32981
32982         [BZ #16967]
32983         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32984         Change type of sa_flags from unsigned int to int.
32985
32986         [BZ #16966]
32987         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32988
32989         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32990
32991 2014-05-20  Will Newton  <will.newton@linaro.org>
32992
32993         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32994         Test the return value of the system call in the nocancel case.
32995
32996 2014-05-20  Will Newton  <will.newton@linaro.org>
32997             Yvan Roux  <yvan.roux@linaro.org>
32998
32999         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
33000         #include of asm/ptrace.h.
33001         (PTRACE_GET_THREAD_AREA): Remove #undef.
33002         (PTRACE_GETHBPREGS): Likewise.
33003         (PTRACE_SETHBPREGS): Likewise.
33004         (struct user_regs_struct): New structure.
33005         (struct user_fpsimd_struct): New structure.
33006         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
33007         #include of asm/ptrace.h and second #include of sys/user.h.
33008         (PTRACE_GET_THREAD_AREA): Remove #undef.
33009         (PTRACE_GETHBPREGS): Likewise.
33010         (PTRACE_SETHBPREGS): Likewise.
33011         (ELF_NGREG): Use new struct user_regs_struct.
33012         (elf_fpregset_t): Use new struct user_fpsimd_struct.
33013
33014 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33015
33016         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
33017         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
33018
33019 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
33020
33021         [BZ #16958]
33022         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
33023         membar to avoid block loads/stores to overlap previous stores.
33024
33025 2014-05-17  Richard Henderson  <rth@redhat.com>
33026
33027         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
33028         Create the __##syscall_name##_nocancel entry point.
33029         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
33030         Remove; let the sysdep-cancel.h code create it.
33031
33032 2014-05-17  David S. Miller  <davem@davemloft.net>
33033
33034         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
33035         Protect with __USE_GNU.
33036         (TIOCSET_TEMPT): Likewise.
33037         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33038         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
33039         these are already provided in bits/ioctl-types.h
33040
33041 2014-05-16  Roland McGrath  <roland@hack.frob.com>
33042
33043         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
33044         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
33045
33046         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
33047         Use wait4 regardless of [__NR_waitpid].
33048
33049 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
33050
33051         PR libgcc/60166
33052         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
33053         (_FP_NANSIGN_Q): Set the quiet bit.
33054
33055 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
33056
33057         * benchtests/Makefile
33058         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
33059         not $(common-objpfx)math/libm.so.
33060         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
33061         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
33062         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
33063         $(common-objpfx)dlfcn/libdl.so.
33064         ($(objpfx)tst-audit8): Depend on $(libm), not
33065         $(common-objpfx)math/libm.so.
33066         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
33067         not $(common-objpfx)dlfcn/libdl.so.
33068         * math/Makefile
33069         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
33070         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
33071         [$(build-shared) = yes].
33072         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
33073         $(common-objpfx)nptl/libpthread.so.
33074         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
33075         $(common-objpfx)math/libm.so$(libm.so-version) or
33076         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
33077         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
33078         $(common-objpfx)dlfcn/libdl.so.
33079         * setjmp/Makefile (link-libm): Remove variable.
33080         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
33081         * stdio-common/Makefile (link-libm): Remove variable.
33082         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
33083         * stdlib/Makefile (link-libm): Remove variable.
33084         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
33085         ($(objpfx)tst-strtod-round): Likewise.
33086         ($(objpfx)tst-tininess): Likewise.
33087         ($(objpfx)tst-strtod-underflow): Likewise.
33088         ($(objpfx)tst-strtod6): Likewise.
33089         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
33090         $(libdl), not $(common-objpfx)nptl/libpthread.so and
33091         $(common-objpfx)dlfcn/libdl.so.
33092
33093 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33094
33095         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
33096         BSD terminal modes definitions.
33097
33098 2014-05-16  Roland McGrath  <roland@hack.frob.com>
33099
33100         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
33101         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
33102
33103         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
33104         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
33105         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
33106         Don't do #include_next.
33107         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
33108         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
33109         Don't do #include_next.
33110         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
33111         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
33112         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
33113         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
33114
33115 2014-05-16  Allan McRae  <allan@archlinux.org>
33116
33117         * po/sv.po: Update Swedish translation from translation project.
33118
33119         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
33120         in sed expression.
33121
33122 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
33123
33124         [BZ #16917]
33125         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
33126         errno if the TIOCGPTN ioctl fails with an error different than
33127         EINVAL.
33128         * login/tst-ptsname.c: New file.
33129         * login/Makefile (tests): Add tst-ptsname.
33130
33131         [BZ #16943]
33132         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
33133         and prlimit64.
33134
33135 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33136
33137         [BZ #16849]
33138         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
33139         herrno to return EAI_AGAIN.
33140
33141 2014-05-14  Roland McGrath  <roland@hack.frob.com>
33142
33143         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
33144         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
33145         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
33146         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
33147         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
33148         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
33149         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
33150         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
33151         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
33152         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
33153         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
33154         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
33155         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
33156         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
33157         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
33158         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
33159         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
33160         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
33161         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
33162         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
33163         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
33164         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
33165         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
33166         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
33167         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
33168         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
33169         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
33170         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
33171         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
33172         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
33173         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
33174         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
33175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
33176         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
33177         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33178         Moved ...
33179         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
33180         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
33181         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
33182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
33183         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
33184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
33185         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
33186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
33187         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
33188         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
33189         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
33190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
33191         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
33192         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
33193         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
33194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
33195         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
33196         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
33197         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
33198         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
33199         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
33200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33201         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33202         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33203         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33204         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33205         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33206         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33207         Moved ...
33208         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33209         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33210         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33211         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33212         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33213         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33214         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33215         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33216         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33217         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33218         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33220         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33221         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33222         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33223         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33224         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33225         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33226         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33227         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33228         Moved ...
33229         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33231         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33232
33233         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33234         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33235         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33236         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33237         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33238         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33239         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33240         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33241         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33242         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33243         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33244         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33245         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33246         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33247         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33248         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33249         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33250         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33251         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33252         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33253         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33254         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33255         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33256         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33257         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33258         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33259         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33260         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33261         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33262         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33263         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33264
33265         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33266         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33267
33268         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33269         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33270         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33271         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33272         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33273         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33274         Moved ...
33275         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33276         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33277         Moved ...
33278         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33279         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33280         Moved ...
33281         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33282         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33283         Moved ...
33284         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33285         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33286         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33287         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33288         Moved ...
33289         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33290         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33291         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33292         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33293         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33294         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33295         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33296         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33297         Moved ...
33298         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33299         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33300         Moved ...
33301         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33302         ... here.
33303         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33304         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33305         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33306         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33307         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33308         Moved ...
33309         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33310         ... here.
33311         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33312         Moved ...
33313         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33314         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33315         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33316         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33317         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33318         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33319         Moved ...
33320         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33321         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33322         Moved ...
33323         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33324         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33325         Moved ...
33326         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33327         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33328         Moved ...
33329         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33330         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33331         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33332         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33333         Moved ...
33334         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33335         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33336         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33337         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33338         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33339         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33340         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33341         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33342         Moved ...
33343         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33344         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33345         Moved ...
33346         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33347         ... here.
33348         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33349         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33350         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33351         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33352         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33353         Moved ...
33354         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33355         ... here.
33356         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33357         Moved ...
33358         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33359         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33360         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33361         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33362         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33363         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33364         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33365         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33366         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33367         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33368         Moved ...
33369         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33370         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33371         Moved ...
33372         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33373         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33374         Moved ...
33375         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33376         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33377         Moved ...
33378         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33379         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33380         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33381         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33382         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33383         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33384         Moved ...
33385         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33386         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33387         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33388         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33389         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33390         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33391         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33392         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33393         Moved ...
33394         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33395         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33396         Moved ...
33397         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33398         ... here.
33399         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33400         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33401         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33402         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33403         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33404         Moved ...
33405         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33406         ... here.
33407         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33408         Moved ...
33409         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33410         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33411         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33412         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33413         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33414         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33415         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33416         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33417         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33418         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33419         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33420
33421         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33422         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33423
33424         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33425         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33426
33427         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33428         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33429         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33430         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33431         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33432         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33433         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33434         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33435         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33436         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33437         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33438         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33439         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33440         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33441         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33442         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33443         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33444         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33445         Moved ...
33446         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33447         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33448         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33449         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33450         Moved ...
33451         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33452         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33453         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33454         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33455         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33456         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33457         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33458         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33459         Moved ...
33460         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33461         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33462         Moved ...
33463         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33464         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33465         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33466         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33467         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33468         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33469         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33470         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33471         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33472         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33473         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33474         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33475         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33476         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33477         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33478         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33479         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33480
33481         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33482         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33483         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33484         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33485         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33486
33487         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33488         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33489         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33490         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33491         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33492         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33493         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33494         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33495         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33496         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33497
33498         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33499         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33500
33501         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33502         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33503         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33504         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33505         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33506         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33507         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33508         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33509         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33510         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33511         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33512         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33513         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33514         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33515         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33516         Update #include.
33517         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33518         Likewise.
33519         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33520         Likewise.
33521         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33522         Likewise.
33523         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33524         Likewise.
33525         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33526         Likewise.
33527         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33528         Likewise.
33529         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33530         Likewise.
33531         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33532         Likewise.
33533         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33534         Likewise.
33535         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33536         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33537         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33538         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33539         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33540         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33541         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33542         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33543         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33544         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33545         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33546         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33547         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33548         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33549         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33550
33551         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33552         that was previously under [RESET_PID].
33553         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33554         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33555         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33556
33557         * sysdeps/i386/nptl/Implies: New file.
33558         * sysdeps/x86_64/nptl/Implies: New file.
33559         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33560         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33561         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33562         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33563
33564         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33565         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33566         (__libc_vfork): New strong alias.
33567         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33568         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33569
33570         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33571         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33572         (__libc_vfork): New strong alias.
33573         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33574         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33575
33576         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33577         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33578         (__libc_vfork): New strong alias.
33579         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33580         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33581         * nptl/pt-vfork.c: New file.
33582         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33583         (libpthread: GLIBC_2.20): New version set (empty).
33584
33585 2014-05-14  Will Newton  <will.newton@linaro.org>
33586
33587         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33588         rather than #if.
33589
33590 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33591
33592         [BZ #16564]
33593         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33594         arguments with exponent 65 or above.
33595         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33596         arguments 0x1p113L or above.
33597         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33598         to arguments 0x1p107L or above.
33599         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33600         positive arguments with exponent 65 or above.
33601         * math/auto-libm-test-in: Add more tests of log1p.
33602         * math/auto-libm-test-out: Regenerated.
33603
33604         [BZ #16928]
33605         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33606         non-finite arguments is +0.
33607         * math/s_cacosf.c (__cacosf): Likewise.
33608         * math/s_cacosl.c (__cacosl): Likewise.
33609         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33610         * sysdeps/i386/fpu/libm-test-ulps: Update.
33611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33612
33613         [BZ #16927]
33614         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33615         value.
33616         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33617         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33618         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33619         for explicit high bit of mantissa when testing for argument equal
33620         to 1.
33621         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33622         * sysdeps/i386/fpu/libm-test-ulps: Update.
33623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33624
33625         [BZ #16516]
33626         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33627         (__erf): Scale by 16 instead of 8 in potentially underflowing
33628         case.  Ensure exception if result actually underflows.
33629         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33630         (__erff): Scale by 16 instead of 8 in potentially underflowing
33631         case.  Ensure exception if result actually underflows.
33632         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33633         (efx8): Remove variable.
33634         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33635         case.  Ensure exception if result actually underflows.
33636         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33637         (efx8): Remove variable.
33638         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33639         case.  Ensure exception if result actually underflows.
33640         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33641         (efx8): Remove variable.
33642         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33643         case.  Ensure exception if result actually underflows.
33644         * math/auto-libm-test-in: Add more tests of erf.
33645         * math/auto-libm-test-out: Regenerated.
33646
33647 2014-05-14  Andreas Schwab  <schwab@suse.de>
33648
33649         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33650         Remove code conditionalized on USE___THREAD.
33651
33652         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33653         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33654         not definedness.
33655
33656 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33657
33658         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33659         Define unconditionally.
33660         (__ASSUME_O_CLOEXEC): Likewise.
33661         (__ASSUME_SOCK_CLOEXEC): Likewise.
33662         (__ASSUME_IN_NONBLOCK): Likewise.
33663         (__ASSUME_PIPE2): Likewise.
33664         (__ASSUME_EVENTFD2): Likewise.
33665         (__ASSUME_SIGNALFD4): Likewise.
33666         (__ASSUME_DUP3): Likewise.
33667         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33668         (__ASSUME_DUP3): Do not define.
33669         (__ASSUME_EVENTFD2): Likewise.
33670         (__ASSUME_IN_NONBLOCK): Likewise.
33671         (__ASSUME_O_CLOEXEC): Likewise.
33672         (__ASSUME_PIPE2): Likewise.
33673         (__ASSUME_SIGNALFD4): Likewise.
33674         (__ASSUME_SOCK_CLOEXEC): Likewise.
33675         (__ASSUME_UTIMES): Undefine.
33676         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33677         (__ASSUME_UTIMES): Do not define.
33678         (__ASSUME_O_CLOEXEC): Likewise.
33679         (__ASSUME_SOCK_CLOEXEC): Likewise.
33680         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33681         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33682         0x020621].
33683         (__ASSUME_PIPE2): Likewise.
33684         (__ASSUME_EVENTFD2): Likewise.
33685         (__ASSUME_SIGNALFD4): Likewise.
33686         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33687         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33688         Do not define.
33689         (__ASSUME_EVENTFD2): Likewise.
33690         (__ASSUME_SIGNALFD4): Likewise.
33691         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33692         (__ASSUME_32BITUIDS): Likewise.
33693         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33694         (__ASSUME_IPC64): Likewise.
33695         (__ASSUME_ST_INO_64_BIT): Likewise.
33696         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33697         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33698         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33699         (__ASSUME_UTIMES): Do not define.
33700         (__ASSUME_PSELECT): Likewise.
33701         (__ASSUME_PPOLL): Likewise.
33702         (__ASSUME_O_CLOEXEC): Likewise.
33703         (__ASSUME_SOCK_CLOEXEC): Likewise.
33704         (__ASSUME_IN_NONBLOCK): Likewise.
33705         (__ASSUME_PIPE2): Likewise.
33706         (__ASSUME_EVENTFD2): Likewise.
33707         (__ASSUME_SIGNALFD4): Likewise.
33708         (__ASSUME_DUP3): Likewise.
33709         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33710         (__ASSUME_UTIMES): Likewise.
33711         (__ASSUME_O_CLOEXEC): Likewise.
33712         (__ASSUME_SOCK_CLOEXEC): Likewise.
33713         (__ASSUME_IN_NONBLOCK): Likewise.
33714         (__ASSUME_PIPE2): Likewise.
33715         (__ASSUME_EVENTFD2): Likewise.
33716         (__ASSUME_SIGNALFD4): Likewise.
33717         (__ASSUME_DUP3): Likewise.
33718         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33719         (__ASSUME_UTIMES): Likewise.
33720         (__ASSUME_O_CLOEXEC): Likewise.
33721         (__ASSUME_SOCK_CLOEXEC): Likewise.
33722         (__ASSUME_IN_NONBLOCK): Likewise.
33723         (__ASSUME_PIPE2): Likewise.
33724         (__ASSUME_EVENTFD2): Likewise.
33725         (__ASSUME_SIGNALFD4): Likewise.
33726         (__ASSUME_DUP3): Likewise.
33727         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33728         Likewise.
33729         (__ASSUME_UTIMES): Likewise.
33730         (__ASSUME_EVENTFD2): Likewise.
33731         (__ASSUME_SIGNALFD4): Likewise.
33732         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33733         (__ASSUME_O_CLOEXEC): Likewise.
33734         (__ASSUME_SOCK_CLOEXEC): Likewise.
33735         (__ASSUME_IN_NONBLOCK): Likewise.
33736         (__ASSUME_PIPE2): Likewise.
33737         (__ASSUME_EVENTFD2): Likewise.
33738         (__ASSUME_SIGNALFD4): Likewise.
33739         (__ASSUME_DUP3): Likewise.
33740         (__ASSUME_UTIMES): Undefine.
33741
33742         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33743         feclearexcept.  Remove symbol versioning code.
33744         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33745         symbol versioning code.
33746         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33747         symbol versioning code.
33748         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33749         feupdateenv.  Remove symbol versioning code.
33750         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33751         fegetexceptflag.  Remove symbol versioning code.
33752         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33753         fesetexceptflag.  Remove symbol versioning code.
33754         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33755         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33756         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33757         (__posix_fadvise64_l32): Remove prototype.
33758         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33759         code.
33760
33761 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33762
33763         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33764         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33765         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33766         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33767
33768 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33769
33770         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33771         current working directory
33772
33773 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33774
33775         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33776         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33777         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33778         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33779         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33780         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33781         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33782         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33783         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33784         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33785         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33786         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33787         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33788         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33789         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33790         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33791         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33792         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33793         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33794         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33795         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33796         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33797         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33798         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33799         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33800         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33801         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33802         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33803         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33804         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33805         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33806         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33807         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33808         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33809         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33810         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33811         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33812         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33813         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33814         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33815         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33816         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33817
33818         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33819         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33820
33821         * sysdeps/unix/sysv/linux/arm/Makefile
33822         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33823         Add rt-aeabi_unwind_cpp_pr1.
33824         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33825         Add nptl-aeabi_unwind_cpp_pr1.
33826         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33827         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33828         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33829         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33830         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33831         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33832
33833         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33834         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33835         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33836         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33837
33838         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33839         Deconditionalize the code that was previously under [RESET_PID].
33840         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33841
33842         * sysdeps/generic/exit-thread.h: New file.
33843         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33844         * include/unistd.h (__exit_thread): Remove declaration.
33845         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33846         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33847         * csu/libc-start.c: Include <exit-thread.h>.
33848         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33849         * nptl/pthread_create.c: Include <exit-thread.h>.
33850         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33851         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33852         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33853         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33854         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33855         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33856         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33857         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33858         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33859         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33860         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33861         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33862         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33863         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33864         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33865         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33866         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33867
33868 2014-05-13  Andreas Schwab  <schwab@suse.de>
33869
33870         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33871
33872 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33873
33874         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33875         (__ASSUME_UTIMES): Do not condition on kernel version.
33876         (__ASSUME_PSELECT): Define unconditionally.
33877         (__ASSUME_PPOLL): Likewise.
33878         (__ASSUME_ATFCTS): Likewise.
33879         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33880         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33881         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33882         (__ASSUME_UTIMENSAT): Define unconditionally.
33883         (__ASSUME_PRIVATE_FUTEX): Likewise.
33884         (__ASSUME_FALLOCATE): Likewise.
33885         (__ASSUME_O_CLOEXEC): Likewise.
33886         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33887         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33888         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33889         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33890         (__ASSUME_IN_NONBLOCK): Likewise.
33891         (__ASSUME_PIPE2): Likewise.
33892         (__ASSUME_EVENTFD2): Likewise.
33893         (__ASSUME_SIGNALFD4): Likewise.
33894         (__ASSUME_DUP3): Likewise.
33895         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33896         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33897         (__ASSUME_AT_RANDOM): Likewise.
33898         (__ASSUME_PREADV): Likewise.
33899         (__ASSUME_PWRITEV): Likewise.
33900         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33901         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33902         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33903         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33904         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33905         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33906         (__ASSUME_O_CLOEXEC): Define unconditionally.
33907         (__ASSUME_PSELECT): Do not undefine conditionally.
33908         (__ASSUME_PPOLL): Likewise.
33909         (__ASSUME_ATFCTS): Likewise.
33910         (__ASSUME_SET_ROBUST_LIST): Likewise.
33911         (__ASSUME_UTIMENSAT): Likewise.
33912         (__ASSUME_FDATASYNC): Define unconditionally.
33913         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33914         (__ASSUME_SIGFRAME_V2): Likewise.
33915         )__ASSUME_EVENTFD2): Likewise.
33916         (__ASSUME_SIGNALFD4): Likewise.
33917         (__ASSUME_PSELECT): Do not undefine conditionally.
33918         (__ASSUME_PPOLL): Likewise.
33919         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33920         (__ASSUME_PSELECT): Define unconditionally.
33921         (__ASSUME_PPOLL): Likewise.
33922         (__ASSUME_O_CLOEXEC): Likewise.
33923         (__ASSUME_SOCK_CLOEXEC): Likewise.
33924         (__ASSUME_IN_NONBLOCK): Likewise.
33925         (__ASSUME_PIPE2): Likewise.
33926         (__ASSUME_EVENTFD2): Likewise.
33927         (__ASSUME_SIGNALFD4): Likewise.
33928         (__ASSUME_DUP3): Likewise.
33929         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33930         (__ASSUME_O_CLOEXEC): Likewise.
33931         (__ASSUME_SOCK_CLOEXEC): Likewise.
33932         (__ASSUME_IN_NONBLOCK): Likewise.
33933         (__ASSUME_PIPE2): Likewise.
33934         (__ASSUME_EVENTFD2): Likewise.
33935         (__ASSUME_SIGNALFD4): Likewise.
33936         (__ASSUME_DUP3): Likewise.
33937         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33938         (__ASSUME_EVENTFD2): Likewise.
33939         (__ASSUME_SIGNALFD4): Likewise.
33940         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33941
33942 2014-05-12  Andreas Schwab  <schwab@suse.de>
33943
33944         [BZ #16932]
33945         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33946         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33947         than maximum RPC packet size.
33948         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33949         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33950         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33951         (_nss_nis_getservbyport_r): Likewise.
33952
33953 2014-05-12  Will Newton  <will.newton@linaro.org>
33954
33955         * malloc/Makefile (tests): Add tst-mallopt.
33956         * malloc/tst-mallopt.c: New file.
33957
33958 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33959
33960         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33961         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33962
33963 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33964
33965         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33966         (tst-tlsmod6.so): Likewise.
33967
33968 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33969
33970         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33971
33972 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33973
33974         [BZ #16064]
33975         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33976         and <dl-procinfo.h>.
33977         (__fegetenv): Save SSE state in envp->__eip if supported.
33978         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33979         envp->__eip if supported.
33980         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33981         and <dl-procinfo.h>.
33982         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33983         __data_offset and __data_selector in environment to 0.  Set SSE
33984         state if supported.
33985         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33986         test-fenv-sse.
33987         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33988         -mfpmath=sse.
33989         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33990
33991 2014-05-09  Will Newton  <will.newton@linaro.org>
33992
33993         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33994         and libc_relro_required for ARM.
33995         * sysdeps/arm/preconfigure: Regenerate.
33996
33997 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33998             Stefan Liebler  <stli@linux.vnet.ibm.com>
33999
34000         * config.make.in (enable-lock-elision): New Makefile variable.
34001         * configure.ac: Likewise.
34002         * configure: Regenerate.
34003         * sysdeps/s390/configure.ac:
34004         Add check for gcc transactions support.
34005         * sysdeps/s390/configure: Regenerate.
34006         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
34007         Build elision files if enabled.
34008         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
34009         Add lock elision support for s390.
34010         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
34011         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
34012         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
34013         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
34014         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
34015         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
34016         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34017         Likewise.
34018         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
34019         Likewise.
34020         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
34021         Likewise.
34022         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
34023         Likewise.
34024         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
34025         (__lll_timedlock_elision, __lll_lock_elision)
34026         (__lll_unlock_elision, __lll_trylock_elision)
34027         (lll_timedlock_elision, lll_lock_elision)
34028         (lll_unlock_elision, lll_trylock_elision): Add.
34029         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34030         (pthread_mutex_t): Add lock elision support for s390.
34031
34032 2014-05-14  Wilco  <wdijkstr@arm.com>
34033
34034         * sysdeps/arm/fclrexcpt.c: Cleanup.
34035         * sysdeps/arm/fedisblxcpt.c: Cleanup.
34036         * sysdeps/arm/feenablxcpt.c: Cleanup.
34037         * sysdeps/arm/fegetenv.c: Cleanup.
34038         * sysdeps/arm/fegetexcept.c: Cleanup.
34039         * sysdeps/arm/fegetround.c: Cleanup.
34040         * sysdeps/arm/feholdexcpt.c: Cleanup.
34041         * sysdeps/arm/fesetenv.c: Cleanup.
34042         * sysdeps/arm/fesetround.c: Cleanup.
34043         * sysdeps/arm/feupdateenv.c: Cleanup.
34044         * sysdeps/arm/fgetexcptflg.c: Cleanup.
34045         * sysdeps/arm/fraiseexcpt.c: Cleanup.
34046         * sysdeps/arm/fsetexcptflg.c: Cleanup.
34047         * sysdeps/arm/ftestexcept.c: Cleanup.
34048         * sysdeps/arm/get-rounding-mode.h: Cleanup.
34049         * sysdeps/arm/setfpucw.c: Cleanup.
34050
34051 2014-05-09  Will Newton  <will.newton@linaro.org>
34052
34053         * sysdeps/arm/armv7/strcmp.S: New file.
34054         * NEWS: Mention addition of ARMv7 optimized strcmp.
34055
34056 2014-05-08  Roland McGrath  <roland@hack.frob.com>
34057
34058         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
34059         look for %.ac rather than %.in.
34060
34061         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
34062         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
34063         * sysdeps/mach/hurd/configure: Regenerated.
34064         * sysdeps/unix/sysv/linux/configure: Regenerated.
34065
34066         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
34067
34068 2014-05-07  Steve Ellcey  <sellcey@mips.com>
34069
34070         [BZ# 16922]
34071         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
34072         (LONG_SUB): Ditto.
34073         (PTR_SUB): Ditto.
34074
34075 2014-05-07  Andreas Schwab  <schwab@suse.de>
34076
34077         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
34078         when skipping over non-matching result from nscd.
34079
34080 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
34081
34082         [BZ #16876]
34083         * nptl/sockperf.c (client): Check socket return value.
34084
34085         [BZ #16877]
34086         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
34087         nscd security class.
34088
34089 2014-05-06  Roland McGrath  <roland@hack.frob.com>
34090
34091         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
34092         * sysdeps/arm/unwind.h: ... here.
34093
34094 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
34095
34096         [BZ# 16916]
34097         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
34098         Define.
34099
34100 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34101
34102         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
34103         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
34104         multiarch strncpy for PPC64.
34105         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
34106         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
34107         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
34108         multiarch optimizations.
34109         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34110         (__libc_ifunc_impl_list): Likewise.
34111         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
34112         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
34113         multiarch stpncpy for PPC64.
34114         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
34115         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
34116
34117 2014-05-06  Andreas Schwab  <schwab@suse.de>
34118
34119         [BZ #16912]
34120         * gmon/mcount.c (_MCOUNT_DECL): Use
34121         atomic_compare_and_exchange_bool_acq instead of
34122         catomic_compare_and_exchange_bool_acq.
34123
34124 2014-05-05  Roland McGrath  <roland@hack.frob.com>
34125
34126         * elf/Makefile (others, install-bin): Remove pldd.
34127         (pldd-modules): Variable removed.
34128         ($(objpfx)pldd): Target removed.
34129         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
34130         (others, install-bin): Append pldd here.
34131         ($(objpfx)pldd): New target.
34132
34133         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
34134         to 0, so the first #if test emitted later doesn't see it undefined.
34135         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
34136         * sysdeps/gnu/errlist.c: Regenerated.
34137
34138 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34139
34140         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
34141         [libc_hidden_builtin_def]: Define to empty value.
34142         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
34143         [libc_hidden_builtin_def]: Likewise.
34144         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
34145         [libc_hidden_builtin_def]: Likewise.
34146         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
34147         [libc_hidden_builtin_def]: Likewise.
34148         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
34149         __redirect_memcpy and define ifunc as default hidden symbol.
34150         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
34151         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
34152
34153 2014-05-04  Adam Conrad  <adconrad@0c3.net>
34154
34155         * locale/iso-4217.def: Reintroduce XDR currency.
34156
34157 2014-05-04  Allan McRae  <allan@archlinux.org>
34158
34159         * po/eo.po: Update Esperanto translation from translation project.
34160
34161 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
34162
34163         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
34164         and FEATURE_INDEX_MAX to 1.
34165         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
34166
34167 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34168
34169         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
34170         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
34171         * iconvdata/big5.c (ONE_DIRECTION): Define.
34172         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
34173         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
34174         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
34175         * iconvdata/cp932.c (ONE_DIRECTION): Define.
34176         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
34177         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
34178         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
34179         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
34180         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
34181         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
34182         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
34183         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
34184         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
34185         * iconvdata/gbk.c (ONE_DIRECTION): Define.
34186         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
34187         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
34188         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
34189         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
34190         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
34191         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
34192         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
34193         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
34194         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
34195         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
34196         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
34197         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
34198         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
34199         * iconvdata/iso646.c (ONE_DIRECTION): Define.
34200         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34201         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34202         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34203         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34204         * iconvdata/johab.c (ONE_DIRECTION): Define.
34205         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34206         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34207         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34208         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34209         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34210         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34211         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34212         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34213         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34214         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34215
34216 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34217
34218         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34219         (_IO_JUMPS_OFFSET): Define to 0.
34220
34221         * nptl/sysdeps/pthread/bits/libc-lock.h
34222         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34223         (__libc_lock_define_initialized_recursive): Always define using
34224         initializer.  Modern compilers treat uninitialized (implicit zero) and
34225         explicit zero initializers the same (i.e. put the datum in bss).
34226
34227 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34228
34229         * nscd/nscd-client.h: Include <string.h>.
34230
34231 2014-05-01  David S. Miller  <davem@davemloft.net>
34232
34233         [BZ #16885]
34234         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34235         multiple zero bytes exist at the end of a string.
34236         Reported by Aurelien Jarno <aurelien@aurel32.net>
34237
34238         * string/test-strcmp.c (check): Add explicit test for situations where
34239         there are multiple zero bytes after the first.
34240
34241 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34242
34243         [BZ #16890]
34244         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34245         when compiling wprintf.
34246         * stdio-common/tstdiomisc.c (t3): New function.
34247         (main): Call it.
34248
34249 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34250
34251         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34252         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34253         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34254         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34255
34256 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34257
34258         * stdlib/longlong.h: Updated from GCC.
34259
34260 2014-05-01  Will Newton  <will.newton@linaro.org>
34261             Bernard Ogden  <bernie.ogden@linaro.org>
34262
34263         * NEWS: Update fixed bug list.
34264
34265         [BZ #15119]
34266         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34267
34268 2014-04-30  David S. Miller  <davem@davemloft.net>
34269
34270         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34271         (libc_feholdexcept_setround_sparc_ctx): New function.
34272         (libc_fesetenv_sparc_ctx): Likewise.
34273         (libc_feupdateenv_sparc_ctx): Likewise.
34274         (libc_feholdsetround_sparc_ctx): Likewise.
34275         (libc_feholdexcept_setround_ctx): Define.
34276         (libc_feholdexcept_setroundf_ctx): Likewise.
34277         (libc_feholdexcept_setroundl_ctx): Likewise.
34278         (libc_fesetenv_ctx): Likewise.
34279         (libc_fesetenvf_ctx): Likewise.
34280         (libc_fesetenvl_ctx): Likewise.
34281         (libc_feupdateenv_ctx): Likewise.
34282         (libc_feupdateenvf_ctx): Likewise.
34283         (libc_feupdateenvl_ctx): Likewise.
34284         (libc_feresetround_ctx): Likewise.
34285         (libc_feresetroundf_ctx): Likewise.
34286         (libc_feresetroundl_ctx): Likewise.
34287         (libc_feholdsetround_ctx): Likewise.
34288         (libc_feholdsetroundf_ctx): Likewise.
34289         (libc_feholdsetroundl_ctx): Likewise.
34290
34291         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34292         with __USE_GNU instead of XOPEN cpp guards.
34293
34294         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34295         0.
34296
34297         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34298         with XOPEN cpp guards.
34299
34300 2014-04-30  Julian Brown  <julian@codesourcery.com>
34301
34302         [BZ #16888]
34303         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34304         handling.
34305
34306 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34307
34308         [BZ #9894]
34309         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34310         Change to 2.6.32.
34311         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34312         * sysdeps/unix/sysv/linux/configure: Regenerated.
34313         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34314         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34315         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34316         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34317         * README: Update reference to required Linux kernel version.
34318         * manual/install.texi (Linux): Update reference to required Linux
34319         kernel headers version.
34320         * INSTALL: Regenerated.
34321
34322         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34323         header inclusion.
34324         [POSIX] (limits.h): Likewise.
34325         [POSIX] (math.h): Likewise.
34326         [POSIX] (sys/wait.h): Likewise.
34327         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34328         function.
34329         [POSIX] (stddef.h): Do not allow header inclusion.
34330
34331 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34332
34333         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34334
34335 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34336
34337         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34338         Return immediately after lll_futex_wake.
34339
34340 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34341
34342         [BZ #16791]
34343         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34344         structure.
34345         (datahead_init_pos): Call datahead_init_common early.
34346         (datahead_init_neg): Likewise.
34347
34348         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34349         datahead_init_neg): New functions.
34350         * nscd/aicache.c (addhstaiX): Use them.
34351         * nscd/grpcache.c (cache_addgr): Likewise.
34352         * nscd/hstcache.c (cache_addhst): Likewise.
34353         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34354         * nscd/netgroupcache.c (do_notfound): Likewise.
34355         (addgetnetgrentX): Likewise.
34356         (addinnetgrX): Likewise.
34357         * nscd/pwdcache.c (cache_addpw): Likewise.
34358         * nscd/servicescache.c (cache_addserv): Likewise.
34359
34360 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34361             Atsushi Onoe  <atsushi@onoe.org>
34362
34363         [BZ #14308]
34364         [BZ #12994]
34365         [BZ #13651]
34366         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34367         one response is valid.
34368         * resolv/res_send.c (send_dg): Check for validity of other
34369         response if the current response is a referral.
34370
34371 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34372
34373         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34374
34375 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34376
34377         [BZ #16823]
34378         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34379         Always divide by positive zero when computing -Inf result.
34380         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34381         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34382
34383 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34384
34385         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34386         FPSCR if value do not change.
34387         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34388         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34389         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34390         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34391         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34392         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34393         function.
34394
34395 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34396
34397         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34398         * sysdeps/unix/sysv/linux/hppa: Move directory from
34399         ports/systeps/unix/sysv/linux/hppa.
34400         * README: Update listing for hppa-*-linux-gnu.
34401
34402 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34403
34404         [BZ #16754]
34405         * manual/stdio.texi (Hook functions): Fix types of stream hook
34406         functions.
34407         [BZ #16854]
34408         * socket/sys/socket.h: Fix typo in comment.
34409
34410 2014-04-28  Wilco  <wdijkstr@arm.com>
34411
34412         * sysdeps/arm/fenv_private.h: New file.
34413         * sysdeps/arm/math_private.h: New file.
34414         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34415
34416 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34417
34418         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34419         with __int128_t.
34420         (La_x86_64_retval): Likewise.
34421
34422 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34423
34424         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34425         fpsr if value didn't change.
34426         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34427         to fpcr if value didn't change.
34428         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34429         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34430         fpsr or fpcr if value didn't change.
34431         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34432         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34433         fpcr if value didn't change.
34434         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34435         to fpsr if value didn't change.
34436
34437 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34438
34439         * nptl/tst-sem3.c: Use test-skeleton.c
34440         (main): Rename to do_test.  Use return instead of
34441         exit.
34442         * nptl/tst-sem4.c: Use test-skeleton.c
34443         (main): Rename to do_test.
34444
34445 2014-04-22  David S. Miller  <davem@davemloft.net>
34446
34447         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34448         (struct sigaction): New struct member __glibc_reserved0, change
34449         type of sa_flags to int.
34450
34451 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34452
34453         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34454         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34455
34456 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34457
34458         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34459         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34460
34461 2014-04-22  Will Newton  <will.newton@linaro.org>
34462             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34463
34464         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34465         (__longjmp): Add longjmp and longjmp_target SystemTap
34466         probes.
34467         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34468         (__sigsetjmp): Add setjmp SystemTap probe.
34469
34470 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34471
34472         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34473         match manual order.
34474
34475 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34476
34477         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34478
34479         * sysdeps/powerpc/fpu/fenv_private.h
34480         (libc_feholdexcept_setroundl_ctx): Define to
34481         libc_feholdexcept_setround_ppc_ctx.
34482         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34483         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34484         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34485         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34486
34487 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34488
34489         * sysdeps/aarch64/math-tests.h: New file.
34490
34491 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34492
34493         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34494         New.
34495         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34496         Check and set bit_AVX2_Usable.
34497         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34498         macro.
34499         (bit_AVX2): Likewise.
34500         (index_AVX2_Usable): Likewise.
34501         (CPUID_AVX2): Likewise.
34502         (HAS_AVX2): Likewise.
34503
34504 2014-04-17  Will Newton  <will.newton@linaro.org>
34505
34506         * manual/setjmp.texi (System V contexts): Add note that
34507         calling setcontext on a context created by a call to a
34508         signal handler is undefined.  Update text to note that
34509         setcontext from a signal handler is possible but not
34510         recommended.
34511
34512         [BZ #16629]
34513         * stdlib/tst-setcontext.c: Include signal.h.
34514         (main): Check that the signal stack before and
34515         after swapcontext is the same.
34516
34517         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34518         Re-implement to restore registers in user code and avoid
34519         rt_sigreturn system call.
34520
34521 2014-04-17  Wilco  <wdijkstr@arm.com>
34522
34523         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34524         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34525         * math/test-fenv.c: Skip exception trap tests on targets which only
34526         support non-stop mode.
34527
34528 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34529             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34530
34531         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34532         (libc_feholdsetround_aarch64_ctx)
34533         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34534         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34535         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34536         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34537         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34538         (libc_feresetround_noexl_ctx): Define.
34539
34540 2014-04-16  Richard Henderson  <rth@redhat.com>
34541
34542         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34543
34544         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34545         unwind tables.
34546
34547         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34548         const from the non-libc, non-ldso copy.
34549
34550         * sysdeps/alpha/libm-test-ulps: Regenerate.
34551
34552 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34553             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34554
34555         * sysdeps/aarch64/fpu/math_private.h: New file.
34556
34557 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34558
34559         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34560
34561 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34562
34563         [BZ #16275]
34564         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34565         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34566         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34567         Intel MPX bound registers before _dl_profile_fixup.
34568         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34569         registers after _dl_profile_fixup.  Save and restore bound
34570         registers bnd0/bnd1 when calling _dl_call_pltexit.
34571         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34572         (LR_BND_OFFSET): Likewise.
34573         (LRV_BND0_OFFSET): Likewise.
34574         (LRV_BND1_OFFSET): Likewise.
34575
34576 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34577
34578         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34579         to...
34580         * sysdeps/mach/hurd/i386/tls.h: ... here.
34581         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34582         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34583         fields.
34584
34585 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34586
34587         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34588
34589 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34590
34591         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34592
34593 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34594
34595         [BZ #14770]
34596         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34597         * sysdeps/s390/configure: Regenerate.
34598
34599         [BZ #16824]
34600         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34601         Set round-to-nearest internally to reduce error accumulation.
34602
34603 2014-04-16  Alan Modra  <amodra@gmail.com>
34604
34605         [BZ #16740]
34606         [BZ #16619]
34607         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34608         * math/libm-test.inc (frexp_test_data): Add tests.
34609         * NEWS: Update fixed bug list.
34610
34611 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34612
34613         * benchtests/Makefile: Depend on libraries in build directory.
34614         (bench-math): Separate out math tests.
34615         (bench-pthread): Separate out pthread tests.
34616         (bench): Include math and pthread tests.
34617
34618 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34619
34620         [BZ #16831]
34621         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34622         _dl_debug_initialize.
34623
34624         * configure.ac: Remove SELinux header check.
34625         * configure: Regenerate.
34626         * nscd/selinux.c (perms): Array of const char* to permission names.
34627         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34628         default policy. Call string_to_security_class and string_to_av_perm to
34629         translate strings. Enforce default policy and call avs_has_perm with
34630         results of translated strings.
34631
34632 2014-04-13  David S. Miller  <davem@davemloft.net>
34633
34634         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34635
34636 2014-04-12  Allan McRae  <allan@archlinux.org>
34637
34638         [BZ #16838]
34639         * manual/string.texi (Collation Functions): Fix qsort argument
34640         order in example.
34641         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34642
34643 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34644
34645         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34646         Make the test a no-op if there are no exceptions defined.
34647
34648 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34649
34650         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34651         enable-hardcoded-path-in-tests
34652
34653 2014-04-11  Will Newton  <will.newton@linaro.org>
34654
34655         * benchtests/Makefile (extra-objs): Add json-lib.o.
34656         (bench-func): Tidy up JSON output.
34657         * benchtests/bench-skeleton.c: Include json-lib.h.
34658         (main): Use JSON library functions to do output of
34659         benchmark results.
34660         * benchtests/bench-timing-type.c (main): Output the
34661         timing type simply, leaving formatting to the user.
34662         * benchtests/json-lib.c: New file.
34663         * benchtests/json-lib.h: Likewise.
34664
34665 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34666
34667         [BZ #15215]
34668         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34669         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34670         memory barriers.  Add comments.
34671         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34672         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34673         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34674         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34675         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34676         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34677
34678 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34679
34680         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34681         * sysdeps/s390/s390-64/configure.ac: ... this ...
34682         * sysdeps/s390/configure.ac: ... to here.
34683         * sysdeps/s390/s390-32/configure: Delete file.
34684         * sysdeps/s390/s390-64/configure: Delete file.
34685         * sysdeps/s390/configure: Regenerate.
34686
34687 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34688
34689         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34690
34691 2014-04-11  Will Newton  <will.newton@linaro.org>
34692
34693         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34694         to zero if it is not defined elsewhere.  (mtrim): Test
34695         the value of MALLOC_DEBUG with #if rather than #ifdef.
34696
34697 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34698
34699         * benchtests/pthread_once-inputs: New file.
34700         * benchtests/pthread_once-source.c: New file.
34701         * benchtests/README: Update documentation.
34702
34703 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34704             H.J. Lu  <hongjiu.lu@intel.com>
34705
34706         [BZ #16275]
34707         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34708         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34709         * sysdeps/x86_64/configure: Regenerated.
34710         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34711         macro.
34712         (REGISTER_SAVE_RAX): Likewise.
34713         (REGISTER_SAVE_RCX): Likewise.
34714         (REGISTER_SAVE_RDX): Likewise.
34715         (REGISTER_SAVE_RSI): Likewise.
34716         (REGISTER_SAVE_RDI): Likewise.
34717         (REGISTER_SAVE_R8): Likewise.
34718         (REGISTER_SAVE_R9): Likewise.
34719         (REGISTER_SAVE_BND0): Likewise.
34720         (REGISTER_SAVE_BND1): Likewise.
34721         (REGISTER_SAVE_BND2): Likewise.
34722         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34723         bound registers when calling _dl_fixup.
34724
34725 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34726
34727         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34728         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34729         of its definition.
34730         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34731         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34732         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34733         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34734         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34735         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34736         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34737
34738 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34739
34740         [BZ #15514]
34741         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34742         pathconf(_PC_NAME_MAX).
34743
34744 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34745
34746         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34747         Remove macro usage.
34748         (__PTHREAD_SPINS): Move definition to ...
34749         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34750         (__PTHREAD_SPINS): ... here.
34751         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34752         (__PTHREAD_SPIN): Likewise.
34753         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34754         (__PTHREAD_SPIN): Likewise.
34755         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34756         (__PTHREAD_SPIN): Likewise.
34757         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34758         (__PTHREAD_SPIN): Likewise.
34759         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34760         (__PTHREAD_SPIN): Likewise.
34761         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34762         (__PTHREAD_SPIN): Likewise.
34763         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34764         (__PTHREAD_SPIN): Likewise.
34765         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34766         (__PTHREAD_SPIN): Likewise.
34767         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34768         (__PTHREAD_SPIN): Likewise.
34769         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34770         (__PTHREAD_SPIN): Likewise.
34771         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34772         (__PTHREAD_SPIN): Likewise.
34773         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34774         (__PTHREAD_SPIN): Likewise.
34775
34776         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34777         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34778         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34779         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34780         imply folder.
34781         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34782         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34783         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34784         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34785         correct imply path.
34786         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34787         strlen symbol for non multi-arch builds.
34788         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34789         missing hidden_def and weak_alias.
34790
34791 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34792
34793         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34794
34795 2014-04-07  Will Newton  <will.newton@linaro.org>
34796
34797         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34798         and contents.  [!_LIBC] Remove #ifndef and contents.
34799         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34800         * string/memccpy.c (__memccpy): Use ANSI prototype.
34801         * string/memfrob.c (memfrob): Likewise.
34802         * string/strcoll.c (STRCOLL): Likewise.
34803         * string/strlen.c (strlen): Likewise.
34804         * string/strtok.c (STRTOK): Likewise.
34805         * string/strcat.c: Remove unused #include of memcopy.h.
34806         (strcat): Use ANSI prototype.
34807         * string/strchr.c: Remove unused #include of memcopy.h.
34808         (strchr): Use ANSI prototype.
34809         * string/strcmp.c: Remove unused #include of memcopy.h.
34810         (strcmp): Use ANSI prototype.
34811         * string/strcpy.c: Remove unused #include of memcopy.h.
34812         (strcpy): Use ANSI prototype.
34813
34814 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34815
34816         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34817         * config.make.in (config-extra-cppflags): Set it from
34818         libc_extra_cppflags.
34819         * configure.ac (libc_extra_cflags): Make it accumulate over
34820         configure fragments.
34821         (libc_extra_cppflags): New flag.
34822         * configure. Regenerate.
34823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34824         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34825         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34827
34828         [BZ #16815]
34829         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34830         result for FE_DOWNWARD rounding mode.
34831         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34832         Likewise.
34833         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34834
34835 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34836
34837         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34838         in function argument name.
34839
34840 2014-04-03  David Svoboda  <svoboda@cert.org>
34841
34842         [BZ #5666]
34843         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34844         explicitly.
34845
34846 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34847
34848         * elf/dl-unmap-segments.h: New file.
34849         * sysdeps/generic/ldsodefs.h
34850         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34851         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34852         * elf/dl-fptr.c: Likewise.
34853         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34854         * sysdeps/aarch64/tlsdesc.c: Likewise.
34855         * sysdeps/arm/tlsdesc.c: Likewise.
34856         * sysdeps/i386/tlsdesc.c: Likewise.
34857         * sysdeps/tile/dl-runtime.c: Likewise.
34858         * sysdeps/x86_64/tlsdesc.c: Likewise.
34859         * elf/dl-load.h: New file.
34860         * elf/dl-load.c: Include it.
34861         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34862         Macros moved to dl-load.h.
34863         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34864         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34865         Use _dl_unmap_segments in place of __munmap.
34866         Break out segment-mapping loop into ...
34867         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34868
34869 2014-04-03  Will Newton  <will.newton@linaro.org>
34870
34871         * elf/dl-lookup.c (do_lookup_x): Remove comment
34872         referring to nested function and move variable
34873         declarations down to before first use.
34874
34875 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34876
34877         [BZ #16799]
34878         [BZ #16800]
34879         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34880         with 0 numerator.
34881         * math/s_catanf.c (__catanf): Likewise.
34882         * math/s_catanh.c (__catanh): Likewise.
34883         * math/s_catanhf.c (__catanhf): Likewise.
34884         * math/s_catanhl.c (__catanhl): Likewise.
34885         * math/s_catanl.c (__catanl): Likewise.
34886         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34887         by positive zero when computing -Inf result.
34888         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34889         (catanh_test): Likewise.
34890         * sysdeps/i386/fpu/libm-test-ulps: Update.
34891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34892
34893         [BZ #16789]
34894         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34895         instead of using underflowing value in computing result.
34896         * math/s_clog10.c (__clog10): Likewise.
34897         * math/s_clog10f.c (__clog10f): Likewise.
34898         * math/s_clog10l.c (__clog10l): Likewise.
34899         * math/s_clogf.c (__clogf): Likewise.
34900         * math/s_clogl.c (__clogl): Likewise.
34901         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34902         (clog10_test): Likewise.
34903         * sysdeps/i386/fpu/libm-test-ulps: Update.
34904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34905
34906 2014-04-02  Alan Modra  <amodra@gmail.com>
34907
34908         [BZ #16739]
34909         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34910         output when value is near a power of two.  Use int64_t for lx and
34911         remove casts.  Use decimal rather than hex exponent constants.
34912         Don't use long double multiplication when double will suffice.
34913         * math/libm-test.inc (nextafter_test_data): Add tests.
34914         * NEWS: Add 16739 and 16786 to bug list.
34915
34916         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34917
34918         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34919
34920 2014-04-01  Will Newton  <will.newton@linaro.org>
34921
34922         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34923         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34924
34925 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34926
34927         [BZ #13347]
34928         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34929         * nptl/tst-setuid2.c: New file.
34930         * nptl/Makefile (xtests): Add tst-setuid2.
34931
34932 2014-04-01  Alan Modra  <amodra@gmail.com>
34933
34934         [BZ #16786]
34935         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34936
34937 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34938
34939         [BZ #6803]
34940         [BZ #6804]
34941         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34942         set errno as appropriate.
34943         * math/w_scalbf.c (__scalbf): Likewise.
34944         * math/w_scalbl.c (__scalbl): Likewise.
34945         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34946         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34947         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34948         Add more NaN tests.
34949
34950         [BZ #16349]
34951         * math/w_atan2.c: Include <errno.h>.
34952         (__atan2): Set errno for result underflowing to zero.
34953         * math/w_atan2f.c: Include <errno.h>.
34954         (__atan2f): Set errno for result underflowing to zero.
34955         * math/w_atan2l.c: Include <errno.h>.
34956         (__atan2l): Set errno for result underflowing to zero.
34957         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34958         tests.
34959         * math/auto-libm-test-out: Regenerated.
34960
34961 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34962
34963         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34964         Encode instruction correctly in little endian.
34965         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34966         Likewise.
34967         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34968         Likewise.
34969         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34970         Likewise.
34971         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34972         Likewise.
34973
34974 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34975
34976         [BZ #9894]
34977         * sysdeps/unix/sysv/linux/kernel-features.h
34978         [__sparc__ && !__arch64__ && !__sparc_v9__]
34979         (__ASSUME_SET_ROBUST_LIST): Do not define.
34980         [__sparc__ && !__arch64__ && !__sparc_v9__]
34981         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34982         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34983         Likewise.
34984         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34985         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34986         (__ASSUME_REQUEUE_PI): Likewise.
34987         (__ASSUME_SET_ROBUST_LIST): Likewise.
34988         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34989         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34990         Undefine.
34991         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34992         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34993         Likewise.
34994         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34995         Likewise.
34996         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34997         Likewise.
34998         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34999         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
35000         Undefine.
35001         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
35002         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
35003         Likewise.
35004
35005         [BZ #16648]
35006         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35007         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
35008         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
35009
35010 2014-03-31  Will Newton  <will.newton@linaro.org>
35011
35012         * benchtests/Makefile (bench): Add ffs and ffsll to list
35013         of tests.
35014         * benchtests/ffs-inputs: New file.
35015         * benchtests/ffsll-inputs: Likewise.
35016
35017 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
35018
35019         [BZ #16770]
35020         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
35021         too large before casting to int.
35022         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
35023         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
35024         * math/libm-test.inc (scalb_test_data): Add more tests.
35025
35026 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
35027
35028         * benchtests/Makefile (DETAILED_OPT): New make option.
35029         (bench-func): Run benchmark program with -d if DETAILED_OPT is
35030         set.
35031         * benchtests/bench-skeleton.c: Include stdbool.h.
35032         (main): Store and print timings per input.
35033         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
35034         member to each argument value.
35035         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
35036         (_print_arg_data): Initialize per-input timing to 0.
35037
35038         * benchtests/Makefile (timing-type): New binary.
35039         (bench-clean): Also remove bench-timing-type.
35040         (bench): New target for timing-type.
35041         (bench-func): Print output in JSON format.
35042         * benchtests/bench-skeleton.c (main): Print output in JSON
35043         format.
35044         * benchtests/bench-timing-type.c: New file.
35045         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
35046         (TIMING_PRINT_STATS): Remove.
35047         * benchtests/scripts/bench.py (_print_arg_data): Store variant
35048         name separately.
35049
35050         * benchtests/bench-modf.c: Remove.
35051         * benchtests/modf-inputs: New inputs file.
35052
35053 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
35054
35055         [BZ #16362]
35056         * math/s_clog10.c (M_PI_LOG10E): New macro.
35057         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
35058         imaginary parts are 0.
35059         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
35060         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
35061         imaginary parts are 0.
35062         * math/s_clog10l.c (M_PI_LOG10El): New macro.
35063         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
35064         imaginary parts are 0.
35065         * math/libm-test.inc (clog10_test_data): Update expected results
35066         for when real and imaginary parts are 0.
35067
35068 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
35069
35070         * elf/dl-load.c: Finish conversion of __builtin_expect into
35071         __glibc_{un}likely.
35072
35073 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
35074
35075         [BZ #16348]
35076         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
35077         1+x for argument with exponent below -67.
35078         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
35079         Likewise.
35080         * math/auto-libm-test-in: Add more tests of exp.
35081         * math/auto-libm-test-out: Regenerated.
35082
35083 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
35084
35085         [BZ #16759]
35086         * inet/getnetgrent_r.c (get_nonempty_val): New function.
35087         (nscd_getnetgrent): Use it.
35088
35089         [BZ #16760]
35090         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
35091         of stpcpy.
35092
35093 2014-03-27  Andi Kleen  <ak@linux.intel.com>
35094
35095         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
35096         (lll_robust_lock, lll_cond_lock, lll_timedlock)
35097         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
35098         (lll_robust_unlock): Remove out of line section. Use cfi
35099         intrinsics.
35100         (LLL_STUB_UNWIND_INFO*): Remove.
35101         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
35102         (lll_robust_lock, lll_cond_lock, lll_timedlock)
35103         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
35104         (lll_robust_unlock): Remove out of line section. Use cfi
35105         intrinsics.
35106         (LLL_STUB_UNWIND_INFO*): Remove.
35107
35108 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
35109
35110         [BZ #16758]
35111         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
35112         blank values.
35113
35114 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
35115
35116         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
35117
35118 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
35119
35120         [BZ #16198]
35121         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
35122         fnstenv.
35123         * math/test-fenv-preserve.c: New file.
35124         * math/Makefile (tests): Add test-fenv-preserve.
35125
35126 2014-03-26  Will Newton <will.newton@linaro.org>
35127
35128         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
35129
35130 2014-03-25  Roland McGrath  <roland@hack.frob.com>
35131
35132         * scripts/versionlist.awk: Partition the version sets and emit all
35133         GLIBC_* (sorted) before all others (sorted).
35134
35135 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35136
35137         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
35138         GLIBC_2.2.5 version.
35139
35140 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35141
35142         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
35143         calls.
35144
35145         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
35146         previous change.
35147
35148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35149
35150 2014-03-25  Andreas Schwab  <schwab@suse.de>
35151
35152         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
35153         label to be used after in6ailist is initialized.
35154
35155 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35156
35157         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35158         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35159
35160 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35161
35162         [BZ #16357]
35163         [BZ #16599]
35164         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
35165         min_plus_half.
35166         (fp_formats): Update initializers.
35167         (init_fp_formats): Initialize new field.
35168         (output_for_one_input_case): Allow underflow for results up to
35169         min_plus_half.
35170         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
35171         * math/auto-libm-test-in: Don't mark some underflows from asin and
35172         atanh as spurious.
35173         * math/auto-libm-test-out: Regenerated.
35174         * sysdeps/i386/fpu/libm-test-ulps: Update.
35175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35176
35177 2014-03-25  Andreas Schwab  <schwab@suse.de>
35178
35179         * libio/Makefile (tst-ftell-partial-wide-ENV)
35180         (tst-ftell-active-handler-ENV): Define.
35181
35182 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
35183
35184         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
35185
35186 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35187
35188         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
35189
35190 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35191
35192         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
35193         * sysdeps/x86_64/fpu/multiarch/e_exp.c
35194         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
35195
35196 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35197
35198         [BZ #16634]
35199         * elf/dl-load.c (open_verify): Add mode parameter.
35200         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35201         (open_path): Change from boolean 'secure' to complete flag 'mode'
35202         (_dl_map_object): Adjust.
35203         * elf/Makefile (tests): Add tst-dlopen-aout.
35204         * elf/tst-dlopen-aout.c: New test.
35205
35206 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35207
35208         [BZ #16714]
35209         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35210         (struct stat): Rename member pad0 to __glibc_reserved0.
35211
35212         [BZ #16712]
35213         * sysdeps/s390/s390-32/bits/wordsize.h
35214         (__WORDSIZE32_SIZE_ULONG): New define.
35215         * sysdeps/s390/s390-64/bits/wordsize.h
35216         (__WORDSIZE32_SIZE_ULONG): Likewise.
35217         * sysdeps/generic/stdint.h (SIZE_MAX):
35218         Define as UL if __WORDSIZE32_SIZE_ULONG.
35219
35220         [BZ #16713]
35221         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35222         (__glibc_reserved0): New variable.
35223         (sa_flags): Change type to int.
35224
35225         * posix/Makefile (before-compile): Use += before-compile instead
35226         of a :=.
35227
35228         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35229         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35230
35231 2014-03-20  Andreas Schwab  <schwab@suse.de>
35232
35233         [BZ #16743]
35234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35235         non-matching result from nscd.
35236
35237 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35238
35239         * scripts/bench.py: Moved to ...
35240         * benchtests/scripts/bench.py: ... here.
35241         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35242
35243 2014-03-24  Andreas Schwab  <schwab@suse.de>
35244
35245         [BZ #16002]
35246         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35247         alloca_account and account alloca use for struct in6ailist.
35248
35249 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35250
35251         [BZ #16284]
35252         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35253         rounding mode to recompute results that overflow to infinity or
35254         underflow to zero.
35255         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35256         bug 16284.
35257         * math/auto-libm-test-out: Regenerated.
35258         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35259         (ccosh_test): Likewise.
35260         (csin_test_data): Use plus_oflow.
35261         (csin_test): Use ALL_RM_TEST.
35262         (csinh_test_data): Use plus_oflow.
35263         (csinh_test): Use ALL_RM_TEST.
35264         * sysdeps/i386/fpu/libm-test-ulps: Update.
35265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35266
35267 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35268
35269         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35270         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35271         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35272
35273         [BZ #16731]
35274         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35275         when x - 1 is zero.
35276         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35277         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35278         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35279         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35280         argument is 1.
35281         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35282         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35283         zero.
35284         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35285         * sysdeps/i386/fpu/libm-test-ulps: Update.
35286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35287
35288 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35289
35290         * scripts/bench.pl: Remove file.
35291         * scripts/bench.py: New benchmark script.
35292         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35293         * benchtests/README: Mention python dependency.
35294         * scripts/pylintrc: New file.
35295         * scripts/pylint: New file.
35296
35297         * bits/mathdef.h: Use #ifdef instead of #if.
35298         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35299         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35300         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35301         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35302         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35303         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35304
35305 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35306             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35307
35308         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35310         and strpbrk-ppc64 objects.
35311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35312         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35313         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35314         multiarch strpbrk for POWER7.
35315         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35316         multiarch strpbrk for PPC64.
35317         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35318         ifunc selector.
35319         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35320         strpbrk for POWER7.
35321
35322 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35323
35324         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35325         (atan_test): Likewise.
35326         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35327         (atanh_test): Use ALL_RM_TEST.
35328         (atan2_test_data): Likewise.
35329         (cabs_test): Likewise.
35330         (cacosh_test): Likewise.
35331         (carg_test): Likewise.
35332         (casin_test): Likewise.
35333         (casinh_test): Likewise.
35334         (cbrt_test): Likewise.
35335         (csqrt_test): Likewise.
35336         (erf_test): Likewise.
35337         (erfc_test): Likewise.
35338         (pow10_test): Likewise.
35339         (exp2_test): Likewise.
35340         (hypot_test): Likewise.
35341         (j0_test): Likewise.
35342         (j1_test): Likewise.
35343         (lgamma_test): Likewise.
35344         (gamma_test): Likewise.
35345         (sincos_test): Likewise.
35346         (tanh_test): Likewise.
35347         (y0_test): Likewise.
35348         (y1_test): Likewise.
35349         * sysdeps/i386/fpu/libm-test-ulps: Update.
35350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35351
35352 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35353
35354         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35355         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35356         and strcspn-ppc64 objects.
35357         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35358         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35359         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35360         multiarch strcspn for POWER7.
35361         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35362         multiarch strcspn for PPC64.
35363         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35364         ifunc selector.
35365         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35366         strcspn for POWER7.
35367
35368 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35369
35370         * math/gen-libm-test.pl (generate_testfile): Expect only function
35371         name as argument to AUTO_TESTS_* and pass results for all rounding
35372         modes to parse_args.
35373         (parse_auto_input): Separate inputs of automatic tests from
35374         outputs before storing in %auto_tests.
35375         * math/libm-test.inc (acos_test_data): Update call to
35376         AUTO_TESTS_f_f.
35377         (acos_test): Use ALL_RM_TEST.
35378         (acos_tonearest_test_data): Remove.
35379         (acos_test_tonearest): Likewise.
35380         (acos_towardzero_test_data): Likewise.
35381         (acos_test_towardzero): Likewise.
35382         (acos_downward_test_data): Likewise.
35383         (acos_test_downward): Likewise.
35384         (acos_upward_test_data): Likewise.
35385         (acos_test_upward): Likewise.
35386         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35387         (asin_test_data): Likewise.
35388         (asin_test): Use ALL_RM_TEST.
35389         (asin_tonearest_test_data): Remove.
35390         (asin_test_tonearest): Likewise.
35391         (asin_towardzero_test_data): Likewise.
35392         (asin_test_towardzero): Likewise.
35393         (asin_downward_test_data): Likewise.
35394         (asin_test_downward): Likewise.
35395         (asin_upward_test_data): Likewise.
35396         (asin_test_upward): Likewise.
35397         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35398         (atan_test_data): Likewise.
35399         (atanh_test_data): Likewise.
35400         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35401         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35402         (carg_test_data): Likewise.
35403         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35404         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35405         (ccosh_test_data): Likewise.
35406         (cexp_test_data): Likewise.
35407         (clog_test_data): Likewise.
35408         (clog10_test_data): Likewise.
35409         (cos_test_data): Update call to AUTO_TESTS_f_f.
35410         (cos_test): Use ALL_RM_TEST.
35411         (cos_tonearest_test_data): Remove.
35412         (cos_test_tonearest): Likewise.
35413         (cos_towardzero_test_data): Likewise.
35414         (cos_test_towardzero): Likewise.
35415         (cos_downward_test_data): Likewise.
35416         (cos_test_downward): Likewise.
35417         (cos_upward_test_data): Likewise.
35418         (cos_test_upward): Likewise.
35419         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35420         (cosh_test): Use ALL_RM_TEST.
35421         (cosh_tonearest_test_data): Remove.
35422         (cosh_test_tonearest): Likewise.
35423         (cosh_towardzero_test_data): Likewise.
35424         (cosh_test_towardzero): Likewise.
35425         (cosh_downward_test_data): Likewise.
35426         (cosh_test_downward): Likewise.
35427         (cosh_upward_test_data): Likewise.
35428         (cosh_test_upward): Likewise.
35429         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35430         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35431         (ctan_test_data): Likewise.
35432         (ctan_test): Use ALL_RM_TEST.
35433         (ctan_tonearest_test_data): Remove.
35434         (ctan_test_tonearest): Likewise.
35435         (ctan_towardzero_test_data): Likewise.
35436         (ctan_test_towardzero): Likewise.
35437         (ctan_downward_test_data): Likewise.
35438         (ctan_test_downward): Likewise.
35439         (ctan_upward_test_data): Likewise.
35440         (ctan_test_upward): Likewise.
35441         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35442         (ctanh_test): Use ALL_RM_TEST.
35443         (ctanh_tonearest_test_data): Remove.
35444         (ctanh_test_tonearest): Likewise.
35445         (ctanh_towardzero_test_data): Likewise.
35446         (ctanh_test_towardzero): Likewise.
35447         (ctanh_downward_test_data): Likewise.
35448         (ctanh_test_downward): Likewise.
35449         (ctanh_upward_test_data): Likewise.
35450         (ctanh_test_upward): Likewise.
35451         (erf_test_data): Update call to AUTO_TESTS_f_f.
35452         (erfc_test_data): Likewise.
35453         (exp_test_data): Likewise.
35454         (exp_test): Use ALL_RM_TEST.
35455         (exp_tonearest_test_data): Remove.
35456         (exp_test_tonearest): Likewise.
35457         (exp_towardzero_test_data): Likewise.
35458         (exp_test_towardzero): Likewise.
35459         (exp_downward_test_data): Likewise.
35460         (exp_test_downward): Likewise.
35461         (exp_upward_test_data): Likewise.
35462         (exp_test_upward): Likewise.
35463         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35464         (exp10_test): Use ALL_RM_TEST.
35465         (exp10_tonearest_test_data): Remove.
35466         (exp10_test_tonearest): Likewise.
35467         (exp10_towardzero_test_data): Likewise.
35468         (exp10_test_towardzero): Likewise.
35469         (exp10_downward_test_data): Likewise.
35470         (exp10_test_downward): Likewise.
35471         (exp10_upward_test_data): Likewise.
35472         (exp10_test_upward): Likewise.
35473         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35474         (expm1_test_data): Likewise.
35475         (expm1_test): Use ALL_RM_TEST.
35476         (expm1_tonearest_test_data): Remove.
35477         (expm1_test_tonearest): Likewise.
35478         (expm1_towardzero_test_data): Likewise.
35479         (expm1_test_towardzero): Likewise.
35480         (expm1_downward_test_data): Likewise.
35481         (expm1_test_downward): Likewise.
35482         (expm1_upward_test_data): Likewise.
35483         (expm1_test_upward): Likewise.
35484         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35485         (fma_test): Use ALL_RM_TEST.
35486         (fma_towardzero_test_data): Remove.
35487         (fma_test_towardzero): Likewise.
35488         (fma_downward_test_data): Likewise.
35489         (fma_test_downward): Likewise.
35490         (fma_upward_test_data): Likewise.
35491         (fma_test_upward): Likewise.
35492         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35493         (j0_test_data): Update call to AUTO_TESTS_f_f.
35494         (j1_test_data): Likewise.
35495         (jn_test_data): Update call to AUTO_TESTS_if_f.
35496         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35497         (log_test_data): Update call to AUTO_TESTS_f_f.
35498         (log10_test_data): Likewise.
35499         (log1p_test_data): Likewise.
35500         (log2_test_data): Likewise.
35501         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35502         (pow_tonearest_test_data): Likewise.
35503         (sin_test_data): Update call to AUTO_TESTS_f_f.
35504         (sin_test): Use ALL_RM_TEST.
35505         (sin_tonearest_test_data): Remove.
35506         (sin_test_tonearest): Likewise.
35507         (sin_towardzero_test_data): Likewise.
35508         (sin_test_towardzero): Likewise.
35509         (sin_downward_test_data): Likewise.
35510         (sin_test_downward): Likewise.
35511         (sin_upward_test_data): Likewise.
35512         (sin_test_upward): Likewise.
35513         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35514         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35515         (sinh_test): Use ALL_RM_TEST.
35516         (sinh_tonearest_test_data): Remove.
35517         (sinh_test_tonearest): Likewise.
35518         (sinh_towardzero_test_data): Likewise.
35519         (sinh_test_towardzero): Likewise.
35520         (sinh_downward_test_data): Likewise.
35521         (sinh_test_downward): Likewise.
35522         (sinh_upward_test_data): Likewise.
35523         (sinh_test_upward): Likewise.
35524         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35525         (sqrt_test): Use ALL_RM_TEST.
35526         (sqrt_tonearest_test_data): Remove.
35527         (sqrt_test_tonearest): Likewise.
35528         (sqrt_towardzero_test_data): Likewise.
35529         (sqrt_test_towardzero): Likewise.
35530         (sqrt_downward_test_data): Likewise.
35531         (sqrt_test_downward): Likewise.
35532         (sqrt_upward_test_data): Likewise.
35533         (sqrt_test_upward): Likewise.
35534         (tan_test_data): Update call to AUTO_TESTS_f_f.
35535         (tan_test): Use ALL_RM_TEST.
35536         (tan_tonearest_test_data): Remove.
35537         (tan_test_tonearest): Likewise.
35538         (tan_towardzero_test_data): Likewise.
35539         (tan_test_towardzero): Likewise.
35540         (tan_downward_test_data): Likewise.
35541         (tan_test_downward): Likewise.
35542         (tan_upward_test_data): Likewise.
35543         (tan_test_upward): Likewise.
35544         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35545         (tgamma_test_data): Likewise.
35546         (y0_test_data): Likewise.
35547         (y1_test_data): Likewise.
35548         (yn_test_data): Update call to AUTO_TESTS_if_f.
35549         (main): Do not call removed functions.
35550
35551 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35552
35553         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35554         (ldexp_test_data): Remove.
35555         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35556         scalbn_test_data.
35557         (scalb_test): Use ALL_RM_TEST.
35558
35559 2014-03-19  Andreas Schwab  <schwab@suse.de>
35560
35561         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35562
35563 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35564
35565         [BZ #16649]
35566         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35567         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35568         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35569         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35570         (__ASSUME_PREADV): Undefine.
35571         (__ASSUME_PWRITEV): Likewise.
35572
35573 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35574
35575         * bits/mman-linux.h: Add comment about non-Linux use.
35576         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35577         bits/mman-linux.h resting place.
35578
35579         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35580         * bits/mman-linux.h: ... here.
35581
35582 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35583
35584         * conform/conformtest.pl: Add standard definition when calling C
35585         preprocessor on data files.
35586         (checknamespace): Remove unused variable.
35587
35588 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35589
35590         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35591         minus_oflow, plus_uflow and minus_uflow in expected results.
35592         * math/libm-test.inc (scalbn_test_data): Add more tests of
35593         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35594         minus_uflow.
35595         (scalbn_test): Use ALL_RM_TEST.
35596         (scalbln_test_data): Add more tests of negative arguments.  Use
35597         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35598         (scalbln_test): Use ALL_RM_TEST.
35599
35600 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35601
35602         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35603
35604 2014-03-18  Will Newton  <will.newton@linaro.org>
35605
35606         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35607         inaccurate comment.
35608
35609 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35610
35611         * Makerules [!subdir] (check-abi): Exit with error status if a
35612         test failed.
35613
35614 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35615
35616         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35617         for rint.  Include results for all rounding modes.
35618         (nearbyint_test): Use ALL_RM_TEST.
35619         (rint_test_data): Include all tests used for nearbyint.
35620
35621 2014-03-17  Will Newton  <will.newton@linaro.org>
35622
35623         * nptl/sysdeps/pthread/pthread.h: Revert previous
35624         change.
35625
35626         * sysdeps/generic/ldsodefs.h: Revert previous
35627         change.
35628
35629         * libio/genops.c: Revert previous change.
35630         * libio/libioP.h: Likewise.
35631         * stdio-common/vfprintf.c: Likewise.
35632
35633         * sysdeps/generic/math_private.h: Revert previous
35634         change.
35635
35636         * sysdeps/generic/math_private.h: Check whether
35637         HAVE_RM_CTX is defined with #ifdef rather
35638         than #if.
35639
35640         * argp/argp-fmtstream.h: Check whether
35641         __STRICT_ANSI__ is defined with #ifdef rather
35642         than #if.
35643         * argp/argp.h: Likewise.
35644
35645         * libio/genops.c: Check whether
35646         _IO_JUMPS_OFFSET is defined with #ifdef rather
35647         than #if.
35648         * libio/libioP.h: Likewise.
35649         * stdio-common/vfprintf.c: Likewise.
35650
35651         * sysdeps/generic/ldsodefs.h: Check whether
35652         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35653         than #if.
35654
35655         * nptl/sysdeps/pthread/pthread.h: Check
35656         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35657         its value.
35658
35659 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35660
35661         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35662         setting O_APPEND.
35663         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35664         test case.
35665
35666         [BZ #16680]
35667         * libio/fileops.c (_IO_file_open): Seek to end of file but
35668         don't cache the offset.
35669         (get_file_offset): Remove function.
35670         (do_ftell): Use cached offset when available.
35671         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35672         don't cache the offset.
35673         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35674         case.
35675         (do_one_test): Call it.
35676         (do_ftell_test): Fix up expected old offset for a+ mode.
35677         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35678         available.
35679
35680         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35681         up test status with function return status.
35682         (do_write_test): Likewise.
35683         (do_append_test): Likewise.
35684
35685         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35686         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35687         Remove.
35688
35689 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35690
35691         * math/gen-libm-test.pl (parse_args): Handle results specified for
35692         each rounding mode separately.
35693         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35694         tests and results from lrint_tonearest_test_data,
35695         lrint_towardzero_test_data, lrint_downward_test_data and
35696         lrint_upward_test_data.
35697         (lrint_test): Use ALL_RM_TEST.
35698         (lrint_tonearest_test_data): Remove.
35699         (lrint_test_tonearest): Likewise.
35700         (lrint_towardzero_test_data): Likewise.
35701         (lrint_test_towardzero): Likewise.
35702         (lrint_downward_test_data): Likewise.
35703         (lrint_test_downward): Likewise.
35704         (lrint_upward_test_data): Likewise.
35705         (lrint_test_upward): Likewise.
35706         (llrint_test_data): Merge in per-rounding-mode tests and results
35707         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35708         llrint_downward_test_data and llrint_upward_test_data.
35709         (llrint_test): Use ALL_RM_TEST.
35710         (llrint_tonearest_test_data): Remove.
35711         (llrint_test_tonearest): Likewise.
35712         (llrint_towardzero_test_data): Likewise.
35713         (llrint_test_towardzero): Likewise.
35714         (llrint_downward_test_data): Likewise.
35715         (llrint_test_downward): Likewise.
35716         (llrint_upward_test_data): Likewise.
35717         (llrint_test_upward): Likewise.
35718         (rint_test_data): Merge in per-rounding-mode tests and results
35719         from rint_tonearest_test_data, rint_towardzero_test_data,
35720         rint_downward_test_data and rint_upward_test_data.  Add
35721         per-rounding-mode results for tests not in those arrays.
35722         (rint_test): Use ALL_RM_TEST.
35723         (rint_tonearest_test_data): Remove.
35724         (rint_test_tonearest): Likewise.
35725         (rint_towardzero_test_data): Likewise.
35726         (rint_test_towardzero): Likewise.
35727         (rint_downward_test_data): Likewise.
35728         (rint_test_downward): Likewise.
35729         (rint_upward_test_data): Likewise.
35730         (rint_test_upward): Likewise.
35731         (main): Don't call removed functions.
35732
35733 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35734
35735         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35736         "Compiled on ..." crapola.  It is anti-useful.
35737
35738 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35739
35740         * scripts/evaluate-test.sh: Handle fourth argument to determine
35741         whether test run should stop on failure.
35742         * Makeconfig (stop-on-test-failure): New variable.
35743         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35744         $(stop-on-test-failure).
35745         * Makefile (tests): Give a summary of results from testing and
35746         exit with failure status if they include an ERROR or FAIL.
35747         (xtests): Likewise.
35748         * manual/install.texi (Configuring and compiling): Mention
35749         stop-on-test-failure=y.
35750         * INSTALL: Regenerated.
35751
35752 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35753
35754         * scripts/versionlist.awk: New file.
35755         * Makerules [$(build-shared) = yes]
35756         (postclean-generated): Add Versions.def, not Versions.def.v and
35757         Versions.def.v.i.
35758         ($(common-objpfx)Versions.def.v.i): Target removed.
35759         ($(common-objpfx)Versions.def): New target.
35760         ($(common-objpfx)Versions.all): Depend on that rather that
35761         $(common-objpfx)Versions.def.v.
35762         * Versions.def: File removed.
35763
35764         * Makeconfig (+gccwarn): Add -Wundef.
35765         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35766         a dl-sysdep.h breaking its contract.
35767         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35768         * include/stackinfo.h: New file.
35769         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35770         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35771         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35772         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35773         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35774         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35775         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35776         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35777         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35778         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35779         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35780         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35781         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35782         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35783         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35784
35785 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35786
35787         [BZ #16707]
35788         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35789         implementation.
35790         * math/libm-test.inc (round_test_data): Add more tests.
35791
35792         [BZ #16706]
35793         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35794         implementation.
35795         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35796
35797         [BZ #16701]
35798         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35799         implementation.
35800         * math/libm-test.inc (ceil_test_data): Add more tests.
35801
35802         * math/libm-test.inc (trunc_test_data): Add more tests related to
35803         BZ#16414.
35804
35805 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35806
35807         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35808         with #if rather than #ifdef.
35809         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35810
35811 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35812
35813         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35814         first.  Disable AVX-512 GCC support if assembler doesn't support
35815         it.
35816         * sysdeps/x86_64/configure: Regenerated.
35817
35818 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35819
35820         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35821         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35822         (__old_pthread_attr_setstack): Likewise.
35823         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35824         [!_STACK_GROWS_DOWN]: Likewise.
35825
35826 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35827
35828         * config.make.in (have-bash2): Delete.
35829         * configure.ac (libc_cv_have_bash2): Delete.
35830         * configure: Regenerate.
35831         * elf/Makefile (common-ldd-rewrite): Rename to ...
35832         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35833         (sh-ldd-rewrite): Delete.
35834         (bash-ldd-rewrite): Delete.
35835         (have-bash2): Delete checks.
35836         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35837         ldd-rewrite.
35838
35839         * config.make.in (have-ksh): Delete.
35840         (KSH): Delete.
35841         * configure.ac (libc_cv_have_ksh): Delete.
35842         * configure: Regenerate.
35843
35844         * elf/Makefile: Delete $(have-ksh) check.
35845         ($(objpfx)sotruss): Change KSH to BASH.
35846         * elf/sotruss.ksh: Rename to ...
35847         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35848         function style to match POSIX.  Drop ksh vim mode setting.
35849
35850         * manual/time.texi (Specifying the Time Zone with TZ): Change
35851         Tuesday to Thursday.
35852
35853         * debug/tst-longjmp_chk2.c: Update header comment.
35854         (stackoverflow_handler): Add comment.  Call assert on pass value.
35855
35856 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35857
35858         [BZ #16194]
35859         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35860         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35861         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35862         (La_x86_64_vector): Add zmm.
35863         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35864         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35865         ($(objpfx)tst-audit10): New target.
35866         ($(objpfx)tst-audit10.out): Likewise.
35867         (tst-audit10-ENV): New.
35868         (AVX512-CFLAGS): Likewise.
35869         (CFLAGS-tst-audit10.c): Likewise.
35870         (CFLAGS-tst-auditmod10a.c): Likewise.
35871         (CFLAGS-tst-auditmod10b.c): Likewise.
35872         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35873         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35874         * sysdeps/x86_64/configure: Regenerated.
35875         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35876         AVX-512 zmm register support.
35877         (_dl_x86_64_save_sse): Likewise.
35878         (_dl_x86_64_restore_sse): Likewise.
35879         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35880         size vector registers.
35881         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35882         (ZMM_SIZE): Likewise.
35883         * sysdeps/x86_64/tst-audit10.c: New file.
35884         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35885         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35886
35887 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35888
35889         * configure.ac (HAVE_EHDR_START): New check.
35890         * configure: Regenerated.
35891         * config.h.in (HAVE_EHDR_START): New #undef.
35892         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35893         assuming the lowest-addressed segment maps the start of the file.
35894
35895 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35896
35897         * INSTALL: Regenerated.
35898
35899 2014-03-13  Will Newton  <will.newton@linaro.org>
35900
35901         * manual/setjmp.texi (System V contexts): Improve
35902         clarity and grammar of documentation.
35903
35904 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35905
35906         [BZ #16381]
35907         * elf/Makefile (tests): Add tst-pie2.
35908         (tests-pie): Add tst-pie2.
35909         * elf/tst-pie2.c: New file.
35910         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35911         for ET_EXEC.
35912         * elf/rtld.c (map_doit): Load executable as lt_executable.
35913         (dl_main): Likewise.
35914
35915 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35916
35917         [BZ #16642]
35918         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35919         (__ASSUME_PSELECT): Undefine.
35920
35921 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35922
35923         [BZ #16689]
35924         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35925         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35926         static build.
35927         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35928         selector for static builds.
35929
35930 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35931
35932         [BZ #16695]
35933         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35934         key in the buffer.
35935
35936 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35937
35938         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35939         IFUNC selector for static builds.
35940
35941 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35942
35943         * sysdeps/mips/math_private.h [__mips_hard_float]
35944         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35945         libc_feresetround_mips_ctx.
35946         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35947         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35948         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35949
35950         [BZ #16677]
35951         * math/s_nextafter.c (__nextafter): Do not return value from
35952         overflowing computation.
35953         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35954         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35955         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35956         Likewise.
35957         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35958         Likewise.
35959         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35960         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35961
35962 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35963
35964         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35965         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35966         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35967         the new mov targetting sp.
35968
35969 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35970
35971         [BZ #16683]
35972         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35973         Define it for static builds as well.
35974         (NO_BZERO_IMPL): Likewise.
35975
35976 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35977
35978         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35979         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35980         multiarch strspn for PPC64.
35981         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35982         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35983         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35984         (__libc_ifunc_impl_list): Likewise.
35985         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35986         multiarch optimizations
35987         * string/strspn.c (strspn): Using macro to redefine symbol name.
35988
35989 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35990             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35991
35992         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35993         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35994         multiarch strncat for PPC64.
35995         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35996         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35997         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35998         (__libc_ifunc_impl_list): Likewise.
35999         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
36000         multiarch optimizations
36001
36002 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
36003
36004         [BZ #16639]
36005         * nscd/nscd.service: Make service type forking.
36006
36007 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36008
36009         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
36010         sign in non default rounding modes.
36011         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
36012
36013 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
36014
36015         * math/libm-test.inc (ALL_RM_TEST): New macro.
36016         (ceil_test): Use ALL_RM_TEST.
36017         (cimag_test): Likewise.
36018         (conj_test): Likewise.
36019         (copysign_test): Likewise.
36020         (cproj_test): Likewise.
36021         (creal_test): Likewise.
36022         (fabs_test): Likewise.
36023         (floor_test): Likewise.
36024         (fmax_test): Likewise.
36025         (fmin_test): Likewise.
36026         (fmod_test): Likewise.
36027         (fpclassify_test): Likewise.
36028         (frexp_test): Likewise.
36029         (ilogb_test): Likewise.
36030         (isfinite_test): Likewise.
36031         (finite_test): Likewise.
36032         (isgreater_test): Likewise.
36033         (isgreaterequal_test): Likewise.
36034         (isinf_test): Likewise.
36035         (isless_test): Likewise.
36036         (islessequal_test): Likewise.
36037         (islessgreater_test): Likewise.
36038         (isnan_test): Likewise.
36039         (isnormal_test): Likewise.
36040         (issignaling_test): Likewise.
36041         (isunordered_test): Likewise.
36042         (logb_test): Likewise.
36043         (logb_downward_test_data): Remove.
36044         (logb_test_downward): Likewise.
36045         (lround_test): Use ALL_RM_TEST.
36046         (llround_test): Likewise.
36047         (modf_test): Likewise.
36048         (nexttoward_test): Likewise.
36049         (remainder_test): Likewise.
36050         (drem_test): Likewise.
36051         (remainder_tonearest_test_data): Likewise.
36052         (remainder_test_tonearest): Likewise.
36053         (drem_test_tonearest): Likewise.
36054         (remainder_towardzero_test_data): Likewise.
36055         (remainder_test_towardzero): Likewise.
36056         (drem_test_towardzero): Likewise.
36057         (remainder_downward_test_data): Likewise.
36058         (remainder_test_downward): Likewise.
36059         (drem_test_downward): Likewise.
36060         (remainder_upward_test_data): Likewise.
36061         (remainder_test_upward): Likewise.
36062         (drem_test_upward): Likewise.
36063         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
36064         (round_test): Use ALL_RM_TEST.
36065         (signbit_test): Likewise.
36066         (trunc_test): Likewise.
36067         (significand_test): Likewise.
36068         (main): Don't call removed functions.
36069
36070 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36071
36072         [BZ #16674]
36073         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
36074         || __USE_XOPEN2K8].
36075         (ILL_ILLOPN): Likewise.
36076         (ILL_ILLADR): Likewise.
36077         (ILL_ILLTRP): Likewise.
36078         (ILL_PRVOPC): Likewise.
36079         (ILL_PRVREG): Likewise.
36080         (ILL_COPROC): Likewise.
36081         (ILL_BADSTK): Likewise.
36082         (FPE_INTDIV): Likewise.
36083         (FPE_INTOVF): Likewise.
36084         (FPE_FLTDIV): Likewise.
36085         (FPE_FLTOVF): Likewise.
36086         (FPE_FLTUND): Likewise.
36087         (FPE_FLTRES): Likewise.
36088         (FPE_FLTINV): Likewise.
36089         (FPE_FLTSUB): Likewise.
36090         (SEGV_MAPERR): Likewise.
36091         (SEGV_ACCERR): Likewise.
36092         (BUS_ADRALN): Likewise.
36093         (BUS_ADRERR): Likewise.
36094         (BUS_OBJERR): Likewise.
36095         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36096         (TRAP_TRACE): Likewise.
36097         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36098         __USE_XOPEN2K8].
36099         (CLD_KILLED): Likewise.
36100         (CLD_DUMPED): Likewise.
36101         (CLD_TRAPPED): Likewise.
36102         (CLD_STOPPED): Likewise.
36103         (CLD_CONTINUED): Likewise.
36104         (POLL_IN): Likewise.
36105         (POLL_OUT): Likewise.
36106         (POLL_MSG): Likewise.
36107         (POLL_ERR): Likewise.
36108         (POLL_PRI): Likewise.
36109         (POLL_HUP): Likewise.
36110         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
36111         Likewise.
36112         (ILL_ILLOPN): Likewise.
36113         (ILL_ILLADR): Likewise.
36114         (ILL_ILLTRP): Likewise.
36115         (ILL_PRVOPC): Likewise.
36116         (ILL_PRVREG): Likewise.
36117         (ILL_COPROC): Likewise.
36118         (ILL_BADSTK): Likewise.
36119         (FPE_INTDIV): Likewise.
36120         (FPE_INTOVF): Likewise.
36121         (FPE_FLTDIV): Likewise.
36122         (FPE_FLTOVF): Likewise.
36123         (FPE_FLTUND): Likewise.
36124         (FPE_FLTRES): Likewise.
36125         (FPE_FLTINV): Likewise.
36126         (FPE_FLTSUB): Likewise.
36127         (SEGV_MAPERR): Likewise.
36128         (SEGV_ACCERR): Likewise.
36129         (BUS_ADRALN): Likewise.
36130         (BUS_ADRERR): Likewise.
36131         (BUS_OBJERR): Likewise.
36132         (BUS_MCEERR_AR): Likewise.
36133         (BUS_MCEERR_AO): Likewise.
36134         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36135         (TRAP_TRACE): Likewise.
36136         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36137         __USE_XOPEN2K8].
36138         (CLD_KILLED): Likewise.
36139         (CLD_DUMPED): Likewise.
36140         (CLD_TRAPPED): Likewise.
36141         (CLD_STOPPED): Likewise.
36142         (CLD_CONTINUED): Likewise.
36143         (POLL_IN): Likewise.
36144         (POLL_OUT): Likewise.
36145         (POLL_MSG): Likewise.
36146         (POLL_ERR): Likewise.
36147         (POLL_PRI): Likewise.
36148         (POLL_HUP): Likewise.
36149         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
36150         (ILL_ILLOPN): Likewise.
36151         (ILL_ILLADR): Likewise.
36152         (ILL_ILLTRP): Likewise.
36153         (ILL_PRVOPC): Likewise.
36154         (ILL_PRVREG): Likewise.
36155         (ILL_COPROC): Likewise.
36156         (ILL_BADSTK): Likewise.
36157         (FPE_INTDIV): Likewise.
36158         (FPE_INTOVF): Likewise.
36159         (FPE_FLTDIV): Likewise.
36160         (FPE_FLTOVF): Likewise.
36161         (FPE_FLTUND): Likewise.
36162         (FPE_FLTRES): Likewise.
36163         (FPE_FLTINV): Likewise.
36164         (FPE_FLTSUB): Likewise.
36165         (SEGV_MAPERR): Likewise.
36166         (SEGV_ACCERR): Likewise.
36167         (BUS_ADRALN): Likewise.
36168         (BUS_ADRERR): Likewise.
36169         (BUS_OBJERR): Likewise.
36170         (BUS_MCEERR_AR): Likewise.
36171         (BUS_MCEERR_AO): Likewise.
36172         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36173         (TRAP_TRACE): Likewise.
36174         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36175         __USE_XOPEN2K8].
36176         (CLD_KILLED): Likewise.
36177         (CLD_DUMPED): Likewise.
36178         (CLD_TRAPPED): Likewise.
36179         (CLD_STOPPED): Likewise.
36180         (CLD_CONTINUED): Likewise.
36181         (POLL_IN): Likewise.
36182         (POLL_OUT): Likewise.
36183         (POLL_MSG): Likewise.
36184         (POLL_ERR): Likewise.
36185         (POLL_PRI): Likewise.
36186         (POLL_HUP): Likewise.
36187         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
36188         Likewise.
36189         (ILL_ILLOPN): Likewise.
36190         (ILL_ILLADR): Likewise.
36191         (ILL_ILLTRP): Likewise.
36192         (ILL_PRVOPC): Likewise.
36193         (ILL_PRVREG): Likewise.
36194         (ILL_COPROC): Likewise.
36195         (ILL_BADSTK): Likewise.
36196         (ILL_BADIADDR): Likewise.
36197         (ILL_BREAK): Likewise.
36198         (FPE_INTDIV): Likewise.
36199         (FPE_INTOVF): Likewise.
36200         (FPE_FLTDIV): Likewise.
36201         (FPE_FLTOVF): Likewise.
36202         (FPE_FLTUND): Likewise.
36203         (FPE_FLTRES): Likewise.
36204         (FPE_FLTINV): Likewise.
36205         (FPE_FLTSUB): Likewise.
36206         (FPE_DECOVF): Likewise.
36207         (FPE_DECDIV): Likewise.
36208         (FPE_DECERR): Likewise.
36209         (FPE_INVASC): Likewise.
36210         (FPE_INVDEC): Likewise.
36211         (SEGV_MAPERR): Likewise.
36212         (SEGV_ACCERR): Likewise.
36213         (SEGV_PSTKOVF): Likewise.
36214         (BUS_ADRALN): Likewise.
36215         (BUS_ADRERR): Likewise.
36216         (BUS_OBJERR): Likewise.
36217         (BUS_MCEERR_AR): Likewise.
36218         (BUS_MCEERR_AO): Likewise.
36219         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36220         (TRAP_TRACE): Likewise.
36221         (TRAP_BRANCH): Likewise.
36222         (TRAP_HWBKPT): Likewise.
36223         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36224         __USE_XOPEN2K8].
36225         (CLD_KILLED): Likewise.
36226         (CLD_DUMPED): Likewise.
36227         (CLD_TRAPPED): Likewise.
36228         (CLD_STOPPED): Likewise.
36229         (CLD_CONTINUED): Likewise.
36230         (POLL_IN): Likewise.
36231         (POLL_OUT): Likewise.
36232         (POLL_MSG): Likewise.
36233         (POLL_ERR): Likewise.
36234         (POLL_PRI): Likewise.
36235         (POLL_HUP): Likewise.
36236         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36237         (ILL_ILLOPN): Likewise.
36238         (ILL_ILLADR): Likewise.
36239         (ILL_ILLTRP): Likewise.
36240         (ILL_PRVOPC): Likewise.
36241         (ILL_PRVREG): Likewise.
36242         (ILL_COPROC): Likewise.
36243         (ILL_BADSTK): Likewise.
36244         (FPE_INTDIV): Likewise.
36245         (FPE_INTOVF): Likewise.
36246         (FPE_FLTDIV): Likewise.
36247         (FPE_FLTOVF): Likewise.
36248         (FPE_FLTUND): Likewise.
36249         (FPE_FLTRES): Likewise.
36250         (FPE_FLTINV): Likewise.
36251         (FPE_FLTSUB): Likewise.
36252         (SEGV_MAPERR): Likewise.
36253         (SEGV_ACCERR): Likewise.
36254         (BUS_ADRALN): Likewise.
36255         (BUS_ADRERR): Likewise.
36256         (BUS_OBJERR): Likewise.
36257         (BUS_MCEERR_AR): Likewise.
36258         (BUS_MCEERR_AO): Likewise.
36259         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36260         (TRAP_TRACE): Likewise.
36261         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36262         __USE_XOPEN2K8].
36263         (CLD_KILLED): Likewise.
36264         (CLD_DUMPED): Likewise.
36265         (CLD_TRAPPED): Likewise.
36266         (CLD_STOPPED): Likewise.
36267         (CLD_CONTINUED): Likewise.
36268         (POLL_IN): Likewise.
36269         (POLL_OUT): Likewise.
36270         (POLL_MSG): Likewise.
36271         (POLL_ERR): Likewise.
36272         (POLL_PRI): Likewise.
36273         (POLL_HUP): Likewise.
36274         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36275         (ILL_ILLOPN): Likewise.
36276         (ILL_ILLADR): Likewise.
36277         (ILL_ILLTRP): Likewise.
36278         (ILL_PRVOPC): Likewise.
36279         (ILL_PRVREG): Likewise.
36280         (ILL_COPROC): Likewise.
36281         (ILL_BADSTK): Likewise.
36282         (FPE_INTDIV): Likewise.
36283         (FPE_INTOVF): Likewise.
36284         (FPE_FLTDIV): Likewise.
36285         (FPE_FLTOVF): Likewise.
36286         (FPE_FLTUND): Likewise.
36287         (FPE_FLTRES): Likewise.
36288         (FPE_FLTINV): Likewise.
36289         (FPE_FLTSUB): Likewise.
36290         (SEGV_MAPERR): Likewise.
36291         (SEGV_ACCERR): Likewise.
36292         (BUS_ADRALN): Likewise.
36293         (BUS_ADRERR): Likewise.
36294         (BUS_OBJERR): Likewise.
36295         (BUS_MCEERR_AR): Likewise.
36296         (BUS_MCEERR_AO): Likewise.
36297         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36298         (TRAP_TRACE): Likewise.
36299         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36300         __USE_XOPEN2K8].
36301         (CLD_KILLED): Likewise.
36302         (CLD_DUMPED): Likewise.
36303         (CLD_TRAPPED): Likewise.
36304         (CLD_STOPPED): Likewise.
36305         (CLD_CONTINUED): Likewise.
36306         (POLL_IN): Likewise.
36307         (POLL_OUT): Likewise.
36308         (POLL_MSG): Likewise.
36309         (POLL_ERR): Likewise.
36310         (POLL_PRI): Likewise.
36311         (POLL_HUP): Likewise.
36312         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36313         (ILL_ILLOPN): Likewise.
36314         (ILL_ILLADR): Likewise.
36315         (ILL_ILLTRP): Likewise.
36316         (ILL_PRVOPC): Likewise.
36317         (ILL_PRVREG): Likewise.
36318         (ILL_COPROC): Likewise.
36319         (ILL_BADSTK): Likewise.
36320         (FPE_INTDIV): Likewise.
36321         (FPE_INTOVF): Likewise.
36322         (FPE_FLTDIV): Likewise.
36323         (FPE_FLTOVF): Likewise.
36324         (FPE_FLTUND): Likewise.
36325         (FPE_FLTRES): Likewise.
36326         (FPE_FLTINV): Likewise.
36327         (FPE_FLTSUB): Likewise.
36328         (SEGV_MAPERR): Likewise.
36329         (SEGV_ACCERR): Likewise.
36330         (BUS_ADRALN): Likewise.
36331         (BUS_ADRERR): Likewise.
36332         (BUS_OBJERR): Likewise.
36333         (BUS_MCEERR_AR): Likewise.
36334         (BUS_MCEERR_AO): Likewise.
36335         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36336         (TRAP_TRACE): Likewise.
36337         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36338         __USE_XOPEN2K8].
36339         (CLD_KILLED): Likewise.
36340         (CLD_DUMPED): Likewise.
36341         (CLD_TRAPPED): Likewise.
36342         (CLD_STOPPED): Likewise.
36343         (CLD_CONTINUED): Likewise.
36344         (POLL_IN): Likewise.
36345         (POLL_OUT): Likewise.
36346         (POLL_MSG): Likewise.
36347         (POLL_ERR): Likewise.
36348         (POLL_PRI): Likewise.
36349         (POLL_HUP): Likewise.
36350         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36351         (ILL_ILLOPN): Likewise.
36352         (ILL_ILLADR): Likewise.
36353         (ILL_ILLTRP): Likewise.
36354         (ILL_PRVOPC): Likewise.
36355         (ILL_PRVREG): Likewise.
36356         (ILL_COPROC): Likewise.
36357         (ILL_BADSTK): Likewise.
36358         (ILL_DBLFLT): Likewise.
36359         (ILL_HARDWALL): Likewise.
36360         (FPE_INTDIV): Likewise.
36361         (FPE_INTOVF): Likewise.
36362         (FPE_FLTDIV): Likewise.
36363         (FPE_FLTOVF): Likewise.
36364         (FPE_FLTUND): Likewise.
36365         (FPE_FLTRES): Likewise.
36366         (FPE_FLTINV): Likewise.
36367         (FPE_FLTSUB): Likewise.
36368         (SEGV_MAPERR): Likewise.
36369         (SEGV_ACCERR): Likewise.
36370         (BUS_ADRALN): Likewise.
36371         (BUS_ADRERR): Likewise.
36372         (BUS_OBJERR): Likewise.
36373         (BUS_MCEERR_AR): Likewise.
36374         (BUS_MCEERR_AO): Likewise.
36375         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36376         (TRAP_TRACE): Likewise.
36377         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36378         __USE_XOPEN2K8].
36379         (CLD_KILLED): Likewise.
36380         (CLD_DUMPED): Likewise.
36381         (CLD_TRAPPED): Likewise.
36382         (CLD_STOPPED): Likewise.
36383         (CLD_CONTINUED): Likewise.
36384         (POLL_IN): Likewise.
36385         (POLL_OUT): Likewise.
36386         (POLL_MSG): Likewise.
36387         (POLL_ERR): Likewise.
36388         (POLL_PRI): Likewise.
36389         (POLL_HUP): Likewise.
36390         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36391         (ILL_ILLOPN): Likewise.
36392         (ILL_ILLADR): Likewise.
36393         (ILL_ILLTRP): Likewise.
36394         (ILL_PRVOPC): Likewise.
36395         (ILL_PRVREG): Likewise.
36396         (ILL_COPROC): Likewise.
36397         (ILL_BADSTK): Likewise.
36398         (FPE_INTDIV): Likewise.
36399         (FPE_INTOVF): Likewise.
36400         (FPE_FLTDIV): Likewise.
36401         (FPE_FLTOVF): Likewise.
36402         (FPE_FLTUND): Likewise.
36403         (FPE_FLTRES): Likewise.
36404         (FPE_FLTINV): Likewise.
36405         (FPE_FLTSUB): Likewise.
36406         (SEGV_MAPERR): Likewise.
36407         (SEGV_ACCERR): Likewise.
36408         (BUS_ADRALN): Likewise.
36409         (BUS_ADRERR): Likewise.
36410         (BUS_OBJERR): Likewise.
36411         (BUS_MCEERR_AR): Likewise.
36412         (BUS_MCEERR_AO): Likewise.
36413         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36414         (TRAP_TRACE): Likewise.
36415         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36416         __USE_XOPEN2K8].
36417         (CLD_KILLED): Likewise.
36418         (CLD_DUMPED): Likewise.
36419         (CLD_TRAPPED): Likewise.
36420         (CLD_STOPPED): Likewise.
36421         (CLD_CONTINUED): Likewise.
36422         (POLL_IN): Likewise.
36423         (POLL_OUT): Likewise.
36424         (POLL_MSG): Likewise.
36425         (POLL_ERR): Likewise.
36426         (POLL_PRI): Likewise.
36427         (POLL_HUP): Likewise.
36428         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36429         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36430
36431         [BZ #16670]
36432         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36433         before #include of <time.h>.
36434         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36435         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36436         (test-xfail-UNIX98/sched.h/conform): Likewise.
36437
36438 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36439
36440         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36441         error absence of trapping exception support.
36442         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36443
36444 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36445
36446         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36447         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36448         * timezone/Makefile (testdata): Move definition above include of
36449         Rules.
36450         (test-zones): New variable.
36451         (tests-special): Add zone files.
36452         (build-testdata): Use $(evaluate-test).
36453
36454         * elf/Makefile (tests-special): Rename tests to end with .out.
36455         ($(objpfx)noload-mem): Likewise.
36456         ($(objpfx)tst-leaks1-mem): Likewise.
36457         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36458         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36459         $(objpfx)test-iconvconfig.out.
36460         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36461         set -e inside subshell and redirect output to file.
36462         * iconvdata/Makefile (generated): Rename tests to end with .out.
36463         Correct type.
36464         (tests-special): Rename tests to end with .out.
36465         ($(objpfx)mtrace-tst-loading): Likewise.
36466         * intl/Makefile (generated): Likewise.
36467         (tests-special): Likewise.
36468         ($(objpfx)mtrace-tst-gettext): Likewise.
36469         * misc/Makefile (generated): Likewise.
36470         (tests-special): Likewise.
36471         ($(objpfx)tst-error1-mem): Likewise.
36472         * nptl/Makefile (tests-special): Likewise.
36473         ($(objpfx)tst-stack3-mem): Likewise.
36474         (generated): Likewise.
36475         * posix/Makefile (generated): Likewise.
36476         (tests-special): Likewise.
36477         (xtests-special): Likewise.
36478         ($(objpfx)tst-fnmatch-mem): Likewise.
36479         ($(objpfx)bug-regex2-mem): Likewise.
36480         ($(objpfx)bug-regex14-mem): Likewise.
36481         ($(objpfx)bug-regex21-mem): Likewise.
36482         ($(objpfx)bug-regex31-mem): Likewise.
36483         ($(objpfx)tst-vfork3-mem): Likewise.
36484         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36485         ($(objpfx)tst-pcre-mem): Likewise.
36486         ($(objpfx)tst-boost-mem): Likewise.
36487         ($(objpfx)bug-ga2-mem): Likewise.
36488         ($(objpfx)bug-glob2-mem): Likewise.
36489         * resolv/Makefile (generate): Likewise.
36490         (tests-special): Likewise.
36491         (xtests-special): Likewise.
36492         (generated): Likewise.
36493         ($(objpfx)mtrace-tst-leaks): Likewise.
36494         ($(objpfx)mtrace-tst-leaks2): Likewise.
36495
36496         * scripts/merge-test-results.sh: New file.
36497         * Makefile (tests-special-notdir): New variable.
36498         (tests): Run merge-test-results.sh.
36499         (xtests): Likewise.
36500         * Rules (tests-special-notdir): New variable.
36501         (xtests-special-notdir): Likewise.
36502         (tests): Run merge-test-results.sh
36503         (xtests): Likewise.
36504
36505         * Makeconfig (test-xfail-name): New variable.
36506         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36507         compute variable name for expected failures.
36508         * conform/Makefile (conformtest-headers-data): New variable.
36509         (conformtest-standards): Likewise.
36510         (conformtest-headers-ISO): Likewise.
36511         (conformtest-headers-ISO99): Likewise.
36512         (conformtest-headers-ISO11): Likewise.
36513         (conformtest-headers-POSIX): Likewise.
36514         (conformtest-headers-XPG3): Likewise.
36515         (conformtest-headers-XPG4): Likewise.
36516         (conformtest-headers-UNIX98): Likewise.
36517         (conformtest-headers-XOPEN2K): Likewise.
36518         (conformtest-headers-POSIX2008): Likewise.
36519         (conformtest-headers-XOPEN2K8): Likewise.
36520         (conformtest-header-list-base): Likewise.
36521         (conformtest-header-list-tests): Likewise.
36522         (conformtest-header-base): Likewise.
36523         (conformtest-header-tests): Likewise.
36524         (tests-special): Add $(conformtest-header-list-tests).  If
36525         [$(fast-check) && !$(cross-compiling)], add
36526         $(conformtest-header-tests) instead of
36527         $(objpfx)run-conformtest.out.
36528         (generated): Add $(conformtest-header-list-base).  If
36529         [$(fast-check) && !$(cross-compiling)], add
36530         $(conformtest-header-base).  Remove previous setting.
36531         ($(conformtest-header-list-tests)): New target.
36532         (test-xfail-run-conformtest): Remove variable.
36533         ($(objpfx)run-conformtest.out): Remove target.
36534         (test-xfail-ISO11/complex.h/conform): New variable.
36535         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36536         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36537         (test-xfail-XPG3/varargs.h/conform): Likewise.
36538         (test-xfail-XPG4/varargs.h/conform): Likewise.
36539         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36540         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36541         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36542         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36543         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36544         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36545         (test-xfail-XPG3/ftw.h/conform): Likewise.
36546         (test-xfail-XPG3/grp.h/conform): Likewise.
36547         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36548         (test-xfail-XPG3/limits.h/conform): Likewise.
36549         (test-xfail-XPG3/pwd.h/conform): Likewise.
36550         (test-xfail-XPG3/search.h/conform): Likewise.
36551         (test-xfail-XPG3/signal.h/conform): Likewise.
36552         (test-xfail-XPG3/stdio.h/conform): Likewise.
36553         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36554         (test-xfail-XPG3/string.h/conform): Likewise.
36555         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36556         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36557         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36558         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36559         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36560         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36561         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36562         (test-xfail-XPG3/termios.h/conform): Likewise.
36563         (test-xfail-XPG3/time.h/conform): Likewise.
36564         (test-xfail-XPG3/unistd.h/conform): Likewise.
36565         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36566         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36567         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36568         (test-xfail-XPG4/netdb.h/conform): Likewise.
36569         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36570         (test-xfail-XPG4/signal.h/conform): Likewise.
36571         (test-xfail-XPG4/stdio.h/conform): Likewise.
36572         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36573         (test-xfail-XPG4/stropts.h/conform): Likewise.
36574         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36575         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36576         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36577         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36578         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36579         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36580         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36581         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36582         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36583         (test-xfail-XPG4/termios.h/conform): Likewise.
36584         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36585         (test-xfail-XPG4/unistd.h/conform): Likewise.
36586         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36587         (test-xfail-POSIX/sched.h/conform): Likewise.
36588         (test-xfail-POSIX/signal.h/conform): Likewise.
36589         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36590         (test-xfail-POSIX/tar.h/conform): Likewise.
36591         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36592         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36593         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36594         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36595         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36596         (test-xfail-UNIX98/sched.h/conform): Likewise.
36597         (test-xfail-UNIX98/signal.h/conform): Likewise.
36598         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36599         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36600         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36601         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36602         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36603         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36604         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36605         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36606         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36607         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36608         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36609         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36610         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36611         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36612         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36613         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36614         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36615         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36616         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36617         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36618         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36619         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36620         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36621         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36622         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36623         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36624         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36625         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36626         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36627         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36628         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36629         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36630         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36631         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36632         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36633         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36634         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36635         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36636         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36637         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36638         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36639         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36640         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36641         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36642         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36643         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36644         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36645         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36646         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36647         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36648         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36649         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36650         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36651         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36652         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36653         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36654         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36655         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36656         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36657         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36658         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36659         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36660         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36661         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36662         (conformtest-cc-flags): Likewise.
36663         ($(conformtest-header-tests): New target.
36664         * conform/check-header-lists.sh: New file.
36665         * conform/run-conformtest.sh: Remove.
36666
36667         * conform/conformtest.pl: Allow ' and \ in values given for
36668         constants.
36669         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36670         inclusion.
36671         [POSIX] (sys/types.h): Likewise.
36672         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36673         inclusion.
36674         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36675         inclusion.
36676         * conform/data/signal.h-data (SIGIO): Remove expectation.
36677         [XPG3] (SIGBUS): Do not expect.
36678         [POSIX || XPG3] (SIGPOLL): Likewise.
36679         [POSIX || XPG3] (SIGPROF): Likewise.
36680         [POSIX || XPG3] (SIGSYS): Likewise.
36681         [XPG3] (SIGTRAP): Likewise.
36682         [POSIX || XPG3] (SIGURG): Likewise.
36683         [POSIX || XPG3] (SIGVTALRM): Likewise.
36684         [POSIX || XPG3] (SIGXCPU): Likewise.
36685         [POSIX || XPG3] (SIGXFSZ): Likewise.
36686         [POSIX] (SA_SIGINFO): Expect.
36687         [XPG3] (siginfo_t): Do not expect type or contents.
36688         [POSIX] (si_pid): Do not expect element.
36689         [POSIX] (si_uid): Likewise.
36690         [POSIX] (si_addr): Likewise.
36691         [POSIX] (si_status): Likewise.
36692         [POSIX] (si_band): Likewise.
36693         [XPG4] (si_value): Likewise.
36694         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36695         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36696         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36697         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36698         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36699         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36700         [POSIX || XPG3] (ILL_COPROC): Likewise.
36701         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36702         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36703         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36704         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36705         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36706         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36707         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36708         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36709         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36710         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36711         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36712         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36713         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36714         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36715         [POSIX || XPG3] (CLD_EXITED): Likewise.
36716         [POSIX || XPG3] (CLD_KILLED): Likewise.
36717         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36718         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36719         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36720         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36721         [POSIX || XPG3] (POLL_IN): Likewise.
36722         [POSIX || XPG3] (POLL_OUT): Likewise.
36723         [POSIX || XPG3] (POLL_MSG): Likewise.
36724         [POSIX || XPG3] (POLL_ERR): Likewise.
36725         [POSIX || XPG3] (POLL_PRI): Likewise.
36726         [POSIX || XPG3] (POLL_HUP): Likewise.
36727         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36728         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36729         (SIG*): Do not allow.
36730         [XPG3] (si_*): Likewise.
36731         [XPG3] (SI_*): Likewise.
36732         [XPG3 || XPG4] (sigev_*): Likewise.
36733         [XPG3 || XPG4] (SIGEV_*): Likewise.
36734         [XPG3 || XPG4] (sival_*): Likewise.
36735         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36736         [POSIX || XPG3] (BUS_*): Likewise.
36737         [POSIX || XPG3] (CLD_*): Likewise.
36738         [POSIX || XPG3] (FPE_*): Likewise.
36739         [POSIX || XPG3] (ILL_*): Likewise.
36740         [POSIX || XPG3] (POLL_*): Likewise.
36741         [POSIX || XPG3] (SEGV_*): Likewise.
36742         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36743         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36744         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36745         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36746         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36747         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36748         Specify type and value.
36749         (TVERSLEN): Likewise.
36750         (REGTYPE): Likewise.
36751         (AREGTYPE): Likewise.
36752         (LNKTYPE): Likewise.
36753         (SYMTYPE): Likewise.
36754         (CHRTYPE): Likewise.
36755         (BLKTYPE): Likewise.
36756         (DIRTYPE): Likewise.
36757         (FIFOTYPE): Likewise.
36758         (CONTTYPE): Likewise.
36759         (TSUID): Likewise.
36760         (TSGID): Likewise.
36761         (TSVTX): Likewise.
36762         (TUREAD): Likewise.
36763         (TUWRITE): Likewise.
36764         (TUEXEC): Likewise.
36765         (TGREAD): Likewise.
36766         (TGWRITE): Likewise.
36767         (TGEXEC): Likewise.
36768         (TOREAD): Likewise.
36769         (TOWRITE): Likewise.
36770         (TOEXEC): Likewise.
36771         [POSIX] (TSVTX): Expect constant.
36772
36773 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36774
36775         * Makefile (tests): Change dependencies to ....
36776         (tests-special): ... additions to this variable.
36777         (tests): Depend on $(tests-special).
36778         * Makerules (check-abi-list): New variable.
36779         (check-abi): Depend on $(check-abi-list).
36780         [$(subdir) = elf] (tests-special): Add
36781         $(objpfx)check-abi-libc.out.
36782         [$(build-shared) = yes && subdir] (tests-special): Add
36783         $(check-abi-list).
36784         [$(build-shared) = yes && subdir] (tests): Do not depend on
36785         check-abi.
36786         * Rules (tests): Depend on $(tests-special).
36787         (xtests): Depend on $(xtests-special).
36788         * catgets/Makefile (tests): Change dependencies to ....
36789         (tests-special): ... additions to this variable.
36790         * conform/Makefile (tests): Change dependencies to ....
36791         (tests-special): ... additions to this variable.
36792         * elf/Makefile (tests): Change dependencies to ....
36793         (tests-special): ... additions to this variable.
36794         * grp/Makefile (tests): Change dependencies to ....
36795         (tests-special): ... additions to this variable.
36796         * iconv/Makefile (xtests): Change dependencies to ....
36797         (xtests-special): ... additions to this variable.
36798         * iconvdata/Makefile (tests): Change dependencies to ....
36799         (tests-special): ... additions to this variable.
36800         * intl/Makefile (tests): Change dependencies to ....
36801         (tests-special): ... additions to this variable.  Also add
36802         $(objpfx)tst-gettext.out.
36803         * io/Makefile (tests): Change dependencies to ....
36804         (tests-special): ... additions to this variable.
36805         * libio/Makefile (tests): Change dependencies to ....
36806         (tests-special): ... additions to this variable.
36807         * malloc/Makefile (tests): Change dependencies to ....
36808         (tests-special): ... additions to this variable.
36809         * misc/Makefile (tests): Change dependencies to ....
36810         (tests-special): ... additions to this variable.
36811         * nptl/Makefile (tests): Change dependencies to ....
36812         (tests-special): ... additions to this variable.
36813         * nptl_db/Makefile (tests): Change dependencies to ....
36814         (tests-special): ... additions to this variable.
36815         * posix/Makefile (tests): Change dependencies to ....
36816         (tests-special): ... additions to this variable.
36817         (xtests): Change dependencies to ....
36818         (xtests-special): ... additions to this variable.
36819         * resolv/Makefile (tests): Change dependencies to ....
36820         (tests-special): ... additions to this variable.
36821         (xtests): Change dependencies to ....
36822         (xtests-special): ... additions to this variable.
36823         * stdio-common/Makefile (tests): Change dependencies to ....
36824         (tests-special): ... additions to this variable.
36825         (do-tst-unbputc): Remove target.
36826         (do-tst-printf): Likewise.
36827         * stdlib/Makefile (tests): Change dependencies to ....
36828         (tests-special): ... additions to this variable.
36829         * string/Makefile (tests): Change dependencies to ....
36830         (tests-special): ... additions to this variable.
36831         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36832         (tests-special): ... additions to this variable.
36833
36834         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36835         whole file.
36836         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36837         whole file.
36838         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36839         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36840
36841         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36842         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36843         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36844         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36845         * conform/data/libgen.h-data [XPG3]: Likewise.
36846         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36847         * conform/data/ndbm.h-data [XPG3]: Likewise.
36848         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36849         * conform/data/netdb.h-data [XPG3]: Likewise.
36850         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36851         * conform/data/poll.h-data [XPG3]: Likewise.
36852         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36853         * conform/data/strings.h-data [XPG3]: Likewise.
36854         * conform/data/stropts.h-data [XPG3]: Likewise.
36855         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36856         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36857         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36858         Likewise.
36859         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36860         * conform/data/sys/time.h-data [XPG3]: Likewise.
36861         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36862         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36863         * conform/data/sys/un.h-data [XPG3]: Likewise.
36864         * conform/data/syslog.h-data [XPG3]: Likewise.
36865         * conform/data/ucontext.h-data [XPG3]: Likewise.
36866         * conform/data/utmpx.h-data [XPG3]: Likewise.
36867         * conform/data/varargs.h-data [UNIX98]: Enable file.
36868
36869         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36870
36871         * math/libm-test.inc (struct test_f_f_data): Move expected results
36872         into structure for each rounding mode.
36873         (struct test_ff_f_data): Likewise.
36874         (struct test_ff_f_data_nexttoward): Likewise.
36875         (struct test_fi_f_data): Likewise.
36876         (struct test_fl_f_data): Likewise.
36877         (struct test_if_f_data): Likewise.
36878         (struct test_fff_f_data): Likewise.
36879         (struct test_c_f_data): Likewise.
36880         (struct test_f_f1_data): Likewise.
36881         (struct test_fF_f1_data): Likewise.
36882         (struct test_ffI_f1_data): Likewise.
36883         (struct test_c_c_data): Likewise.
36884         (struct test_cc_c_data): Likewise.
36885         (struct test_f_i_data): Likewise.
36886         (struct test_ff_i_data): Likewise.
36887         (struct test_f_l_data): Likewise.
36888         (struct test_f_L_data): Likewise.
36889         (struct test_fFF_11_data): Likewise.
36890         (RM_): New macro.
36891         (RM_FE_DOWNWARD): Likewise.
36892         (RM_FE_TONEAREST): Likewise.
36893         (RM_FE_TOWARDZERO): Likewise.
36894         (RM_FE_UPWARD): Likewise.
36895         (RUN_TEST_LOOP_f_f): Update references to expected results.
36896         (RUN_TEST_LOOP_2_f): Likewise.
36897         (RUN_TEST_LOOP_fff_f): Likewise.
36898         (RUN_TEST_LOOP_c_f): Likewise.
36899         (RUN_TEST_LOOP_f_f1): Likewise.
36900         (RUN_TEST_LOOP_fF_f1): Likewise.
36901         (RUN_TEST_LOOP_fI_f1): Likewise.
36902         (RUN_TEST_LOOP_ffI_f1): Likewise.
36903         (RUN_TEST_LOOP_c_c): Likewise.
36904         (RUN_TEST_LOOP_cc_c): Likewise.
36905         (RUN_TEST_LOOP_f_i): Likewise.
36906         (RUN_TEST_LOOP_f_i_tg): Likewise.
36907         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36908         (RUN_TEST_LOOP_f_b): Likewise.
36909         (RUN_TEST_LOOP_f_b_tg): Likewise.
36910         (RUN_TEST_LOOP_f_l): Likewise.
36911         (RUN_TEST_LOOP_f_L): Likewise.
36912         (RUN_TEST_LOOP_fFF_11): Likewise.
36913         * math/gen-libm-test.pl (parse_args): Output four copies of
36914         expected results for each test.
36915
36916         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36917         (__ASSUME_UTIMES): Remove.
36918         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36919         (__ASSUME_UTIMES): Likewise.
36920
36921         * math/gen-auto-libm-tests.c: Update comment on output format.
36922         (output_for_one_input_case): Generate before-rounding and
36923         after-rounding information as conditions on output flags not
36924         floating-point format.
36925         * math/auto-libm-test-out: Regenerated.
36926         * math/gen-libm-test.pl (cond_value): New function.
36927         (or_cond_value): Use cond_value.
36928         (generate_testfile): Handle conditional exceptions.
36929
36930 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36931
36932         * math/libm-test.inc (max_valid_error): New variable.
36933         (init_max_error): Take new argument specifying whether function
36934         results are exactly determined.  Set max_valid_error and bound
36935         other variables for errors based on this argument.
36936         (set_max_error): Do not record results above max_valid_error.
36937         (check_float_internal): Only accept errors of up to 0.5ulps if
36938         also at most max_valid_error.
36939         (START): Take new argument EXACT and pass it to init_max_error.
36940         (acos_test): Update call to START.
36941         (acos_test_tonearest): Likewise.
36942         (acos_test_towardzero): Likewise.
36943         (acos_test_downward): Likewise.
36944         (acos_test_upward): Likewise.
36945         (acosh_test): Likewise.
36946         (asin_test): Likewise.
36947         (asin_test_tonearest): Likewise.
36948         (asin_test_towardzero): Likewise.
36949         (asin_test_downward): Likewise.
36950         (asin_test_upward): Likewise.
36951         (asinh_test): Likewise.
36952         (atan_test): Likewise.
36953         (atanh_test): Likewise.
36954         (atan2_test): Likewise.
36955         (cabs_test): Likewise.
36956         (cacos_test): Likewise.
36957         (cacosh_test): Likewise.
36958         (carg_test): Likewise.
36959         (casin_test): Likewise.
36960         (casinh_test): Likewise.
36961         (catan_test): Likewise.
36962         (catanh_test): Likewise.
36963         (cbrt_test): Likewise.
36964         (ccos_test): Likewise.
36965         (ccosh_test): Likewise.
36966         (ceil_test): Likewise.
36967         (cexp_test): Likewise.
36968         (cimag_test): Likewise.
36969         (clog_test): Likewise.
36970         (clog10_test): Likewise.
36971         (conj_test): Likewise.
36972         (copysign_test): Likewise.
36973         (cos_test): Likewise.
36974         (cos_test_tonearest): Likewise.
36975         (cos_test_towardzero): Likewise.
36976         (cos_test_downward): Likewise.
36977         (cos_test_upward): Likewise.
36978         (cosh_test): Likewise.
36979         (cosh_test_tonearest): Likewise.
36980         (cosh_test_towardzero): Likewise.
36981         (cosh_test_downward): Likewise.
36982         (cosh_test_upward): Likewise.
36983         (cpow_test): Likewise.
36984         (cproj_test): Likewise.
36985         (creal_test): Likewise.
36986         (csin_test): Likewise.
36987         (csinh_test): Likewise.
36988         (csqrt_test): Likewise.
36989         (ctan_test): Likewise.
36990         (ctan_test_tonearest): Likewise.
36991         (ctan_test_towardzero): Likewise.
36992         (ctan_test_downward): Likewise.
36993         (ctan_test_upward): Likewise.
36994         (ctanh_test): Likewise.
36995         (ctanh_test_tonearest): Likewise.
36996         (ctanh_test_towardzero): Likewise.
36997         (ctanh_test_downward): Likewise.
36998         (ctanh_test_upward): Likewise.
36999         (erf_test): Likewise.
37000         (erfc_test): Likewise.
37001         (exp_test): Likewise.
37002         (exp_test_tonearest): Likewise.
37003         (exp_test_towardzero): Likewise.
37004         (exp_test_downward): Likewise.
37005         (exp_test_upward): Likewise.
37006         (exp10_test): Likewise.
37007         (exp10_test_tonearest): Likewise.
37008         (exp10_test_towardzero): Likewise.
37009         (exp10_test_downward): Likewise.
37010         (exp10_test_upward): Likewise.
37011         (pow10_test): Likewise.
37012         (exp2_test): Likewise.
37013         (expm1_test): Likewise.
37014         (expm1_test_tonearest): Likewise.
37015         (expm1_test_towardzero): Likewise.
37016         (expm1_test_downward): Likewise.
37017         (expm1_test_upward): Likewise.
37018         (fabs_test): Likewise.
37019         (fdim_test): Likewise.
37020         (floor_test): Likewise.
37021         (fma_test): Likewise.
37022         (fma_test_towardzero): Likewise.
37023         (fma_test_downward): Likewise.
37024         (fma_test_upward): Likewise.
37025         (fmax_test): Likewise.
37026         (fmin_test): Likewise.
37027         (fmod_test): Likewise.
37028         (fpclassify_test): Likewise.
37029         (frexp_test): Likewise.
37030         (hypot_test): Likewise.
37031         (ilogb_test): Likewise.
37032         (isfinite_test): Likewise.
37033         (finite_test): Likewise.
37034         (isgreater_test): Likewise.
37035         (isgreaterequal_test): Likewise.
37036         (isinf_test): Likewise.
37037         (isless_test): Likewise.
37038         (islessequal_test): Likewise.
37039         (islessgreater_test): Likewise.
37040         (isnan_test): Likewise.
37041         (isnormal_test): Likewise.
37042         (issignaling_test): Likewise.
37043         (isunordered_test): Likewise.
37044         (j0_test): Likewise.
37045         (j1_test): Likewise.
37046         (jn_test): Likewise.
37047         (ldexp_test): Likewise.
37048         (lgamma_test): Likewise.
37049         (gamma_test): Likewise.
37050         (lrint_test): Likewise.
37051         (lrint_test_tonearest): Likewise.
37052         (lrint_test_towardzero): Likewise.
37053         (lrint_test_downward): Likewise.
37054         (lrint_test_upward): Likewise.
37055         (llrint_test): Likewise.
37056         (llrint_test_tonearest): Likewise.
37057         (llrint_test_towardzero): Likewise.
37058         (llrint_test_downward): Likewise.
37059         (llrint_test_upward): Likewise.
37060         (log_test): Likewise.
37061         (log10_test): Likewise.
37062         (log1p_test): Likewise.
37063         (log2_test): Likewise.
37064         (logb_test): Likewise.
37065         (logb_test_downward): Likewise.
37066         (lround_test): Likewise.
37067         (llround_test): Likewise.
37068         (modf_test): Likewise.
37069         (nearbyint_test): Likewise.
37070         (nextafter_test): Likewise.
37071         (nexttoward_test): Likewise.
37072         (pow_test): Likewise.
37073         (pow_test_tonearest): Likewise.
37074         (pow_test_towardzero): Likewise.
37075         (pow_test_downward): Likewise.
37076         (pow_test_upward): Likewise.
37077         (remainder_test): Likewise.
37078         (drem_test): Likewise.
37079         (remainder_test_tonearest): Likewise.
37080         (drem_test_tonearest): Likewise.
37081         (remainder_test_towardzero): Likewise.
37082         (drem_test_towardzero): Likewise.
37083         (remainder_test_downward): Likewise.
37084         (drem_test_downward): Likewise.
37085         (remainder_test_upward): Likewise.
37086         (drem_test_upward): Likewise.
37087         (remquo_test): Likewise.
37088         (rint_test): Likewise.
37089         (rint_test_tonearest): Likewise.
37090         (rint_test_towardzero): Likewise.
37091         (rint_test_downward): Likewise.
37092         (rint_test_upward): Likewise.
37093         (round_test): Likewise.
37094         (scalb_test): Likewise.
37095         (scalbn_test): Likewise.
37096         (scalbln_test): Likewise.
37097         (signbit_test): Likewise.
37098         (sin_test): Likewise.
37099         (sin_test_tonearest): Likewise.
37100         (sin_test_towardzero): Likewise.
37101         (sin_test_downward): Likewise.
37102         (sin_test_upward): Likewise.
37103         (sincos_test): Likewise.
37104         (sinh_test): Likewise.
37105         (sinh_test_tonearest): Likewise.
37106         (sinh_test_towardzero): Likewise.
37107         (sinh_test_downward): Likewise.
37108         (sinh_test_upward): Likewise.
37109         (sqrt_test): Likewise.
37110         (sqrt_test_tonearest): Likewise.
37111         (sqrt_test_towardzero): Likewise.
37112         (sqrt_test_downward): Likewise.
37113         (sqrt_test_upward): Likewise.
37114         (tan_test): Likewise.
37115         (tan_test_tonearest): Likewise.
37116         (tan_test_towardzero): Likewise.
37117         (tan_test_downward): Likewise.
37118         (tan_test_upward): Likewise.
37119         (tanh_test): Likewise.
37120         (tgamma_test): Likewise.
37121         (trunc_test): Likewise.
37122         (y0_test): Likewise.
37123         (y1_test): Likewise.
37124         (yn_test): Likewise.
37125         (significand_test): Likewise.
37126
37127         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
37128         individual tests in comment.
37129         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
37130         (prev_max_error): New variable.
37131         (prev_real_max_error): Likewise.
37132         (prev_imag_max_error): Likewise.
37133         (compare_ulp_data): Don't refer to test names in comment.
37134         (find_test_ulps): Remove function.
37135         (find_function_ulps): Likewise.
37136         (find_complex_function_ulps): Likewise.
37137         (init_max_error): Take function name as argument.  Look up ulps
37138         for that function.
37139         (print_ulps): Remove function.
37140         (print_max_error): Use prev_max_error instead of calling
37141         find_function_ulps.
37142         (print_complex_max_error): Use prev_real_max_error and
37143         prev_imag_max_error instead of calling find_complex_function_ulps.
37144         (check_float_internal): Take max_ulp parameter instead of calling
37145         find_test_ulps.  Don't call print_ulps.
37146         (check_float): Update call to check_float_internal.
37147         (check_complex): Update calls to check_float_internal.
37148         (START): Pass argument to init_max_error.
37149         * math/gen-libm-test.pl (%results): Don't include "kind"
37150         information.
37151         (parse_ulps): Don't handle ulps of individual tests.
37152         (print_ulps_file): Likewise.
37153         (output_ulps): Likewise.
37154         * math/README.libm-test: Update.
37155         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
37156         individual tests.
37157         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
37158         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
37159         * sysdeps/arm/libm-test-ulps: Likewise.
37160         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
37161         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
37162         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
37163         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
37164         * sysdeps/microblaze/libm-test-ulps: Likewise.
37165         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
37166         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
37167         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37168         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
37169         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
37170         * sysdeps/sh/libm-test-ulps: Likewise.
37171         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
37172         * sysdeps/tile/libm-test-ulps: Likewise.
37173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37174
37175 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
37176
37177         * math/libm-test.inc (print_complex_max_error): Check separately
37178         whether real and imaginary errors are within allowed range and
37179         pass 0 to print_complex_function_ulps instead of value within
37180         allowed range.
37181
37182 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37183
37184         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
37185         formatting.
37186         (get_handles_fopen): Likewise.
37187         (do_write_test): Likewise.
37188
37189         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
37190
37191         * libio/fileops.c (do_ftell): Use cached offset when
37192         available.
37193         * libio/iofwide.c (do_ftell_wide): Likewise.
37194         * libio/iofdopen.c (_IO_new_fdopen): Don't use
37195         _IO_file_attach.
37196         * libio/wfileops.c (_IO_fwide): Don't cache offset.
37197
37198         [BZ #16532]
37199         * libio/libioP.h (get_file_offset): New function.
37200         * libio/fileops.c (get_file_offset): Likewise.
37201         (do_ftell): Likewise.
37202         (_IO_new_file_seekoff): Split out ftell logic.
37203         * libio/wfileops.c (do_ftell_wide): Likewise.
37204         (_IO_wfile_seekoff): Split out ftell logic.
37205         * libio/tst-ftell-active-handler.c: New test case.
37206         * libio/Makefile (tests): Add it.
37207
37208 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37209
37210         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37211         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37212
37213 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37214
37215         [BZ #16639]
37216         * nscd/connections.c (nscd_init): Call do_exit.
37217         (start_threads): Call do_exit and notify_parent.
37218         (begin_drop_privileges): Call do_exit.
37219         (finish_drop_privileges): Likewise.
37220         * nscd/selinux.c (preserve_capabilities): Likewise.
37221         (install_real_capabilities): Likewise.
37222         (nscd_selinux_enabled): Likewise.
37223         (avc_create_thread): Likewise.
37224         (avc_alloc_lock): Likewise.
37225         (nscd_avc_init): Likewise.
37226         * nscd/nscd.c (parent_fd): New static variable.
37227         (main): Create a pipe between parent and child processes.
37228         Skip closing parent_fd.
37229         (monitor_child): New function.
37230         (do_exit): Likewise.
37231         (notify_parent): Likewise.
37232         * nscd/nscd.h (notify_parent): Likewise.
37233         (do_exit): Likewise.
37234
37235 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37236
37237         * malloc/malloc.c (__libc_calloc): Revert last change.
37238
37239 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37240
37241         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37242
37243 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37244
37245         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37246         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37247         implementation.
37248         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37249         (__libc_ifunc_impl_list): Likewise.
37250         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37251         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37252         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37253         * string/strrchr.c: Define STRRCHR.
37254
37255 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37256
37257         * benchtest/bench-strtok.c (simple_strtok): Delete.
37258         (strtok_string): Use as benchmark.
37259         * string/strtok (STRTOK): New macro.
37260
37261 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37262
37263         * manual/threads.texi: Add header and standard comments to all
37264         functions.
37265
37266         * elf/dl-lookup.c (check_match): New function.
37267         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37268         (do_lookup_x): Remove nested function check_match. Use non-nested
37269         function check_match.
37270
37271 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37272
37273         * csu/Makefile (generated, before-compile): Use += rather than =.
37274         * catgets/Makefile (generated, generated-dirs): Likewise.
37275         * debug/Makefile (generated): Likewise.
37276         * dlfcn/Makefile (generated): Likewise.
37277         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37278         * iconvdata/Makefile (before-compile, generated): Likewise.
37279         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37280         * libio/Makefile (generated): Likewise.
37281         * malloc/Makefile (generated): Likewise.
37282         * manual/Makefile (generated, generated-dirs): Likewise.
37283         * misc/Makefile (generated): Likewise.
37284         * posix/Makefile (generated): Likewise.
37285         * resolv/Makefile (generated): Likewise.
37286         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37287         * timezone/Makefile (generated, generated-dirs): Likewise.
37288
37289         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37290
37291 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37292
37293         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37294         power8 implementation.
37295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37296         file: POWER8 llround ifunc implementation.
37297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37298         (__lllround): Add POWER8 implementation.
37299         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37300         POWER8 llround implementation.
37301
37302         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37303         power8 implementation.
37304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37305         file: POWER8 llrint ifunc implementation.
37306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37307         Add POWER8 implementation.
37308         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37309         POWER8 llrint implementation.
37310
37311         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37312         power8 implementation.
37313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37314         file: POWER8 finite ifunc implementation.
37315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37316         Add POWER8 implementation.
37317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37318         Likewise.
37319         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37320         POWER8 finite implementation.
37321         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37322
37323         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37324         power8 implementation.
37325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37326         file: POWER8 isinf ifunc implementation.
37327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37328         POWER8 implementation.
37329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37330         Likewise.
37331         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37332         isinf implementation.
37333         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37334
37335         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37336         (INIT_ARCH): Add hwcap2 initialization.
37337         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37338         power8 implementation.
37339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37340         file: POWER8 isnan ifunc implementation.
37341         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37342         POWER8 implementation.
37343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37344         Likewise.
37345         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37346         isnan implementation.
37347         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37348
37349 2014-02-27  Joey Ye  <joey.ye@arm.com>
37350
37351         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37352         (_FP_NANFRAC_Q): Set to zero.
37353
37354 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37355
37356         [BZ #16623]
37357         * math/auto-libm-test-in: New test inputs.
37358         * math/auto-libm-test-out: Regenerate.
37359         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37360         and DA.
37361         (__cos): Likewise.
37362         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37363
37364 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37365
37366         * scripts/evaluate-test.sh: Take new argument indicating whether
37367         failure is expected.
37368         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37369         indicating whether failure is expected.
37370         * conform/Makefile (test-xfail-run-conformtest): New variable.
37371         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37372         level.
37373         * posix/Makefile (test-xfail-annexc): New variable.
37374         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37375
37376 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37377
37378         * argp/Makefile: Include Makeconfig immediately after defining
37379         subdir.
37380         * assert/Makefile: Likewise.
37381         * benchtests/Makefile: Likewise.
37382         * catgets/Makefile: Likewise.
37383         * conform/Makefile: Likewise.
37384         * crypt/Makefile: Likewise.
37385         * csu/Makefile: Likewise.
37386         (all): Remove target.
37387         * ctype/Makefile: Include Makeconfig immediately after defining
37388         subdir.
37389         * debug/Makefile: Likewise.
37390         * dirent/Makefile: Likewise.
37391         * dlfcn/Makefile: Likewise.
37392         * gmon/Makefile: Likewise.
37393         * gnulib/Makefile: Likewise.
37394         * grp/Makefile: Likewise.
37395         * gshadow/Makefile: Likewise.
37396         * hesiod/Makefile: Likewise.
37397         * hurd/Makefile: Likewise.
37398         (all): Remove target.
37399         * iconvdata/Makefile: Include Makeconfig immediately after
37400         defining subdir.
37401         * inet/Makefile: Likewise.
37402         * intl/Makefile: Likewise.
37403         * io/Makefile: Likewise.
37404         * libio/Makefile: Likewise.
37405         (all): Remove target.
37406         * locale/Makefile: Include Makeconfig immediately after defining
37407         subdir.
37408         * login/Makefile: Likewise.
37409         * mach/Makefile: Likewise.
37410         (all): Remove target.
37411         * malloc/Makefile: Include Makeconfig immediately after defining
37412         subdir.
37413         (all): Remove target.
37414         * manual/Makefile: Include Makeconfig immediately after defining
37415         subdir.
37416         * math/Makefile: Likewise.
37417         * misc/Makefile: Likewise.
37418         * nis/Makefile: Likewise.
37419         * nss/Makefile: Likewise.
37420         * po/Makefile: Likewise.
37421         (all): Remove target.
37422         * posix/Makefile: Include Makeconfig immediately after defining
37423         subdir.
37424         * pwd/Makefile: Likewise.
37425         * resolv/Makefile: Likewise.
37426         * resource/Makefile: Likewise.
37427         * rt/Makefile: Likewise.
37428         * setjmp/Makefile: Likewise.
37429         * shadow/Makefile: Likewise.
37430         * signal/Makefile: Likewise.
37431         * socket/Makefile: Likewise.
37432         * soft-fp/Makefile: Likewise.
37433         * stdio-common/Makefile: Likewise.
37434         * stdlib/Makefile: Likewise.
37435         * streams/Makefile: Likewise.
37436         * string/Makefile: Likewise.
37437         * sunrpc/Makefile: Likewise.
37438         (all): Remove target.
37439         * sysvipc/Makefile: Include Makeconfig immediately after defining
37440         subdir.
37441         * termios/Makefile: Likewise.
37442         * time/Makefile: Likewise.
37443         * timezone/Makefile: Likewise.
37444         (all): Remove target.
37445         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37446         subdir.
37447         * wctype/Makefile: Likewise.
37448
37449 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37450
37451         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37452         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37453         (libc_feholdexcept_setround_mips): Ditto.
37454         (libc_feholdsetround): New.
37455         (libc_feholdsetroundf): New.
37456         (libc_feholdsetroundl): New.
37457         (libc_feupdateenv_test_mips): New.
37458         (libc_feupdateenv_test): New.
37459         (libc_feupdateenv_testf): New.
37460         (libc_feupdateenv_testl): New.
37461         (libc_feresetround): New.
37462         (libc_feresetroundf): New.
37463         (libc_feresetroundl): New.
37464         (libc_fetestexcept_mips): New.
37465         (libc_fetestexcept): New.
37466         (libc_fetestexceptf): New.
37467         (libc_fetestexceptl): New.
37468         (HAVE_RM_CTX): New.
37469         (libc_feholdexcept_setround_mips_ctx): New.
37470         (libc_feholdexcept_setround_ctx): New.
37471         (libc_feholdexcept_setroundf_ctx): New.
37472         (libc_feholdexcept_setroundl_ctx): New.
37473         (libc_fesetenv_mips_ctx): New.
37474         (libc_fesetenv_ctx): New.
37475         (libc_fesetenv_ctxf): New.
37476         (libc_fesetenv_ctxl): New.
37477         (libc_feupdateenv_mips_ctx): New.
37478         (libc_feupdateenv_ctx): New.
37479         (libc_feupdateenvf_ctx): New.
37480         (libc_feupdateenvl_ctx): New.
37481         (libc_feholdsetround_mips_ctx): New.
37482         (libc_feholdsetround_ctx): New.
37483         (libc_feholdsetroundf_ctx): New.
37484         (libc_feholdsetroundl_ctx): New.
37485         (libc_feresetround_mips_ctx): New.
37486         (libc_feresetround_ctx): New.
37487         (libc_feresetroundf_ctx): New.
37488         (libc_feresetroundl_ctx): New.
37489
37490 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37491
37492         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37493
37494         * manual/ipc.texi: New file.
37495         * manual/Makefile (chapters): Add ipc.
37496         * manual/job.texi: Add "Inter-Process Communication" to next.
37497         * manual/process.texi: Add "Inter-Process Communication" to prev.
37498
37499 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37500
37501         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37502
37503 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37504
37505         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37506
37507         * manual/arith.texi: Fix spaces after sentences.
37508         * manual/charset.texi: Likewise.
37509         * manual/errno.texi: Likewise.
37510         * manual/install.texi: Likewise.
37511         * manual/llio.texi: Likewise.
37512         * manual/locale.texi: Likewise.
37513         * manual/maint.texi: Likewise.
37514         * manual/math.texi: Likewise.
37515         * manual/memory.texi: Likewise.
37516         * manual/message.texi: Likewise.
37517         * manual/probes.texi: Likewise.
37518         * manual/resource.texi: Likewise.
37519         * manual/signal.texi: Likewise.
37520         * manual/socket.texi: Likewise.
37521         * manual/stdio.texi: Likewise.
37522         * manual/string.texi: Likewise.
37523         * manual/time.texi: Likewise.
37524         * manual/users.texi: Likewise.
37525
37526 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37527
37528         [BZ #16632]
37529         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37530         _DEFAULT_SOURCE is defined.
37531
37532 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37533             Carlos O'Donell  <carlos@redhat.com>
37534
37535         [BZ #16613]
37536         * elf/dl-tls.c (_dl_count_modids): New function.
37537         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37538         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37539         audit library and increment generation counter.
37540         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37541         * elf/tst-audit9.c: New file.
37542         * elf/tst-auditmod9a.c: New file.
37543         * elf/tst-auditmod9b.c: New file.
37544         * elf/Makefile: Add rules to build and run tst-audit9.
37545
37546 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37547
37548         [BZ #15347]
37549         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37550
37551 2014-02-25  Will Newton  <will.newton@linaro.org>
37552
37553         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37554         (__longjmp): Restore sp and lr before restoring callee
37555         saved registers.  Add longjmp and longjmp_target
37556         SystemTap probe point.
37557         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37558         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37559         Define to zero to match jmpbuf layout.
37560         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37561         (__sigsetjmp): Save sp and lr before saving callee
37562         saved registers.  Add setjmp SystemTap probe point.
37563
37564 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37565
37566         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37567
37568 2014-02-24  Andreas Schwab  <schwab@suse.de>
37569
37570         [BZ #15804]
37571         * elf/pldd.c (wait_for_ptrace_stop): New function.
37572         (main): Call it after attaching.
37573
37574 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37575
37576         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37577         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37578         Versions files is now verboten.
37579         * hurd/Versions (libc: GLIBC_2.0):
37580         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37581         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37582         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37583         * mach/Versions: Likewise.
37584
37585         * csu/Versions: Remove unused %include.
37586         * resolv/Versions: Likewise.
37587
37588 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37589
37590         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37591         ($(objpfx)check-local-headers.out): Likewise.
37592         ($(objpfx)begin-end-check.out): Likewise.
37593         * Makerules (check-abi-%.out): Likewise.
37594         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37595         ($(objpfx)test2.cat): Likewise.
37596         ($(objpfx)de/libc.cat): Likewise.
37597         ($(objpfx)test-gencat.out): Likewise.
37598         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37599         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37600         ($(objpfx)noload-mem): Likewise.
37601         ($(objpfx)tst-pathopt.out): Likewise.
37602         ($(objpfx)tst-rtld-load-self.out): Likewise.
37603         ($(objpfx)tst-array1-cmp.out): Likewise.
37604         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37605         ($(objpfx)tst-array2-cmp.out): Likewise.
37606         ($(objpfx)tst-array3-cmp.out): Likewise.
37607         ($(objpfx)tst-array4-cmp.out): Likewise.
37608         ($(objpfx)tst-array5-cmp.out): Likewise.
37609         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37610         ($(objpfx)check-textrel.out): Likewise.
37611         ($(objpfx)check-execstack.out): Likewise.
37612         ($(objpfx)check-localplt.out): Likewise.
37613         ($(objpfx)order2-cmp.out): Likewise.
37614         ($(objpfx)tst-leaks1-mem): Likewise.
37615         ($(objpfx)tst-leaks1-static-mem): Likewise.
37616         ($(objpfx)tst-initorder-cmp.out): Likewise.
37617         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37618         ($(objpfx)tst-unused-dep.out): Likewise.
37619         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37620         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37621         * iconv/Makefile (test-iconvconfig): Likewise.
37622         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37623         ($(objpfx)iconv-test.out): Likewise.
37624         ($(objpfx)tst-tables.out): Likewise.
37625         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37626         ($(objpfx)tst-gettext.out): Likewise.
37627         ($(objpfx)tst-translit.out): Likewise.
37628         ($(objpfx)tst-gettext2.out): Likewise.
37629         ($(objpfx)tst-gettext4.out): Likewise.
37630         ($(objpfx)tst-gettext6.out): Likewise.
37631         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37632         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37633         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37634         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37635         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37636         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37637         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37638         ($(objpfx)wordexp-tst.out): Likewise.
37639         ($(objpfx)annexc.out): Likewise.
37640         ($(objpfx)tst-fnmatch-mem): Likewise.
37641         ($(objpfx)bug-regex2-mem): Likewise.
37642         ($(objpfx)bug-regex14-mem): Likewise.
37643         ($(objpfx)bug-regex21-mem): Likewise.
37644         ($(objpfx)bug-regex31-mem): Likewise.
37645         ($(objpfx)tst-vfork3-mem): Likewise.
37646         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37647         ($(objpfx)tst-pcre-mem): Likewise.
37648         ($(objpfx)tst-boost-mem): Likewise.
37649         ($(objpfx)tst-getconf.out): Likewise.
37650         ($(objpfx)bug-ga2-mem): Likewise.
37651         ($(objpfx)bug-glob2-mem): Likewise.
37652         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37653         ($(objpfx)mtrace-tst-leaks2): Likewise.
37654         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37655         ($(objpfx)tst-printf.out): Likewise.
37656         ($(objpfx)tst-setvbuf1.out): Likewise.
37657         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37658         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37659         ($(objpfx)tst-fmtmsg.out): Likewise.
37660         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37661         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37662
37663         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37664         * bits/sigaction.h [__USE_MISC]: Likewise.
37665         * bits/waitstatus.h: Update #endif comments.
37666         * ctype/ctype.h: Likewise.
37667         * dirent/dirent.h: Likewise.
37668         [__USE_MISC]: Remove redundant conditionals.
37669         * grp/grp.h: Update #endif comments.
37670         [__USE_GNU]: Remove redundant conditionals.
37671         [__USE_MISC]: Likewise.
37672         * inet/netinet/in.h [__USE_GNU]: Likewise.
37673         * io/sys/stat.h [__USE_MISC]: Likewise.
37674         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37675         * libio/bits/stdio.h: Update #endif comments.
37676         [__USE_MISC]: Remove redundant conditionals.
37677         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37678         * libio/stdio.h: Update #endif comments.
37679         [__USE_MISC]: Remove redundant conditionals.
37680         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37681         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37682         * math/math.h: Update #else and #endif comments.
37683         [__USE_MISC]: Remove redundant conditionals.
37684         * misc/sys/uio.h: Update #endif comments.
37685         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37686         * posix/glob.h [__USE_MISC]: Likewise.
37687         * posix/sys/types.h: Update #endif comments.
37688         [__USE_MISC]: Remove redundant conditionals.
37689         * posix/sys/wait.h: Update #endif comments.
37690         [__USE_MISC]: Remove redundant conditionals.
37691         * posix/unistd.h: Update #endif comments.
37692         [__USE_MISC]: Remove redundant conditionals.
37693         * pwd/pwd.h [__USE_GNU]: Likewise.
37694         [__USE_MISC]: Likewise.
37695         * resolv/netdb.h [__USE_GNU]: Likewise.
37696         * signal/signal.h: Update #endif comments.
37697         [__USE_MISC]: Remove redundant conditionals.
37698         * stdlib/stdlib.h: Update #else and #endif comments.
37699         [__USE_MISC]: Remove redundant conditionals.
37700         [__USE_GNU]: Likewise.
37701         * string/bits/string2.h [__USE_MISC]: Likewise.
37702         * string/string.h: Update #endif comments.
37703         [__USE_MISC]: Remove redundant conditionals.
37704         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37705         Likewise.
37706         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37707         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37708         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37709         Likewise.
37710         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37711         Likewise.
37712         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37713         comments.
37714         [__USE_MISC]: Remove redundant conditionals.
37715         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37716         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37717         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37718         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37719         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37720         Likewise.
37721         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37722         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37723         Likewise.
37724         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37725         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37726         Likewise.
37727         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37728         Likewise.
37729         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37730         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37731         Likewise.
37732         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37733         Likewise.
37734         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37735         * sysdeps/x86/bits/string.h: Update #endif comments.
37736         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37737         conditionals.
37738         * time/sys/time.h: Update #endif comments.
37739         * time/time.h: Likewise.
37740         [__USE_MISC]: Remove redundant conditionals.
37741
37742 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37743
37744         [BZ #16600]
37745         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37746
37747 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37748
37749         * Versions.def (librt): Add GLIBC_2.17.
37750
37751 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37752
37753         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37754         synonym for _SYS_AUXV_H to allow direct inclusion.
37755         * sysdeps/sparc/bits/hwcap.h: Likewise.
37756         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37757         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37758         * sysdeps/sparc/sysdep.h: Likewise.
37759
37760 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37761
37762         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37763
37764 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37765
37766         * benchtests/bench-strrchr.c: Print length instead of position.
37767
37768 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37769
37770         [BZ #16611]
37771         * sysdeps/unix/sysv/linux/kernel-features.h
37772         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37773         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37774         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37775         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37776         Likewise.
37777         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37778         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37779         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37780         (__ASSUME_SENDMMSG): Define instead of using previous
37781         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37782         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37783         (__ASSUME_SENDMMSG_SYSCALL): Define.
37784         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37785         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37786         Likewise.
37787         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37788         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37789         Likewise.
37790         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37791         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37792         Likewise.
37793         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37794         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37795         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37796         [__ASSUME_SENDMMSG]: Change conditionals to
37797         [__ASSUME_SENDMMSG_SOCKETCALL].
37798         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37799         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37800         Define.
37801         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37802         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37803         Likewise.
37804         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37805         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37806         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37807         [!__ASSUME_SENDMMSG]: Change conditional to
37808         [!__ASSUME_SENDMMSG_SOCKETCALL].
37809         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37810         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37811         Define.
37812
37813         [BZ #16610]
37814         * sysdeps/unix/sysv/linux/kernel-features.h
37815         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37816         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37817         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37818         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37819         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37820         [__i386__ || __sparc__]
37821         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37822         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37823         (__ASSUME_RECVMMSG): Define instead of using previous
37824         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37825         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37826         (__ASSUME_RECVMMSG_SYSCALL): Define.
37827         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37828         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37829         Likewise.
37830         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37831         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37832         Likewise.
37833         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37834         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37835         Likewise.
37836         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37837         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37838         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37839         [__ASSUME_RECVMMSG]: Change condition to
37840         [__ASSUME_RECVMMSG_SOCKETCALL].
37841         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37842         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37843         Define.
37844         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37845         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37846         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37847         Likewise.
37848         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37849         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37850         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37851         [!__ASSUME_RECVMMSG]: Change condition to
37852         [!__ASSUME_RECVMMSG_SOCKETCALL].
37853         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37854         (__ASSUME_RECVMMSG_SYSCALL): Define.
37855
37856         [BZ #16609]
37857         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37858         __powerpc__ || __s390__ || __sh__ || __sparc__]
37859         (__ASSUME_SOCKETCALL): Define.
37860         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37861         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37862         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37863         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37864         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37865         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37866         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37867         (__ASSUME_ACCEPT4): Define instead of using previous
37868         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37869         __powerpc__ || __sparc__ || __s390__)] condition.
37870         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37871         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37872         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37873         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37874         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37875         [!__ASSUME_ACCEPT4]: Change condition to
37876         [!__ASSUME_ACCEPT4_SOCKETCALL].
37877         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37878         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37879         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37880         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37881         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37882         __ASSUME_ACCEPT4_SYSCALL.
37883         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37884         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37885         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37886         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37887         __ASSUME_ACCEPT4_SYSCALL.
37888         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37889         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37890         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37891         [__ASSUME_ACCEPT4]: Change condition to
37892         [__ASSUME_ACCEPT4_SOCKETCALL].
37893         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37894         (__ASSUME_SOCKETCALL): Define.
37895         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37896         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37897         (__ASSUME_SOCKETCALL): Define.
37898         (__ASSUME_ACCEPT4): Remove.
37899         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37900         Define.
37901         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37902         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37903         Likewise.
37904         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37905         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37906
37907         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37908         macro.
37909         (HWCAP_ARM_LPAE): Likewise.
37910         (HWCAP_ARM_EVTSTRM): Likewise.
37911         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37912         Add vpfd32, lpae and evtstrm.
37913         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37914         Increase to 22.
37915
37916 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37917
37918         * math/auto-libm-test-in: Add tests of clog10.
37919         * math/auto-libm-test-out: Regenerated.
37920         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37921         * sysdeps/i386/fpu/libm-test-ulps: Update.
37922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37923
37924 2014-02-18  Andreas Schwab  <schwab@suse.de>
37925
37926         [BZ #16574]
37927         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37928         Store non-zero if the second buffer was newly allocated.
37929         (send_dg): Likewise.
37930         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37931         to send_vc and send_dg.
37932         (res_nsend): Pass NULL for ansp2_malloced.
37933         * resolv/res_query.c (__libc_res_nquery): Add parameter
37934         answerp2_malloced and pass it down to __libc_res_nsend.
37935         (res_nquery): Pass additional NULL to __libc_res_nquery.
37936         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37937         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37938         second answer buffer if answerp2_malloced was set.
37939         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37940         (__libc_res_nquerydomain): Add parameter
37941         answerp2_malloced and pass it down to __libc_res_nquery.
37942         (res_nquerydomain): Pass additional NULL to
37943         __libc_res_nquerydomain.
37944         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37945         additional NULL to __libc_res_nsend and __libc_res_nquery.
37946         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37947         additional NULL to __libc_res_nsearch.
37948         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37949         parameter of __libc_res_nsearch to check for separately allocated
37950         second buffer.
37951         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37952         __libc_res_nquery.
37953         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37954         additional NULL to __libc_res_nquery.
37955         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37956         __libc_res_nsearch.
37957         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37958         * include/resolv.h: Update prototypes of __libc_res_nquery,
37959         __libc_res_nsearch, __libc_res_nsend.
37960
37961 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37962
37963         * math/auto-libm-test-in: Add tests of fma.
37964         * math/auto-libm-test-out: Regenerated.
37965         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37966         (fma_towardzero_test_data): Likewise.
37967         (fma_downward_test_data): Likewise.
37968         (fma_upward_test_data): Likewise.
37969         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37970         mpc_mode.
37971         (rounding_modes): Add values for new field.
37972         (func_calc_method): Add value mpfr_fff_f.
37973         (func_calc_desc): Add mpfr_fff_f union field.
37974         (test_function): Add field exact_args.
37975         (FUNC): Add macro argument EXACT_ARGS.
37976         (FUNC_mpfr_f_f): Update call to FUNC.
37977         (FUNC_mpfr_f_f): Likewise.
37978         (FUNC_mpfr_ff_f): Likewise.
37979         (FUNC_mpfr_if_f): Likewise.
37980         (FUNC_mpc_c_f): Likewise.
37981         (FUNC_mpc_c_c): Likewise.
37982         (test_functions): Add fma.  Update calls to FUNC.
37983         (handle_input_arg): Add argument exact_args.
37984         (add_test): Update call to handle_input_arg.
37985         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37986         (output_for_one_input_case): Update call to calc_generic_results.
37987         Recalculate exact zero results in each rounding mode.
37988
37989         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37990         non-negative before setting low bit.
37991         * math/auto-libm-test-in: Mark one asin test possibly having
37992         spurious underflow.
37993         * math/auto-libm-test-out: Regenerated.
37994         * sysdeps/i386/fpu/libm-test-ulps: Update.
37995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37996
37997 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37998
37999         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
38000         * sysdeps/unix/sysv/linux/microblaze: Move directory from
38001         ports/sysdeps/unix/sysv/linux/microblaze.
38002         * README: Add missing listing for microblaze*-*-linux-gnu.
38003
38004 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
38005
38006         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
38007         duplicate code
38008
38009 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
38010
38011         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
38012         * sysdeps/unix/sysv/linux/ia64: Move directory from
38013         ports/sysdeps/unix/sysv/linux/ia64.
38014         * README: Update listing for ia64-*-linux-gnu.
38015
38016 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
38017             Joseph Myers  <joseph@codesourcery.com>
38018
38019         * Makeconfig (test-name): New variable.
38020         (evaluate-test): Likewise.
38021         * Makerules (do-test-clean): Remove .test-result files.
38022         (common-mostlyclean): Likewise.
38023         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
38024         * scripts/evaluate-test.sh: New file.
38025
38026 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
38027
38028         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
38029         separate $(objpfx)tst-fopenloc-cmp.out and
38030         $(objpfx)tst-fopenloc-mem.out targets.
38031         (tests): Update dependencies.
38032         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
38033         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
38034         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
38035         (tst-rxspencer-no-utf8-ARGS): New variable.
38036         (tst-rxspencer-no-utf8-ENV): Likewise.
38037         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
38038         instead of $(objpfx)tst-rxspencer-mem.
38039         ($(objpfx)tst-rxspencer-mem): Change target to
38040         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
38041         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
38042         * posix/tst-rxspencer-no-utf8.c: New file.
38043
38044         * elf/Makefile ($(objpfx)order.out): Remove rule.
38045         [$(run-built-tests) = yes] (tests): Depend on
38046         $(objpfx)order-cmp.out.
38047         ($(objpfx)order-cmp.out): New rule.
38048         [$(run-built-tests) = yes] (tests): Depend on
38049         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
38050         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
38051         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
38052         $(objpfx)tst-array5-static-cmp.out.
38053         ($(objpfx)tst-array1.out): Remove rule.
38054         ($(objpfx)tst-array1-cmp.out): New rule.
38055         ($(objpfx)tst-array1-static.out): Remove rule.
38056         ($(objpfx)tst-array1-static-cmp.out): New rule.
38057         ($(objpfx)tst-array2.out): Remove rule.
38058         ($(objpfx)tst-array2-cmp.out): New rule.
38059         ($(objpfx)tst-array3.out): Remove rule.
38060         ($(objpfx)tst-array3-cmp.out): New rule.
38061         ($(objpfx)tst-array4.out): Remove rule.
38062         ($(objpfx)tst-array4-cmp.out): New rule.
38063         ($(objpfx)tst-array5.out): Remove rule.
38064         ($(objpfx)tst-array5-cmp.out): New rule.
38065         ($(objpfx)tst-array5-static.out): Remove rule.
38066         ($(objpfx)tst-array5-static-cmp.out): New rule.
38067         [$(run-built-tests) = yes] (tests): Depend on
38068         $(objpfx)order2-cmp.out.
38069         ($(objpfx)order2.out): Remove rule.
38070         ($(objpfx)order2-cmp.out): New rule.
38071         ($(objpfx)tst-initorder.out): Remove rule.
38072         [$(run-built-tests) = yes] (tests): Depend on
38073         $(objpfx)tst-initorder-cmp.out.
38074         ($(objpfx)tst-initorder-cmp.out): New rule.
38075         ($(objpfx)tst-initorder2.out): Remove rule.
38076         [$(run-built-tests) = yes] (tests): Depend on
38077         $(objpfx)tst-initorder2-cmp.out.
38078         ($(objpfx)tst-initorder2-cmp.out): New rule.
38079         [$(run-built-tests) = yes] (tests): Depend on
38080         $(objpfx)tst-unused-dep-cmp.out.
38081         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
38082         ($(objpfx)tst-unused-dep-cmp.out): New rule.
38083         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
38084         on $(objpfx)tst-setvbuf1-cmp.out.
38085         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
38086         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
38087         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
38088         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
38089         ($(objpfx)tst-svc.out): Remove rule.
38090         ($(objpfx)tst-svc-cmp.out): New rule.
38091
38092 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
38093
38094         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
38095         * ctype/ctype.h [__USE_MISC]: Likewise.
38096         * dirent/dirent.h [__USE_MISC]: Likewise.
38097         * grp/grp.h [__USE_MISC]: Likewise.
38098         * io/fcntl.h [__USE_MISC]: Likewise.
38099         * io/sys/stat.h [__USE_MISC]: Likewise.
38100         * libio/stdio.h [__USE_MISC]: Likewise.
38101         * posix/unistd.h [__USE_MISC]: Likewise.
38102         * pwd/pwd.h [__USE_MISC]: Likewise.
38103         * stdlib.h [__USE_MISC]: Likewise.
38104         * string/bits/string2.h [__USE_MISC]: Likewise.
38105         * string/string.h [__USE_MISC]: Likewise.
38106         * time/time.h [__USE_MISC]: Likewise.
38107
38108 2014-02-13  Andreas Schwab  <schwab@suse.de>
38109
38110         [BZ #16574]
38111         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
38112         second answer buffer if it was separately allocated.
38113
38114 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
38115
38116         * sysdeps/mips/math-tests.h: Include <features.h>.
38117         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
38118         (ROUNDING_TESTS_long_double): Do not define.
38119         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
38120         (EXCEPTION_TESTS_long_double): Likewise.
38121         * sysdeps/mips/mips64/libm-test-ulps: Update.
38122
38123         * include/features.h (__USE_BSD): Remove macro definitions.
38124         (__USE_SVID): Likewise.
38125         (_BSD_SOURCE): Likewise.
38126         (_SVID_SOURCE): Likewise.
38127         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
38128         from definition of _DEFAULT_SOURCE.
38129         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
38130         [_DEFAULT_SOURCE].
38131         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
38132         * bits/mman.h [__USE_BSD]: Likewise.
38133         * bits/termios.h [__USE_BSD]: Likewise.
38134         * bits/waitstatus.h [__USE_BSD]: Likewise.
38135         * ctype/ctype.h [__USE_SVID]: Likewise.
38136         * dirent/dirent.h [__USE_BSD]: Likewise.
38137         * grp/grp.h [__USE_SVID]: Likewise.
38138         [__USE_BSD]: Likewise.
38139         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
38140         * io/fcntl.h [__USE_BSD]: Likewise.
38141         * io/ftw.h [__USE_BSD]: Likewise.
38142         * io/sys/stat.h [__USE_BSD]: Likewise.
38143         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
38144         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
38145         * libio/stdio.h [__USE_SVID]: Likewise.
38146         [__USE_BSD]: Likewise.
38147         * math/math.h [__USE_SVID]: Likewise.
38148         [__USE_BSD]: Likewise.
38149         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
38150         * misc/bits/syslog.h [__USE_BSD]: Likewise.
38151         * misc/search.h [__USE_SVID]: Likewise.
38152         * misc/sys/mman.h [__USE_BSD]: Likewise.
38153         * misc/sys/syslog.h [__USE_BSD]: Likewise.
38154         * misc/sys/uio.h [__USE_BSD]: Likewise.
38155         * posix/bits/unistd.h [__USE_BSD]: Likewise.
38156         * posix/glob.h [__USE_BSD]: Likewise.
38157         * posix/regex.h [__USE_BSD]: Likewise.
38158         * posix/sys/types.h [__USE_BSD]: Likewise.
38159         [__USE_SVID]: Likewise.
38160         * posix/sys/utsname.h [__USE_SVID]: Likewise.
38161         * posix/sys/wait.h [__USE_BSD]: Likewise.
38162         [__USE_SVID]: Likewise.
38163         * posix/unistd.h [__USE_BSD]: Likewise.
38164         [__USE_SVID]: Likewise.
38165         * pwd/pwd.h [__USE_SVID]: Likewise.
38166         * resolv/netdb.h [__USE_BSD]: Likewise.
38167         * setjmp/setjmp.h [__USE_BSD]: Likewise.
38168         * signal/signal.h [__USE_BSD]: Likewise.
38169         [__USE_SVID]: Likewise.
38170         * socket/sys/socket.h [__USE_BSD]: Likewise.
38171         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
38172         * stdlib/stdlib.h [__USE_BSD]: Likewise.
38173         [__USE_SVID]: Likewise.
38174         * string/bits/string2.h [__USE_BSD]: Likewise.
38175         [__USE_SVID]: Likewise.
38176         * string/bits/string3.h [__USE_BSD]: Likewise.
38177         * string/endian.h [__USE_BSD]: Likewise.
38178         * string/string.h [__USE_SVID]: Likewise.
38179         [__USE_BSD]: Likewise.
38180         * string/strings.h [__USE_BSD]: Likewise.
38181         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
38182         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
38183         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
38184         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
38185         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
38186         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
38187         Likewise.
38188         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
38189         Likewise.
38190         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
38191         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
38192         Likewise.
38193         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
38194         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
38195         Likewise.
38196         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
38197         Likewise.
38198         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
38199         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
38200         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38201         Likewise.
38202         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38203         Likewise.
38204         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38205         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38206         * termios/termios.h [__USE_BSD]: Likewise.
38207         * time/sys/time.h [__USE_BSD]: Likewise.
38208         * time/time.h [__USE_BSD]: Likewise.
38209         [__USE_SVID]: Likewise.
38210
38211         * Makefile (subdir_targets): Remove subdir_lint.out.
38212
38213         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38214         (do-tst-printf): Likewise.
38215         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38216         $(objpfx)tst-printf.out.
38217
38218         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38219
38220         * Makerules (check-abi-%): Change target to
38221         $(objpfx)check-abi-%.out.
38222         (check-abi target): Update dependencies.
38223         (check-abi-pattern variable): Redirect output of diff to $@.
38224         (check-abi variable): Likewise.
38225         * elf/Makefile (check-abi): Update dependencies.
38226
38227         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38228         unused.
38229         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38230         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38231         subnormal range.
38232         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38233         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38234         value has largest subnormal exponent.
38235         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38236         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38237         * sysdeps/aarch64/soft-fp/sfp-machine.h
38238         (_FP_TININESS_AFTER_ROUNDING): New macro.
38239         * sysdeps/alpha/soft-fp/sfp-machine.h
38240         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38241         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38242         Likewise.
38243         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38244         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38245         * sysdeps/mips/soft-fp/sfp-machine.h
38246         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38247         * sysdeps/powerpc/soft-fp/sfp-machine.h
38248         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38249         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38250         Likewise.
38251         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38252         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38253         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38254         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38255         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38256         Likewise.
38257
38258 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38259
38260         [BZ #16545]
38261         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38262         model 1.
38263
38264 2014-02-12  Richard Henderson  <rth@redhat.com>
38265
38266         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38267         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38268         * sysdeps/unix/sysv/linux/alpha: Move directory from
38269         ports/sysdeps/unix/sysv/linux/alpha.
38270         * README: Update listing for alpha-*-linux-gnu.
38271
38272 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38273
38274         * include/features.h: Update comment documenting feature test
38275         macros.
38276         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38277         _DEFAULT_SOURCE.
38278         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38279         (_SVID_SOURCE): Likewise.
38280         (_DEFAULT_SOURCE): Update description of default features.
38281         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38282         with _GNU_SOURCE.
38283         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38284         (S_ISVTX): Likewise.
38285         * manual/math.texi (Mathematical Constants): Likewise.
38286         * manual/signal.texi (Interrupted Primitives): Likewise.
38287         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38288         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38289         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38290         Don't refer to _SVID_SOURCE in warning text.
38291
38292         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38293
38294         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38295         already defined.
38296         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38297         * sysdeps/mips/dl-lookup.c: Remove.
38298         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38299
38300 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38301
38302         [BZ #16447]
38303         * math/auto-libm-test-in: Add testcase for expl.
38304         * math/auto-libm-test-out: Regenerate.
38305         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38306         calculation of unsafe.
38307         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38308
38309 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38310
38311         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38312         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38313         ports/sysdeps/unix/sysv/linux/aarch64.
38314         * README: Update listing for aarch64*-*-linux-gnu.
38315
38316 2014-02-11  Will Newton  <will.newton@linaro.org>
38317
38318         * manual/probes.texi (Mathematical Function Probes): Use
38319         "triggered" instead of "hit".
38320
38321         * manual/probes.texi (Internal Probes): Add documentation
38322         of setjmp, longjmp and longjmp_target probes.
38323
38324         * include/stap-probe.h: Add comment about probe argument
38325         format.
38326
38327         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38328         definition.  (tr_where, tr_freehook, tr_mallochook,
38329         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38330
38331 2014-02-11  David S. Miller  <davem@davemloft.net>
38332
38333         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38334         processing int_tests.
38335
38336 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38337
38338         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38339         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38340         * sysdeps/unix/sysv/linux/mips: Move directory from
38341         ports/sysdeps/unix/sysv/linux/mips.
38342         * README: Update listing for mips-*-linux-gnu and
38343         mips64-*-linux-gnu.
38344
38345 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38346
38347         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38348         * sysdeps/unix/sysv/linux/m68k: Move directory from
38349         ports/sysdeps/unix/sysv/linux/m68k.
38350         * README: Update listing for m68k-*-linux-gnu.
38351
38352 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38353
38354         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38355         * sysdeps/unix/sysv/linux/generic: Move directory from
38356         ports/sysdeps/unix/sysv/linux/generic.
38357         * sysdeps/unix/sysv/linux/tile: Move directory from
38358         ports/sysdeps/unix/sysv/linux/tile.
38359         * README: Update listing for tile*-*-linux-gnu.
38360
38361 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38362
38363         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38364         __builtin_expect.
38365         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38366         * catgets/open_catalog.c (__open_catalog): Likewise.
38367         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38368         * debug/confstr_chk.c: Likewise.
38369         * debug/fread_chk.c (__fread_chk): Likewise.
38370         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38371         * debug/getgroups_chk.c: Likewise.
38372         * debug/mbsnrtowcs_chk.c: Likewise.
38373         * debug/mbsrtowcs_chk.c: Likewise.
38374         * debug/mbstowcs_chk.c: Likewise.
38375         * debug/memcpy_chk.c: Likewise.
38376         * debug/memmove_chk.c: Likewise.
38377         * debug/mempcpy_chk.c: Likewise.
38378         * debug/memset_chk.c: Likewise.
38379         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38380         * debug/strcat_chk.c (__strcat_chk): Likewise.
38381         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38382         * debug/strncat_chk.c (__strncat_chk): Likewise.
38383         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38384         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38385         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38386         * debug/wcpncpy_chk.c: Likewise.
38387         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38388         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38389         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38390         * debug/wcsncpy_chk.c: Likewise.
38391         * debug/wcsnrtombs_chk.c: Likewise.
38392         * debug/wcsrtombs_chk.c: Likewise.
38393         * debug/wcstombs_chk.c: Likewise.
38394         * debug/wmemcpy_chk.c: Likewise.
38395         * debug/wmemmove_chk.c: Likewise.
38396         * debug/wmempcpy_chk.c: Likewise.
38397         * debug/wmemset_chk.c: Likewise.
38398         * dirent/scandirat.c (SCANDIRAT): Likewise.
38399         * dlfcn/dladdr1.c (dladdr1): Likewise.
38400         * dlfcn/dladdr.c (dladdr): Likewise.
38401         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38402         * dlfcn/dlerror.c (__dlerror): Likewise.
38403         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38404         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38405         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38406         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38407         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38408         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38409         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38410         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38411         Likewise.
38412         * elf/dl-conflict.c: Likewise.
38413         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38414         * elf/dl-dst.h: Likewise.
38415         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38416         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38417         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38418         * elf/dl-init.c (call_init, _dl_init): Likewise.
38419         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38420         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38421         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38422         Likewise.
38423         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38424         Likewise.
38425         * elf/dl-minimal.c (__libc_memalign): Likewise.
38426         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38427         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38428         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38429         * elf/dl-sym.c (do_sym): Likewise.
38430         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38431         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38432         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38433         * elf/dl-writev.h (_dl_writev): Likewise.
38434         * elf/ldconfig.c (search_dir): Likewise.
38435         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38436         (dl_main): Likewise.
38437         * elf/setup-vdso.h (setup_vdso): Likewise.
38438         * grp/compat-initgroups.c (compat_call): Likewise.
38439         * grp/fgetgrent.c (fgetgrent): Likewise.
38440         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38441         * grp/putgrent.c (putgrent): Likewise.
38442         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38443         Likewise.
38444         * hurd/hurdinit.c: Likewise.
38445         * iconvdata/8bit-gap.c (struct): Likewise.
38446         * iconvdata/ansi_x3.110.c : Likewise.
38447         * iconvdata/big5.c : Likewise.
38448         * iconvdata/big5hkscs.c : Likewise.
38449         * iconvdata/cp1255.c: Likewise.
38450         * iconvdata/cp1258.c : Likewise.
38451         * iconvdata/cp932.c : Likewise.
38452         * iconvdata/euc-cn.c: Likewise.
38453         * iconvdata/euc-jisx0213.c : Likewise.
38454         * iconvdata/euc-jp.c: Likewise.
38455         * iconvdata/euc-jp-ms.c : Likewise.
38456         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38457         * iconvdata/gb18030.c : Likewise.
38458         * iconvdata/gbbig5.c (const): Likewise.
38459         * iconvdata/gbgbk.c: Likewise.
38460         * iconvdata/gbk.c : Likewise.
38461         * iconvdata/ibm1364.c : Likewise.
38462         * iconvdata/ibm930.c : Likewise.
38463         * iconvdata/ibm932.c: Likewise.
38464         * iconvdata/ibm933.c : Likewise.
38465         * iconvdata/ibm935.c : Likewise.
38466         * iconvdata/ibm937.c : Likewise.
38467         * iconvdata/ibm939.c : Likewise.
38468         * iconvdata/ibm943.c: Likewise.
38469         * iconvdata/iso_11548-1.c: Likewise.
38470         * iconvdata/iso-2022-cn.c : Likewise.
38471         * iconvdata/iso-2022-cn-ext.c : Likewise.
38472         * iconvdata/iso-2022-jp-3.c: Likewise.
38473         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38474         * iconvdata/iso-2022-kr.c : Likewise.
38475         * iconvdata/iso646.c (gconv_end): Likewise.
38476         * iconvdata/iso_6937-2.c : Likewise.
38477         * iconvdata/iso_6937.c : Likewise.
38478         * iconvdata/iso8859-1.c: Likewise.
38479         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38480         * iconvdata/shift_jisx0213.c : Likewise.
38481         * iconvdata/sjis.c : Likewise.
38482         * iconvdata/t.61.c : Likewise.
38483         * iconvdata/tcvn5712-1.c : Likewise.
38484         * iconvdata/tscii.c: Likewise.
38485         * iconvdata/uhc.c : Likewise.
38486         * iconvdata/unicode.c (gconv_end): Likewise.
38487         * iconvdata/utf-16.c (gconv_end): Likewise.
38488         * iconvdata/utf-32.c (gconv_end): Likewise.
38489         * iconvdata/utf-7.c (base64): Likewise.
38490         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38491         * iconv/gconv_close.c (__gconv_close): Likewise.
38492         * iconv/gconv_open.c (__gconv_open): Likewise.
38493         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38494         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38495         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38496         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38497         (ucs4le_internal_loop_single): Likewise.
38498         * iconv/iconv.c (iconv): Likewise.
38499         * iconv/iconv_close.c: Likewise.
38500         * iconv/loop.c (SINGLE): Likewise.
38501         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38502         * include/atomic.h: Likewise.
38503         * inet/inet6_option.c (option_alloc): Likewise.
38504         * intl/bindtextdom.c (set_binding_values): Likewise.
38505         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38506         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38507         * intl/localealias.c (read_alias_file): Likewise.
38508         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38509         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38510         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38511         * libio/fmemopen.c (fmemopen): Likewise.
38512         * libio/iofgets.c (_IO_fgets): Likewise.
38513         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38514         * libio/iofgetws.c (fgetws): Likewise.
38515         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38516         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38517         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38518         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38519         * locale/findlocale.c (_nl_find_locale): Likewise.
38520         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38521         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38522         Likewise.
38523         * locale/setlocale.c (setlocale): Likewise.
38524         * login/programs/pt_chown.c (main): Likewise.
38525         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38526         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38527         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38528         (mmap, mmap64, mremap, munmap): Likewise.
38529         * math/e_exp2l.c: Likewise.
38530         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38531         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38532         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38533         * math/s_catan.c (__catan): Likewise.
38534         * math/s_catanf.c (__catanf): Likewise.
38535         * math/s_catanh.c (__catanh): Likewise.
38536         * math/s_catanhf.c (__catanhf): Likewise.
38537         * math/s_catanhl.c (__catanhl): Likewise.
38538         * math/s_catanl.c (__catanl): Likewise.
38539         * math/s_ccosh.c (__ccosh): Likewise.
38540         * math/s_ccoshf.c (__ccoshf): Likewise.
38541         * math/s_ccoshl.c (__ccoshl): Likewise.
38542         * math/s_cexp.c (__cexp): Likewise.
38543         * math/s_cexpf.c (__cexpf): Likewise.
38544         * math/s_cexpl.c (__cexpl): Likewise.
38545         * math/s_clog10.c (__clog10): Likewise.
38546         * math/s_clog10f.c (__clog10f): Likewise.
38547         * math/s_clog10l.c (__clog10l): Likewise.
38548         * math/s_clog.c (__clog): Likewise.
38549         * math/s_clogf.c (__clogf): Likewise.
38550         * math/s_clogl.c (__clogl): Likewise.
38551         * math/s_csin.c (__csin): Likewise.
38552         * math/s_csinf.c (__csinf): Likewise.
38553         * math/s_csinh.c (__csinh): Likewise.
38554         * math/s_csinhf.c (__csinhf): Likewise.
38555         * math/s_csinhl.c (__csinhl): Likewise.
38556         * math/s_csinl.c (__csinl): Likewise.
38557         * math/s_csqrt.c (__csqrt): Likewise.
38558         * math/s_csqrtf.c (__csqrtf): Likewise.
38559         * math/s_csqrtl.c (__csqrtl): Likewise.
38560         * math/s_ctan.c (__ctan): Likewise.
38561         * math/s_ctanf.c (__ctanf): Likewise.
38562         * math/s_ctanh.c (__ctanh): Likewise.
38563         * math/s_ctanhf.c (__ctanhf): Likewise.
38564         * math/s_ctanhl.c (__ctanhl): Likewise.
38565         * math/s_ctanl.c (__ctanl): Likewise.
38566         * math/w_pow.c: Likewise.
38567         * math/w_powf.c: Likewise.
38568         * math/w_powl.c: Likewise.
38569         * math/w_scalb.c (sysv_scalb): Likewise.
38570         * math/w_scalbf.c (sysv_scalbf): Likewise.
38571         * math/w_scalbl.c (sysv_scalbl): Likewise.
38572         * misc/error.c (error_tail): Likewise.
38573         * misc/pselect.c (__pselect): Likewise.
38574         * nis/nis_callback.c (__nis_create_callback): Likewise.
38575         * nis/nis_call.c (__nisfind_server): Likewise.
38576         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38577         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38578         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38579         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38580         * nis/nis_lookup.c (nis_lookup): Likewise.
38581         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38582         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38583         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38584         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38585         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38586         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38587         * nis/nss_compat/compat-initgroups.c (add_group)
38588         (internal_getgrent_r): Likewise.
38589         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38590         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38591         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38592         (internal_getspnam_r): Likewise.
38593         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38594         (_nss_nis_getaliasbyname_r): Likewise.
38595         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38596         (_nss_nis_getntohost_r): Likewise.
38597         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38598         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38599         (_nss_nis_getgrgid_r): Likewise.
38600         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38601         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38602         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38603         (_nss_nis_gethostbyname4_r): Likewise.
38604         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38605         (initgroups_netid): Likewise.
38606         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38607         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38608         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38609         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38610         (_nss_nis_getprotobynumber_r): Likewise.
38611         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38612         (_nss_nis_getsecretkey): Likewise.
38613         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38614         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38615         (_nss_nis_getpwuid_r): Likewise.
38616         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38617         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38618         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38619         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38620         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38621         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38622         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38623         Likewise.
38624         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38625         (_nss_nisplus_getntohost_r): Likewise.
38626         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38627         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38628         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38629         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38630         Likewise.
38631         * nis/nss_nisplus/nisplus-initgroups.c
38632         (_nss_nisplus_initgroups_dyn): Likewise.
38633         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38634         (_nss_nisplus_getnetbyaddr_r): Likewise.
38635         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38636         (_nss_nisplus_getprotobynumber_r): Likewise.
38637         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38638         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38639         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38640         Likewise.
38641         * nis/nss_nisplus/nisplus-service.c
38642         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38643         (_nss_nisplus_getservbyport_r): Likewise.
38644         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38645         (_nss_nisplus_getspnam_r): Likewise.
38646         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38647         Likewise.
38648         * nscd/aicache.c (addhstaiX): Likewise.
38649         * nscd/cache.c (cache_search, prune_cache): Likewise.
38650         * nscd/connections.c (register_traced_file, send_ro_fd)
38651         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38652         (main_loop_epoll): Likewise.
38653         * nscd/grpcache.c (addgrbyX): Likewise.
38654         * nscd/hstcache.c (addhstbyX): Likewise.
38655         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38656         * nscd/mem.c (gc, mempool_alloc): Likewise.
38657         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38658         (addinnetgrX): Likewise.
38659         * nscd/nscd-client.h (__nscd_acquire_maplock)
38660         (__nscd_drop_map_ref): Likewise.
38661         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38662         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38663         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38664         Likewise.
38665         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38666         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38667         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38668         (__nscd_get_map_ref): Likewise.
38669         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38670         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38671         Likewise.
38672         * nscd/pwdcache.c (addpwbyX): Likewise.
38673         * nscd/selinux.c (preserve_capabilities): Likewise.
38674         * nscd/servicescache.c (addservbyX): Likewise.
38675         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38676         * posix/fnmatch.c (fnmatch): Likewise.
38677         * posix/getopt.c (_getopt_internal_r): Likewise.
38678         * posix/glob.c (glob, glob_in_dir): Likewise.
38679         * posix/wordexp.c (exec_comm_child): Likewise.
38680         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38681         (getanswer_r, gaih_getanswer_slice): Likewise.
38682         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38683         * resolv/res_init.c: Likewise.
38684         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38685         * resolv/res_query.c (__libc_res_nquery): Likewise.
38686         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38687         Likewise.
38688         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38689         * stdio-common/perror.c (perror): Likewise.
38690         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38691         * stdio-common/tmpnam.c (tmpnam): Likewise.
38692         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38693         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38694         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38695         Likewise.
38696         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38697         * stdlib/putenv.c (putenv): Likewise.
38698         * stdlib/setenv.c (__add_to_environ): Likewise.
38699         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38700         * stdlib/strtol_l.c (INTERNAL): Likewise.
38701         * string/memmem.c (memmem): Likewise.
38702         * string/strerror.c (strerror): Likewise.
38703         * string/strnlen.c (__strnlen): Likewise.
38704         * string/test-memmem.c (simple_memmem): Likewise.
38705         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38706         * sunrpc/pm_getport.c (__get_socket): Likewise.
38707         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38708         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38709         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38710         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38711         Likewise.
38712         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38713         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38714         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38715         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38716         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38717         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38718         Likewise.
38719         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38720         Likewise.
38721         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38722         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38723         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38724         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38725         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38726         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38727         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38728         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38729         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38730         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38731         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38732         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38733         Likewise.
38734         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38735         Likewise.
38736         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38737         Likewise.
38738         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38739         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38740         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38741         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38742         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38743         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38744         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38745         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38746         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38747         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38748         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38749         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38750         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38751         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38752         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38753         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38754         Likewise.
38755         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38756         Likewise.
38757         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38758         Likewise.
38759         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38760         Likewise.
38761         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38762         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38763         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38764         Likewise.
38765         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38766         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38767         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38768         * sysdeps/posix/sleep.c: Likewise.
38769         * sysdeps/posix/tempname.c: Likewise.
38770         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38771         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38772         Likewise.
38773         * sysdeps/powerpc/powerpc32/dl-machine.h
38774         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38775         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38776         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38777         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38778         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38779         Likewise.
38780         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38781         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38782         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38783         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38784         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38785         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38786         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38787         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38788         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38789         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38790         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38791         (elf_machine_lazy_rel): Likewise.
38792         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38793         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38794         (elf_machine_lazy_rel): Likewise.
38795         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38796         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38797         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38798         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38799         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38800         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38801         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38802         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38803         Likewise.
38804         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38805         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38806         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38807         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38808         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38809         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38810         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38811         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38812         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38813         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38814         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38815         Likewise.
38816         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38817         (__posix_fallocate64_l64): Likewise.
38818         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38819         (posix_fallocate): Likewise.
38820         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38821         Likewise.
38822         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38823         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38824         (getifaddrs_internal): Likewise.
38825         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38826         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38827         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38828         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38829         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38830         (__posix_fallocate64_l64): Likewise.
38831         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38832         Likewise.
38833         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38834         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38835         (__get_clockfreq): Likewise.
38836         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38837         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38838         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38839         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38840         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38841         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38842         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38843         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38844         Likewise.
38845         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38846         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38847         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38848         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38849         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38850         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38851         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38852         Likewise.
38853         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38854         (posix_fallocate): Likewise.
38855         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38856         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38857         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38858         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38859         (elf_machine_rela, elf_machine_rela_relative)
38860         (elf_machine_lazy_rel): Likewise.
38861         * time/asctime.c (asctime_internal): Likewise.
38862         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38863         * time/tzset.c (__tzset_parse_tz): Likewise.
38864         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38865         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38866         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38867         * wcsmbs/wcsmbsload.h: Likewise.
38868
38869         [BZ #15894]
38870         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38871
38872         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38873         (arena_get2): Remove THREAD_STATS conditionals.
38874         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38875         (__malloc_stats, int): Likewise.
38876
38877 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38878
38879         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38880         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38881
38882         * manual/setjmp.texi: Fix typos/grammar errors.
38883
38884         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38885         Only return early when n is <= 0.  Delete unused return statement.
38886
38887         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38888         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38889         * debug/tst-longjmp_chk3.c: New file.
38890
38891         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38892         (test_main): Replace code with set_fortify_handler call.
38893         * debug/test-strcpy_chk.c: Likewise.
38894         * debug/tst-chk1.c: Likewise.
38895         * debug/tst-longjmp_chk.c: Likewise.
38896         * test-skeleton.c: Include fcntl.h & paths.h
38897         (set_fortify_handler): Define.
38898
38899         * debug/tst-longjmp_chk.c: Add header comment and include
38900         ../test-skeleton.c.
38901         (do_test): Mark static.
38902         (TEST_FUNCTION): Define.
38903
38904         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38905         (IP_PMTUDISC_INTERFACE): Likewise.
38906         (IP_MULTICAST_IF): Likewise.
38907         (IP_MULTICAST_TTL): Likewise.
38908         (IP_MULTICAST_LOOP): Likewise.
38909         (IP_ADD_MEMBERSHIP): Likewise.
38910         (IP_DROP_MEMBERSHIP): Likewise.
38911         (IP_UNBLOCK_SOURCE): Likewise.
38912         (IP_BLOCK_SOURCE): Likewise.
38913         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38914         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38915         (IP_MSFILTER): Likewise.
38916         (MCAST_JOIN_GROUP): Likewise.
38917         (MCAST_BLOCK_SOURCE): Likewise.
38918         (MCAST_UNBLOCK_SOURCE): Likewise.
38919         (MCAST_LEAVE_GROUP): Likewise.
38920         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38921         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38922         (MCAST_MSFILTER): Likewise.
38923         (IP_MULTICAST_ALL): Likewise.
38924         (IP_UNICAST_IF): Likewise.
38925
38926         * timezone/Makefile: Delete $(have-ksh) check.
38927         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38928         * timezone/tzselect.ksh: Add +x mode bits.
38929
38930         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38931         (ANON_INODE_FS_MAGIC): Likewise.
38932         (BDEVFS_MAGIC): Likewise.
38933         (BINFMTFS_MAGIC): Likewise.
38934         (BTRFS_TEST_MAGIC): Likewise.
38935         (CRAMFS_MAGIC_WEND): Likewise.
38936         (DEBUGFS_MAGIC): Likewise.
38937         (ECRYPTFS_SUPER_MAGIC): Likewise.
38938         (EXT3_SUPER_MAGIC): Likewise.
38939         (EXT4_SUPER_MAGIC): Likewise.
38940         (FUTEXFS_SUPER_MAGIC): Likewise.
38941         (HOSTFS_SUPER_MAGIC): Likewise.
38942         (HUGETLBFS_MAGIC): Likewise.
38943         (MINIX3_SUPER_MAGIC): Likewise.
38944         (MTD_INODE_FS_MAGIC): Likewise.
38945         (NILFS_SUPER_MAGIC): Likewise.
38946         (OPENPROM_SUPER_MAGIC): Likewise.
38947         (PIPEFS_MAGIC): Likewise.
38948         (PSTOREFS_MAGIC): Likewise.
38949         (QNX6_SUPER_MAGIC): Likewise.
38950         (RAMFS_MAGIC): Likewise.
38951         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38952         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38953         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38954         (SECURITYFS_MAGIC): Likewise.
38955         (SELINUX_MAGIC): Likewise.
38956         (SMACK_MAGIC): Likewise.
38957         (SOCKFS_MAGIC): Likewise.
38958         (SQUASHFS_MAGIC): Likewise.
38959         (STACK_END_MAGIC): Likewise.
38960         (TMPFS_MAGIC): Likewise.
38961         (USBDEVICE_SUPER_MAGIC): Likewise.
38962         (V9FS_MAGIC): Likewise.
38963         (XENFS_SUPER_MAGIC): Likewise.
38964         (CRAMFS_MAGIC): Fix typo in comment.
38965         (EXT2_SUPER_MAGIC): Update comment.
38966         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38967
38968 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38969
38970         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38971         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38972         * sysdeps/unix/sysv/linux/arm: Move directory from
38973         ports/sysdeps/unix/sysv/linux/arm.
38974         * README: Update listing for arm-*-linux-gnueabi.
38975
38976         * README: Remove mention of am33.
38977
38978 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38979
38980         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38981         than the comma operator, to avoid "rhs of comma has no effect"
38982         compiler warnings.
38983         (__sigfillset, __sigandset, __sigorset): Likewise.
38984         * include/signal.h (__sigemptyset): Likewise.
38985         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38986
38987 2014-02-07  Allan McRae  <allan@archlinux.org>
38988
38989         * version.h (RELEASE): Set to "development".
38990         (VERSION): Set to "2.19.90"
38991         * NEWS: Add 2.20 section.
38992
38993 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38994
38995         [BZ #16529]
38996         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38997
38998 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38999
39000         * manual/contrib.texi: Update entry for Carlos O'Donell,
39001         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
39002
39003 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
39004
39005         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
39006
39007         * sysdeps/unix/sysv/linux/kernel-features.h
39008         [__LINUX_KERNEL_VERSION >= 0x020621]
39009         (__ASSUME_PROC_PID_TASK_COMM): Define.
39010
39011 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
39012
39013         [BZ #16398]
39014         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
39015         conversion when destination buffer does not have enough space.
39016         * libio/tst-ftell-partial-wide.c: New test case.
39017         * libio/Makefile (tests): Add tst-ftell-partial-wide.
39018
39019         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
39020         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
39021         Leonard and Allan McRae.
39022
39023 2014-02-04  David S. Miller  <davem@davemloft.net>
39024
39025         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
39026         32-bit.
39027
39028 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39029
39030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
39031         New file
39032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
39033         New file
39034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
39035         New file.
39036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
39037         New file.
39038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
39039         New file.
39040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
39041         New file.
39042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
39043         New file.
39044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
39045         New file.
39046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
39047         New file.
39048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
39049         New file.
39050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
39051         New file.
39052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
39053         New file.
39054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
39055         New file.
39056
39057 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39058
39059         * nptl/shlib-versions: Change powerpc*le start to 2.17.
39060         * shlib-versions: Likewise.
39061
39062 2014-02-04  Roland McGrath  <roland@hack.frob.com>
39063             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39064
39065         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
39066         (abilist-pattern): New variable, set to %-le.abilist.
39067
39068         * Makerules (abilist-pattern): New variable.
39069         (vpath): Use $(abilist-pattern) in place of %.abilist.
39070         (check-abi-% pattern rule): Likewise.
39071         (check-abi, update-abi): Likewise.
39072
39073 2014-02-04  Eric Wong  <normalperson@yhbt.net>
39074
39075         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39076
39077 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
39078
39079         * manual/startup.texi: Add next, previous, and top entries for
39080         the `Program Arguments' and `Environment Variables' nodes.
39081
39082 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
39083
39084         * manual/macros.texi: Add comments before MTASC-safety macros.
39085
39086         * manual/users.texi: Document MTASC-safety properties.
39087
39088         * manual/threads.texi (pthread_key_create, pthread_key_delete)
39089         (pthread_getspecific, pthread_setspecific): Format with
39090         @deftypefun, and add @safety note.
39091         * manual/signal.texi: Move comments that analyze the above
39092         functions to their home place.
39093
39094 2014-02-03  Allan McRae  <allan@archlinux.org>
39095
39096         * po/sl.po: Update Slovenian translation from translation project.
39097
39098 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
39099
39100         * manual/time.texi (timegm): Add missing blank after @c.
39101         Reported by Joseph Myers <joseph@codesourcery.com>.
39102
39103 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
39104
39105         * manual/check-safety.sh: New.
39106         * manual/Makefile ($(objpfx)stamp-summary): Run it.
39107
39108         * manual/terminal.texi: Document MTASC-safety properties.
39109
39110         * manual/filesys.texi: Document MTASC-safety properties.
39111
39112         * manual/errno.texi: Document MTASC-safety properties.
39113
39114         * manual/intro.texi: Document safety identifiers and
39115         conditionals.
39116
39117         * manual/string.texi (wcstok): Fix prototype.
39118         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
39119
39120         * manual/time.texi: Document MTASC-safety properties.
39121
39122         * manual/string.texi: Document MTASC-safety properties.
39123
39124         * manual/threads.texi: Document MTASC-safety properties.
39125
39126         * manual/stdio.texi: Document MTASC-safety properties.
39127
39128         * manual/syslog.texi: Document MTASC-safety properties.
39129
39130         * manual/sysinfo.texi: Document MTASC-safety properties.
39131
39132         * manual/startup.texi: Document MTASC-safety properties.
39133
39134         * manual/socket.texi: Document MTASC-safety properties.
39135
39136         * manual/signal.texi: Document MTASC-safety properties.
39137
39138 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
39139
39140         * manual/setjmp.texi: Document MTASC-safety properties.
39141
39142         * manual/search.texi: Document MTASC-safety properties.
39143
39144         * manual/resource.texi: Document MTASC-safety properties.
39145
39146         * manual/process.texi: Document MTASC-safety properties.
39147
39148         * manual/platform.texi: Document MTASC-safety properties.
39149
39150         * manual/pipe.texi: Document MTASC-safety properties.
39151
39152         * manual/pattern.texi: Document MTASC-safety properties.
39153
39154         * manual/message.texi: Document MTASC-safety properties.
39155
39156         [BZ #12751]
39157         * manual/memory.texi: Document MTASC-safety properties.
39158
39159         * manual/math.texi: Document MTASC-safety properties.
39160
39161         * manual/locale.texi: Document MTASC-safety properties.
39162
39163         * manual/llio.texi: Document MTASC-safety properties.
39164
39165         * manual/libdl.texi: New.
39166
39167         * manual/lang.texi: Document MTASC-safety properties.
39168
39169         * manual/job.texi: Document MTASC-safety properties.
39170
39171         * manual/getopt.texi: Document MTASC-safety properties.
39172
39173         * manual/ctype.texi: Document MTASC-safety properties.
39174
39175 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
39176
39177         [BZ #16046]
39178         * csu/libc-tls.c (static_map): Remove variable.
39179         (__libc_setup_tls): Use main executable's link map for TLS data.
39180         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
39181         casing for LM_ID_BASE and GL(dl_nns).
39182         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
39183         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
39184         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
39185         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
39186         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
39187         member.
39188         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
39189         l_phnum members.
39190
39191 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
39192
39193         * manual/debug.texi: Document MTASC-safety properties.
39194
39195 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
39196
39197         [BZ #16510]
39198         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
39199         of __x86_64__ when disabling x87 inline functions.
39200
39201 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39202
39203         * manual/charset.texi: Document MTASC-safety properties.
39204
39205         * manual/crypt.texi: Document MTASC-safety properties.
39206
39207         * manual/conf.texi: Document MTASC-safety properties.
39208
39209         * manual/arith.texi: Document MTASC-safety properties.
39210
39211         * manual/argp.texi: Document MTASC-safety properties.
39212
39213         * manual/macros.texi: Introduce macros to document multi
39214         thread, asynchronous signal and asynchronous cancellation
39215         safety properties.
39216         * manual/intro.texi: Introduce the properties themselves.
39217
39218 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39219
39220         * sysdeps/sh/sh4/Makefile: New file.
39221
39222 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39223
39224         * math/gen-libm-test.pl ($srcdir): New variable.
39225         ($auto_input): Use it.
39226
39227 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39228
39229         [BZ #16506]
39230         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39231         access beyond array bounds when parsing netgroups file.
39232
39233         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39234         the old buffer before realloc.
39235
39236 2014-01-27  Allan McRae  <allan@archlinux.org>
39237
39238         * po/fr.po: Update French translation from translation project.
39239
39240 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39241
39242         * sysdeps/sh/libm-test-ulps: Regenerate.
39243
39244 2014-01-24  David S. Miller  <davem@davemloft.net>
39245
39246         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39247
39248 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39249
39250         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39251         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39252
39253 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39254
39255         [BZ #16474]
39256         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39257         string pointers after reallocation.
39258
39259 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39260
39261         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39262         __SH4A__ instead of __SH_FPU_ANY__.
39263
39264 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39265
39266         * sysdeps/sh/fpu_control.h: New file.
39267         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39268         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39269         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39270         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39271         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39272         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39273         * sysdeps/sh/sys/ucontext.h: Remove.
39274         * sysdeps/sh/sys: Remove directory.
39275
39276 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39277
39278         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39279         s390/sys/ucontext.h.
39280         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39281         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39282
39283 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39284
39285         [BZ #15605]
39286         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39287
39288 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39289
39290         [BZ#16431]
39291         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39292         Adjust the vDSO correctly for internal calls.
39293         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39294
39295 2014-01-20  Allan McRae  <allan@archlinux.org>
39296
39297         * po/ca.po: Update Catalan translation from translation project.
39298
39299 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39300
39301         * sysdeps/s390/sotruss-lib.c: New file.
39302
39303 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39304
39305         [BZ#16430]
39306         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39307         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39308         local calls issues by not having a PLT stub required for IFUNC calls.
39309         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39310
39311 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39312
39313         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39314         * math/test-fpucw-static.c: Likewise.
39315
39316 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39317
39318         [BZ #16453]
39319         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39320
39321 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39322
39323         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39324         implementation for powerpc.
39325
39326 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39327
39328         [BZ #14782]
39329         * sysdeps/posix/system.c (__libc_system): Do not enable
39330         asynchronous cancellation.
39331
39332 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39333
39334         [BZ #16427]
39335         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39336         handling only for numbers special also in the IEEE case.
39337
39338 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39339
39340         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39341
39342 2014-01-11  Allan McRae  <allan@archlinux.org>
39343
39344         * po/bg.po: Update Bulgarian translation from translation project.
39345
39346         * po/de.po: Update German translation from translation project.
39347
39348 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39349
39350         * sysdeps/generic/gcc-compat.h: New file.
39351
39352 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39353
39354         * benchtests/asin-inputs: Correct slow inputs.
39355         * benchtests/acos-inputs: Likewise.
39356
39357 2014-01-10  Allan McRae  <allan@archlinux.org>
39358
39359         * po:sv.po: Update Swedish translation from translation project.
39360
39361         * po/vi.po: Update Vietnamese translation from translation project.
39362
39363         * po/eo.po: Update Esperanto translation from translation project.
39364
39365         * po/cs.po: Update Czech translation from translation project.
39366
39367         * po/nl.po: Update Dutch translation from translation project.
39368
39369         * po/pl.po: Update Polish translation from translation project.
39370
39371         * po/ru.po: Update Russian translation from translation project.
39372
39373         * po/uk.po: Update Ukrainian translation from translation project.
39374
39375 2014-01-08  Brooks Moses  <bmoses@google.com>
39376
39377         * elf/dl-load.c: Fix comment typo.
39378
39379 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39380
39381         * po/header.pot: Rename to...
39382         * po/pot.header: ... this.
39383         * po/Makefile: Use pot.header.
39384
39385 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39386             Maxim Kuvyrkov  <maxim@kugelworks.com>
39387
39388         [BZ #16394]
39389         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39390         SRC and DEST against LEN.
39391
39392 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39393
39394         [BZ #16414]
39395         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39396         implementation.
39397         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39398
39399 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39400
39401         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39402
39403 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39404
39405         [BZ #16408]
39406         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39407         for large positive arguments.
39408
39409 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39410
39411         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39412
39413         * math/auto-libm-test-in: Mark various tests with
39414         xfail-rounding:ldbl-128ibm.
39415         * math/auto-libm-test-out: Regenerated.
39416
39417         [BZ #16407]
39418         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39419         Increase overflow threshold.
39420
39421 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39422
39423         [BZ #14286]
39424         * stdio-common/vfprintf.c: Check for integer overflow.
39425
39426 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39427
39428         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39429         the first argument and return value of __tls_get_addr_internal.
39430
39431 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39432
39433         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39434         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39435
39436 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39437
39438         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39439         * sysdeps/s390/rtld-global-offsets.sym: New file.
39440         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39441         GLIBC_2.19 symbol.
39442         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39443         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39444         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39445         ... this.
39446         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39447         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39448         ... this.
39449         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39450         Regenerate.
39451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39452         Regenerate.
39453         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39454         halfs of GPRs for high_gprs contexts.
39455         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39456         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39457         field.
39458         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39459         uc_flags field.
39460         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39461         64 bit versions:
39462         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39463         for high GPRs (uc_high_gprs) and for future extensions
39464         (__reserved).
39465         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39466         for future extensions (__reserved).
39467         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39468         64 bit versions:
39469         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39470         SC_HIGHGPRS offset definition.
39471         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39472         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39473
39474         * Versions.def: Add GLIBC_2.19 for libpthread.
39475         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39476         siglongjmp for libpthread with GLIBC_2.19 symver.
39477         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39478         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39479         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39480         * sysdeps/s390/__longjmp.c: New file.
39481         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39482         * sysdeps/s390/longjmp.c: New file.
39483         * sysdeps/s390/setjmp.S: New file.
39484         * sysdeps/s390/sigjmp.S: New file.
39485         * sysdeps/s390/v1-longjmp.c: New file.
39486         * sysdeps/s390/v1-setjmp.h: New file.
39487         * sysdeps/s390/v1-sigjmp.c: New file.
39488         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39489         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39490         GLIBC_2.19 version.
39491         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39492         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39493         versioned symbols for ____longjmp_chk.
39494         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39495         Likewise.
39496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39497         Regenerate.
39498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39499         Regenerate.
39500         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39501         Regenerate.
39502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39503         Regenerate.
39504         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39505         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39506         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39507         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39508         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39509         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39510         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39511         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39512         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39513         * sysdeps/s390/rtld-__longjmp.c: New file.
39514         * sysdeps/s390/rtld-setjmp.S: New file.
39515
39516 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39517
39518         [BZ #16400]
39519         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39520         Return -__logl (x) for small positive arguments without evaluating
39521         a polynomial.
39522
39523 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39524
39525         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39526         Rename to ...
39527         (__ptrace_peeksiginfo_args): ... this.
39528         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39529         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39530         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39531
39532 2014-01-06  Allan McRae  <allan@archlinux.org>
39533
39534         * inet/netinet/in.h: Fix typo in comment.
39535
39536 2014-01-05  Andreas Jaeger  <aj@suse.de>
39537
39538         * sysdeps/i386/fpu/libm-test-ulps: Update.
39539
39540 2014-01-05  Allan McRae  <allan@archlinux.org>
39541
39542         * po/libc.pot: Regenerated.
39543
39544         * malloc/memusagestat.c: Fix gettext call formatting.
39545
39546 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39547
39548         * nscd/nscd.c: Improve usage() output.
39549
39550 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39551
39552         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39553         * sysdeps/unix/sysv/linux/configure: Regenerated.
39554         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39555         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39556
39557 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39558
39559         [BZ #16390]
39560         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39561         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39562
39563 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39564
39565         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39566         extra tokens at end of #undef directive.
39567         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39568         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39569         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39570
39571 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39572
39573         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39574
39575         * math/auto-libm-test-in: Mark various tests with
39576         xfail-rounding:ldbl-128ibm.
39577         * math/auto-libm-test-out: Regenerated.
39578
39579 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39580
39581         [BZ #16386]
39582         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39583         numbers with subnormal high part when calculating exponent.
39584
39585         [BZ #16385]
39586         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39587         fabs.
39588
39589         [BZ #16384]
39590         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39591         M_LN2l.
39592         (__ieee754_acoshl): Use __log1pl not __log1p.
39593
39594 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39595
39596         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39597         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39598         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39599         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39600         (reused_arena, arena_get2): Convert to GNU style.
39601         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39602         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39603         (memalign_check, __malloc_set_state): Likewise.
39604         * malloc/mallocbug.c (main): Likewise.
39605         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39606         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39607         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39608         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39609         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39610         (__posix_memalign, malloc_info): Likewise.
39611         * malloc/malloc.h: Likewise.
39612         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39613         (mallochook, memalignhook, reallochook, mabort): Likewise.
39614         * malloc/mcheck.h: Likewise.
39615         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39616         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39617         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39618         * malloc/morecore.c (__default_morecore): Likewise.
39619         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39620         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39621         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39622         (print_and_abort): Likewise.
39623         * malloc/obstack.h: Likewise.
39624         * malloc/set-freeres.c (__libc_freeres): Likewise.
39625         * malloc/tst-mallocstate.c (main): Likewise.
39626         * malloc/tst-mtrace.c (main): Likewise.
39627         * malloc/tst-realloc.c (do_test): Likewise.
39628
39629 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39630
39631         [BZ #16366]
39632         * nscd/netgroupcache.c (do_notfound): New function.
39633         (addgetnetgrentX): Use it.
39634
39635         [BZ # 16365]
39636         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39637         NSS_STATUS_NOTFOUND.
39638
39639 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39640
39641         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39643
39644 2014-01-01  Allan McRae  <allan@archlinux.org>
39645
39646         * scripts/update-copyrights: Update configure input file suffix.
39647
39648         * NEWS: Update copyright year.
39649         * catgets/gencat.c: Likewise.
39650         * csu/version.c: Likewise.
39651         * debug/catchsegv.sh: Likewise.
39652         * debug/pcprofiledump.c: Likewise.
39653         * debug/xtrace.sh: Likewise.
39654         * elf/ldconfig.c: Likewise.
39655         * elf/ldd.bash.in: Likewise.
39656         * elf/pldd.c: Likewise.
39657         * elf/sotruss.ksh: Likewise.
39658         * elf/sprof.c: Likewise.
39659         * iconv/iconv_prog.c: Likewise.
39660         * iconv/iconvconfig.c: Likewise.
39661         * locale/programs/locale.c: Likewise.
39662         * locale/programs/localedef.c: Likewise.
39663         * login/programs/pt_chown.c: Likewise.
39664         * malloc/memusage.sh: Likewise.
39665         * malloc/memusagestat.c: Likewise.
39666         * malloc/mtrace.pl: Likewise.
39667         * manual/libc.texinfo: Likewise.
39668         * nscd/nscd.c: Likewise.
39669         * nss/getent.c: Likewise.
39670         * nss/makedb.c: Likewise.
39671         * posix/getconf.c: Likewise.
39672         * scripts/test-installation.pl: Likewise.
39673
39674         * All files with FSF copyright notices: Update copyright dates
39675         using scripts/update-copyrights.
39676         * intl/plural.c: Regenerated.
39677         * locale/programs/charmap-kw.h: Likewise.
39678         * locale/programs/locfile-kw.h: Likewise.
39679
39680 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39681
39682         * sysdeps/unix/sysv/linux/configure: Regenerated.
39683         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39684         the linux/fanotify.h header.
39685         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39686         HAVE_LINUX_FANOTIFY_H is defined.
39687
39688 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39689
39690         * benchtests/cos-inputs: New inputs.
39691         * benchtests/sin-inputs: Likewise.
39692
39693         * benchtests/atan-inputs: New inputs. Fix name of multiple
39694         precision fallback inputs.
39695
39696         * benchtests/atanh-inputs: New inputs.
39697         * benchtests/tanh-inputs: Likewise.
39698
39699         * benchtests/acosh-inputs: New inputs.
39700         * benchtests/asinh-inputs: Likewise.
39701
39702         * benchtests/cosh-inputs: New inputs.
39703         * benchtests/sinh-inputs: Likewise.
39704
39705         * benchtests/acos-inputs: Add more inputs.
39706         * benchtests/asin-inputs: Likewise.
39707
39708 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39709
39710         [BZ #16375]
39711         * manual/arith.texi: Fix spelling.
39712         * manual/charset.texi: Likewise.
39713         * manual/errno.texi: Likewise.
39714         * manual/filesys.texi: Likewise.
39715         * manual/lang.texi: Likewise.
39716         * manual/llio.texi: Likewise.
39717         * manual/locale.texi: Likewise.
39718         * manual/message.texi: Likewise.
39719         * manual/resource.texi: Likewise.
39720         * manual/search.texi: Likewise.
39721         * manual/setjmp.texi: Likewise.
39722         * manual/stdio.texi: Likewise.
39723         * manual/string.texi: Likewise.
39724         * manual/sysinfo.texi: Likewise.
39725         * manual/time.texi: Likewise.
39726
39727 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39728
39729         * po/sl.po: New file.
39730
39731 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39732
39733         * .gitignore: Add core/.gdbinit/.gdb_history.
39734
39735 2013-12-27  Allan McRae  <allan@archlinux.org>
39736
39737         [BZ #16369]
39738         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39739         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39740
39741 2013-12-24  Brooks Moses  <bmoses@google.com>
39742
39743         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39744         all compilers that claim C++98 compliance, not just GCC.
39745         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39746         Likewise.
39747
39748 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39749
39750         * NEWS: Restore accidentally deleted bug-fix entries.
39751
39752 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39753             Ondřej Bílka  <neleai@seznam.cz>
39754
39755         [BZ #15073]
39756         * malloc/malloc.c (_int_free): Perform sanity check only if we
39757         have_lock.
39758
39759 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39760
39761         [BZ #12986]
39762         * manual/stdio.texi (String Input Conversions): Clarify that character
39763         classes are not supported.
39764
39765 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39766
39767         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39768
39769 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39770
39771         [BZ #16337]
39772         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39773         Calculate results for small negative arguments directly rather
39774         than using reflection formula with special underflow handling.
39775
39776         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39777         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39778         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39779         (fchflags): Likewise.
39780         (revoke): Likewise.
39781         (setlogin): Likewise.
39782         (sigaltstack): Likewise.
39783         (wait4): Likewise.
39784         (sigblock): Remove.
39785         (sigsetmask): Likewise.
39786         (wait3): Likewise.
39787         (waitpid): Likewise.
39788         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39789         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39790         file.
39791         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39792         * sysdeps/unix/bsd/Makefile: ... here.
39793         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39794         * sysdeps/unix/bsd/Versions: ... here.
39795         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39796         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39797         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39798         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39799         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39800         * sysdeps/unix/bsd/sigblock.c: ... here.
39801         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39802         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39803         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39804         * sysdeps/unix/bsd/sigvec.c: ... here.
39805         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39806         * sysdeps/unix/bsd/tcdrain.c: ... here.
39807         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39808         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39809         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39810         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39811         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39812         * sysdeps/unix/bsd/wait.c: ... here.
39813         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39814         * sysdeps/unix/bsd/wait3.c: ... here.
39815         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39816         * sysdeps/unix/bsd/waitpid.c: ... here.
39817
39818 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39819
39820         [BZ #16356]
39821         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39822         round-to-nearest for [!USE_AS_EXPM1L].
39823         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39824         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39825         more tests of exp and exp10.  Expect some exp10 tests to miss
39826         exceptions or fail in directed rounding modes.
39827         * math/auto-libm-test-out: Regenerated.
39828         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39829         (exp10_test_tonearest): New function.
39830         (exp10_towardzero_test_data): New array.
39831         (exp10_test_towardzero): New function.
39832         (exp10_downward_test_data): New array.
39833         (exp10_test_downward): New function.
39834         (exp10_upward_test_data): New array.
39835         (exp10_test_upward): New function.
39836         (main): Call the new functions.
39837         * sysdeps/i386/fpu/libm-test-ulps: Update.
39838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39839
39840 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39841
39842         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39843         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39844         * math/auto-libm-test-out: Regenerated.
39845         * math/libm-test.inc (acosh_test_data): Add more tests.
39846         (atanh_test_data): Likewise.
39847         (ceil_test_data): Likewise.
39848         (copysign_test_data): Likewise.
39849         * sysdeps/i386/fpu/libm-test-ulps: Update.
39850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39851
39852         * timezone/checktab.awk: Update from tzcode 2013i.
39853         * timezone/private.h: Likewise.
39854         * timezone/scheck.c: Likewise.
39855         * timezone/tzfile.h: Likewise.
39856         * timezone/tzselect.ksh: Likewise.
39857         * timezone/zdump.c: Likewise.
39858         * timezone/zic.c: Likewise.
39859
39860         * math/auto-libm-test-in: Add tests of cpow.
39861         * math/auto-libm-test-out: Regenerated.
39862         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39863         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39864         mpc_cc_c.
39865         (func_calc_desc): Add mpc_cc_c union field.
39866         (test_functions): Add cpow.
39867         (special_fill_2pi): New function.
39868         (special_real_inputs): Add 2pi.
39869         (calc_generic_results): Handle mpc_cc_c.
39870         * sysdeps/i386/fpu/libm-test-ulps: Update.
39871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39872
39873         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39874         csqrt, ctan and ctanh.
39875         * math/auto-libm-test-out: Regenerated.
39876         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39877         (TEST_COND_x86): Likewise.
39878         (ccos_test_data): Use AUTO_TESTS_c_c.
39879         (ccosh_test_data): Likewise.
39880         (cexp_test_data): Likewise.
39881         (clog_test_data): Likewise.
39882         (csqrt_test_data): Likewise.
39883         (ctan_test_data): Likewise.
39884         (ctan_tonearest_test_data): Likewise.
39885         (ctan_towardzero_test_data): Likewise.
39886         (ctan_downward_test_data): Likewise.
39887         (ctan_upward_test_data): Likewise.
39888         (ctanh_test_data): Likewise.
39889         (ctanh_tonearest_test_data): Likewise.
39890         (ctanh_towardzero_test_data): Likewise.
39891         (ctanh_downward_test_data): Likewise.
39892         (ctanh_upward_test_data): Likewise.
39893         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39894         mpc_c_c.
39895         (func_calc_desc): Add mpc_c_c union field.
39896         (FUNC_mpc_c_c): New macro.
39897         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39898         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39899         ctanh.
39900         (special_fill_min_subnorm_p120): New function.
39901         (special_real_inputs): Add min_subnorm_p120.
39902         (calc_generic_results): Handle mpc_c_c.
39903         * sysdeps/i386/fpu/libm-test-ulps: Update.
39904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39905
39906 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39907
39908         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39909         (do_sin_slow): New functions.
39910         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39911         (cslow2, csloww1, csloww2): Use the new functions.
39912
39913         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39914         Use M to change sign of result instead of X.  Assume X is
39915         positive.
39916         (csloww1): Likewise.
39917         (__sin): Adjust.
39918         (__cos): Adjust.
39919
39920         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39921         arguments A and DA.
39922         (__sin): Adjust.
39923         (__cos): Likewise.
39924
39925         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39926         (__cos): Likewise.
39927         (sloww1): Don't adjust sign of DX.
39928         (csloww1): Likewise.
39929         (sloww2): Use X directly and don't adjust sign of DX.
39930         (csloww2): Likewise.
39931
39932 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39933
39934         * math/auto-libm-test-in: Add tests of cabs and carg.
39935         * math/auto-libm-test-out: Regenerated.
39936         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39937         (carg_test_data): Likewise.
39938         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39939         mpc_c_f.
39940         (func_calc_desc): Add mpc_c_f union field.
39941         (test_functions): Add cabs and carg.
39942         (calc_generic_results): Handle mpc_c_f.
39943
39944         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39945         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39946         as a macro and a compat symbol.
39947         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39948         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39949         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39950         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39951         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39952         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39953         not use .hidden.
39954         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39955         Likewise.
39956         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39957         Likewise.
39958         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39959         Likewise.
39960         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39961         Likewise.
39962         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39963         Likewise.
39964         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39965         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39966         from GLIBC_2.3.2.
39967
39968 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39969
39970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39971
39972 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39973
39974         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39975         trailing whitespace removed.
39976         * scripts/config.guess: Update to version 2013-11-29.
39977         * scripts/config.sub: Update to version 2013-10-01.
39978
39979         * math/auto-libm-test-in: Add tests of sincos.
39980         * math/auto-libm-test-out: Regenerated.
39981         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39982         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39983         mpfr_f_11.
39984         (func_calc_desc): Add mpfr_f_11 union field.
39985         (test_functions): Add sincos.
39986         (calc_generic_results): Handle mpfr_f_11.
39987         * sysdeps/i386/fpu/libm-test-ulps: Update.
39988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39989
39990 2013-12-19  Andreas Schwab  <schwab@suse.de>
39991
39992         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39993         CALL_MCOUNT.
39994         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39995         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39996         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39997
39998 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39999
40000         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
40001         * sysdeps/i386/fpu/libm-test-ulps: Update.
40002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40003
40004         [BZ #16293]
40005         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
40006         round-to-nearest mode when using frndint.
40007         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
40008         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
40009         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
40010         Likewise.
40011         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
40012         sinh test to fail.
40013         * math/auto-libm-test-out: Regenerated.
40014         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
40015         (TEST_COND_x86): Likewise.
40016         (expm1_tonearest_test_data): New array.
40017         (expm1_test_tonearest): New function.
40018         (expm1_towardzero_test_data): New array.
40019         (expm1_test_towardzero): New function.
40020         (expm1_downward_test_data): New array.
40021         (expm1_test_downward): New function.
40022         (expm1_upward_test_data): New array.
40023         (expm1_test_upward): New function.
40024         (main): Run the new test functions.
40025         * sysdeps/i386/fpu/libm-test-ulps: Update.
40026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40027
40028         * include/features.h: Update comment documenting feature test
40029         macros.  Mention _DEFAULT_SOURCE in comment.
40030         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
40031         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
40032         _BSD_SOURCE and _SVID_SOURCE.
40033         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
40034         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
40035         !_SVID_SOURCE]: Likewise.
40036         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
40037         (__USE_POSIX_IMPLICITLY): Define.
40038         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
40039         (_POSIX_SOURCE): Undefine and redefine.
40040         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
40041         (_POSIX_C_SOURCE): Likewise.
40042         * manual/creature.texi (_DEFAULT_SOURCE): Document.
40043         (Feature Test Macros): Update documentation of default features.
40044
40045 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
40046
40047         * benchtests/Makefile: Add bench-strtok.
40048         * benchtests/bench-strtok.c: New file: strtok benchtest.
40049
40050 2013-12-19  Allan McRae  <allan@archlinux.org>
40051
40052         * manual/install.texi: Suppress menu for plain text output.
40053         * INSTALL: Regenerated.
40054
40055 2013-12-18  Brooks Moses  <bmoses@google.com>
40056
40057         [BZ #15846]
40058         * misc/getauxval.c: Include errno.h.
40059         (__getauxval): Set errno to ENOENT if the requested type is not
40060         found.
40061         * misc/sys/auxv.h (getauxval): Document that it may set errno;
40062         don't declare with __attribute_const__.
40063         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
40064         * manual/startup.texi: Document that getauxval sets errno.
40065
40066 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
40067
40068         * math/auto-libm-test-in: Add tests of jn and yn.
40069         * math/auto-libm-test-out: Regenerated.
40070         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
40071         (yn_test_data): Likewise.
40072         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40073         mpfr_if_f.
40074         (func_calc_desc): Add mpfr_if_f union field.
40075         (FUNC_mpfr_if_f): New macro.
40076         (test_functions): Add jn and yn.
40077         (calc_generic_results): Assert type of second input for
40078         mpfr_ff_f.  Handle mpfr_if_f.
40079         (output_for_one_input_case): Disable all checking for arguments
40080         fitting floating-point types in case of an integer argument.
40081         * sysdeps/i386/fpu/libm-test-ulps: Update.
40082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40083
40084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
40085         Don't expect fegetround reference in libm.so.
40086
40087 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
40088
40089         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
40090         $(config-cflags-nofma).
40091
40092 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
40093
40094         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
40095         * math/auto-libm-test-out: Regenerated.
40096
40097         [BZ #16338]
40098         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
40099         to determine exponent and adjust argument to have exponent of -1.
40100         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
40101         log2.
40102         * math/auto-libm-test-out: Regenerated.
40103         * sysdeps/i386/fpu/libm-test-ulps: Update.
40104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40105
40106 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
40107
40108         * manual/probes.texi: Remove cases when per-thread arenas are
40109         disabled.
40110
40111 2013-12-18  Andreas Schwab  <schwab@suse.de>
40112
40113         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
40114         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
40115         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
40116         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
40117         * sysdeps/i386/i686/multiarch/Makefile: Update.
40118         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
40119
40120 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40121
40122         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
40123         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
40124
40125 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
40126
40127         [BZ #15968]
40128         Support TZ transition times < 00:00:00.
40129         This is needed for version-3 tz-format files; it supports time
40130         stamps past 2037 for America/Godthab (the only entry in the tz
40131         database for which this change is relevant).
40132         * manual/time.texi (TZ Variable): Document transition times
40133         from -167:59:59 through -00:00:01.
40134         * time/tzset.c (tz_rule): Time of day is now signed.
40135         (__tzset_parse_tz): Parse negative time of day.
40136
40137         Document TZ transition times >= 25:00:00.
40138         * manual/time.texi (TZ Variable): Document transition times from
40139         25:00:00 through 167:59:59.  These are already supported, and this
40140         support will help with version-3 tz-format files.
40141
40142         * manual/time.texi (TZ Variable): Modernize North America example
40143         to reflect current (i.e., 2007-and-later) daylight saving rules.
40144
40145         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
40146
40147 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40148
40149         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
40150         * sysdeps/unix/bsd/bits/stat.h: Likewise.
40151         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
40152         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
40153         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
40154         * sysdeps/unix/bsd/bsdstat.h: Likewise.
40155         * sysdeps/unix/bsd/clock.c: Likewise.
40156         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
40157         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
40158         * sysdeps/unix/bsd/init-posix.c: Likewise.
40159         * sysdeps/unix/bsd/poll.c: Likewise.
40160         * sysdeps/unix/bsd/ptsname.c: Likewise.
40161         * sysdeps/unix/bsd/seekdir.c: Likewise.
40162         * sysdeps/unix/bsd/setegid.c: Likewise.
40163         * sysdeps/unix/bsd/seteuid.c: Likewise.
40164         * sysdeps/unix/bsd/setgid.c: Likewise.
40165         * sysdeps/unix/bsd/setrgid.c: Likewise.
40166         * sysdeps/unix/bsd/setruid.c: Likewise.
40167         * sysdeps/unix/bsd/setsid.c: Likewise.
40168         * sysdeps/unix/bsd/setuid.c: Likewise.
40169         * sysdeps/unix/bsd/sigaction.c: Likewise.
40170         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
40171         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
40172         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
40173         * sysdeps/unix/bsd/telldir.c: Likewise.
40174         * sysdeps/unix/bsd/times.c: Likewise.
40175         * sysdeps/unix/bsd/usleep.c: Likewise.
40176
40177         * misc/Makefile (install-lib): Remove libbsd-compat.a.
40178         ($(objpfx)libbsd-compat.a): Remove rule.
40179
40180         * include/features.h (__FAVOR_BSD): Do not define.
40181         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40182         features conflicting with POSIX.
40183         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
40184         (_BSD_SOURCE): Remove description of not being a subset of other
40185         feature test macros.
40186         * manual/job.texi (getpgrp): Do not document BSD version.
40187         (getpgid): Do not document by reference to BSD getpgrp.
40188         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
40189         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
40190         * signal/signal.h [__FAVOR_BSD]: Likewise.
40191         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
40192         instead of making contents conditional on [__FAVOR_BSD].
40193         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
40194
40195 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40196
40197         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40198
40199 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40200
40201         [BZ #16314]
40202         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40203         values below 2**-450, not 2**-500.
40204         * math/auto-libm-test-in: Don't allow spurious underflow from
40205         hypot.
40206         * math/auto-libm-test-out: Regenerated.
40207
40208         [BZ #16316]
40209         [BZ #16330]
40210         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40211         values of ha and hb and sort them after adjusting subnormal
40212         arguments.
40213         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40214         Likewise.
40215         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40216         values of ea and eb and sort them after adjusting subnormal
40217         arguments.
40218         * math/auto-libm-test-in: Do not expect some hypot tests of
40219         subnormals to fail.  Add more hypot tests.
40220         * math/auto-libm-test-out: Regenerated.
40221
40222 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40223
40224         [BZ #13304]
40225         * sysdeps/sh/s_fma.c: New file.
40226         * sysdeps/sh/s_fmaf.c: New file.
40227         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40228         version.
40229         * sysdeps/sh/Implies: Add sh/soft-fp.
40230
40231 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40232
40233         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40234         level of indirection to members `objname', `errstring', `malloced'.
40235         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40236         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40237         it as the __longjmp argument (just pass 1 instead).
40238         (_dl_catch_error): Initialize C with argument pointers and address of
40239         volatile local ERRCODE rather than copying values out of C at return.
40240
40241 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40242
40243         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40244         * math/auto-libm-test-out: Regenerated.
40245         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40246         (hypot_test_data): Likewise.
40247         (pow_test_data): Likewise.
40248         (pow_tonearest_test_data): Likewise.
40249         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40250         mpfr_ff_f.
40251         (func_calc_desc): Add mpfr_ff_f union field.
40252         (FUNC_mpfr_ff_f): New macro.
40253         (test_functions): Add atan2, hypot and pow.
40254         (special_fill_min): New function.
40255         (special_fill_minus_min): Likewise.
40256         (special_fill_min_subnorm): Likewise.
40257         (special_fill_minus_min_subnorm): Likewise.
40258         (special_real_inputs): Add min, -min, min_subnorm and
40259         -min_subnorm.
40260         (calc_generic_results): Handle mpfr_ff_f.
40261         * sysdeps/i386/fpu/libm-test-ulps: Update.
40262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40263
40264 2013-12-16  Will Newton  <will.newton@linaro.org>
40265
40266         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40267         (Aligned Memory Blocks): Add documentation for aligned_alloc
40268         and suggest it as an alternative to posix_memalign.
40269         (Hooks for Malloc): Document __memalign_hook is also called
40270         for aligned_alloc.  (Summary of Malloc): Add summary for
40271         aligned alloc.  Document __memalign_hook is also called
40272         for aligned_alloc.
40273
40274 2013-12-16  Will Newton  <will.newton@linaro.org>
40275
40276         * manual/memory.texi (Malloc Examples): Clarify default
40277         alignment documentation.  Suggest posix_memalign rather
40278         than memalign or valloc.
40279         (Aligned Memory Blocks): Remove suggestion to use memalign
40280         or valloc.  Remove obsolete comment about BSD.
40281         Document memalign errno values and mark the function obsolete.
40282         Document posix_memalign returned error codes.  Mark valloc
40283         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40284         called for posix_memalign and valloc.
40285         (Summary of Malloc): Add posix_memalign to function summary.
40286         __memalign_hook is also called for posix_memalign and valloc.
40287
40288 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40289
40290         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40291         TAYLOR_SIN.
40292         (__sin): Adjust.
40293         (__cos): Likewise.
40294         (sloww): Use mynumber union.  Expand ternary operator into
40295         if-else statements.
40296         (cslow): use mynumber union.
40297
40298 2013-12-16  Allan McRae  <allan@archlinux.org>
40299
40300         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40301         * configure: Regenerated.
40302
40303         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40304
40305         [BZ #14120]
40306         * configure.ac: Added --enable-maintainer-mode. Check for
40307         autoconf when enabled.
40308         * configure: Regenerated.
40309
40310         * nscd/nscd.service: New file.
40311         * nscd/nscd.tmpfiles: New file.
40312
40313 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40314
40315         [BZ #12100]
40316         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40317         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40318         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40319         (strstr): Add __strstr_sse2_unaligned ifunc.
40320         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40321         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40322         (strcasestr): Remove __strcasestr_sse42 ifunc.
40323         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40324         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40326
40327 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40328
40329         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40330         * sysdeps/sh/bits/fenv.h: ... here.
40331         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40332
40333 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40334
40335         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40336
40337         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40338         hypotf multiarch implementations.
40339         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40340         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40341         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40342         multiarch hypot for PPC64.
40343         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40344         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40345         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40346         multiarch hypotf for PPC64.
40347
40348         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40349         modff multiarch implementations.
40350         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40353         multiarch modf for PPC64.
40354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40357         multiarch modff for PPC64.
40358
40359         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40360         and logl multiarch implementations.
40361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40364         multiarch logb for PPC64.
40365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40368         multiarch logb for PPC64.
40369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40372         multiarch logb for PPC64.
40373
40374         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40375         isinff multiarch implementation.
40376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40377         file.
40378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40380         multiarch isinf for PPC64.
40381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40382         file.
40383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40384         multiarch isinff for PPC64.
40385
40386         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40387         finitef multiarch implementation.
40388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40389         file.
40390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40392         multiarch finite for PPC64.
40393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40394         file.
40395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40396         multiarch finitef for PPC64.
40397
40398         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40399         lrint multiarch implementation.
40400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40401         file.
40402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40404         multiarch llrint for PPC64.
40405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40406         multiarch lrint for PPC64.
40407
40408         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40409         copysignf multiarch implementation.
40410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40411         file.
40412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40413         file.
40414         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40415         multiarch copysign for PPC64.
40416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40417         multiarch copysignf for PPC64.
40418
40419         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40420         multiarch implementation.
40421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40422         file.
40423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40424         file.
40425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40426         file.
40427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40428         file.
40429         multiarch llround for PPC64.
40430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40431         multiarch trunc for PPC64.
40432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40433         multiarch truncf for PPC64.
40434
40435         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40436         multiarch implementation.
40437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40438         file.
40439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40440         file.
40441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40442         file.
40443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40444         file.
40445         multiarch llround for PPC64.
40446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40447         multiarch round for PPC64.
40448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40449         multiarch roundf for PPC64.
40450
40451         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40452         multiarch implementation.
40453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40454         file.
40455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40456         file.
40457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40458         file.
40459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40460         file.
40461         multiarch llround for PPC64.
40462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40463         multiarch floor for PPC64.
40464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40465         multiarch floorf for PPC64.
40466
40467         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40468         multiarch implementation.
40469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40470         file.
40471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40472         file.
40473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40474         file.
40475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40476         file.
40477         multiarch llround for PPC64.
40478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40479         multiarch ceil for PPC64.
40480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40481         multiarch ceilf for PPC64.
40482
40483         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40484         multiarch implementation.
40485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40486         file.
40487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40488         file.
40489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40490         file.
40491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40492         multiarch llround for PPC64.
40493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40494         multiarch lround for PPC64.
40495
40496         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40497         multiarch implementation.
40498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40501         file.
40502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40505         multiarch isnan for PPC64.
40506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40507         multiarch isnanf for PPC64.
40508
40509         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40510         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40511         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40512         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40513         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40515
40516         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40517         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40518         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40519         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40520
40521         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40522         multiarch implementations.
40523         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40524         (__libc_ifunc_impl_list): Likewise.
40525         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40526         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40527         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40528         multiarch stpcpy for PPC64.
40529
40530         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40531         multiarch implementations.
40532         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40533         (__libc_ifunc_impl_list): Likewise.
40534         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40535         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40536         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40537         multiarch strcpy for PPC64.
40538
40539         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40540         redefine function name.
40541         (_wordcopy_fwd_dest_aligned): Likewise.
40542         (_wordcopy_bwd_aligned): Likewise.
40543         (_wordcopy_bwd_dest_aligned): Likewise.
40544         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40545         multiarch implementations.
40546         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40547         (__libc_ifunc_impl_list): Likewise.
40548         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40549         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40550         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40551         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40552         multiarch wcscpy for PPC64.
40553
40554         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40555         multiarch implementations.
40556         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40557         (__libc_ifunc_impl_list): Likewise.
40558         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40559         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40560         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40561         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40562         multiarch wcscpy for PPC64.
40563
40564         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40565         multiarch implementations.
40566         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40567         (__libc_ifunc_impl_list): Likewise.
40568         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40569         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40570         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40571         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40572         multiarch wcsrchr for PPC64.
40573
40574         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40575         multiarch implementations.
40576         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40577         (__libc_ifunc_impl_list): Likewise.
40578         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40579         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40580         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40581         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40582         multiarch wcschr for PPC64.
40583
40584         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40585         multiarch implementations.
40586         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40587         (__libc_ifunc_impl_list): Likewise.
40588         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40589         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40590         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40591         multiarch strchrnul for PPC64.
40592
40593         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40594         implementations.
40595         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40596         (__libc_ifunc_impl_list): Likewise.
40597         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40598         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40599         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40600         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40601         strchr for PPC64.
40602
40603         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40604         implementations.
40605         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40606         (__libc_ifunc_impl_list): Likewise.
40607         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40608         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40609         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40610         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40611         strncmp for PPC64.
40612
40613         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40614         multiarch implementations.
40615         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40616         (__libc_ifunc_impl_list): Likewise.
40617         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40618         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40619         strncasecmp for PPC64.
40620         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40621         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40622         multiarch strncasecmp_l for PPC64.
40623
40624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40625         multiarch implementations.
40626         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40627         (__libc_ifunc_impl_list): Likewise.
40628         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40629         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40630         multiarch strcasecmp for PPC64.
40631         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40632         file.
40633         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40634         multiarch strcasecmp_l for PPC64.
40635
40636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40637         implementations.
40638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40639         (__libc_ifunc_impl_list): Likewise.
40640         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40641         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40642         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40643         strnlen for PPC64.
40644
40645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40646         implementations.
40647         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40648         (__libc_ifunc_impl_list): Likewise.
40649         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40650         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40651         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40652         strlen for PPC64.
40653
40654         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40655         implementations.
40656         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40657         (__libc_ifunc_impl_list): Likewise.
40658         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40659         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40660         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40661         rawmemrchr for PPC64.
40662
40663         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40664         implementation.
40665         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40666         (__libc_ifunc_impl_list): Likewise.
40667         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40668         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40669         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40670         memrchr for PPC64.
40671
40672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40673         implementation.
40674         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40675         (__libc_ifunc_impl_list): Likewise.
40676         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40677         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40678         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40679         memchr for PPC64.
40680
40681         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40682         implementation.
40683         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40684         (__libc_ifunc_impl_list): Likewise.
40685         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40686         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40687         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40688         mempcpy for PPC64.
40689
40690         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40691         avoid cretion of __bzero symbol.
40692         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40693         Likewise.
40694         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40695         Likewise.
40696         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40697         Likewise.
40698         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40699         multiarch implementations.
40700         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40701         (__libc_ifunc_impl_list): Likewise.
40702         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40703         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40704         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40705         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40706         bzero for PPC32.
40707         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40708         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40709         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40710         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40711         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40712         memset for PPC64.
40713         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40714
40715         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40716         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40717         implementations.
40718         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40719         (__libc_ifunc_impl_list): Likewise.
40720         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40721         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40722         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40723         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40724         memcmp for PPC64.
40725
40726         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40727         multiarch for POWER/PPC64.
40728         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40729         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40730         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40731         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40732         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40733         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40734         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40735         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40736         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40737         memcpy for PPC64.
40738
40739         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40740         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40741         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40742         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40743         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40744         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40745         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40746         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40747         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40748         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40749         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40750         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40751         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40752         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40753         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40761
40762 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40763
40764         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40765
40766 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40767
40768         * benchtests/Makefile (bench): Add exp2 and log2.
40769         (LDLIBS-bench-exp2): Add -lm.
40770         (LDLIBS-bench-log2): Likewise.
40771         * benchtests/exp2-inputs: New inputs file.
40772         * benchtests/log2-inputs: New inputs file.
40773         * benchtests/log-inputs: Add new inputs.
40774         * benchtests/tan-inputs: Likewise.
40775
40776 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40777
40778         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40779         definition...
40780         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40781         (csloww2): ... from here.
40782
40783         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40784         instead of structures.
40785         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40786         (POLYNOMIAL): Likewise.
40787         (TAYLOR_SLOW): Likewise.
40788         (__sin): Likewise.
40789         (__cos): Likewise.
40790         (slow1): Likewise.
40791         (slow2): Likewise.
40792         (sloww): Likewise.
40793         (sloww1); Likewise.
40794         (sloww2): Likewise.
40795         (bsloww1): Likewise.
40796         (bsloww2): Likewise.
40797         (cslow2): Likewise.
40798         (csloww): Likewise.
40799         (csloww1): Likewise.
40800         (csloww2): Likewise.
40801
40802 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40803
40804         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40805         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40806         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40807         * malloc/hooks.c (realloc_check): Likewise.
40808
40809         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40810         * malloc/arena.c: Remove PER_THREAD conditional.
40811         [!PER_THREAD]: Remove code.
40812         (ptmalloc_unlock_all2): Likewise.
40813         (ptmalloc_init): Likewise.
40814         (_int_new_arena): Likewise.
40815         (arena_get2): Likewise.
40816         * malloc/hooks.c (__malloc_get_state): Likewise.
40817         (__malloc_set_state): Likewise.
40818         * malloc/malloc.c: Likewise.
40819         (struct malloc_state): Likewise.
40820         (struct malloc_par): Likewise.
40821         (__libc_realloc): Likewise.
40822         (__libc_mallopt): Likewise.
40823
40824 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40825
40826         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40827
40828 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40829
40830         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40831         macro to a function.  Check for zero perturb_byte.
40832         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40833
40834         * malloc/malloc.c: (force_reg): Remove.
40835         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40836         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40837         force_reg by atomic_forced_read.
40838         * malloc/arena.c (ptmalloc_init): Likewise.
40839         * malloc/hooks.c (top_check): Likewise.
40840
40841 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40842
40843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40844
40845 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40846
40847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40848
40849 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40850
40851         * math/auto-libm-test-in: Add tests of lgamma.
40852         * math/auto-libm-test-out: Regenerated.
40853         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40854         (M_LOG_2_SQRT_PIl): Likewise.
40855         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40856         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40857         mpfr_f_f1.
40858         (func_calc_desc): Add mpfr_f_f1 union field.
40859         (ARGS1): New macro.
40860         (ARGS2): Likewise.
40861         (ARGS3): Likewise.
40862         (ARGS4): Likewise.
40863         (RET1): Likewise.
40864         (RET2): Likewise.
40865         (CALC): Likewise.
40866         (FUNC): Likewise.
40867         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40868         (test_functions): Add lgamma.
40869         (calc_generic_results): Handle mpfr_f_f1.
40870         * sysdeps/i386/fpu/libm-test-ulps: Update.
40871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40872
40873 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40874
40875         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40876         __mpn_add_n for PowerPC64/POWER7.
40877         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40878         __mpn_sub_n for PowerPC64/POWER7.
40879
40880         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40881         __mpn_addmul_1 for PowerPC64.
40882         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40883         __mpn_submul_1 for PowerPC64.
40884         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40885         for PowerPC64.
40886         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40887         for PowerPC64.
40888
40889 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40890
40891         [BZ #15089]
40892         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40893
40894 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40895
40896         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40897
40898         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40899         add multiarch folders.
40900         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40901         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40902         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40903         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40904         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40905         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40906         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40907         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40908         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40909         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40910         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40917
40918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40919         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40921         New file.
40922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40923         New file.
40924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40925         multiarch __ieee754_hypot for PowerPC32.
40926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40927         New file.
40928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40929         New file.
40930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40931         multiarch __ieee754_hypotf for PowerPC32.
40932
40933         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40934         long_double_symbol only if __logbl is defined.
40935         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40936         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40937         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40938         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40939         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40940         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40941         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40942         path for implementation.
40943         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40944         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40946         logb, and logbl multiarch implementations for PowerPC32.
40947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40948         file.
40949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40950         file.
40951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40952         multiarch logb for PowerPC32.
40953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40954         file.
40955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40956         file.
40957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40958         multiarch logbf for PowerPC32.
40959         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40961         file.
40962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40963         multiarch logbl implementation for PowerPC32.
40964
40965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40966         and modff multiarch implementations.
40967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40968         New file.
40969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40970         New file.
40971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40972         multiarch modf for PowerPC32.
40973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40974         New file.
40975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40976         New file.
40977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40978         multiarch modff for PowerPC32.
40979
40980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40981         and lrintf multiarch implementations.
40982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40983         New file.
40984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40985         New file.
40986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40987         multiarch lrint for PowerPC32.
40988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40989         file: multiarch lrintf for PowerPC32.
40990
40991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40992         and lroundf multiarch implementations.
40993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40994         New file.
40995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40996         New file.
40997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40998         New file.
40999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
41000         multiarch lround for PowerPC32.
41001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
41002         file: multiarch lroundf for PowerPC32.
41003
41004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
41005         copysign and copysignf multiarch implementations.
41006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
41007         New file.
41008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
41009         New file.
41010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
41011         file: multiarch copysign for PowerPC32.
41012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
41013         file: multiarch copysignf for PowerPC32.
41014
41015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
41016         and truncf multiarch implementations.
41017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
41018         New file.
41019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
41020         file.
41021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
41022         multiarch trunc for PowerPC32.
41023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
41024         New file.
41025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
41026         New file.
41027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
41028         multiarch truncf for PowerPC32.
41029
41030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
41031         and roundf multiarch implementations.
41032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
41033         New file.
41034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
41035         file.
41036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
41037         multiarch round for PowerPC32.
41038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
41039         New file.
41040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
41041         New file.
41042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
41043         multiarch roundf for PowerPC32.
41044
41045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
41046         and floorf multiarch implementations.
41047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
41048         New file.
41049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
41050         file.
41051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
41052         multiarch floor for PowerPC32.
41053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
41054         New file.
41055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
41056         New file.
41057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
41058         multiarch floorf for PowerPC32.
41059
41060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
41061         and ceilf multiarch implementations.
41062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
41063         New file.
41064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
41065         file.
41066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
41067         multiarch ceil for PowerPC32.
41068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
41069         New file.
41070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
41071         file.
41072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
41073         multiarch ceilf for PowerPC32.
41074
41075         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
41076         is defined.
41077         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
41078         FINITEF is defined.
41079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
41080         and finitef multiarch implementations.
41081         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
41082         New file.
41083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
41084         file.
41085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
41086         multiarch finite for PowerPC32.
41087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
41088         New file.
41089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
41090         file: multiarch finitef for PowerPC32.
41091
41092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
41093         and isinff multiarch implementations.
41094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
41095         file.
41096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
41097         file.
41098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
41099         multiarch isinf for PowerPC32.
41100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
41101         New file.
41102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
41103         multiarch isinff for PowerPC32.
41104
41105         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
41106         alias when __isnan is defined.
41107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
41108         and isnanf multiarch implementations.
41109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
41110         file.
41111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
41112         file.
41113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
41114         file.
41115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
41116         file.
41117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
41118         multiarch isnan for PowerPC32.
41119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
41120         New file.
41121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
41122         New file.
41123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
41124         multiarch isnanf for PowerPC32.
41125
41126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
41127         and sqrtf multiarch implementations.
41128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
41129         file.
41130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
41131         file.
41132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
41133         multiarch sqrt for PowerPC32.
41134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
41135         file.
41136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
41137         file.
41138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
41139         multiarch sqrtf for PowerPC32.
41140
41141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
41142         and llroundf multiarch implementations.
41143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
41144         New file.
41145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
41146         New file.
41147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
41148         New file.
41149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
41150         file: multiarch llround for PowerPC32.
41151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
41152         file: multiarch llroundf for PowerPC32.
41153
41154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
41155         multiarch PowerPC32 fpu implementations.
41156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
41157         New file.
41158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
41159         New file.
41160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
41161         multiarch llrint for PowerPC32.
41162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
41163         New file.
41164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
41165         New file.
41166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
41167         file.
41168
41169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
41170
41171         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
41172         file.
41173         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
41174         file.
41175         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
41176         file.
41177         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
41178         multiarch wordcopy for PPC32.
41179         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41180         wordcopy objects.
41181         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41182         (__libc_ifunc_impl_list): Likewise.
41183         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
41184         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
41185         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
41186         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
41187         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
41188         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
41189
41190         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
41192         file.
41193         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
41194         file.
41195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
41196         file.
41197         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
41198         multiarch wcscpy for PPC32.
41199         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41200         multiarch objects.
41201         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41202         (__libc_ifunc_impl_list): Likewise.
41203         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41204         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41205         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41206         sysdeps/powerpc/power6/wcscpy.c.
41207
41208         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41209         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41210         file.
41211         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41212         file.
41213         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41214         file.
41215         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41216         multiarch wcsrchr for PPC32.
41217         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41218         multiarch objects.
41219         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41220         (__libc_ifunc_impl_list): Likewise.
41221         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41222         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41223         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41224         sysdeps/powerpc/power6/wcsrchr.c.
41225
41226         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41227         file.
41228         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41229         file.
41230         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41231         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41232         multiarch wcschr for PPc32.
41233         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41234         multiarch objects.
41235         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41236         (__libc_ifunc_impl_list): Likewise.
41237         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41238         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41239         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41240         sysdeps/powerpc/power6/wcschr.c.
41241
41242         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41243         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41244         file.
41245         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41246         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41247         file: multiarch strchr for PPC32.
41248         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41249         multiarch objects.
41250         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41251         (__libc_ifunc_impl_list): Likewise.
41252
41253         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41254         name.
41255         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41256         file.
41257         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41258         file.
41259         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41260         multiarch strchrnul for PPC32.
41261         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41262         multiarch objects.
41263         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41264         (__libc_ifunc_impl_list): Likewise.
41265
41266         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41267         file.
41268         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41269         multiarch strncasecmp for PPC32.
41270         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41271         file.
41272         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41273         multiarch strncasecmp_l for PPC32.
41274         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41275         strncasecmp multiarch objects.
41276         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41277         (__libc_ifunc_impl_list): Likewise.
41278
41279         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41280         file.
41281         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41282         multiarch strncasecmp for PPC32.
41283         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41284         New file.
41285         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41286         multiarch strcasecmp_l for PPC32.
41287         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41288         multiarch objects.
41289         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41290         (__libc_ifunc_impl_list): Likewise.
41291
41292         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41293         file.
41294         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41295         file.
41296         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41297         multiarch strncmp for PPC32.
41298         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41299         multiarch objects.
41300         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41301         (__libc_ifunc_impl_list): Likewise.
41302
41303         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41304         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41305         file.
41306         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41307         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41308         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41309         multiarch objects.
41310         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41311         (__libc_ifunc_impl_list): Likewise.
41312
41313         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41314         file.
41315         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41316         file.
41317         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41318         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41319         multiarch objects.
41320         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41321         (__libc_ifunc_impl_list): Likewise.
41322
41323         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41324         file.
41325         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41326         file.
41327         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41328         multiarch rawmemchr for PPC32.
41329         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41330         multiarch objects.
41331         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41332         (__libc_ifunc_impl_list): Likewise.
41333
41334         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41335         file.
41336         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41337         file.
41338         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41339         file: memrchr multiarch for PPC32.
41340         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41341         multiarch objects.
41342         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41343         (__libc_ifunc_impl_list): Likewise.
41344
41345         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41346         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41347         file.
41348         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41349         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41350         multiarch memchr for PPC32.
41351         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41352         multiarch objects.
41353         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41354         (__libc_ifunc_impl_list): Likewise.
41355
41356         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41357         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41358         file.
41359         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41360         file.
41361         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41362         file: multiarch mempcpy for PPC32.
41363         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41364         multiarch objects.
41365         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41366         (__libc_ifunc_impl_list): Likewise.
41367
41368         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41369         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41370         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41371         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41372         multiarch bzero for PPC32.
41373         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41374         file.
41375         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41376         file.
41377         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41378         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41379         file: multiarch memset for PPC32.
41380         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41381         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41382         memset multiarch objects.
41383         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41384         (__libc_ifunc_impl_list): Likewise.
41385
41386         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41387         file.
41388         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41389         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41390         memcmp for PPC32.
41391         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41392         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41393         multiarch objects.
41394         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41395         (__libc_ifunc_impl_list): Likewise.
41396
41397         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41398         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41399         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41400         file.
41401         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41402         file.
41403         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41404         file.
41405         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41406         multiarch memcpy for PPC32.
41407         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41408         multiarch objects.
41409         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41410         (__libc_ifunc_impl_list): Likewise.
41411
41412         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41413         support multiarch for POWER/PPC32.
41414         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41415         Likewise.
41416         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41418         Implies file to make multiarch folder appers before the fpu and
41419         default folder for power4 configuration.
41420
41421 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41422
41423         * scripts/bench.pl: Append volatile keyword to type.
41424
41425 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41426
41427         * sysdeps/sh/sotruss-lib.c: New file.
41428         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41429
41430 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41431
41432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41433
41434 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41435
41436         [BZ #6810]
41437         * math/w_tgamma.c: Include <errno.h>.
41438         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41439         * math/w_tgammaf.c: Include <errno.h>.
41440         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41441         * math/w_tgammal.c: Include <errno.h>.
41442         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41443         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41444         underflow.  Add more tgamma tests.
41445         * math/auto-libm-test-out: Regenerated.
41446         * sysdeps/i386/fpu/libm-test-ulps: Update.
41447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41448
41449         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41450         sin, sinh, tan, tanh, tgamma, y0 and y1.
41451         * math/auto-libm-test-out: Regenerated.
41452         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41453         (TEST_COND_x86): Likewise.
41454         (M_E2l): Remove macro.
41455         (M_E3l): Likewise.
41456         (M_2_SQRT_PIl): Likewise.
41457         (M_SQRT_PIl): Likewise.
41458         (M_1_DIV_El): Likewise.
41459         (log_test_data): Use AUTO_TESTS_f_f.
41460         (log10_test_data): Likewise.
41461         (log1p_test_data): Likewise.
41462         (log2_test_data): Likewise.
41463         (sin_test_data): Likewise.
41464         (sin_tonearest_test_data): Likewise.
41465         (sin_towardzero_test_data): Likewise.
41466         (sin_downward_test_data): Likewise.
41467         (sin_upward_test_data): Likewise.
41468         (sinh_test_data): Likewise.
41469         (sinh_tonearest_test_data): Likewise.
41470         (sinh_towardzero_test_data): Likewise.
41471         (sinh_downward_test_data): Likewise.
41472         (sinh_upward_test_data): Likewise.
41473         (tan_test_data): Likewise.
41474         (tan_tonearest_test_data): Likewise.
41475         (tan_towardzero_test_data): Likewise.
41476         (tan_downward_test_data): Likewise.
41477         (tan_upward_test_data): Likewise.
41478         (tanh_test_data): Likewise.
41479         (tgamma_test_data): Likewise.
41480         (y0_test_data): Likewise.
41481         (y1_test_data): Likewise.
41482         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41483         (special_real_inputs): Add pi/4.
41484         * sysdeps/i386/fpu/libm-test-ulps: Update.
41485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41486
41487 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41488
41489         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41490         "longjmp_target" static probes.
41491         (__longjmp): Rename to __longjmp_symbol.
41492         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41493         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41494         on which longjmp to generate.
41495         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41496         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41497         probe.
41498         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41499         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41500         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41501         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41502         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41503         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41505         __longjmp_symbol based on which __longjmp to generate.
41506         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41507         probe.
41508         (setjmp): Rename to setjmp_symbol.
41509         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41510         (_setjmp): Rename to _setjmp_symbol.
41511         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41512         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41513         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41514         which setjmp to generate.
41515         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41516         "longjmp_target" static probes.
41517
41518 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41519
41520         * benchtests/README: Add note about output arguments.
41521         * benchtests/bench-sincos.c: Remove file.
41522         * benchtests/sincos-inputs: New file.
41523         * scripts/bench.pl: Identify output arguments and define
41524         static variables for them.
41525
41526         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41527
41528         [BZ #15941]
41529         * Makefile (INSTALL): Add install-plain.texi as the primary
41530         dependency.
41531         * manual/install-plain.texi: New file.
41532         * manual/install.texi: Include node directive only for
41533         non-plaintext output.
41534
41535 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41536
41537         * stdlib/longlong.h: Update from GCC.
41538
41539         [BZ #6807]
41540         [BZ #15901]
41541         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41542         * math/w_j0f.c (y0f): Likewise.
41543         * math/w_j0l.c (__y0l): Likewise.
41544         * math/w_j1.c (y1): Likewise.
41545         * math/w_j1f.c (y1f): Likewise.
41546         * math/w_j1l.c (__y1l): Likewise.
41547         * math/w_jn.c (yn): Likewise.
41548         * math/w_jnf.c (ynf): Likewise.
41549         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41550         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41551         value for Bessel function domain errors outside _SVID_ mode.
41552         Adjust sign of return value for yn (negative integer, 0).
41553         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41554         by zero in return for negative x and set sign appropriately for
41555         negative n.
41556         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41557         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41558         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41559         expectations in error cases.
41560         (y1_test_data): Likewise.
41561         (yn_test_data): Likewise.
41562         * sysdeps/i386/fpu/libm-test-ulps: Update.
41563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41564
41565 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41566
41567         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41568         "64" to "64-v1".  Add "64-v2".
41569         (abi-64-options): Rename to ...
41570         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41571         (abi-64-condition): Rename to ...
41572         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41573         (abi-64-ld-soname): Rename to ...
41574         (abi-64-v1-ld-soname): ... this.
41575         (abi-64-v2-options): Define.
41576         (abi-64-v2-condition): Likewise.
41577         (abi-64-v2-ld-soname): Likewise.
41578         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41579         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41583
41584 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41585             Alan Modra  <amodra@gmail.com>
41586
41587         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41588         New versions for use with the ELFv2 ABI.
41589         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41590         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41591         declaration.
41592         (struct La_ppc64v2_retval): Likewise.
41593         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41594         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41595         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41596         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41597         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41598         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41599         Do not save or restore CR.
41600         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41601         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41602         return values for ELFv2 ABI.  Fix location of FPR return registers.
41603         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41604         updated values for _CALL_ELF == 2.
41605         (La_regs, La_retval, int_retval): Likewise.
41606
41607 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41608
41609         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41610         (FRAME_MIN_SIZE_PARM): Likewise.
41611         (FRAME_BACKCHAIN): Likewise.
41612         (FRAME_CR_SAVE): Likewise.
41613         (FRAME_LR_SAVE): Likewise.
41614         (FRAME_TOC_SAVE): Likewise.
41615         (FRAME_PARM_SAVE): Likewise.
41616         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41617         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41618         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41619         (call_mcount_parm_offset): New macro.
41620         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41621         (PROF): Use symbolic stack frame offsets.
41622         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41623         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41624         Redefine in terms of FRAME_MIN_SIZE.
41625         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41626         (_dl_profile_resolve): Likewise.  Update comment.
41627         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41628         symbols stack frame offsets.
41629         (__sigsetjmp): Likewise.
41630         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41631         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41632         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41633         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41634
41635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41636         (FRAME_BACKCHAIN): Remove.
41637         (FRAME_CR_SAVE): Likewise.
41638         (FRAME_LR_SAVE): Likewise.
41639         (FRAME_COMPILER_DW): Likewise.
41640         (FRAME_LINKER_DW): Likewise.
41641         (FRAME_TOC_SAVE): Likewise.
41642         (FRAME_PARM_SAVE): Likewise.
41643         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41644         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41645         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41647         (CHECK_SP): Use symbolic stack frame offsets.
41648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41649         zone" instead of caller's parameter save area for temp storage.
41650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41651         Likewise.  Also, use symbolic stack frame offsets.
41652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41653         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41654         our own stack frame instead of the caller's.
41655         (__socket): Use symbolic stack frame offsets.
41656
41657 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41658             Alan Modra  <amodra@gmail.com>
41659
41660         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41661         Define.
41662         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41663         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41664         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41665         New function.
41666         (elf_machine_fixup_plt): Call it.
41667         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41668         reloc arguments.
41669         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41670         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41671         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41672         r2 before calling target.
41673
41674 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41675             Alan Modra  <amodra@gmail.com>
41676
41677         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41678         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41679         versions of macros to support ELFv2 ABI.
41680         (LOCALENTRY): New macro.
41681         (ENTRY, EALIGN): Use it.
41682         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41683         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41684         fall through into ENTRY entry point.
41685         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41686         Only define if _CALL_ELF != 2.
41687
41688         (elf_machine_matches_host): Verify ABI version matches.
41689         (RTLD_START): Use LOCALENTRY.
41690         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41691         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41692         (PLT_ENTRY_WORDS): New macro.
41693         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41694         (elf_machine_runtime_setup): Support ELFv2 ABI.
41695         (elf_machine_fixup_plt): Likewise.
41696         (elf_machine_plt_conflict): Likewise.
41697         (resolve_ifunc): Likewise.
41698         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41699         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41700         Likewise.
41701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41702         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41704         (makecontext): Support ELFv2 ABI.
41705         * elf/elf.h (EF_PPC64_ABI): Define.
41706
41707 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41708
41709         * sysdeps/powerpc/powerpc64/sysdep.h
41710         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41711         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41712         (ENTRY) [ASSEMBLER]: ... but instead here ...
41713         (EALIGN) [ASSEMBLER]: ... and here.
41714         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41715         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41716         (ENTRY_2) [!ASSEMBLER]: Use it.
41717         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41718         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41719         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41720         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41721         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41723         Use PPC64_LOAD_FUNCPTR.
41724
41725         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41726
41727 2013-12-04  Alan Modra  <amodra@gmail.com>
41728
41729         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41730         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41731         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41732         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41733
41734         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41735         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41736         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41737         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41738         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41739         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41740
41741 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41742
41743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41744         (__makecontext): Fix incorrect CFI when backtracing out of
41745         context created via makecontext.
41746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41747         (__setcontext): Fix incorrect CFI during switch to new context.
41748         (__novec_setcontext): Likewise.
41749
41750 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41751
41752         [BZ #4772]
41753         * time/strptime_l.c (__strptime_internal): Allow modifiers
41754         in strptime.
41755         * time/tst-strptime.c (day_tests): Add testcase.
41756
41757 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41758
41759         * scripts/bench.pl: Skip over blank lines.
41760
41761 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41762
41763         [BZ #926]
41764         * manual/time.texi (Calendar Time): Clarify what timezone functions
41765         use.
41766
41767 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41768
41769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41770
41771 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41772
41773         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41774         implementation.
41775         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41776         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41777         * debug/memset_chk.c (__memset_chk): Likewise.
41778         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41779         * debug/strncpy_chk.c: Likewise.
41780
41781 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41782
41783         [BZ #15268]
41784         [BZ #15425]
41785         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41786         (__ieee754_exp): For possibly underflowing results, check size of
41787         result and force underflow exception if required.
41788         * math/auto-libm-test-in: Add more tests of exp.
41789         * math/auto-libm-test-out: Regenerated.
41790         * sysdeps/i386/fpu/libm-test-ulps: Update.
41791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41792
41793         [BZ #16283]
41794         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41795         * math/w_exp2f.c (__exp2f): Likewise.
41796         * math/w_exp2l.c (__exp2l): Likewise.
41797         * math/auto-libm-test-in: Do not allow missing errno on exp2
41798         underflow.
41799         * math/auto-libm-test-out: Regenerated.
41800
41801 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41802
41803         [BZ #16274]
41804         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41805         handle filename validation.
41806         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41807         (do_open): Delete.
41808
41809 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41810
41811         [BZ #6786]
41812         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41813         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41814         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41815         <float.h>.
41816         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41817         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41818         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41819         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41820         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41821         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41822         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41823         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41824         Add more erfc tests.
41825         * math/auto-libm-test-out: Regenerated.
41826         * sysdeps/i386/fpu/libm-test-ulps: Update.
41827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41828
41829         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41830         exp2, expm1, j0 and j1.
41831         * math/auto-libm-test-out: Regenerated.
41832         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41833         (erfc_test_data): Likewise.
41834         (exp_test_data): Likewise.
41835         (exp_tonearest_test_data): Likewise.
41836         (exp_towardzero_test_data): Likewise.
41837         (exp_downward_test_data): Likewise.
41838         (exp_upward_test_data): Likewise.
41839         (exp10_test_data): Likewise.
41840         (exp2_test_data): Likewise.
41841         (expm1_test_data): Likewise.
41842         (j0_test_data): Likewise.
41843         (j1_test_data): Likewise.
41844         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41845         (input_flag_type): Add flag_xfail_rounding.
41846         (input_flags): Add xfail-rounding.
41847         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41848         (output_for_one_input_case): Handle flag_xfail_rounding.
41849         * sysdeps/i386/fpu/libm-test-ulps: Update.
41850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41851
41852 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41853
41854         [BZ #16289]
41855         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41856         division by 0.
41857
41858 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41859
41860         [BZ #16195]
41861         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41862         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41863         (STAP_PROBE0): New macro.
41864         (STAP_PROBE1): Likewise.
41865         (STAP_PROBE2): Likewise.
41866         (STAP_PROBE3): Likewise.
41867         (STAP_PROBE4): Likewise.
41868
41869 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41870
41871         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41872
41873 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41874
41875         * benchtests/Makefile (bench): Add sqrt.
41876         (LDLIBS-bench-sqrt): New.
41877         * benchtests/sqrt-input: New.
41878
41879 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41880
41881         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41882         (GAIH_EAI): Likewise.
41883         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41884         (gaih_inet): Likewise.
41885         (getaddrinfo): Don't use GAIH_EAI.
41886
41887         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41888         (struct gaih): Remove definition.
41889
41890 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41891
41892         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41893         Use HERRNOP directly.
41894
41895 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41896
41897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41898
41899 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41900
41901         * math/gen-auto-libm-tests.c (test_functions): Add more
41902         single-argument functions.
41903         (special_fill_pi_2): New function.
41904         (special_fill_minus_pi_2): Likewise.
41905         (special_fill_pi_6): Likewise.
41906         (special_fill_minus_pi_6): Likewise.
41907         (special_fill_pi_3): Likewise.
41908         (special_fill_2pi_3): Likewise.
41909         (special_fill_e): Likewise.
41910         (special_fill_1_e): Likewise.
41911         (special_fill_e_minus_1): Likewise.
41912         (special_real_inputs): Add more special inputs.
41913         (output_for_one_input_case): Do not require ERANGE on underflow to
41914         zero if round-to-nearest result does not underflow to zero, unless
41915         exact results required.
41916         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41917         atan, atanh, cbrt, cos and cosh.
41918         * math/auto-libm-test-out: Regenerated.
41919         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41920         (acos_tonearest_test_data): Likewise.
41921         (acos_towardzero_test_data): Likewise.
41922         (acos_downward_test_data): Likewise.
41923         (acos_upward_test_data): Likewise.
41924         (acosh_test_data): Likewise.
41925         (asin_test_data): Likewise.
41926         (asin_tonearest_test_data): Likewise.
41927         (asin_towardzero_test_data): Likewise.
41928         (asin_upward_test_data): Likewise.
41929         (asinh_test_data): Likewise.
41930         (atan_test_data): Likewise.
41931         (atanh_test_data): Likewise.
41932         (cbrt_test_data): Likewise.
41933         (cos_test_data): Likewise.
41934         (cos_tonearest_test_data): Likewise.
41935         (cos_towardzero_test_data): Likewise.
41936         (cos_downward_test_data): Likewise.
41937         (cos_upward_test_data): Likewise.
41938         (cosh_test_data): Likewise.
41939         (cosh_tonearest_test_data): Likewise.
41940         (cosh_towardzero_test_data): Likewise.
41941         (cosh_downward_test_data): Likewise.
41942         (cosh_upward_test_data): Likewise.
41943         * sysdeps/i386/fpu/libm-test-ulps: Update.
41944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41945
41946 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41947
41948         [BZ #6787]
41949         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41950         * math/w_exp10f.c (__exp10f): Likewise.
41951         * math/w_exp10l.c (__exp10l): Likewise.
41952         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41953         errno settings in existing tests.
41954
41955         [BZ #14032]
41956         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41957         precision control set to double precision.
41958         * sysdeps/i386/fpu/w_sqrt.c: New file.
41959         * math/auto-libm-test-in: Add more tests.
41960         * math/auto-libm-test-out: Update.
41961
41962         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41963         (sqrt_test_tonearest): New function.
41964         (sqrt_towardzero_test_data): New variable.
41965         (sqrt_test_towardzero): New function.
41966         (sqrt_downward_test_data): New variable.
41967         (sqrt_test_downward): New function.
41968         (sqrt_upward_test_data): New variable.
41969         (sqrt_test_upward): New function.
41970         (main): Call the new functions.
41971
41972         * math/gen-auto-libm-tests.c: New file.
41973         * math/auto-libm-test-in: Likewise.
41974         * math/auto-libm-test-out: New generated file.
41975         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41976         variables.
41977         (%beautify): Add generated representations of zero.
41978         (top level): Set $auto_input and call parse_auto_input.
41979         (beautify): Remove trailing "f" from hex float constants.
41980         (parse_args): Handle XFAIL_TEST.
41981         (convert_condition): New function.
41982         (or_value): Likewise.
41983         (or_cond_value): Likewise.
41984         (generate_testfile): Handle AUTO_TESTS_* lines.
41985         (parse_auto_input): New function.
41986         * math/libm-test.inc (XFAIL_TEST): New macro.
41987         (ERRNO_UNCHANGED): Update value.
41988         (ERRNO_EDOM): Likewise.
41989         (ERRNO_ERANGE): Likewise.
41990         (IGNORE_RESULT): Likewise.
41991         (TEST_COND_flt_32): New macro.
41992         (TEST_COND_dbl_64): Likewise.
41993         (TEST_COND_ldbl_96_intel): Likewise.
41994         (TEST_COND_ldbl_96_m68k): Likewise.
41995         (TEST_COND_ldbl_128): Likewise.
41996         (TEST_COND_ldbl_128ibm): Likewise.
41997         (TEST_COND_long32): Likewise.
41998         (TEST_COND_long64): Likewise.
41999         (TEST_COND_before_rounding): Likewise.
42000         (TEST_COND_after_rounding): Likewise.
42001         (enable_test): Handle XFAIL_TEST flag.
42002         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
42003         with finite results.
42004         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
42005         auto-libm-test-out.
42006
42007 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
42008             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42009
42010         [BZ #16214]
42011         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
42012         __tls_get_addr_internal instead of __tls_get_offset in order to
42013         avoid GOT pointer dependency.  Make rtld export
42014         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
42015         __tls_get_addr since we are a __tls_get_offset platform.
42016         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
42017         GOT pointer being set up before.
42018         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
42019
42020 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
42021
42022         * manual/math.texi (Errors in Math Functions): Document accuracy
42023         goals.
42024
42025         [BZ #15004]
42026         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
42027         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
42028         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42029         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
42030         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
42031         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
42032         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
42033         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
42034         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
42035         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
42036         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
42037         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
42038         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
42039         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
42040         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
42041         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
42042
42043         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
42044         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
42045         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
42046         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
42047         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
42048         Likewise.
42049         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
42050         Likewise.
42051         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
42052         Likewise.
42053         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
42054         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
42055         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
42056         atomic-feupdateenv and flt-rounds.
42057         * sysdeps/powerpc/nofpu/Versions (libc): Add
42058         __atomic_feholdexcept, __atomic_feclearexcept,
42059         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
42060         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
42061         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
42062         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
42063         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
42064         here.
42065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
42066         Update.
42067
42068         * manual/arith.texi (FP Exceptions): Document that exceptions may
42069         not be raised when matherr is used.
42070         (Math Error Reporting): Document overflow in directed rounding
42071         modes.  Document that errno may not be set when finite values are
42072         returned on overflow.  Document intent to set errno on underflow
42073         only for underflow to zero.
42074
42075         [BZ #16271]
42076         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
42077         round-to-nearest then adjust result for other rounding modes.
42078         * include/fenv.h (fegetround): Use libm_hidden_proto.
42079         * math/fegetround.c (fegetround): Use libm_hidden_def.
42080         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
42081         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
42082         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42083         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
42084         Likewise.
42085         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
42086         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
42087         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
42088         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
42089
42090 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42091
42092         [BZ #16077]
42093         * nss/Versions (libnss_files): Add
42094         _nss_files_gethostbyname3_r.
42095         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
42096         New function.
42097         (HOST_DB_LOOKUP): Remove macro.
42098         (_nss_files_gethostbyname_r): Implement function without the
42099         HOST_DB_LOOKUP macro.
42100         (_nss_files_gethostbyname2_r): Likewise.
42101
42102 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
42103
42104         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
42105
42106 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
42107
42108         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
42109         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
42110         warning.
42111
42112 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42113
42114         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
42115         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
42116         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
42117         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
42118         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
42119         __fe_nomask_env_priv and attribute_hidden.
42120         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
42121         (libc_feupdateenv_test_ppc): Likewise.
42122         (libc_feresetround_ppc): Likewise.
42123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42124         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
42125         compat_symbol macro.
42126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42127         (__fe_nomask_env): Likewise.
42128         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
42129
42130 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42131
42132         * string/Makefile: Remove ifunc tests.
42133         * string/test-string.h: Define TEST_IFUNC.
42134         * string/test-bcopy-ifunc.c: Remove.
42135         * string/test-bzero-ifunc.c: Likewise.
42136         * string/test-memccpy-ifunc.c: Likewise.
42137         * string/test-memchr-ifunc.c: Likewise.
42138         * string/test-memcmp-ifunc.c: Likewise.
42139         * string/test-memcpy-ifunc.c: Likewise.
42140         * string/test-memmem-ifunc.c: Likewise.
42141         * string/test-memmove-ifunc.c: Likewise.
42142         * string/test-mempcpy-ifunc.c: Likewise.
42143         * string/test-memrchr-ifunc.c: Likewise.
42144         * string/test-memset-ifunc.c: Likewise.
42145         * string/test-rawmemchr-ifunc.c: Likewise.
42146         * string/test-stpcpy-ifunc.c: Likewise.
42147         * string/test-stpncpy-ifunc.c: Likewise.
42148         * string/test-strcasecmp-ifunc.c: Likewise.
42149         * string/test-strcasestr-ifunc.c: Likewise.
42150         * string/test-strcat-ifunc.c: Likewise.
42151         * string/test-strchr-ifunc.c: Likewise.
42152         * string/test-strchrnul-ifunc.c: Likewise.
42153         * string/test-strcmp-ifunc.c: Likewise.
42154         * string/test-strcpy-ifunc.c: Likewise.
42155         * string/test-strcspn-ifunc.c: Likewise.
42156         * string/test-strlen-ifunc.c: Likewise.
42157         * string/test-strncasecmp-ifunc.c: Likewise.
42158         * string/test-strncat-ifunc.c: Likewise.
42159         * string/test-strncmp-ifunc.c: Likewise.
42160         * string/test-strncpy-ifunc.c: Likewise.
42161         * string/test-strnlen-ifunc.c: Likewise.
42162         * string/test-strpbrk-ifunc.c: Likewise.
42163         * string/test-strrchr-ifunc.c: Likewise.
42164         * string/test-strspn-ifunc.c: Likewise.
42165         * string/test-strstr-ifunc.c: Likewise.
42166
42167 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42168
42169         * benchtests/Makefile: Remove ifunc tests.
42170         * benchtests/bench-string.h: Define TEST_IFUNC.
42171         * benchtests/bench-bcopy-ifunc.c: Remove.
42172         * benchtests/bench-bzero-ifunc.c: Likewise.
42173         * benchtests/bench-memccpy-ifunc.c: Likewise.
42174         * benchtests/bench-memchr-ifunc.c: Likewise.
42175         * benchtests/bench-memcmp-ifunc.c: Likewise.
42176         * benchtests/bench-memcpy-ifunc.c: Likewise.
42177         * benchtests/bench-memmem-ifunc.c: Likewise.
42178         * benchtests/bench-memmove-ifunc.c: Likewise.
42179         * benchtests/bench-mempcpy-ifunc.c: Likewise.
42180         * benchtests/bench-memrchr-ifunc.c: Likewise.
42181         * benchtests/bench-memset-ifunc.c: Likewise.
42182         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
42183         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
42184         * benchtests/bench-stpcpy-ifunc.c: Likewise.
42185         * benchtests/bench-stpncpy-ifunc.c: Likewise.
42186         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
42187         * benchtests/bench-strcasestr-ifunc.c: Likewise.
42188         * benchtests/bench-strcat-ifunc.c: Likewise.
42189         * benchtests/bench-strchr-ifunc.c: Likewise.
42190         * benchtests/bench-strchrnul-ifunc.c: Likewise.
42191         * benchtests/bench-strcmp-ifunc.c: Likewise.
42192         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
42193         * benchtests/bench-strcpy-ifunc.c: Likewise.
42194         * benchtests/bench-strcspn-ifunc.c: Likewise.
42195         * benchtests/bench-strlen-ifunc.c: Likewise.
42196         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
42197         * benchtests/bench-strncat-ifunc.c: Likewise.
42198         * benchtests/bench-strncmp-ifunc.c: Likewise.
42199         * benchtests/bench-strncpy-ifunc.c: Likewise.
42200         * benchtests/bench-strnlen-ifunc.c: Likewise.
42201         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42202         * benchtests/bench-strrchr-ifunc.c: Likewise.
42203         * benchtests/bench-strsep-ifunc.c: Likewise.
42204         * benchtests/bench-strspn-ifunc.c: Likewise.
42205         * benchtests/bench-strstr-ifunc.c: Likewise.
42206
42207 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42208
42209         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42210
42211 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42212
42213         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42214         * rt/aio.h: Likewise.
42215         * sysdeps/gnu/bits/utmp.h: Likewise.
42216         * sysdeps/gnu/bits/utmpx.h: Likewise.
42217         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42218         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42219         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42220         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42221         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42222         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42223         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42224         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42225         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42226         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42227         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42228         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42229         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42231         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42232         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42233         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42234         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42235         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42236         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42237         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42238         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42239         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42240         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42241         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42242         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42243         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42244         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42245         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42246         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42247         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42248         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42249         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42250         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42251         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42252         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42253         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42254         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42255         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42256         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42257         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42258         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42259
42260 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42261
42262         [BZ #16245]
42263         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42264         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42265
42266 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42267
42268         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42269         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42270         Likewise.
42271
42272 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42273
42274         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42275         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42276         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42277         (__fesetround): Remove define.
42278         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42279         rounding and exceptions handling.
42280         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42281         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42282         (__fe_nomask_env): Likewise.
42283         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42284         __fegetround instead of fegetround.
42285         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42286         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42287
42288 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42289
42290         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42291         it's there.
42292
42293         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42294
42295 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42296
42297         [BZ #11157]
42298         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42299         (encrypt_r): Likewise.
42300         * malloc/obstack.h (obstack_free): Likewise.
42301         * posix/unistd.h (encrypt): Likewise.
42302
42303 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42304
42305         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42306         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42307         DL_CALL_DT_FINI() that call the functions directly.
42308         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42309         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42310         * elf/dl-fini.c: Likewise.
42311
42312 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42313
42314         * malloc/hooks.c (memalign_check): Add alignment rounding.
42315         * malloc/malloc.c (_mid_memalign): New function.
42316         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42317         Implement by calling _mid_memalign.
42318         * manual/probes.texi (Memory Allocation Probes): Remove
42319         memory_valloc_retry and memory_pvalloc_retry.
42320
42321 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42322
42323         * locale/programs/locarchive.c (open_archive): Add const
42324         qualifier to ARCHIVEFNAME and copy default fname to
42325         DEFAULT_FNAME.
42326
42327         [BZ #15601]
42328         * libio/tst-widetext.input: Rename Oriya to Odia.
42329         * locale/iso-639.def: Likewise.
42330
42331         * manual/probes.texi (Mathematical Function Probes): Add
42332         documentation for sin, cos, asin and acos probes.
42333         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42334         (__sin32): Add slowasin probe.
42335         (__cos32): Add slowacos probe.
42336         (__mpsin): Add slowsin probe.
42337         (__mpcos): Add slowcos probe.
42338
42339 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42340
42341         [BZ #15483]
42342         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42343         thread-local __sim_exceptions_thread and global
42344         __sim_exceptions_global.
42345         (__sim_disabled_exceptions): Change to thread-local
42346         __sim_disabled_exceptions_thread and global
42347         __sim_disabled_exceptions_global.
42348         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42349         and global __sim_round_mode_global.
42350         (__simulate_exceptions): Use thread-local floating-point state and
42351         set global state from it as needed.
42352         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42353         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42354         __sim_round_mode_thread.
42355         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42356         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42357         and global __sim_exceptions_global.
42358         (__sim_disabled_exceptions): Change to thread-local
42359         __sim_disabled_exceptions_thread and global
42360         __sim_disabled_exceptions_global.
42361         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42362         and global __sim_round_mode_global.
42363         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42364         (SIM_SET_GLOBAL): Likewise.
42365         * sysdeps/powerpc/soft-fp/sfp-machine.h
42366         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42367         __sim_round_mode_thread.
42368         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42369         __sim_disabled_exceptions_thread.
42370         (__sim_exceptions): Change to __sim_exceptions_thread.
42371         (__sim_disabled_exceptions): Change to
42372         __sim_disabled_exceptions_thread.
42373         (__sim_round_mode): Change to __sim_round_mode_thread.
42374         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42375         thread-local floating-point state and set global state from it as
42376         needed.
42377         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42378         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42379         (__sim_disabled_exceptions): Remove extern declaration.
42380         (feenableexcept): Use thread-local floating-point state and set
42381         global state from it as needed.
42382         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42383         extern declaration.
42384         (__sim_disabled_exceptions): Likewise.
42385         (__sim_round_mode): Likewise.
42386         (__fegetenv): Use thread-local floating-point state.
42387         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42388         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42389         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42390         floating-point state and set global state from it as needed.
42391         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42392         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42393         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42394         Likewise.
42395         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42396         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42397         Likewise.
42398         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42399         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42400         Use __sim_round_mode_thread.
42401         * math/test-fenv-tls.c: New file.
42402         * math/Makefile (tests): Add test-fenv-tls.
42403         ($(objpfx)test-fenv-tls): Depend on
42404         $(common-objpfx)nptl/libpthread.so.
42405
42406 2013-11-19  Andreas Schwab  <schwab@suse.de>
42407
42408         * locale/programs/locale.c (show_info): Decode wordarray elements.
42409         * locale/categories.def (LC_MONETARY): Add element for
42410         _NL_MONETARY_CRNCYSTR.
42411         * locale/C-monetary.c (conversion_rate): New variable.
42412         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42413         element.
42414
42415 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42416
42417         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42418         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42419
42420 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42421
42422         * elf/Makefile (tst-auxv): New test.
42423         * elf/tst-auxv.c: New
42424         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42425
42426 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42427
42428         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42429         (hidden_proto): Caller changed.
42430         (hidden_tls_proto): New macro.
42431         (libc_hidden_tls_proto): Likewise.
42432         (rtld_hidden_tls_proto): Likewise.
42433         (libm_hidden_tls_proto): Likewise.
42434         (libresolv_hidden_tls_proto): Likewise.
42435         (librt_hidden_tls_proto): Likewise.
42436         (libdl_hidden_tls_proto): Likewise.
42437         (libnss_files_hidden_tls_proto): Likewise.
42438         (libnsl_hidden_tls_proto): Likewise.
42439         (libnss_nisplus_hidden_tls_proto): Likewise.
42440         (libutil_hidden_tls_proto): Likewise.
42441
42442 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42443
42444         [BZ #10253]
42445         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42446         (decompose_rpath): Defer expansion to fillin_rpath.
42447         (_dl_init_paths): Pass linkmap to fillin_rpath.
42448
42449 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42450
42451         * benchtests/Makefile: Add strsep.
42452         * benchtests/bench-strsep.c: New file: strsep benchtest.
42453         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42454
42455 2013-11-18  Andreas Schwab  <schwab@suse.de>
42456
42457         * locale/programs/locale.c (show_info) [case byte]: Check for
42458         '\377' instead of '\177'.
42459         * locale/C-monetary.c (not_available): Always use "\377".
42460         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42461         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42462         detect unavailable sign_posn locale elements.
42463         * locale/localeconv.c (__localeconv): For grouping and
42464         mon_grouping handle "\177" and "\377" like no grouping.
42465         (INT_ELEM): New macro.  Use it to set all numeric members.
42466         * locale/programs/ld-monetary.c (monetary_read)
42467         <tok_mon_grouping>: Normalize single -1 to the empty string.
42468         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42469         Likewise.
42470
42471 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42472
42473         [BZ #16055]
42474         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42475         when we match (nil).
42476         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42477
42478 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42479
42480         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42481         (NO_TEST_INLINE): Update value.
42482         (ERRNO_UNCHANGED): Likewise.
42483         (ERRNO_EDOM): Likewise.
42484         (ERRNO_ERANGE): Likewise.
42485         (IGNORE_RESULT): Likewise.
42486         (check_float_internal): Check signs of NaN results if
42487         TEST_NAN_SIGN used.
42488         (check_complex): Pass TEST_NAN_SIGN flag through to second
42489         check_float_internal call.
42490         (copysign_test_data): Add tests with quiet NaNs as second
42491         argument.  Use TEST_NAN_SIGN.
42492         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42493         TEST_NAN_SIGN.
42494         (signbit_test_data): Add tests of quiet NaN argument.
42495         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42496
42497         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42498         $ignore_result.
42499         (parse_args): Handle function results specified as IGNORE.
42500         * math/libm-test.inc (IGNORE_RESULT): New macro.
42501         (check_float_internal): Do not check numerical result if flag
42502         IGNORE_RESULT set.
42503         (check_complex): Pass through IGNORE_RESULT to second
42504         check_float_internal call.
42505         (check_int): Do not check numerical result if flag IGNORE_RESULT
42506         set.
42507         (check_long): Likewise.
42508         (check_bool): Likewise.
42509         (check_longlong): Likewise.
42510         (lrint_test_data): Add tests of infinite and NaN arguments.
42511         (lrint_tonearest_test_data): Likewise.
42512         (lrint_towardzero_test_data): Likewise.
42513         (lrint_downward_test_data): Likewise.
42514         (lrint_upward_test_data): Likewise.
42515         (llrint_test_data): Likewise.
42516         (llrint_tonearest_test_data): Likewise.
42517         (llrint_towardzero_test_data): Likewise.
42518         (llrint_downward_test_data): Likewise.
42519         (llrint_upward_test_data): Likewise.
42520         (lround_test_data): Likewise.
42521         (llround_test_data): Likewise.
42522
42523         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42524         (ERRNO_UNCHANGED): Update value.
42525         (ERRNO_EDOM): Likewise.
42526         (ERRNO_ERANGE): Likewise.
42527         (NO_TEST_INLINE_FLOAT): New macro.
42528         (NO_TEST_INLINE_DOUBLE): Likewise.
42529         (enable_test): New function.
42530         (RUN_TEST_f_f): Check enable_test before running test.
42531         (RUN_TEST_2_f): Likewise.
42532         (RUN_TEST_fff_f): Likewise.
42533         (RUN_TEST_c_f): Likewise.
42534         (RUN_TEST_f_f1): Likewise.
42535         (RUN_TEST_fF_f1): Likewise.
42536         (RUN_TEST_fI_f1): Likewise.
42537         (RUN_TEST_ffI_f1): Likewise.
42538         (RUN_TEST_c_c): Likewise.
42539         (RUN_TEST_cc_c): Likewise.
42540         (RUN_TEST_f_i): Likewise.
42541         (RUN_TEST_f_i_tg): Likewise.
42542         (RUN_TEST_ff_i_tg): Likewise.
42543         (RUN_TEST_f_b): Likewise.
42544         (RUN_TEST_f_b_tg): Likewise.
42545         (RUN_TEST_f_l): Likewise.
42546         (RUN_TEST_f_L): Likewise.
42547         (RUN_TEST_fFF_11): Likewise.
42548         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42549         conditionals.
42550         (cosh_test_data): Likewise.
42551         (exp_test_data): Likewise.
42552         (expm1_test_data): Likewise.
42553         (hypot_test_data): Likewise.
42554         (pow_test_data): Likewise.
42555         (sinh_test_data): Likewise.
42556         (tanh_test_data): Likewise.
42557         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42558         flags argument.
42559
42560         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42561         tests with quiet NaN input and output.
42562         (acosh_test_data): Likewise.
42563         (asin_test_data): Likewise.
42564         (asinh_test_data): Likewise.
42565         (atan_test_data): Likewise.
42566         (atanh_test_data): Likewise.
42567         (atan2_test_data): Likewise.
42568         (cbrt_test_data): Likewise.
42569         (cos_test_data): Likewise.
42570         (cosh_test_data): Likewise.
42571         (erf_test_data): Likewise.
42572         (erfc_test_data): Likewise.
42573         (exp_test_data): Likewise.
42574         (exp10_test_data): Likewise.
42575         (exp2_test_data): Likewise.
42576         (expm1_test_data): Likewise.
42577         (hypot_test_data): Likewise.
42578         (j0_test_data): Likewise.
42579         (j1_test_data): Likewise.
42580         (jn_test_data): Likewise.
42581         (lgamma_test_data): Likewise.
42582         (log_test_data): Likewise.
42583         (log10_test_data): Likewise.
42584         (log1p_test_data): Likewise.
42585         (log2_test_data): Likewise.
42586         (pow_test_data): Likewise.
42587         (scalb_test_data): Likewise.
42588         (sin_test_data): Likewise.
42589         (sincos_test_data): Likewise.
42590         (sinh_test_data): Likewise.
42591         (tan_test_data): Likewise.
42592         (tanh_test_data): Likewise.
42593         (tgamma_test_data): Likewise.
42594         (y0_test_data): Likewise.
42595         (y1_test_data): Likewise.
42596         (yn_test_data): Likewise.
42597
42598         [BZ #16167]
42599         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42600         argument being NaN and avoid computations with second argument in
42601         that case.
42602         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42603         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42604         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42605
42606 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42607
42608         * locale/iso-639.def: Add Chitwani Tharu (the).
42609
42610 2013-11-14  Andreas Schwab  <schwab@suse.de>
42611
42612         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42613         word instead of empty string.
42614
42615 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42616
42617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42618         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42620         (__fe_nomask_env): Likewise.
42621
42622 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42623
42624         * benchtests/bench-timing.h: Include time.h.
42625
42626 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42627
42628         [BZ #15997]
42629         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42630         to 3.4.0 for x32.
42631         * sysdeps/unix/sysv/linux/configure: Regenerated.
42632
42633 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42634
42635         [BZ #16151]
42636         * stdlib/strtod_l.c (round_and_return): Do not consider
42637         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42638         exponent one less than half the least subnormal exponent.
42639         * stdlib/test-strtod-round-data: Add more tests.
42640         * stdlib/tst-strtod-round.c (tests): Regenerated.
42641
42642 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42643
42644         [BZ #14143]
42645         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42646         (__fe_mask_env): Likewise.
42647         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42648         libm_hidden_proto and add function prototype.
42649         (__fe_mask_env): Add function prototype.
42650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42651         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42653         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42655         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42656
42657 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42658
42659         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42660         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42661
42662 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42663
42664         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42665         of htab_find_slot().
42666
42667 2013-11-11  David S. Miller  <davem@davemloft.net>
42668
42669         [BZ #16150]
42670         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42671         symbol in the non-vis3 case in static builds.
42672         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42673         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42674         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42675         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42676
42677 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42678
42679         [BZ #387]
42680         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42681         it is empty.
42682
42683 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42684
42685         * benchtests/Makefile: Add bench-strtod.
42686         * benchtests/bench-strtod.c: New file: strtod benchtest
42687
42688 2013-11-11  Andreas Schwab  <schwab@suse.de>
42689
42690         [BZ #16153]
42691         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42692         terminating NUL in key length.
42693
42694 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42695
42696         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42697         Add artificial ODP entry for vDSO symbol for PPC64.
42698         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42699         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42700
42701 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42702
42703         [BZ #15374]
42704         * nss/getent.c (services_keys): Recognize services starting with digit.
42705
42706 2013-11-06  David S. Miller  <davem@davemloft.net>
42707
42708         [BZ #15985]
42709         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42710         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42711
42712 2013-11-06  Will Newton  <will.newton@linaro.org>
42713
42714         * manual/memory.texi (Malloc Examples): Remove register
42715         keyword from examples.
42716
42717 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42718
42719         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42720
42721 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42722
42723         [BZ #6981]
42724         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42725         depending on [__GCC_IEC_559 > 0].
42726         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42727         depending on [__GCC_IEC_559_COMPLEX > 0].
42728
42729 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42730
42731         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42732         to iso-639.def.
42733
42734 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42735
42736         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42737
42738 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42739
42740         [BZ #16112]
42741         * malloc/malloc (malloc_info): Do not handle first bin as
42742         special case.
42743
42744 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42745
42746         * locale/iso-639.def: Add Central Nahuatl (nhn).
42747
42748 2013-11-01  Bruno Haible  <bruno@clisp.org>
42749
42750         [BZ #7003]
42751         * manual/math.texi (BSD Random): Specify range upper bound as
42752         in POSIX.
42753
42754 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42755
42756         * locale/iso-639.def: Add Meadow Mari (mhr).
42757
42758 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42759
42760         [BZ #14752], [BZ #15763]
42761         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42762         Validate name.
42763         * rt/tst_shm.c: Add test for escaping directory.
42764
42765 2013-10-31  Andreas Schwab  <schwab@suse.de>
42766
42767         [BZ #15917]
42768         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42769         followed by 'x' as part of digit sequence.
42770         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42771
42772 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42773
42774         [BZ #16037]
42775         * configure.ac: allow GNU Make 4.0 and greater.
42776         * configure: Regenerated.
42777
42778 2013-10-30  Will Newton  <will.newton@linaro.org>
42779
42780         [BZ #16038]
42781         * malloc/hooks.c (memalign_check): Limit alignment to the
42782         maximum representable power of two.
42783         * malloc/malloc.c (__libc_memalign): Likewise.
42784         * malloc/tst-memalign.c (do_test): Add test for very
42785         large alignment values.
42786         * malloc/tst-posix_memalign.c (do_test): Likewise.
42787
42788 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42789
42790         [BZ #11087]
42791         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42792         (munmap_chunk): Likewise.
42793         (mremap_chunk): Likewise.
42794
42795 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42796
42797         [BZ #15799]
42798         * stdlib/div.c (div): Remove obsolete code.
42799         * stdlib/ldiv.c (ldiv): Likewise.
42800         * stdlib/lldiv.c (lldiv): Likewise.
42801
42802 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42803
42804         [BZ #16071]
42805         * nss/nss_files/files-XXX.c (get_contents_ret): New
42806         enumerator.
42807         (get_contents): New function.
42808         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42809
42810 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42811
42812         * configure.in: Moved to ...
42813         * configure.ac: ... here. Change reference to configure.in
42814         to configure.ac.
42815         * sysdeps/arm/preconfigure.ac: ... here.
42816         configure.in to configure.ac.
42817         * sysdeps/gnu/configure.in: Moved to ...
42818         * sysdeps/gnu/configure.ac: ... here.
42819         * sysdeps/i386/configure.in: Moved to ...
42820         * sysdeps/i386/configure.ac: ... here.
42821         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42822         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42823         * sysdeps/mach/configure.in: Moved to ...
42824         * sysdeps/mach/configure.ac: ... here.
42825         * sysdeps/mach/hurd/configure.in: Moved to ...
42826         * sysdeps/mach/hurd/configure.ac: ... here.
42827         * sysdeps/powerpc/configure.in: Moved to ...
42828         * sysdeps/powerpc/configure.ac: ... here.
42829         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42830         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42831         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42832         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42833         * sysdeps/s390/s390-32/configure.in: Moved to ...
42834         * sysdeps/s390/s390-32/configure.ac: ... here.
42835         * sysdeps/s390/s390-64/configure.in: Moved to ...
42836         * sysdeps/s390/s390-64/configure.ac: ... here.
42837         * sysdeps/sh/configure.in: Moved to ...
42838         * sysdeps/sh/configure.ac: ... here.
42839         * sysdeps/sparc/configure.in: Moved to ...
42840         * sysdeps/sparc/configure.ac: ... here.
42841         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42842         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42843         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42844         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42845         * sysdeps/x86_64/configure.in: Moved to ...
42846         * sysdeps/x86_64/configure.ac: ... here.
42847         * sysdeps/x86_64/preconfigure.in: Moved to ...
42848         * sysdeps/x86_64/preconfigure.ac: ... here.
42849         * aclocal.m4: Change reference to configure.in to configure.ac.
42850         * config.h.in: Likewise.
42851         * manual/install.texi: Likewise.
42852         * manual/maint.texi: Likewise.
42853         * Makefile: Likewise.
42854         * malloc/Makefile: Likewise.
42855         * nscd/Makefile: Likewise.
42856         * Makeconfig: Change reference to configure.in and
42857         preconfigure.in to configure.ac and preconfigure.ac
42858         respectively.
42859         * INSTALL: Regenerated.
42860         * configure: Likewise.
42861         * sysdeps/gnu/configure: Likewise.
42862         * sysdeps/i386/configure: Likewise.
42863         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42864         * sysdeps/mach/configure: Likewise.
42865         * sysdeps/mach/hurd/configure: Likewise.
42866         * sysdeps/powerpc/configure: Likewise.
42867         * sysdeps/powerpc/powerpc32/configure: Likewise.
42868         * sysdeps/powerpc/powerpc64/configure: Likewise.
42869         * sysdeps/s390/s390-32/configure: Likewise.
42870         * sysdeps/s390/s390-64/configure: Likewise.
42871         * sysdeps/sh/configure: Likewise.
42872         * sysdeps/sparc/configure: Likewise.
42873         * sysdeps/unix/sysv/linux/configure: Likewise.
42874         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42875         * sysdeps/x86_64/configure: Likewise.
42876         * sysdeps/x86_64/preconfigure: Likewise.
42877
42878 2013-10-29  Andreas Schwab  <schwab@suse.de>
42879
42880         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42881
42882 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42883
42884         * benchtests/pow-inputs: Add new inputs.
42885
42886         * benchtests/exp-inputs: Add new inputs.
42887
42888         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42889         conditional check for return value.
42890         (__cos32): Likewise.
42891
42892 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42893
42894         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42895         to provide a boost for large inputs with word alignment.
42896         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42897         implementation based on optimized PPC64 strcpy.
42898         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42899         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42900         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42901         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42902
42903 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42904
42905         [BZ #2801]
42906         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42907
42908 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42909
42910         [BZ #14876]
42911         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42912         * time/tst-strptime.c (day_tests): Add testcase.
42913
42914 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42915
42916         [BZ #14029]
42917         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42918
42919 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42920
42921         [BZ #16074]
42922         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42923         MAP_FAILED on error.
42924
42925 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42926
42927         [BZ #16072]
42928         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42929         heap for large requests.
42930
42931 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42932
42933         [BZ #9954]
42934         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42935         result if the result has no associated interface.
42936         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42937         interface for all 127.X.Y.Z addresses.
42938
42939 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42940
42941         * locale/iso-639.def: Add Ligurian (lij)
42942
42943 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42944
42945         [BZ #15825]
42946         * sunrpc/rpc_main.c: Document rpcgen -5.
42947
42948 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42949
42950         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42951
42952 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42953
42954         [BZ #10278]
42955         * posix/glob.c: Match only directories when trailing slash is present.
42956         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42957         (main): Add testcase.
42958
42959 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42960
42961         [BZ #15670]
42962         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42963
42964 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42965
42966         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42967         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42968         AUTH_DES and cindex for FIPS 140-2.
42969         (DES Encryption): Add cindex FIPS 46-3.
42970
42971         * locale/locarchive.h (struct locarhandle): Add fname.
42972         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42973         if an optional argument was specified to --list-archive,
42974         otherwise NULL.
42975         * locale/programs/locarchive.c (show_archive_content): Take new
42976         argument fname and pass it via ah.fname to open_archive.
42977         * locale/programs/localedef.h: Update decl.
42978         (open_archive): If AH->fname is non-null, open that file
42979         rather than the default file name, and don't ignore ENOENT.
42980         (create_archive): Set AH.fname to NULL.
42981         (delete_locales_from_archive): Likewise.
42982         (add_locales_to_archive): Likewise.
42983         * locale/programs/locfile.c (write_all_categories): Likewise.
42984
42985 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42986             Aldy Hernandez  <aldyh@redhat.com>
42987
42988         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42989         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42990         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42991         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42992         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42993         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42994         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42995         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42996         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42997         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42998         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42999         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
43000         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
43001         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
43002         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
43003         Likewise.
43004         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
43005         Likewise.
43006         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
43007         Likewise.
43008         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
43009         Likewise.
43010         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
43011         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
43012         Likewise.
43013         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
43014         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
43015         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
43016         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
43017         Likewise.
43018         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
43019         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
43020         * sysdeps/powerpc/preconfigure: Likewise.
43021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
43022         Likewise.
43023         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
43024         Replace contents of file by #include of <fenv_libc.h>.
43025         * sysdeps/powerpc/soft-fp/sfp-machine.h
43026         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
43027         and <sys/prctl.h>.
43028         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
43029         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
43030         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
43031         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
43032         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
43033         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
43034         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
43035         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
43036         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
43037         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
43038         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
43039         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
43040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43041         Allow copysignl PLT reference to be missing.
43042
43043 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
43044             Joseph Myers  <joseph@codesourcery.com
43045
43046         [BZ #15948]
43047         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
43048         single character.
43049         (add_to_tablewc): Assert sequence of wide characters is nonempty.
43050
43051 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43052
43053         * elf/tst-tls-dlinfo.c: Don't include tls.h.
43054         * elf/tst-tls1.c: Likewise.
43055         * elf/tst-tls10.h: Likewise.
43056         * elf/tst-tls14.c: Likewise.
43057         * elf/tst-tls2.c: Likewise.
43058         * elf/tst-tls3.c: Likewise.
43059         * elf/tst-tls4.c: Likewise.
43060         * elf/tst-tls5.c: Likewise.
43061         * elf/tst-tls6.c: Likewise.
43062         * elf/tst-tls7.c: Likewise.
43063         * elf/tst-tls8.c: Likewise.
43064         * elf/tst-tls9.c: Likewise.
43065         * elf/tst-tlsmod1.c: Likewise.
43066         * elf/tst-tlsmod13.c: Likewise.
43067         * elf/tst-tlsmod13a.c: Likewise.
43068         * elf/tst-tlsmod14a.c: Likewise.
43069         * elf/tst-tlsmod16a.c: Likewise.
43070         * elf/tst-tlsmod16b.c: Likewise.
43071         * elf/tst-tlsmod2.c: Likewise.
43072         * elf/tst-tlsmod3.c: Likewise.
43073         * elf/tst-tlsmod4.c: Likewise.
43074         * elf/tst-tlsmod5.c: Likewise.
43075         * elf/tst-tlsmod6.c: Likewise.
43076
43077 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
43078
43079         [BZ #12486]
43080         * malloc/malloc.c: remove checks for statistics.
43081
43082 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
43083
43084         [BZ #15277]
43085         * inet/inet_net.c (inet_network): Detect additional invalid strings.
43086         * inet/tst-network.c: Add testcase.
43087
43088 2013-10-17  Andreas Schwab  <schwab@suse.de>
43089
43090         [BZ #15218]
43091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
43092         to determine canonical name.
43093
43094 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
43095
43096         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
43097         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
43098         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
43099         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
43100         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
43101         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
43102         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
43103         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
43104         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
43105         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
43106         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
43107         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
43108         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43109         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
43110         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
43111         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
43112         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
43113         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
43114         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
43115         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
43116         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
43117         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
43118         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
43119         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
43120         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
43121         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
43122         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
43123         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
43124         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
43125         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
43126         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
43127         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
43128         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
43129         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
43130         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
43131         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43132         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43133         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
43134         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
43135         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
43136         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
43137         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
43138         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
43139         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
43140         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
43141         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43142         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
43143         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
43144         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
43145         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
43146         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
43147         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
43148         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
43149         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
43150         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43151         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
43152         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
43153         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
43154
43155 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
43156
43157         [BZ #16041]
43158         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
43159         make result into a quiet NaN.
43160
43161 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
43162
43163         * soft-fp/adddf3.c: Fix horizontal whitespace.
43164         * soft-fp/addsf3.c: Likewise.
43165         * soft-fp/addtf3.c: Likewise.
43166         * soft-fp/divdf3.c: Likewise.
43167         * soft-fp/divsf3.c: Likewise.
43168         * soft-fp/divtf3.c: Likewise.
43169         * soft-fp/double.h: Likewise.
43170         * soft-fp/eqdf2.c: Likewise.
43171         * soft-fp/eqsf2.c: Likewise.
43172         * soft-fp/eqtf2.c: Likewise.
43173         * soft-fp/extenddftf2.c: Likewise.
43174         * soft-fp/extended.h: Likewise.
43175         * soft-fp/extendsfdf2.c: Likewise.
43176         * soft-fp/extendsftf2.c: Likewise.
43177         * soft-fp/extendxftf2.c: Likewise.
43178         * soft-fp/fixdfdi.c: Likewise.
43179         * soft-fp/fixdfsi.c: Likewise.
43180         * soft-fp/fixdfti.c: Likewise.
43181         * soft-fp/fixsfdi.c: Likewise.
43182         * soft-fp/fixsfsi.c: Likewise.
43183         * soft-fp/fixsfti.c: Likewise.
43184         * soft-fp/fixtfdi.c: Likewise.
43185         * soft-fp/fixtfsi.c: Likewise.
43186         * soft-fp/fixtfti.c: Likewise.
43187         * soft-fp/fixunsdfdi.c: Likewise.
43188         * soft-fp/fixunsdfsi.c: Likewise.
43189         * soft-fp/fixunsdfti.c: Likewise.
43190         * soft-fp/fixunssfdi.c: Likewise.
43191         * soft-fp/fixunssfsi.c: Likewise.
43192         * soft-fp/fixunssfti.c: Likewise.
43193         * soft-fp/fixunstfdi.c: Likewise.
43194         * soft-fp/fixunstfsi.c: Likewise.
43195         * soft-fp/fixunstfti.c: Likewise.
43196         * soft-fp/floatdidf.c: Likewise.
43197         * soft-fp/floatdisf.c: Likewise.
43198         * soft-fp/floatditf.c: Likewise.
43199         * soft-fp/floatsidf.c: Likewise.
43200         * soft-fp/floatsisf.c: Likewise.
43201         * soft-fp/floatsitf.c: Likewise.
43202         * soft-fp/floattidf.c: Likewise.
43203         * soft-fp/floattisf.c: Likewise.
43204         * soft-fp/floattitf.c: Likewise.
43205         * soft-fp/floatundidf.c: Likewise.
43206         * soft-fp/floatundisf.c: Likewise.
43207         * soft-fp/floatunditf.c: Likewise.
43208         * soft-fp/floatunsidf.c: Likewise.
43209         * soft-fp/floatunsisf.c: Likewise.
43210         * soft-fp/floatunsitf.c: Likewise.
43211         * soft-fp/floatuntidf.c: Likewise.
43212         * soft-fp/floatuntisf.c: Likewise.
43213         * soft-fp/floatuntitf.c: Likewise.
43214         * soft-fp/fmadf4.c: Likewise.
43215         * soft-fp/fmasf4.c: Likewise.
43216         * soft-fp/fmatf4.c: Likewise.
43217         * soft-fp/gedf2.c: Likewise.
43218         * soft-fp/gesf2.c: Likewise.
43219         * soft-fp/getf2.c: Likewise.
43220         * soft-fp/ledf2.c: Likewise.
43221         * soft-fp/lesf2.c: Likewise.
43222         * soft-fp/letf2.c: Likewise.
43223         * soft-fp/muldf3.c: Likewise.
43224         * soft-fp/mulsf3.c: Likewise.
43225         * soft-fp/multf3.c: Likewise.
43226         * soft-fp/negdf2.c: Likewise.
43227         * soft-fp/negsf2.c: Likewise.
43228         * soft-fp/negtf2.c: Likewise.
43229         * soft-fp/op-1.h: Likewise.
43230         * soft-fp/op-2.h: Likewise.
43231         * soft-fp/op-4.h: Likewise.
43232         * soft-fp/op-8.h: Likewise.
43233         * soft-fp/op-common.h: Likewise.
43234         * soft-fp/quad.h: Likewise.
43235         * soft-fp/single.h: Likewise.
43236         * soft-fp/soft-fp.h: Likewise.
43237         * soft-fp/sqrtdf2.c: Likewise.
43238         * soft-fp/sqrtsf2.c: Likewise.
43239         * soft-fp/sqrttf2.c: Likewise.
43240         * soft-fp/subdf3.c: Likewise.
43241         * soft-fp/subsf3.c: Likewise.
43242         * soft-fp/subtf3.c: Likewise.
43243         * soft-fp/truncdfsf2.c: Likewise.
43244         * soft-fp/trunctfdf2.c: Likewise.
43245         * soft-fp/trunctfsf2.c: Likewise.
43246         * soft-fp/trunctfxf2.c: Likewise.
43247         * soft-fp/unorddf2.c: Likewise.
43248         * soft-fp/unordsf2.c: Likewise.
43249         * soft-fp/unordtf2.c: Likewise.
43250
43251 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43252
43253         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43254         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43255
43256 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43257
43258         * elf/dl-libc.c: Clear initfini list after freeing.
43259
43260 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43261
43262         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43263         * soft-fp/addsf3.c: Likewise.
43264         * soft-fp/addtf3.c: Likewise.
43265         * soft-fp/divdf3.c: Likewise.
43266         * soft-fp/divsf3.c: Likewise.
43267         * soft-fp/divtf3.c: Likewise.
43268         * soft-fp/double.h: Likewise.
43269         * soft-fp/eqdf2.c: Likewise.
43270         * soft-fp/eqsf2.c: Likewise.
43271         * soft-fp/eqtf2.c: Likewise.
43272         * soft-fp/extenddftf2.c: Likewise.
43273         * soft-fp/extended.h: Likewise.
43274         * soft-fp/extendsfdf2.c: Likewise.
43275         * soft-fp/extendsftf2.c: Likewise.
43276         * soft-fp/extendxftf2.c: Likewise.
43277         * soft-fp/fixdfdi.c: Likewise.
43278         * soft-fp/fixdfsi.c: Likewise.
43279         * soft-fp/fixdfti.c: Likewise.
43280         * soft-fp/fixsfdi.c: Likewise.
43281         * soft-fp/fixsfsi.c: Likewise.
43282         * soft-fp/fixsfti.c: Likewise.
43283         * soft-fp/fixtfdi.c: Likewise.
43284         * soft-fp/fixtfsi.c: Likewise.
43285         * soft-fp/fixtfti.c: Likewise.
43286         * soft-fp/fixunsdfdi.c: Likewise.
43287         * soft-fp/fixunsdfsi.c: Likewise.
43288         * soft-fp/fixunsdfti.c: Likewise.
43289         * soft-fp/fixunssfdi.c: Likewise.
43290         * soft-fp/fixunssfsi.c: Likewise.
43291         * soft-fp/fixunssfti.c: Likewise.
43292         * soft-fp/fixunstfdi.c: Likewise.
43293         * soft-fp/fixunstfsi.c: Likewise.
43294         * soft-fp/fixunstfti.c: Likewise.
43295         * soft-fp/floatdidf.c: Likewise.
43296         * soft-fp/floatdisf.c: Likewise.
43297         * soft-fp/floatditf.c: Likewise.
43298         * soft-fp/floatsidf.c: Likewise.
43299         * soft-fp/floatsisf.c: Likewise.
43300         * soft-fp/floatsitf.c: Likewise.
43301         * soft-fp/floattidf.c: Likewise.
43302         * soft-fp/floattisf.c: Likewise.
43303         * soft-fp/floattitf.c: Likewise.
43304         * soft-fp/floatundidf.c: Likewise.
43305         * soft-fp/floatundisf.c: Likewise.
43306         * soft-fp/floatunsidf.c: Likewise.
43307         * soft-fp/floatunsisf.c: Likewise.
43308         * soft-fp/floatuntidf.c: Likewise.
43309         * soft-fp/floatuntisf.c: Likewise.
43310         * soft-fp/floatuntitf.c: Likewise.
43311         * soft-fp/fmadf4.c: Likewise.
43312         * soft-fp/fmasf4.c: Likewise.
43313         * soft-fp/fmatf4.c: Likewise.
43314         * soft-fp/gedf2.c: Likewise.
43315         * soft-fp/gesf2.c: Likewise.
43316         * soft-fp/getf2.c: Likewise.
43317         * soft-fp/ledf2.c: Likewise.
43318         * soft-fp/lesf2.c: Likewise.
43319         * soft-fp/letf2.c: Likewise.
43320         * soft-fp/muldf3.c: Likewise.
43321         * soft-fp/mulsf3.c: Likewise.
43322         * soft-fp/multf3.c: Likewise.
43323         * soft-fp/negdf2.c: Likewise.
43324         * soft-fp/negsf2.c: Likewise.
43325         * soft-fp/negtf2.c: Likewise.
43326         * soft-fp/op-1.h: Likewise.
43327         * soft-fp/op-2.h: Likewise.
43328         * soft-fp/op-4.h: Likewise.
43329         * soft-fp/op-8.h: Likewise.
43330         * soft-fp/op-common.h: Likewise.
43331         * soft-fp/quad.h: Likewise.
43332         * soft-fp/single.h: Likewise.
43333         * soft-fp/soft-fp.h: Likewise.
43334         * soft-fp/sqrtdf2.c: Likewise.
43335         * soft-fp/sqrtsf2.c: Likewise.
43336         * soft-fp/sqrttf2.c: Likewise.
43337         * soft-fp/subdf3.c: Likewise.
43338         * soft-fp/subsf3.c: Likewise.
43339         * soft-fp/subtf3.c: Likewise.
43340         * soft-fp/truncdfsf2.c: Likewise.
43341         * soft-fp/trunctfdf2.c: Likewise.
43342         * soft-fp/trunctfsf2.c: Likewise.
43343         * soft-fp/trunctfxf2.c: Likewise.
43344         * soft-fp/unorddf2.c: Likewise.
43345         * soft-fp/unordsf2.c: Likewise.
43346         * soft-fp/unordtf2.c: Likewise.
43347
43348 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43349
43350         [BZ #15672]
43351         * misc/error.c (error_tail): Fix possible buffer overflow.
43352
43353 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43354
43355         [BZ #13028]
43356         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43357         address.
43358
43359 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43360
43361         [BZ #832]
43362         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43363         testing pipefail option.
43364
43365 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43366
43367         * soft-fp/double.h: Indent preprocessor directives inside #if.
43368         * soft-fp/extended.h: Likewise.
43369         * soft-fp/op-2.h: Likewise.
43370         * soft-fp/op-4.h: Likewise.
43371         * soft-fp/op-common.h: Likewise.
43372         * soft-fp/quad.h: Likewise.
43373         * soft-fp/single.h: Likewise.
43374         * soft-fp/soft-fp.h: Likewise.
43375
43376 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43377
43378         * iconv/iconv_prog.c: Fix typos.
43379         * stdio-common/psiginfo-data.h: Likewise.
43380
43381 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43382
43383         [BZ #15764]
43384         * locale/setlocale.c: Fix typo.
43385
43386 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43387
43388         [BZ #16036]
43389         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43390         signaling NaN arguments.
43391         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43392         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43393
43394         [BZ #14910]
43395         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43396         unordered operands.
43397         * soft-fp/gesf2.c (__gesf2): Likewise.
43398         * soft-fp/getf2.c (__getf2): Likewise.
43399         * soft-fp/ledf2.c (__ledf2): Likewise.
43400         * soft-fp/lesf2.c (__lesf2): Likewise.
43401         * soft-fp/letf2.c (__letf2): Likewise.
43402
43403         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43404         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43405         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43406         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43407         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43408         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43409         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43410         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43411         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43412         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43413         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43414         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43415         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43416         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43417         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43418         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43419         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43420         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43421         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43422         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43423         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43424         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43425         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43426         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43427         * soft-fp/floattidf.c (__floattidf): Likewise.
43428         * soft-fp/floattisf.c (__floattisf): Likewise.
43429         * soft-fp/floattitf.c (__floattitf): Likewise.
43430         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43431         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43432         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43433         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43434         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43435         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43436         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43437         * soft-fp/gesf2.c (__gesf2): Likewise.
43438         * soft-fp/getf2.c (__getf2): Likewise.
43439         * soft-fp/ledf2.c (__ledf2): Likewise.
43440         * soft-fp/lesf2.c (__lesf2): Likewise.
43441         * soft-fp/letf2.c (__letf2): Likewise.
43442
43443         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43444         Undefine and redefine.
43445         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43446         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43447         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43448         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43449         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43450         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43451         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43452         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43453         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43454         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43455         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43456         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43457         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43458         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43459         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43460
43461         [BZ #16032]
43462         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43463         without decrementing exponent if mantissa >= that for the
43464         denominator, not >.
43465         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43466         denominator, not >.  Decrement exponent in < case instead of
43467         incrementing in >= case.
43468         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43469         without decrementing exponent if mantissa >= that for the
43470         denominator, not >.
43471
43472         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43473         computing saturated result for unsigned overflow.
43474
43475 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43476             Jeff Law  <law@redhat.com>
43477
43478         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43479         (atan2Mp): Add systemtap probe marker.
43480         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43481         (__ieee754_log): Add systemtap probe marker.
43482         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43483         (atanMp): Add systemtap probe marker.
43484         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43485         (tanMp): Add systemtap probe marker.
43486         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43487         (__slowexp): Add systemtap probe marker.
43488         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43489         (__slowpow): Add systemtap probe marker.
43490         * manual/probes.texi: Document probes.
43491
43492 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43493
43494         [BZ #15362]
43495         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43496         written.
43497         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43498         written.
43499         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43500         written to buffer but not flushed.
43501         * libio/iofwrite_u.c:  Likewise.
43502         * libio/iopadn.c:  Return bytes returned even if EOF was
43503         encountered.
43504         * libio/iowpadn.c:  Likewise.
43505         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43506         if _IO_padn does not write the whole buffer.
43507         [!COMPILE_WPRINTF] (PAD): Likewise.
43508
43509 2013-10-10  David S. Miller  <davem@davemloft.net>
43510
43511         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43512         directory block.
43513
43514 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43515
43516         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43517         instead of FSF address.
43518         * soft-fp/fixdfti.c: Likewise.
43519         * soft-fp/fixsfti.c: Likewise.
43520         * soft-fp/fixtfti.c: Likewise.
43521         * soft-fp/fixunsdfti.c: Likewise.
43522         * soft-fp/fixunssfti.c: Likewise.
43523         * soft-fp/fixunstfti.c: Likewise.
43524         * soft-fp/floattidf.c: Likewise.
43525         * soft-fp/floattisf.c: Likewise.
43526         * soft-fp/floattitf.c: Likewise.
43527         * soft-fp/floatuntidf.c: Likewise.
43528         * soft-fp/floatuntisf.c: Likewise.
43529         * soft-fp/floatuntitf.c: Likewise.
43530         * soft-fp/trunctfxf2.c: Likewise.
43531
43532         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43533         * soft-fp/fixdfti.c: Likewise.
43534         * soft-fp/fixsfti.c: Likewise.
43535         * soft-fp/fixtfti.c: Likewise.
43536         * soft-fp/fixunsdfti.c: Likewise.
43537         * soft-fp/fixunssfti.c: Likewise.
43538         * soft-fp/fixunstfti.c: Likewise.
43539         * soft-fp/floattidf.c: Likewise.
43540         * soft-fp/floattisf.c: Likewise.
43541         * soft-fp/floattitf.c: Likewise.
43542         * soft-fp/floatuntidf.c: Likewise.
43543         * soft-fp/floatuntisf.c: Likewise.
43544         * soft-fp/floatuntitf.c: Likewise.
43545         * soft-fp/trunctfxf2.c: Likewise.
43546
43547 2013-10-10  David S. Miller  <davem@davemloft.net>
43548
43549         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43550
43551 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43552
43553         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43554         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43555         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43556         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43557         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43558         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43559         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43560
43561         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43562         for NaNs before doing comparisons on argument.
43563         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43564         Likewise.
43565
43566 2013-10-10  Will Newton  <will.newton@linaro.org>
43567
43568         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43569         passed to _int_memalign does not overflow.
43570
43571 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43572
43573         * scripts/bench.pl: Add include-sources directive.
43574         * benchtests/README: Update documentation.
43575
43576 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43577
43578         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43579         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43580         instead of FP_INIT_ROUNDMODE.
43581         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43582         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43583
43584         [BZ #16034]
43585         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43586         copy class of input value.
43587         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43588         not handle exceptions.
43589         * soft-fp/negsf2.c (__negsf2): Likewise.
43590         * soft-fp/negtf2.c (__negtf2): Likewise.
43591         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43592
43593 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43594
43595         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43596         semicolon.  From Linux kernel.
43597
43598 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43599
43600         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43601
43602 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43603
43604         [BZ #156]
43605         * manual/socket.texi: Added statement about buffer
43606         for gethostbyname2_r.
43607
43608 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43609
43610         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43611         Use .p2align directive instead, throughout.
43612         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43613         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43614         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43615         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43616         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43617         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43618         * sysdeps/x86_64/strchr.S: Likewise.
43619         * sysdeps/x86_64/strrchr.S: Likewise.
43620
43621 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43622
43623         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43624
43625         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43626
43627         * sysdeps/generic/math_private.h (__mpsin1): Remove
43628         declaration.
43629         (__mpcos1): Likewise.
43630         (__mpsin): New argument __range_reduce.
43631         (__mpcos): Likewise.
43632         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43633         (slow): Use __mpsin and __mpcos.
43634         (slow1): Likewise.
43635         (slow2): Likewise.
43636         (sloww): Likewise.
43637         (sloww1): Likewise.
43638         (sloww2): Likewise.
43639         (bsloww): Likewise.
43640         (bsloww1): Likewise.
43641         (bsloww2): Likewise.
43642         (cslow2): Likewise.
43643         (csloww): Likewise.
43644         (csloww1): Likewise.
43645         (csloww2): Likewise.
43646         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43647         range_reduce.  Merge in __mpsin1.
43648         (__mpcos): Likewise.
43649         (__mpsin1): Remove.
43650         (__mpcos1): Likewise.
43651
43652 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43653
43654         * locale/loadlocale.c (_nl_intern_locale_data): Use
43655         LOCFILE_ALIGNED_P.
43656         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43657         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43658         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43659         obstack data is appropriately aligned.
43660         (obstack_int32_grow_fast): Likewise.
43661         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43662         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43663         (add_locale_uint32_array): Likewise.
43664
43665 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43666
43667         * benchtests/Makefile: Remove ARGLIST and RET variables.
43668         ($(objpfx)bench-%.c): Pass only function name to the script.
43669         * benchtests/README: Update documentation.
43670         * benchtests/acos-inputs: Add new directives.
43671         * benchtests/acosh-inputs: Likewise.
43672         * benchtests/asin-inputs: Likewise.
43673         * benchtests/asinh-inputs: Likewise.
43674         * benchtests/atan-inputs: Likewise.
43675         * benchtests/atanh-inputs: Likewise.
43676         * benchtests/cos-inputs: Likewise.
43677         * benchtests/cosh-inputs: Likewise.
43678         * benchtests/exp-inputs: Likewise.
43679         * benchtests/log-inputs: Likewise.
43680         * benchtests/pow-inputs: Likewise.
43681         * benchtests/rint-inputs: Likewise.
43682         * benchtests/sin-inputs: Likewise.
43683         * benchtests/sinh-inputs: Likewise.
43684         * benchtests/tan-inputs: Likewise.
43685         * benchtests/tanh-inputs: Likewise.
43686         * scripts/bench.pl: Add support for new directives.
43687
43688 2013-10-07  Alan Modra  <amodra@gmail.com>
43689
43690         * README: Fix careless merge.
43691
43692 2013-10-05  Alan Modra  <amodra@gmail.com>
43693
43694         * NEWS: Mention powerpc64le support and bugs fixed.
43695         * README: Both big-endian and little-endian powerpc64 supported.
43696
43697 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43698
43699         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43700         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43701         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43702         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43703
43704 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43705
43706         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43707         match prototype.
43708
43709 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43710
43711         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43712         Move -mhard-float appending from
43713         ports/sysdeps/powerpc/powerpc32/Makefile.
43714         [$(with-fp) = yes] (ASFLAGS): Likewise.
43715         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43716         * sysdeps/powerpc/nofpu: Move directory from
43717         ports/sysdeps/powerpc/nofpu.
43718         * sysdeps/powerpc/soft-fp: Move directory from
43719         ports/sysdeps/powerpc/soft-fp.
43720         * sysdeps/powerpc/powerpc32/405: Move directory from
43721         ports/sysdeps/powerpc/powerpc32/405.
43722         * sysdeps/powerpc/powerpc32/440: Move directory from
43723         ports/sysdeps/powerpc/powerpc32/440.
43724         * sysdeps/powerpc/powerpc32/464: Move directory from
43725         ports/sysdeps/powerpc/powerpc32/464.
43726         * sysdeps/powerpc/powerpc32/476: Move directory from
43727         ports/sysdeps/powerpc/powerpc32/476.
43728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43729         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43731         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43733         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43735         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43737         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43738         * README: Update for powerpc-*-linux-gnu software floating point
43739         support in libc.
43740
43741         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43742         case to powerpc/powerpc32*.
43743         * sysdeps/unix/sysv/linux/configure: Regenerated.
43744
43745         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43746         (_FPU_MASK_OM): Define as 0x04.
43747         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43748         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43749         0x00c10080.
43750         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43751         0x0000003c.
43752         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43753
43754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43755         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43756         getcontext_e500.
43757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43758         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43759         setcontext_e500.
43760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43761         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43762         and setcontext_e500.
43763
43764 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43765
43766         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43767
43768 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43769
43770         * manual/threads.texi (Default Thread Attributes): Fix typo.
43771
43772 2013-10-04  Will Newton  <will.newton@linaro.org>
43773
43774         * malloc/Makefile: Add tst-memalign.
43775         * malloc/tst-memalign.c: New file.
43776
43777         * malloc/tst-posix_memalign.c: Add comments.
43778         (do_test): Add comments and call free on all potentially
43779         allocated pointers. Add space after cast.
43780
43781         * malloc/tst-pvalloc.c: Add comments.
43782         (do_test): Add comments and call free on all potentially
43783         allocated pointers. Remove duplicate check for NULL pointer.
43784         Add space after cast.
43785
43786         * malloc/tst-valloc.c: Add comments.
43787         (do_test): Add comments and call free on all potentially
43788         allocated pointers. Remove duplicate check for NULL pointer.
43789         Add space after cast.
43790
43791 2013-10-04  Alan Modra  <amodra@gmail.com>
43792
43793         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43794         Use stdint types in rather than __attribute__((mode())).
43795         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43796
43797 2013-10-04  Alan Modra  <amodra@gmail.com>
43798
43799         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43800         Correct handling of unaligned relocs for little-endian.
43801         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43802
43803 2013-10-04  Alan Modra  <amodra@gmail.com>
43804
43805         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43806         * configure: Regenerate.
43807         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43808         * shlib-versions: Likewise.
43809
43810 2013-10-04  Alan Modra  <amodra@gmail.com>
43811
43812         * string/tester.c (test_memrchr): Increment reported test cycle.
43813
43814 2013-10-04  Alan Modra  <amodra@gmail.com>
43815
43816         * string/test-memcpy.c (do_one_test): When reporting errors, print
43817         string address and don't overrun end of string.
43818
43819 2013-10-04  Alan Modra  <amodra@gmail.com>
43820
43821         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43822         insrdi.  Make better use of reg selection to speed exit slightly.
43823         Schedule entry path a little better.  Remove useless "are we done"
43824         checks on entry to main loop.  Handle wrapping around zero address.
43825         Correct main loop count.  Handle single left-over word from main
43826         loop inline rather than by using loop_small.  Remove extra word
43827         case in loop_small caused by wrong loop count.  Add little-endian
43828         support.
43829         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43830         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43831         cache hint.
43832         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43833         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43834         support.  Avoid rlwimi.
43835         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43836
43837 2013-10-04  Alan Modra  <amodra@gmail.com>
43838
43839         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43840         insrdi.  Formatting.
43841         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43842         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43843         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43844         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43845         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43846         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43847
43848 2013-10-04  Alan Modra  <amodra@gmail.com>
43849
43850         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43851         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43852         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43853         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43854         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43855         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43856         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43857         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43858         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43859         use of regs.  Use power7 mtocrf.  Tidy function tails.
43860
43861 2013-10-04  Alan Modra  <amodra@gmail.com>
43862
43863         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43864         Formatting.  Consistently use rXXX register defines or rN defines.
43865         Use early exit labels that avoid restoring unused non-volatile regs.
43866         Make cr field use more consistent with rWORDn compares.  Rename
43867         regs used as shift registers for unaligned loop, using rN defines
43868         for short lifetime/multiple use regs.
43869         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43870         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43871         addi 1,1,64 to pop stack frame.  Simplify return value code.
43872         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43873
43874 2013-10-04  Alan Modra  <amodra@gmail.com>
43875
43876         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43877         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43878         rather than rlwimi.
43879         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43880         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43881         little-endian support.  Correct typos.
43882         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43883         rather than rlwimi.
43884         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43885         in loop and entry code to keep "and." results.
43886         (strchr): Add little-endian support.  Comment.  Move cntlzd
43887         earlier in tail.
43888         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43889
43890 2013-10-04  Alan Modra  <amodra@gmail.com>
43891
43892         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43893         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43894         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43895         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43896
43897 2013-10-04  Alan Modra  <amodra@gmail.com>
43898
43899         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43900         (rTMP): Define as r11.
43901         (strcmp): Add little-endian support.  Optimise tail.
43902         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43903         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43904         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43905         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43906         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43907         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43908         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43909
43910 2013-10-04  Alan Modra  <amodra@gmail.com>
43911
43912         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43913         little-endian support.  Remove unnecessary "are we done" tests.
43914         Handle "s" wrapping around zero and extremely large "size".
43915         Correct main loop count.  Handle single left-over word from main
43916         loop inline rather than by using small_loop.  Correct comments.
43917         Delete "zero" tail, use "end_max" instead.
43918         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43919
43920 2013-10-04  Alan Modra  <amodra@gmail.com>
43921
43922         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43923         support.  Don't branch over align.
43924         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43925         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43926         support.  Rearrange tmp reg use to suit.  Comment.
43927         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43928
43929 2013-10-04  Alan Modra  <amodra@gmail.com>
43930
43931         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43932
43933 2013-10-04  Alan Modra  <amodra@gmail.com>
43934
43935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43936         conditional form of branch and link when obtaining pc.
43937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43938
43939 2013-10-04  Alan Modra  <amodra@gmail.com>
43940
43941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43942         HIWORD/LOWORD.
43943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43945
43946 2013-10-04  Alan Modra  <amodra@gmail.com>
43947
43948         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43949         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43950         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43951         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43952         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43953         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43954         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43955         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43956         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43957         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43958
43959 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43960             Alistair Popple <alistair@ozlabs.au.ibm.com>
43961             Alan Modra <amodra@gmail.com>
43962
43963         [BZ #15723]
43964         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43965         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43966         _dl_hwcap access for little-endian.
43967         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43968         destroy vmx regs when saving unaligned.
43969         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43970         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43971         destroy vmx regs when saving unaligned.
43972
43973 2013-10-04  Alan Modra  <amodra@gmail.com>
43974
43975         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43976         Don't use a union to pack hi/low value.
43977
43978 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43979
43980         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43981         for little-endian.
43982         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43983         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43984         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43985         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43986         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43987
43988 2013-10-04  Alan Modra  <amodra@gmail.com>
43989
43990         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43991         constants to usual value for .cst8 section, and remove redundant
43992         high address load.
43993         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43994         constant for 0x1p52.  Load little-endian words of double from
43995         correct stack offsets.
43996
43997 2013-10-04  Alan Modra  <amodra@gmail.com>
43998
43999         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
44000         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
44001         words of double from correct stack offsets.
44002         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
44003         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
44004         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
44005         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
44006         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
44007         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
44008         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
44009         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
44010         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
44011         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
44012         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
44013         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
44014         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
44015         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
44016         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
44017         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
44018         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
44019
44020 2013-10-04  Alan Modra  <amodra@gmail.com>
44021
44022         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
44023         64-bit int/double union.
44024         (_FPU_SETCW): Likewise.
44025         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
44026         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
44027
44028 2013-10-04  Alan Modra  <amodra@gmail.com>
44029
44030         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
44031         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
44032
44033 2013-10-04  Alan Modra  <amodra@gmail.com>
44034
44035         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
44036         use vector int constants.
44037         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
44038
44039 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
44040
44041         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
44042         array with long long.
44043         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
44044         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
44045         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
44046         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
44047         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
44048         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
44049         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
44050         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
44051         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
44052         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
44053         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
44054         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
44055         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
44056
44057 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
44058
44059         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
44060         (__signbit): Likewise.  Correct for little-endian.
44061         (__signbitl): Call __signbit.
44062         (lrint): Correct for little-endian.
44063         (lrintf): Call lrint.
44064
44065 2013-10-04  Alan Modra  <amodra@gmail.com>
44066
44067         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
44068         union 32-bit int array member with 64-bit int array.
44069         (t515, tm256): Double rather than long double.
44070         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
44071
44072 2013-10-04  Alan Modra  <amodra@gmail.com>
44073
44074         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
44075         Delete.
44076         (IEEE854_LONG_DOUBLE_BIAS): Delete.
44077         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
44078         version of math_ldbl.h.
44079
44080 2013-10-04  Alan Modra  <amodra@gmail.com>
44081
44082         [BZ #15734], [BZ #15735]
44083         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
44084         all uses of ieee875 long double macros and unions.  Simplify test
44085         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
44086         ldbl_extract_mantissa value for ix,iy exponents.  Properly
44087         normalize after ldbl_extract_mantissa, and don't add hidden bit
44088         already handled.  Don't treat low word of ieee854 mantissa like
44089         low word of IBM long double and mask off bit when testing for
44090         zero.
44091         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
44092         all uses of ieee875 long double macros and unions.  Simplify tests
44093         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
44094         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
44095         two1022, instead use their values.  Recognise that tests for large
44096         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
44097         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
44098         Rewrite all uses of ieee875 long double macros and unions.  Simplify
44099         test for 0.0L and nan.  Correct negation.
44100         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
44101         ieee875 long double macros and unions.  Correct output for large
44102         magnitude x.  Correct absolute value calculation.
44103         (__erfcl): Likewise.
44104         * math/libm-test.inc: Add tests for errors discovered in IBM long
44105         double versions of fmodl, remainderl, erfl and erfcl.
44106
44107 2013-10-04  Alan Modra  <amodra@gmail.com>
44108
44109         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
44110         all uses of ieee854 long double macros and unions.  Simplify tests
44111         for long doubles that are fully specified by the high double.
44112         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
44113         Likewise.
44114         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
44115         Remove dead code too.
44116         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
44117         (__ieee754_ynl): Likewise.
44118         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
44119         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
44120         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
44121         Remove dead code too.
44122         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
44123         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
44124         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
44125         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
44126         Simplify.
44127         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
44128         Simplify.
44129         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
44130         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
44131         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
44132         Comment on variable precision.
44133         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
44134         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
44135         Likewise.
44136         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
44137         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
44138         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
44139         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
44140         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
44141
44142 2013-10-04  Alan Modra  <amodra@gmail.com>
44143
44144         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
44145         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
44146         all uses of ieee854 long double macros and unions.
44147         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
44148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
44149         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
44150         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
44151         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
44152         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
44153         Likewise.
44154         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
44155         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
44156         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
44157         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
44158         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
44159         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
44160         Simplify sign and nan test too.
44161         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
44162         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
44163         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
44164         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
44165         Likewise.
44166         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
44167         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
44168         Likewise.
44169         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44170         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
44171         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
44172         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
44173         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
44174         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
44175
44176 2013-10-04  Alan Modra  <amodra@gmail.com>
44177
44178         * stdio-common/printf_size.c (__printf_size): Don't use
44179         union ieee854_long_double in fpnum union.
44180         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
44181         signbit macro to retrieve sign from long double.
44182         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
44183         retrieve sign from long double.
44184         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
44185         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
44186         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
44187         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44188         * math/test-misc.c (main): Don't use union ieee854_long_double.
44189
44190 2013-10-04  Alan Modra  <amodra@gmail.com>
44191
44192         [BZ #15680]
44193         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
44194         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
44195         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
44196         calculation.  Remove unnecessary test for denormal exponent.
44197         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
44198         Correct handling of denormals.  Avoid undefined shift behaviour.
44199         Correct normalisation of low mantissa when low double is denormal.
44200         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44201         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44202         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44203         Correct normalisation of low mantissa.  Test for overflow of high
44204         mantissa and normalise.
44205         (ldbl_nearbyint): Use more readable constant for two52.
44206         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44207         (__mpn_construct_long_double): Fix test for overflow of high
44208         mantissa and correct normalisation.  Avoid undefined shift.
44209
44210 2013-10-04  Alan Modra  <amodra@gmail.com>
44211
44212         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44213         (union ibm_extended_long_double): Define as an array of ieee754_double.
44214         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44215         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44216         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44217         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44218         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44219         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44220         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44221         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44222         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44223         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44224         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44225
44226 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44227
44228         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44229         page size instead of calling getpagesize.
44230
44231         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44232         (LOCFILE_ALIGN_MASK): Likewise.
44233         (LOCFILE_ALIGN_UP): Likewise.
44234         (LOCFILE_ALIGNED_P): Likewise.
44235         * locale/programs/ld-collate.c (collate_output): Use the new
44236         macros instead of __alignof__ (int32_t).
44237         * locale/weight.h (findidx): Likewise.
44238
44239 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44240
44241         [BZ #431]
44242         * manual/string.texi: Fix strncat and wcsncat.
44243
44244 2013-10-03  Brooks Moses  <bmoses@google.com>
44245
44246         [BZ #15915]
44247         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44248         * Makerules: ...here, and adjust associated comments.
44249
44250 2013-10-02  Will Newton  <will.newton@linaro.org>
44251
44252         * malloc/Makefile: Add tst-pvalloc.
44253         * malloc/tst-pvalloc.c: New file.
44254
44255 2013-10-02  Will Newton  <will.newton@linaro.org>
44256
44257         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44258         improve test coverage.
44259
44260 2013-10-02  Will Newton  <will.newton@linaro.org>
44261
44262         * malloc/Makefile: Add tst-posix_memalign.
44263         * malloc/tst-posix_memalign.c: New file.
44264
44265 2013-10-01  Eric Blake  <eblake@redhat.com>
44266
44267         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44268         Use __THROWNL rather than __THROW on static functions.
44269
44270 2013-09-30  Petr Machata  <pmachata@redhat.com>
44271
44272         * elf/elf.h (R_AARCH64_ABS16): New macro.
44273         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44274         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44275         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44276         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44277         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44278         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44279         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44280         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44281         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44282         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44283         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44284         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44285         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44286         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44287         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44288         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44289         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44290         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44291         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44292         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44293         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44294         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44295         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44296         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44297         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44298         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44299         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44300         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44301         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44302         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44303         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44304         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44305         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44306         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44307         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44308         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44309         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44310         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44311         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44312         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44313         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44314         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44315         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44316         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44317         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44318         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44319         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44320         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44321         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44322         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44323         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44324         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44325         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44326         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44327         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44328         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44329         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44330         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44331         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44332         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44333         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44334         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44335         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44336         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44337         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44338         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44339         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44340         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44341         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44342         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44343         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44344         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44345         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44346         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44347         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44348         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44349         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44350         (R_AARCH64_TLSDESC_LDR): Likewise.
44351         (R_AARCH64_TLSDESC_ADD): Likewise.
44352         (R_AARCH64_TLSDESC_CALL): Likewise.
44353
44354 2013-09-30  Andreas Schwab  <schwab@suse.de>
44355
44356         [BZ #15048]
44357         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44358         the nss database lookup.
44359         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44360         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44361
44362 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44363
44364         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44365
44366 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44367
44368         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44369         ${Bash-specific parameter/pattern/string} parameter expansion.
44370         * sysdeps/unix/make-syscalls.sh: Likewise.
44371
44372 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44373
44374         * sysdeps/sh/stackguard-macros.h: New file.
44375
44376 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44377
44378         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44379         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44380         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44381         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44382         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44383         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44384
44385 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44386
44387         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44388         Fix thread ID register.
44389
44390 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44391
44392         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44393         [POSIX || UNIX98]: Require rather than permitting all symbols from
44394         <time.h>.
44395         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44396         element of struct sched_param.
44397         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44398         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44399         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44400         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44401         constant.
44402
44403 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44404
44405         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44406         argument calculation.
44407
44408 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44409
44410         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44411         Expect macro.
44412         [POSIX] (pthread_attr_t): Do not require type.
44413         [POSIX] (pthread_cond_t): Likewise.
44414         [POSIX] (pthread_condattr_t): Likewise.
44415         [POSIX] (pthread_key_t): Likewise.
44416         [POSIX] (pthread_mutex_t): Likewise.
44417         [POSIX] (pthread_mutexattr_t): Likewise.
44418         [POSIX] (pthread_once_t): Likewise.
44419         [POSIX] (pthread_t): Likewise.
44420         [POSIX-based standards] (pthread_atfork): Expect function.
44421
44422 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44423             Richard Sandiford  <richard@codesourcery.com>
44424
44425         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44426         (swap_endianness_p): New extern variable.
44427         (set_big_endian): New inline function.
44428         (maybe_swap_uint32): Likewise.
44429         (maybe_swap_uint32_array): Likewise.
44430         (maybe_swap_uint32_obstack): Likewise.
44431         * locale/programs/locfile.c: Include <stdbool.h>.
44432         (swap_endianness_p): New variable.
44433         (add_locale_uint32): Call maybe_swap_uint32.
44434         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44435         (write_locale_data): Call maybe_swap_uint32_array.
44436         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44437         maybe_swap_uint32.
44438         (obstack_int32_grow_fast): Likewise.
44439         (output_weightwc): Call maybe_swap_uint32_obstack.
44440         (collate_output): Likewise.
44441         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44442         (OPT_LITTLE_ENDIAN): Likewise.
44443         (options): Add --little-endian and --big-endian options.
44444         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44445         * locale/programs/locarchive.c: Include "locfile.h".
44446         (GET): New macro.
44447         (SET): Likewise.
44448         (INC): Likewise.
44449         (create_archive): Use the new macros to access fields of
44450         structures directly mapped from or written to locale archives.
44451         (oldlocrecentcmp): Likewise.
44452         (enlarge_archive): Likewise.
44453         (insert_name): Likewise.
44454         (add_alias): Likewise.
44455         (add_locale): Likewise.
44456         (delete_locales_from_archive): Likewise.
44457         (show_archive_content): Likewise.
44458         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44459         locale data.
44460
44461 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44462
44463         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44464         http://www.gnu.org/doc/freemanuals.texi.
44465         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44466
44467 2013-09-24  Will Newton  <will.newton@linaro.org>
44468
44469         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44470         macro.
44471
44472 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44473
44474         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44475         unsigned char.
44476
44477 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44478
44479         * manual/threads.texi (POSIX Threads): Fix a typo.
44480
44481 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44482
44483         [BZ #14547]
44484         * string/tst-strcoll-overflow.c: New test case.
44485         * string/Makefile (xtests): Add tst-strcoll-overflow.
44486         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44487         cache if string sizes may cause integer overflow.
44488
44489         [BZ #14547]
44490         * string/strcoll_l.c (coll_seq): New members rule, idx,
44491         save_idx and back_us.
44492         (get_next_seq_nocache): New function.
44493         (do_compare_nocache): New function.
44494         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44495         when malloc fails.
44496
44497 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44498
44499         [BZ #15754]
44500         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44501         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44502         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44503
44504         [BZ #15754]
44505         * elf/Makefile (tests): Add tst-ptrguard1.
44506         (tests-static): Add tst-ptrguard1-static.
44507         (tst-ptrguard1-ARGS): Define.
44508         (tst-ptrguard1-static-ARGS): Define.
44509         * elf/tst-ptrguard1.c: New file.
44510         * elf/tst-ptrguard1-static.c: New file.
44511         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44512         * sysdeps/i386/stackguard-macros.h: Likewise.
44513         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44514         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44515         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44516         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44517         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44518         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44519
44520 2013-09-23  Hector Marco  <hecmargi@upv.es>
44521             Ismael Ripoll  <iripoll@disca.upv.es>
44522             Carlos O'Donell  <carlos@redhat.com>
44523
44524         [BZ #15754]
44525         * sysdeps/generic/stackguard-macros.h: Define
44526         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44527         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44528         Define __pointer_chk_guard_local.
44529         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44530         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44531
44532 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44533
44534         [BZ #15859]
44535         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44536
44537 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44538
44539         * include/string.h (__ffs): Declare as hidden.
44540         * string/ffs.c (__ffs): Define as hidden.
44541         * sysdeps/i386/ffs.c (__ffs): Likewise.
44542         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44543         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44544         * sysdeps/s390/ffs.c (__ffs): Likewise.
44545         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44546
44547 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44548
44549         * NEWS: Mention malloc probes.
44550
44551         * malloc/arena.c (new_heap): New memory_heap_new probe.
44552         (grow_heap): New memory_heap_more probe.
44553         (shrink_heap): New memory_heap_less probe.
44554         (heap_trim): New memory_heap_free probe.
44555         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44556         (systrim): New memory_sbrk_less probe.
44557         * manual/probes.texi: Document them.
44558
44559         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44560         * manual/probes.texi: Document it.
44561
44562         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44563         (__libc_realloc): Add memory_realloc_retry probe.
44564         (__libc_memalign): Add memory_memalign_retry probe.
44565         (__libc_valloc): Add memory_valloc_retry probe.
44566         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44567         (__libc_calloc): Add memory_calloc_retry probe.
44568         * manual/probes.texi: Document them.
44569
44570         * malloc/arena.c (get_free_list): Add probe
44571         memory_arena_reuse_free_list.
44572         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44573         and memory_arena_reuse.
44574         (arena_get2) [!PER_THREAD]: Likewise.
44575         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44576         memory_arena_reuse_realloc.
44577         * manual/probes.texi: Document them.
44578
44579         * malloc/malloc.c (__libc_free): Add
44580         memory_mallopt_free_dyn_thresholds probe.
44581         (__libc_mallopt): Add multiple memory_mallopt probes.
44582         * manual/probes.texi: Document them.
44583
44584         * malloc/malloc.c: Include stap-probe.h.
44585         (__libc_mallopt): Add memory_mallopt probe.
44586         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44587         * manual/probes.texi: New.
44588         * manual/Makefile (chapters): Add probes.
44589         * manual/threads.texi: Set next node.
44590
44591 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44592
44593         [BZ #15963, #13985]
44594         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44595         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44596         Add `Chinese' to `nan' entry name.
44597
44598 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44599
44600         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44601         (POLYNOMIAL): Likewise.
44602         (TAYLOR_SINCOS): Likewise.
44603         (TAYLOR_SLOW): Likewise.
44604         (__sin): Use TAYLOR_SINCOS.
44605         (__cos): Likewise.
44606         (slow): Use TAYLOR_SLOW.
44607         (sloww): Likewise.
44608         (bsloww): Likewise.
44609         (csloww): Likewise.
44610
44611 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44612
44613         * stdlib/strtod_l.c: Fix buffer overrun.
44614
44615 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44616
44617         * benchtests/Makefile (bench): Add sincos.
44618         * benchtests/bench-sincos.c: New file.
44619
44620         * math/libm-test.inc (cos_test_data): New test inputs.
44621         (sin_test_data): Likewise.
44622
44623         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44624         macro.
44625         (__sin): Use it.
44626         (__cos): Likewise.
44627         (slow1): Likewise.
44628         (slow2): Likewise.
44629         (sloww1): Likewise.
44630         (sloww2): Likewise.
44631         (bsloww1): Likewise.
44632         (bsloww2): Likewise.
44633         (cslow2): Likewise.
44634         (csloww1): Likewise.
44635         (csloww2): Likewise.
44636
44637         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44638         function.
44639         (__sin): Use it.
44640         (__cos): Likewise.
44641
44642         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44643         gotos.
44644         (__cos): Likewise.
44645
44646 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44647
44648         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44649         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44650         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44651         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44652         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44653         * elf/cache.c (print_entry): Handle the new cache flags.
44654
44655 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44656             Aldy Hernandez  <aldyh@redhat.com>
44657
44658         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44659         Change condition to [_SOFT_FLOAT].
44660         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44661         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44662         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44663         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44664         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44665         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44666         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44667         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44668         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44669         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44670         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44671         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44672         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44674         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44675         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44676         declaration.
44677
44678 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44679
44680         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44681         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44682         (__longjmp): Use LOAD_GP to load saved GPRs.
44683         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44684         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44685         (__sigsetjmp): Use SAVE_GP to save GPRs.
44686
44687         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44688         Do not append -msoft-float.
44689         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44690
44691 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44692
44693         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44694
44695 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44696
44697         [BZ #15966]
44698         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44699         (_FPU_GETCW): Use initial "__" on variable and field names but not
44700         on macro parameter name.
44701         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44702         parentheses around reference to macro parameter.
44703
44704 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44705
44706         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44707         prototype.
44708         (ctype_startup): Use uint32_t in cast and sizeof for
44709         ctype->charnames.
44710
44711 2013-09-11  Jia Liu  <proljc@gmail.com>
44712
44713         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44714         __daddr_t_defined.
44715         [__FreeBSD__]: Likewise.
44716
44717 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44718
44719         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44720         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44721         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44722         (strchr): Remove __strchr_sse42 ifunc selection.
44723         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44724         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44725
44726 2013-09-11  Will Newton  <will.newton@linaro.org>
44727
44728         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44729         parameter to RES. Remove hardcoded 1000 value.
44730         * benchtests/bench-skeleton.c (main): Pass RES parameter
44731         to TIMING_INIT and multiply result by 1000.
44732
44733 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44734
44735         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44736
44737 2013-09-11  Andreas Schwab  <schwab@suse.de>
44738
44739         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44740         if not defined.
44741         (O_TMPFILE) [__USE_GNU]: Define.
44742         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44743         Define.
44744
44745 2013-09-11  Will Newton  <will.newton@linaro.org>
44746
44747         [BZ #15857]
44748         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44749         does not overflow.
44750
44751 2013-09-11  Will Newton  <will.newton@linaro.org>
44752
44753         [BZ #15856]
44754         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44755         does not overflow.
44756
44757 2013-09-11  Will Newton  <will.newton@linaro.org>
44758
44759         [BZ #15855]
44760         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44761         does not overflow.
44762
44763 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44764
44765         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44766         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44767         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44768         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44769         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44770
44771 2013-09-10  Allan McRae  <allan@archlinux.org>
44772
44773         [BZ #15748]
44774         * manual/arith.texi (Parsing of Floats): Clarify
44775         cross-reference.
44776
44777         [BZ #15849]
44778         * manual/install.texi (Running make install): Mention
44779         --enable-pt-chown.
44780         * INSTALL: Regenerated.
44781
44782 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44783
44784         * csu/init-first.c (_init): Remove the !SHARED condition around
44785         FPU control word initialization.
44786         * elf/dl-support.c (_dl_fpu_control): New variable.
44787         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44788         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44789         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44790         * math/test-fpucw-static.c: New file.
44791         * math/test-fpucw-ieee.c: New file.
44792         * math/test-fpucw-ieee-static.c: New file.
44793         * math/Makefile (tests): Add `test-fpucw-ieee' and
44794         `$(tests-static)'.
44795         (tests-static): New variable.
44796         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44797         dependency to...
44798         [($(build-shared),yes)]
44799         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44800         ... this.
44801         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44802         New dependency.
44803
44804 2013-09-09  Allan McRae  <allan@archlinux.org>
44805
44806         [BZ #15939]
44807         * manual/string.texi (Collation Functions): Fix typo in
44808         strcoll example.
44809         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44810
44811         [BZ #15893]
44812         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44813
44814         [BZ #15892]
44815         * libio/memstream.c (open_memstream): Fix memory leak.
44816         * libio/wmemstream.c (open_wmemstream): Likewise.
44817
44818         [BZ #15895]
44819         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44820
44821 2013-09-09  Will Newton  <will.newton@linaro.org>
44822
44823         * malloc/Makefile: Add tst-realloc to tests.
44824         * malloc/tst-realloc.c: New file.
44825
44826 2013-09-09  Allan McRae  <allan@archlinux.org>
44827
44828         [BZ #15844]
44829         * COPYING: Update from GNU website to fix FSF address.
44830         * COPYING.LIB: Likewise.
44831
44832 2013-09-06  David S. Miller  <davem@davemloft.net>
44833
44834         * po/zh_TW.po: Update Chinese (traditional) translation from
44835         translation project.
44836
44837 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44838             Joseph Myers  <joseph@codesourcery.com>
44839
44840         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44841         "localeinfo.h".
44842         (obstack_chunk_alloc): New macro.
44843         (obstack_chunk_free): Likewise.
44844         (record_offset): New function.
44845         (init_locale_data): Likewise.
44846         (align_locale_data): Likewise.
44847         (add_locale_empty): Likewise.
44848         (add_locale_raw_data): Likewise.
44849         (add_locale_raw_obstack): Likewise.
44850         (add_locale_string): Likewise.
44851         (add_locale_wstring): Likewise.
44852         (add_locale_uint32): Likewise.
44853         (add_locale_uint32_array): Likewise.
44854         (add_locale_char): Likewise.
44855         (start_locale_structure): Likewise.
44856         (end_locale_structure): Likewise.
44857         (start_locale_prelude): Likewise.
44858         (end_locale_prelude): Likewise.
44859         (write_locale_data): Take locale_file structure rather than an
44860         iovec.
44861         * locale/programs/locfile.h: Include "obstack.h".
44862         (struct locale_file): Change to store locale file contents instead
44863         of header.
44864         (init_locale_data): New prototype.
44865         (align_locale_data): Likewise.
44866         (add_locale_empty): Likewise.
44867         (add_locale_raw_data): Likewise.
44868         (add_locale_raw_obstack): Likewise.
44869         (add_locale_string): Likewise.
44870         (add_locale_wstring): Likewise.
44871         (add_locale_uint32): Likewise.
44872         (add_locale_uint32_array): Likewise.
44873         (add_locale_char): Likewise.
44874         (start_locale_structure): Likewise.
44875         (end_locale_structure): Likewise.
44876         (start_locale_prelude): Likewise.
44877         (end_locale_prelude): Likewise.
44878         (write_locale_data): Update prototype.
44879         * locale/programs/3level.h (struct TABLE): Remove result field.
44880         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44881         Use new locale_file interface.
44882         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44883         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44884         * locale/programs/ld-address.c (address_output): Use new
44885         locale_file interface.
44886         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44887         NO_ADD_LOCALE.
44888         (collate_finish): Don't call collseq_table_finalize.
44889         (collate_output): Use new locale_file interface.
44890         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44891         in file.
44892         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44893         (TABLE): Move defines earlier in file.
44894         (ELEMENT): Likewise.
44895         (DEFAULT): Likewise.
44896         (wctrans_table_add): Move macro and inline function earlier in
44897         file.
44898         (struct wctype_table): Move type earlier in file.
44899         (add_locale_wctype_table): New static prototype.
44900         (struct locale_ctype_t): Use logical types instead of struct iovec
44901         pointers for members.
44902         (ctype_output): Use new locale_file interface.
44903         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44904         new locale_file interface.
44905         (allocate_arrays): Update for use of new locale_file interface.
44906         * locale/programs/ld-identification.c (identification_output): Use
44907         new locale_file interface.
44908         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44909         * locale/programs/ld-messages.c (messages_output): Likewise.
44910         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44911         * locale/programs/ld-name.c (name_output): Likewise.
44912         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44913         * locale/programs/ld-paper.c (paper_output): Likewise.
44914         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44915         * locale/programs/ld-time.c (time_output): Likewise.
44916
44917 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44918
44919         * benchtests/Makefile: Add memrchr benchmark.
44920         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44921         benchmark as memrchr.
44922         * benchtests/bench-memrchr-ifunc.c: New file.
44923         * benchtests/bench-memrchr.c: New file.
44924
44925 2013-09-06   Will Newton  <will.newton@linaro.org>
44926
44927         * benchtests/Makefile (string-bench): Add memcpy.
44928
44929 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44930             Cong Wang  <amwang@redhat.com>
44931
44932         [BZ #15850]
44933         * sysdeps/unix/sysv/linux/bits/in.h
44934         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44935         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44936         before __USE_KERNEL_IPV6_DEFS uses.
44937         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44938         IPPROTO_BEETPH.
44939         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44940         sockaddr_in6, or ipv6_mreq.
44941
44942 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44943
44944         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44945         memory access for final bytes in some large inputs.
44946         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44947
44948 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44949
44950         * string/test-memrchr.c: New file.
44951         * string/test-memrchr-ifunc.c: New file.
44952         * string/Makefile: Add new memrchr testcase.
44953
44954 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44955
44956         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44957         fanotify_init returns EPERM.
44958
44959 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44960
44961         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44962         errors.
44963         (top level): Treat second token from macro or constant entries for
44964         allowed headers as allowed.
44965         * include/complex.h: Condition internal declarations on
44966         [!_ISOMAC].
44967         * include/fenv.h: Condition include of <stdbool.h> and internal
44968         declarations on [!_ISOMAC].
44969
44970 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44971
44972         [BZ #15923]
44973         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44974
44975 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44976
44977         * configure.in (--enable-versioning): Remove configure option.
44978         (libc_cv_asm_symver_directive): Remove configure test.
44979         (libc_cv_ld_version_script_option): Likewise.
44980         (VERSIONING): Remove variable and AC_SUBST.
44981         (DO_VERSIONING): Remove AC_DEFINE.
44982         * configure: Regenerated.
44983         * config.h.in (DO_VERSIONING): Remove macro.
44984         * Makerules [$(versioning) = yes]: Change conditionals to
44985         [$(build-shared) = yes].
44986         * config.make.in (versioning): Remove variable.
44987         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44988         [$(build-shared) = yes].
44989         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44990         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44991         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44992         [$(build-shared) = yes].
44993         * extra-lib.mk [$(versioning) = yes]: Likewise.
44994         * hurd/Makefile [$(versioning) = yes]: Likewise.
44995         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44996         [SHARED].
44997         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44998         [SHARED].
44999         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
45000         [SHARED && !NO_HIDDEN].
45001         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
45002         [SHARED].
45003         [SHARED && DO_VERSIONING]: Likewise..
45004         * libio/Makefile [$(versioning) = yes]: Change conditionals to
45005         [$(build-shared) = yes].
45006         * manual/install.texi (--disable-versioning): Remove
45007         documentation.
45008         * INSTALL: Regenerated.
45009         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
45010         to [SHARED].
45011         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
45012         [$(build-shared) = yes].
45013         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
45014         * sysdeps/i386/i686/multiarch/strstr-c.c
45015         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
45016         [SHARED && !NO_HIDDEN].
45017         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
45018         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
45019         * sysdeps/powerpc/powerpc32/dl-machine.c
45020         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
45021         * sysdeps/powerpc/powerpc32/sysdep.h
45022         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
45023         to [SHARED && PIC && !NO_HIDDEN].
45024         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
45025         conditional to [SHARED].
45026
45027 2013-09-04   Will Newton  <will.newton@linaro.org>
45028
45029         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
45030         * benchtests/bench-string.h: Include bench-timing.h instead
45031         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
45032         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
45033         call to HP_TIMING_DIFF_INIT.
45034         * benchtests/bench-memccpy.c: Use bench-timing.h macros
45035         instead of hp-timing.h macros.
45036         * benchtests/bench-memchr.c: Likewise.
45037         * benchtests/bench-memcmp.c: Likewise.
45038         * benchtests/bench-memcpy.c: Likewise.
45039         * benchtests/bench-memmem.c: Likewise.
45040         * benchtests/bench-memmove.c: Likewise.
45041         * benchtests/bench-memset.c: Likewise.
45042         * benchtests/bench-rawmemchr.c: Likewise.
45043         * benchtests/bench-strcasecmp.c: Likewise.
45044         * benchtests/bench-strcasestr.c: Likewise.
45045         * benchtests/bench-strcat.c: Likewise.
45046         * benchtests/bench-strchr.c: Likewise.
45047         * benchtests/bench-strcmp.c: Likewise.
45048         * benchtests/bench-strcpy.c: Likewise.
45049         * benchtests/bench-strcpy_chk.c: Likewise.
45050         * benchtests/bench-strlen.c: Likewise.
45051         * benchtests/bench-strncasecmp.c: Likewise.
45052         * benchtests/bench-strncat.c: Likewise.
45053         * benchtests/bench-strncmp.c: Likewise.
45054         * benchtests/bench-strncpy.c: Likewise.
45055         * benchtests/bench-strnlen.c: Likewise.
45056         * benchtests/bench-strpbrk.c: Likewise.
45057         * benchtests/bench-strrchr.c: Likewise.
45058         * benchtests/bench-strspn.c: Likewise.
45059         * benchtests/bench-strstr.c: Likewise.
45060
45061 2013-09-04  Will Newton  <will.newton@linaro.org>
45062
45063         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
45064
45065 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
45066
45067         [BZ #15427]
45068         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
45069         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
45070         * math/libm-test.inc (lgamma_test_data): Add more tests.
45071         * sysdeps/i386/fpu/libm-test-ulps: Update.
45072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45073
45074 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
45075
45076         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
45077         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
45078         Add ifunc.
45079         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
45080         Add strcmp-sse2-unaligned
45081         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
45082
45083 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
45084
45085         * Versions.def (libc): Add GLIBC_2.19.
45086
45087 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
45088
45089         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
45090         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
45091
45092 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
45093
45094         [BZ #14155]
45095         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
45096         intermediate calculations in recurrence.
45097         (__ieee754_ynf): Likewise.
45098         * math/libm-test.inc (jn_test_data): Do not allow spurious
45099         underflow exception.  Add more tests.
45100         (yn_test_data): Add more tests.
45101         * sysdeps/i386/fpu/libm-test-ulps: Update.
45102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45103
45104 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
45105
45106         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
45107
45108 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
45109
45110         * csu/init-first.c: Fix then/than typos.
45111         * locale/programs/ld-collate.c: Likewise.
45112         * locale/programs/linereader.h: Likewise.
45113         * manual/charset.texi: Likewise.
45114         * manual/filesys.texi: Likewise.
45115         * manual/stdio.texi: Likewise.
45116         * manual/string.texi: Likewise.
45117         * stdlib/fmtmsg.c: Likewise.
45118         * sysdeps/i386/stpncpy.S: Likewise.
45119         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45120         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
45121         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45122         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
45123
45124 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
45125
45126         * elf/dl-open.c: Fix typos.
45127         * iconvdata/gbbig5.c: Likewise.
45128         * iconvdata/iso-2022-jp.c: Likewise.
45129         * iconv/gconv_int.h: Likewise.
45130         * iconv/loop.c: Likewise.
45131         * nis/rpcsvc/nis.h: Likewise.
45132         * resolv/ns_name.c: Likewise.
45133         * stdio-common/vfscanf.c: Likewise.
45134         * streams/stropts.h: Likewise.
45135         * sunrpc/rpc_thread.c: Likewise.
45136         * sysdeps/i386/strpbrk.S: Likewise.
45137         * sysdeps/ieee754/k_standard.c: Likewise.
45138         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45139         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45140         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
45141         * sysdeps/mach/hurd/profil.c: Likewise.
45142         * sysdeps/s390/dl-procinfo.h: Likewise.
45143         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
45144         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
45145         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
45146         * sysdeps/x86_64/dl-trampoline.S: Likewise.
45147         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
45148
45149 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
45150
45151         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
45152         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
45153
45154 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
45155
45156         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
45157         aix specific files.
45158         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
45159         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
45160         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
45161         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
45162         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
45163         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
45164         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
45165         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
45166
45167 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45168             Roland McGrath  <roland@hack.frob.com>
45169
45170         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
45171         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
45172
45173 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45174
45175         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
45176         __executable_start symbol instead of _start.
45177
45178 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45179
45180         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
45181         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
45182         Move macros to...
45183         * sysdeps/gnu/ldsodefs.h: ... this new file.
45184
45185         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
45186         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
45187         instead of ELFOSABI_LINUX.
45188
45189         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
45190         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
45191         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
45192         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
45193         Likewise.
45194         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
45195         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
45196         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
45197         Likewise.
45198         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
45199         (ibm_extended_long_double): Add ieee_nan member.
45200         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45201         (do_test): New function.
45202
45203         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45204         TEST_TRUNC.
45205         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45206         functions, renamed from truncdfsf_test, trunctfsf_test,
45207         trunctfdf_test.
45208         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45209         functions.
45210         (do_test): Run all these.
45211
45212 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45213
45214         * argp/argp-help.c: Fix typos.
45215         * argp/argp-parse.c: Likewise.
45216         * debug/backtracesyms.c: Likewise.
45217         * elf/elf.h: Likewise.
45218         * malloc/malloc.c: Likewise.
45219         * nis/nis_print.c: Likewise.
45220         * resolv/res_comp.c: Likewise.
45221         * stdlib/stdlib.h: Likewise.
45222         * sunrpc/clnt_tcp.c: Likewise.
45223         * sunrpc/clnt_udp.c: Likewise.
45224         * sunrpc/clnt_unix.c: Likewise.
45225         * sysdeps/unix/bsd/ptsname.c: Likewise.
45226         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45227         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45229         Likewise.
45230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45231         Likewise.
45232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45233         Likewise.
45234         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45235
45236 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45237
45238         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45239         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45240
45241 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45242
45243         [BZ #15897]
45244         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45245         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45246         ($(objpfx)bug-dl-leaf): New rule.
45247         ($(objpfx)bug-dl-leaf.so): Likewise.
45248         ($(objpfx)bug-dl-leaf.out): Likewise.
45249         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45250         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45251         * dlfcn/bug-dl-leaf.c: New test.
45252         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45253         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45254         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45255         (dlclose): Likewise.
45256         (dlmopen): Likewise.
45257
45258 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45259
45260         * include/netdb.h [!_ISOMAC]:
45261         Don't include <tls.h>.
45262         (h_errno, __libc_h_errno): Move declaration and macros out of
45263         [_LIBC_REENTRANT].
45264
45265         * include/resolv.h [_RESOLV_H_]:
45266         Don't include <tls.h>.
45267         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45268         * resolv/res_libc.c: Don't include <tls.h>.
45269         (_res): Use __attribute__ ((nocommon)) in place of
45270         __attribute__ ((section (".bss"))).
45271
45272         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45273         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45274
45275         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45276
45277         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45278         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45279
45280         * resolv/res_mkquery.c: Include <sys/time.h>.
45281
45282         * inet/ifreq.c: Moved to ...
45283         * sysdeps/unix/ifreq.c: ... here.
45284         * inet/ifreq.c: New file, true stub version.
45285
45286         * socket/sa_len.c: New file.
45287         * socket/Makefile (aux): Add it.
45288         * sysdeps/unix/sysv/linux/Makefile
45289         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45290         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45291         and #include <socket/sa_len.c>.
45292         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45293         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45294
45295         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45296         * bits/socket.h: ... here.
45297
45298         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45299         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45300         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45301
45302 2013-08-27  Andreas Schwab  <schwab@suse.de>
45303
45304         [BZ #15736]
45305         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45306         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45307         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45308         * string/test-strcasecmp.c (test_main): Run tests in several
45309         locales.
45310         * string/test-strncasecmp.c (test_main): Likewise.
45311
45312         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45313         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45314         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45315         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45316         (__strncasecmp_ssse3) [PIC]: Likewise.
45317
45318 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45319
45320         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45321
45322         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45323         instead of explicitly declaring xdecrypt.
45324         * nis/nss_nis/nis-publickey.c: Likewise.
45325
45326 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45327
45328         [BZ #15890]
45329         * nscd/aicache.c: Include res_hconf.h.
45330         (addhstaiX): Initialize res_hconf.
45331
45332 2013-08-26  Andreas Schwab  <schwab@suse.de>
45333
45334         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45335         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45336
45337 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45338
45339         * nscd/aicache.c (addhstaiX): Fix indentation.
45340
45341 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45342
45343         * configure.ac: Quote $build_pt_chown test.
45344         * configure: Regenerated.
45345
45346 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45347
45348         [BZ #15532]
45349         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45350         * math/s_cexpf.c (__cexpf): Likewise.
45351         * math/s_cexpl.c (__cexpl): Likewise.
45352         * math/libm-test.inc (cexp_test_data): Correct expected return
45353         value for NaN + i0.  Add another test.
45354
45355 2013-08-22  David S. Miller  <davem@davemloft.net>
45356
45357         * po/ca.po: Update Catalan translation from translation project.
45358         * po/uk.po: Add Ukrainian translations from translation project.
45359
45360 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45361
45362         [BZ #15797]
45363         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45364         is infinite, not alongside NaN test.
45365         * math/s_fdimf.c (__fdimf): Likewise.
45366         * math/s_fdiml.c (__fdiml): Likewise.
45367         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45368         errno is unchanged.
45369
45370 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45371
45372         * argp/argp-help.c: Fix typos.
45373         * crypt/speeds.c: Likewise.
45374         * csu/check_fds.c: Likewise.
45375         * elf/dl-load.c: Likewise.
45376         * elf/dl-open.c: Likewise.
45377         * elf/reldep3.c: Likewise.
45378         * elf/reldep.c: Likewise.
45379         * elf/sprof.c: Likewise.
45380         * iconv/iconv_charmap.c: Likewise.
45381         * iconv/skeleton.c: Likewise.
45382         * iconv/strtab.c: Likewise.
45383         * io/lockf64.c: Likewise.
45384         * libio/libioP.h: Likewise.
45385         * resolv/gai_notify.c: Likewise.
45386         * resolv/ns_name.c: Likewise.
45387         * resolv/ns_samedomain.c: Likewise.
45388         * resolv/res_send.c: Likewise.
45389         * stdlib/random.c: Likewise.
45390         * sunrpc/rpc/xdr.h: Likewise.
45391         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45392         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45393         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45394         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45395         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45396         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45397         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45398         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45399         * sysdeps/mach/hurd/check_fds.c: Likewise.
45400         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45401         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45402         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45403         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45404         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45405         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45406         * sysdeps/pthread/aio_notify.c: Likewise.
45407         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45408         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45409         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45410         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45411         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45412
45413 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45414
45415         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45416         version if bit_Slow_SSE4_2 is set.
45417         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45418         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45419
45420 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45421
45422         [BZ #15867]
45423         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45424         trampoline stack frame information.
45425         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45426         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45427         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45428         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45429         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45430         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45431         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45432         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45433         sa_flags value.
45434         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45435         interrupting a syscall and set with option SA_SIGINFO.
45436
45437 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45438
45439         [BZ #15531]
45440         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45441         argument is infinite.
45442         * math/s_cprojf.c (__cprojf): Likewise.
45443         * math/s_cprojl.c (__cprojl): Likewise.
45444         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45445         * math/libm-test.inc (cproj_test_data): Add more tests.
45446
45447         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45448
45449         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45450         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45451         size.  Use __ffs to determine corresponding shift.
45452
45453 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45454             Roland McGrath  <roland@hack.frob.com>
45455
45456         * Makefile (INSTALL): Remove trailing blank lines from output of
45457         makeinfo.
45458
45459 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45460
45461         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45462         Align 32 bit compat elf_greg to 8 bytes.
45463
45464 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45465
45466         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45467
45468 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45469
45470         * string/strcoll_l.c (coll_seq): New structure.
45471         (get_next_seq_cached): New function.
45472         (get_next_seq): New function.
45473         (do_compare): New function.
45474         (STRCOLL): Use GNU style definition.  Simplify implementation
45475         by using get_next_seq, get_next_seq_cached and do_compare.
45476
45477 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45478
45479         [BZ #14699]
45480         CVE-2013-4237
45481         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45482         member.
45483         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45484         member.
45485         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45486         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45487         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45488         conditional.
45489         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45490         GETDENTS_64BIT_ALIGNED.
45491         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45492         * manual/filesys.texi (Reading/Closing Directory): Document
45493         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45494         strongly.
45495         * manual/conf.texi (Limits for Files): Add portability note to
45496         NAME_MAX, PATH_MAX.
45497         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45498
45499 2013-08-13  Andreas Schwab  <schwab@suse.de>
45500
45501         [BZ #15749]
45502         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45503         of fabs.
45504         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45505         LDBL_MAX_EXP >= 16384]: Add tests for it.
45506
45507 2013-08-12  David S. Miller  <davem@davemloft.net>
45508
45509         * version.h (RELEASE): Set to "development".
45510         (VERSION): Set to "2.18.90".
45511         * NEWS: Add 2.19 section.
45512
45513 2013-08-03  David S. Miller  <davem@davemloft.net>
45514
45515         * po/ko.po: Update Korean translation from translation project.
45516
45517 2013-08-01  David S. Miller  <davem@davemloft.net>
45518
45519         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45520         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45521         Bilka.
45522
45523 2013-07-30  David S. Miller  <davem@davemloft.net>
45524
45525         * po/fr.po: Update French translation from translation project.
45526
45527 2013-07-28  David S. Miller  <davem@davemloft.net>
45528
45529         * po/cs.po: Update Czech translation from translation project.
45530
45531         * po/sv.po: Update Swedish translation from translation project.
45532
45533 2013-07-27  David S. Miller  <davem@davemloft.net>
45534
45535         * po/eo.po: Update Esperanto translation from translation project.
45536
45537         * po/vi.po: Update Vietnamese translation from translation project.
45538
45539         * po/de.po: Update German translation from translation project.
45540
45541 2013-07-26  David S. Miller  <davem@davemloft.net>
45542
45543         * po/bg.po: Update Bulgarian translation from translation project.
45544
45545         * po/nl.po: Update Dutch translation from translation project.
45546         * po/pl.po: Update Polish translation from translation project.
45547         * po/ru.po: Update Russian translation from translation project.
45548
45549 2013-07-24  David S. Miller  <davem@davemloft.net>
45550
45551         * po/libc.pot: Update.
45552
45553 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45554
45555         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45556         variable page size.
45557         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45558         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45559         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45560
45561 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45562
45563         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45564
45565 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45566             Andreas Schwab  <schwab@suse.de>
45567             Roland McGrath  <roland@hack.frob.com>
45568             Joseph Myers  <joseph@codesourcery.com>
45569             Carlos O'Donell  <carlos@redhat.com>
45570
45571         [BZ #15755]
45572         * config.h.in: Define HAVE_PT_CHOWN.
45573         * config.make.in (build-pt-chown): New variable.
45574         * configure.in (--enable-pt_chown): New configure option.
45575         * configure: Regenerate.
45576         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45577         build-pt-chown is enabled.
45578         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45579         pt_chown to fix pty ownership.
45580         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45581         CLOSE_ALL_FDS.
45582         * manual/install.texi (Configuring and compiling): Mention
45583         --enable-pt_chown. Add @findex for grantpt.
45584         * INSTALL: Regenerate.
45585
45586 2013-07-20  David S. Miller  <davem@davemloft.net>
45587
45588         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45589         difference between 32-bit and 64-bit.
45590
45591 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45592
45593         [BZ #15711]
45594         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45595         Avoid system header dependency with -ffreestanding.
45596         ($(objpfx)bits/syscall%d): Likewise.
45597
45598 2013-07-13  David S. Miller  <davem@davemloft.net>
45599
45600         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45601         underflows from atanl/atan2l due to bug 15319.
45602         (casinh_test_data): Likewise.
45603
45604 2013-07-07  David S. Miller  <davem@davemloft.net>
45605
45606         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45607
45608 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45609
45610         * sysdeps/i386/fpu/libm-test-ulps: Update.
45611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45612
45613 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45614
45615         * configure.in (--enable-lock-elision): Fix message text.
45616         * INSTALL: Regenerate.
45617         * configure: Regenerate.
45618
45619 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45620
45621         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45622
45623 2013-07-03  Andreas Jaeger  <aj@suse.de>
45624
45625         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45626         define.
45627         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45628         (ptrace_peeksiginfo_args): Add.
45629         (__ptrace_peeksiginfo_flags): Add.
45630         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45631         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45632         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45633
45634 2013-07-03  Allan McRae  <allan@archlinux.org>
45635
45636         * sysdeps/i386/fpu/libm-test-ulps: Update.
45637
45638 2013-07-02  David S. Miller  <davem@davemloft.net>
45639
45640         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45641
45642 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45643
45644         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45645
45646 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45647
45648         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45650
45651 2013-07-02  Andi Kleen <ak@linux.intel.com>
45652
45653         * config.h.in (ENABLE_LOCK_ELISION): Add.
45654         * configure.in (--enable-lock-elision): Add option.
45655         * manual/install.texi: Document --enable lock elision.
45656         * configure: Regenerate
45657         * INSTALL: Regenerate.
45658
45659 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45660
45661         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45662         SSE4.2 strcasecmp for libc.a.
45663         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45664
45665 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45666
45667         [BZ #13304]
45668         * soft-fp/op-common.h (_FP_FMA): New macro.
45669         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45670         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45671         (_FP_MUL_MEAT_1_imm): ... here.
45672         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45673         (_FP_MUL_MEAT_1_wide): ... here.
45674         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45675         (_FP_MUL_MEAT_1_hard): ... here.
45676         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45677         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45678         (_FP_MUL_MEAT_2_wide): ... here.
45679         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45680         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45681         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45682         (_FP_MUL_MEAT_2_gmp): ... here.
45683         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45684         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45685         (_FP_MUL_MEAT_4_wide): ... here.
45686         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45687         (_FP_MUL_MEAT_4_gmp): ... here.
45688         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45689         (_FP_WFRACBITS_DW_S): Likewise.
45690         (_FP_WFRACXBITS_DW_S): Likewise.
45691         (_FP_HIGHBIT_DW_S): Likewise.
45692         (FP_FMA_S): Likewise.
45693         (_FP_FRAC_HIGH_DW_S): Likewise.
45694         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45695         (_FP_WFRACBITS_DW_D): Likewise.
45696         (_FP_WFRACXBITS_DW_D): Likewise.
45697         (_FP_HIGHBIT_DW_D): Likewise.
45698         (FP_FMA_D): Likewise.
45699         (_FP_FRAC_HIGH_DW_D): Likewise.
45700         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45701         (_FP_WFRACBITS_DW_E): Likewise.
45702         (_FP_WFRACXBITS_DW_E): Likewise.
45703         (_FP_HIGHBIT_DW_E): Likewise.
45704         (FP_FMA_E): Likewise.
45705         (_FP_FRAC_HIGH_DW_E): Likewise.
45706         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45707         (_FP_WFRACBITS_DW_Q): Likewise.
45708         (_FP_WFRACXBITS_DW_Q): Likewise.
45709         (_FP_HIGHBIT_DW_Q): Likewise.
45710         (FP_FMA_Q): Likewise.
45711         (_FP_FRAC_HIGH_DW_Q): Likewise.
45712         * soft-fp/fmasf4.c: New file.
45713         * soft-fp/fmadf4.c: Likewise.
45714         * soft-fp/fmatf4.c: Likewise.
45715
45716 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45717
45718         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45719         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45720         Silvermont.
45721         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45722         macro.
45723         (index_Slow_SSE4_2): Likewise.
45724         (index_Prefer_PMINUB_for_stringop): Likewise.
45725         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45726         bit_Slow_SSE4_2 is set.
45727         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45728         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45729
45730 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45731
45732         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45733         rtld_global._dl_hwcap2.
45734         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45735         POWER8.
45736         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45737         POWER8 feature descriptions defined in _dl_hwcap2.
45738         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45739         string handling for POWER8 feature bits.
45740         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45741         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45742         _dl_powerpc_cap_flags.
45743         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45744         * sysdeps/powerpc/rtld-global-offsets.sym
45745         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45746         _dl_hwcap2 in the rtld_global_ro structure.
45747
45748 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45749
45750         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45751         hardware capabilities in support of AT_HWCAP2.
45752         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45753         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45754         GLRO(dl_hwcap2).
45755         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45756         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45757         explicitly the unknown a_type display mechanism is used.
45758         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45759         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45760         struct member.
45761         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45762         to macro prototype for AT_HWCAP2 support.
45763         * sysdeps/i386/dl-procinfo.h: Likewise.
45764         * sysdeps/s390/dl-procinfo.h: Likewise.
45765         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45766         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45767         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45768         return -1 for unknown a_type display fallback.
45769         * sysdeps/sparc/dl-procinfo.h: Likewise.
45770         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45771         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45772
45773 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45774
45775         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45776         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45777
45778 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45779
45780         [BZ #12492]
45781         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45782         mprotect making __stack_prot writable.
45783
45784 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45785             Joseph Myers  <joseph@codesourcery.com>
45786
45787         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45788         as being properly aligned.
45789
45790 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45791
45792         * dlfcn/modstatic5.c: New file.
45793         * dlfcn/tststatic5.c: New file.
45794         * dlfcn/Makefile (tests): Add tststatic5.
45795         (tests-static): Likewise.
45796         (modules-names): Add modstatic5.
45797         (tststatic5-ENV): New variable.
45798         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45799
45800         [BZ #15022]
45801         * elf/dl-support.c (_dl_main_map): New variable.
45802         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45803         (_dl_nns, _dl_load_adds): Set to 1.
45804         (_dl_initial_searchlist): Refer to _dl_main_map.
45805         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45806         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45807         call to _dl_get_origin.
45808         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45809         around call_map.
45810         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45811         * dlfcn/modstatic3.c: New file.
45812         * dlfcn/tststatic3.c: New file.
45813         * dlfcn/tststatic4.c: New file.
45814         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45815         (tests-static): Likewise.
45816         (modules-names): Add modstatic3.
45817         (tststatic3-ENV, tststatic4-ENV): New variables.
45818         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45819         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45820
45821 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45822
45823         * configure.in (CC): Require GCC version 4.4 or later.
45824         * configure: Regenerated.
45825         * manual/install.texi (Tools for Compilation): Update GCC version
45826         requirement.
45827         * INSTALL: Regenerated.
45828
45829 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45830
45831         [BZ #15674]
45832         * string/test-memcmp.c (check2): New.
45833         (main): Call check2.
45834
45835         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45836
45837 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45838
45839         [BZ #15022]
45840         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45841         over to...
45842         (dl_open_worker) [!SHARED]: ... here.
45843
45844 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45845
45846         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45847
45848 2013-06-25  Richard Henderson  <rth@redhat.com>
45849
45850         * locale/programs/locarchive.c: Include <libc-internal.h>
45851
45852 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45853
45854         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45855         trailing whitespace removed.
45856
45857 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45858
45859         [BZ #10283]
45860         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45861         * locale/programs/locarchive.c: Include libc-mmap.h.
45862         (prepare_address_space): Take two new outputs (the mmap base and len).
45863         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45864         values.
45865         (create_archive): Declare new mmap base and len values for
45866         prepare_address_space, and store the result in ah.
45867         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45868         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45869         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45870         Declare new mmap base and len values for
45871         prepare_address_space, and store the result in new_ah.
45872         (open_archive): Declare new mmap base and len values for
45873         prepare_address_space, and store the result in ah.
45874         (close_archive): If ah->mmap_base is not NULL, use that and
45875         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45876         * sysdeps/generic/libc-mmap.h: New file.
45877
45878 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45879
45880         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45881         (ALIGN_UP): Likewise.
45882         (PTR_ALIGN_DOWN): Likewise.
45883         (PTR_ALIGN_UP): Likewise.
45884
45885 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45886
45887         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45888         entry mapped to PPC_PLATFORM_POWER8.
45889         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45890         POWER8.
45891         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45892         (_dl_string_platform): Add case for exporting platform position for
45893         POWER8.
45894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45895         search path to sysdeps/powerpc/powerpc32/power8 directory.
45896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45897         search path to sysdeps/powerpc/powerpc64/power8 directory.
45898         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45899         power7 directories.
45900         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45901         power7 directories.
45902
45903 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45904
45905         * INSTALL: Regenerate.
45906
45907         * nscd/connections.c (nscd_init): Fix comment.
45908
45909 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45910
45911         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45912
45913         [BZ #15667]
45914         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45915         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45916
45917 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45918
45919         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45920         DL_DST_REQ_STATIC.
45921         (DL_DST_REQ_STATIC): Remove macro.
45922
45923 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45924
45925         [BZ #7006]
45926         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45927         with a shift of 0 bits.
45928
45929 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45930
45931         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45932         $(tststatic-ENV).
45933
45934 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45935
45936         [BZ #15655]
45937         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45938
45939 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45940
45941         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45942         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45943         accepts -fno-tree-loop-distribute-patterns.
45944         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45945         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45946         recursive call.
45947         * string/memset.c (memset): Likewise.
45948         * string/test-memmove.c (simple_memmove): Disable loop transformation
45949         to library calls.
45950         * string/test-memset.c (simple_memset): Likewise.
45951         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45952         * benchtests/bench-memset.c (simple_memset): Likewise.
45953         * configure: Regenerated.
45954
45955 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45956
45957         * math/test-misc.c (main): Ignore fesetround failure when failures
45958         of subsequent rounding tests would be ignored.
45959
45960         [BZ #15654]
45961         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45962         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45963         * math/fegetenv.c (__fegetenv): Return 0.
45964         * math/fegetexcept.c (fegetexcept): Return 0.
45965         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45966         FE_TONEAREST.
45967         * math/feholdexcpt.c (feholdexcept): Return 0.
45968         * math/fesetenv.c (__fesetenv): Return 0.
45969         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45970         argument FE_TONEAREST.
45971         * math/feupdateenv.c (__feupdateenv): Return 0.
45972         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45973
45974 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45975
45976         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45977         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45978         ($(objpfx)rtld-%.os rules): Use them.
45979
45980 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45981
45982         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45983         fields.
45984
45985 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45986
45987         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45988         length of target pattern, then descending length of dependency pattern.
45989         * configure.in (AWK): Require gawk 3.1.2 or newer.
45990         * manual/install.texi (Tools for Compilation): Say that we do.
45991         * configure: Regenerated.
45992
45993         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45994         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45995         * scripts/sysd-rules.awk: ... this new script.
45996         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45997         than a glob-style pattern.
45998
45999 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
46000
46001         * math/test-misc.c (main): Do not treat incorrectly rounded
46002         conversions as failure unless ROUNDING_TESTS passes.
46003
46004 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
46005
46006         [BZ #15631]
46007         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
46008         restore exception state around main square root computation, then
46009         check for inexactness explicitly.
46010
46011         * math/libm-test.inc (fma_test_data): Add another test.
46012
46013 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46014
46015         * manual/threads.texi (Non-POSIX Extensions): New document
46016         node.  Document pthread_getattr_default_np and
46017         pthread_setattr_default_np.
46018
46019         * Versions.def (libpthread): Add GLIBC_2.18.
46020         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
46021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
46022         Likewise.
46023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
46024         Likewise.
46025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
46026         Likewise.
46027         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
46028         Likewise.
46029         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
46030         Likewise.
46031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
46032         Likewise.
46033         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
46034         Likewise.
46035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
46036         Likewise.
46037         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
46038         Likewise.
46039
46040 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
46041
46042         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46043         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
46044
46045 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
46046             H.J. Lu  <hjl.tools@gmail.com>
46047
46048         [BZ #15627]
46049         * sysdeps/x86_64/rtld-memset.c: Remove file.
46050         * sysdeps/x86_64/rtld-memset.S: New file.
46051
46052 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
46053
46054         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
46055         (test_in_one_mode): Take arguments for whether the rounding mode
46056         is supported for each floating-point type.
46057         (do_test): Pass new arguments to test_in_one_mode using
46058         ROUNDING_TESTS.
46059
46060 2013-06-13  Roland McGrath  <roland@hack.frob.com>
46061
46062         * posix/tst-waitid.c (do_test): Distinguish different instances of
46063         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
46064         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
46065         before entering the kernel for waitpid.
46066
46067 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
46068
46069         * NEWS: Fix note on clock function precision.  Text by Roland
46070         McGrath.
46071
46072 2013-06-13  Roland McGrath  <roland@hack.frob.com>
46073
46074         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
46075         it into place only when and if the sanity check passes.
46076
46077 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
46078
46079         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
46080         output for whether conversion result is exact.  Take argument
46081         indicating whether type is IBM long double.
46082         (round_for_all): Change need_exact field to ibm_ld.
46083         * stdlib/tst-strtod-round.c (struct exactness): New type.
46084         (struct test): Change bool ld_ok field to struct exactness exact.
46085         (TEST): Update all definitions for change to field.
46086         (tests): Regenerate array contents.
46087         (test_in_one_mode): Take pointer to new field instead of old ld_ok
46088         field value.  Check for IBM long double here.
46089         (do_test): Update calls to test_in_one_mode.
46090
46091 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
46092
46093         [BZ #12515]
46094         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
46095         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
46096
46097 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46098
46099         [BZ #15605]
46100         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
46101         generated by the compiler on loop optimizations.
46102         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
46103         general definitions.
46104
46105 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
46106
46107         * math/bug-nextafter.c: Include <math-tests.h>.
46108         (main): Only test for exceptions if EXCEPTION_TESTS is true for
46109         the relevant type.
46110         * math/bug-nexttoward.c: Include <math-tests.h>.
46111         (main): Only test for exceptions if EXCEPTION_TESTS is true for
46112         the relevant type.
46113         * math/test-misc.c: Include <math-tests.h>.
46114         (main): Only test for exceptions if EXCEPTION_TESTS is true for
46115         the relevant type.
46116
46117 2013-06-12  Andreas Jaeger  <aj@suse.de>
46118
46119         * po/ia.po: Update Interlingua translation from translation
46120         project.
46121
46122 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46123
46124         * include/fenv.h: Include stdbool.h.
46125         (struct rm_ctx): New structure.
46126         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
46127         Define macro.
46128         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
46129         (SET_RESTORE_ROUNDF): Likewise.
46130         (SET_RESTORE_ROUNDL): Likewise.
46131         (SET_RESTORE_ROUND_NOEX): Likewise.
46132         (SET_RESTORE_ROUND_NOEXF): Likewise.
46133         (SET_RESTORE_ROUND_NOEXL): Likewise.
46134         (SET_RESTORE_ROUND_53BIT): Likewise.
46135         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
46136         (libc_feresetround_noexf_ctx): Likewise.
46137         (libc_feresetround_noexl_ctx): Likewise.
46138         (libc_feholdsetround_53bit_ctx): Likewise.
46139         (libc_feresetround_53bit_ctx): Likewise.
46140         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
46141         (libc_feholdexcept_setround_sse_ctx): New function.
46142         (libc_fesetenv_sse_ctx): Likewise.
46143         (libc_feupdateenv_sse_ctx): Likewise.
46144         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
46145         (libc_feholdexcept_setround_387_ctx): Likewise.
46146         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
46147         (libc_feholdsetround_387_prec_ctx): Likewise.
46148         (libc_feholdsetround_387_ctx): Likewise.
46149         (libc_feholdsetround_387_53bit_ctx): Likewise.
46150         (libc_feholdsetround_sse_ctx): Likewise.
46151         (libc_feresetround_sse_ctx): Likewise.
46152         (libc_feresetround_387_ctx): Likewise.
46153         (libc_feupdateenv_387_ctx): Likewise.
46154         (libc_feholdexcept_setroundf_ctx): Define macro.
46155         (libc_fesetenvf_ctx): Likewise.
46156         (libc_feupdateenvf_ctx): Likewise.
46157         (libc_feholdsetroundf_ctx): Likewise.
46158         (libc_feresetroundf_ctx): Likewise.
46159         (libc_feholdexcept_setround_ctx): Likewise.
46160         (libc_fesetenv_ctx): Likewise.
46161         (libc_feupdateenv_ctx): Likewise.
46162         (libc_feholdsetround_ctx): Likewise.
46163         (libc_feresetround_ctx): Likewise.
46164         (libc_feholdexcept_setroundl_ctx): Likewise.
46165         (libc_feupdateenvl_ctx): Likewise.
46166         (libc_feholdsetroundl_ctx): Likewise.
46167         (libc_feresetroundl_ctx): Likewise.
46168         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
46169         (libc_feresetround_53bit_ctx): Likewise.
46170
46171 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46172
46173         * locale/iso-639.def: Convert to UTF-8.
46174
46175 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
46176
46177         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
46178         (EXCEPTION_TESTS_double): Likewise.
46179         (EXCEPTION_TESTS_long_double): Likewise.
46180         (EXCEPTION_TESTS): Likewise.
46181         * math/libm-test.inc (test_exceptions): Only test exceptions if
46182         EXCEPTION_TESTS (FLOAT).
46183
46184 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46185
46186         * benchtests/Makefile (string-bench): Add strcpy_chk and
46187         stpcpy_chk.
46188         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
46189         * benchtests/bench-stpcpy_chk.c: New file.
46190         * benchtests/bench-strcpy_chk-ifunc.c: New file.
46191         * benchtests/bench-strcpy_chk.c: New file.
46192         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
46193         code.
46194         (do_test): Likewise.
46195
46196 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46197
46198         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
46199         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
46200         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46201         with tabs where appropriate.
46202         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46203         dl-procinfo.h.
46204         [PPC_PLATFORM_PPC440]: Likewise.
46205         [PPC_PLATFORM_PPC464]: Likewise.
46206         [PPC_PLATFORM_PPC476]: Likewise.
46207         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46208         ppc464, and ppc476 platform strings merging from ports/
46209         dl-procinfo.h.
46210
46211 2013-06-11  Andreas Schwab  <schwab@suse.de>
46212
46213         [BZ #14991]
46214         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46215         (from_ucs4_idx): Regenerate.
46216         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46217         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46218         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46219         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46220         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46221         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46222         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46223         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46224         from FROM_LOOP and TO_LOOP specific macros.
46225         (BODY): Handle combining characters.
46226         * iconvdata/BIG5HKSCS.irreversible: Update.
46227         * iconvdata/BIG5HKSCS.precomposed: New file.
46228         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46229         characters.
46230         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46231
46232 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46233
46234         * include/sys/time.h: Fix indentation and add copyright header.
46235
46236         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46237         (do_test): Likewise.
46238         * string/test-memchr.c (do_one_test): Likewise.
46239         (do_test): Likewise.
46240         * string/test-memcmp.c (do_one_test): Likewise.
46241         (do_test): Likewise.
46242         * string/test-memcpy.c (do_one_test): Likewise.
46243         (do_test): Likewise.
46244         * string/test-memmem.c (do_one_test): Likewise.
46245         (do_test): Likewise.
46246         (do_random_tests): Likewise.
46247         * string/test-memmove.c (do_one_test): Likewise.
46248         (do_test): Likewise.
46249         * string/test-memset.c (do_one_test): Likewise.
46250         (do_test): Likewise.
46251         * string/test-rawmemchr.c (do_one_test): Likewise.
46252         (do_test): Likewise.
46253         * string/test-strcasecmp.c (do_one_test): Likewise.
46254         (do_test): Likewise.
46255         * string/test-strcasestr.c (do_one_test): Likewise.
46256         (do_test): Likewise.
46257         * string/test-strcat.c (do_one_test): Likewise.
46258         (do_test): Likewise.
46259         * string/test-strchr.c (do_one_test): Likewise.
46260         (do_test): Likewise.
46261         * string/test-strcmp.c (do_one_test): Likewise.
46262         (do_test): Likewise.
46263         * string/test-strcpy.c (do_one_test): Likewise.
46264         (do_test): Likewise.
46265         * string/test-string.h: Likewise.
46266         (test_init): Likewise.
46267         * string/test-strlen.c (do_one_test): Likewise.
46268         (do_test): Likewise.
46269         * string/test-strncasecmp.c (do_one_test): Likewise.
46270         (do_test): Likewise.
46271         * string/test-strncat.c (do_one_test): Likewise.
46272         (do_test): Likewise.
46273         * string/test-strncmp.c (do_one_test): Likewise.
46274         (do_test_limit): Likewise.
46275         (do_test): Likewise.
46276         * string/test-strncpy.c (do_one_test): Likewise.
46277         (do_test): Likewise.
46278         * string/test-strnlen.c (do_one_test): Likewise.
46279         (do_test): Likewise.
46280         * string/test-strpbrk.c (do_one_test): Likewise.
46281         (do_test): Likewise.
46282         * string/test-strrchr.c (do_one_test): Likewise.
46283         (do_test): Likewise.
46284         * string/test-strspn.c (do_one_test): Likewise.
46285         (do_test): Likewise.
46286         * string/test-strstr.c (do_one_test): Likewise.
46287         (do_test): Likewise.
46288
46289         * benchtests/Makefile (string-bench): Add string benchmarks.
46290         * benchtests/bench-bcopy-ifunc.c: New file.
46291         * benchtests/bench-bcopy.c: New file.
46292         * benchtests/bench-bzero-ifunc.c: New file.
46293         * benchtests/bench-bzero.c: New file.
46294         * benchtests/bench-memccpy-ifunc.c: New file.
46295         * benchtests/bench-memccpy.c: New file.
46296         * benchtests/bench-memchr-ifunc.c: New file.
46297         * benchtests/bench-memchr.c: New file.
46298         * benchtests/bench-memcmp-ifunc.c: New file.
46299         * benchtests/bench-memcmp.c: New file.
46300         * benchtests/bench-memmem-ifunc.c: New file.
46301         * benchtests/bench-memmem.c: New file.
46302         * benchtests/bench-memmove-ifunc.c: New file.
46303         * benchtests/bench-memmove.c: New file.
46304         * benchtests/bench-mempcpy-ifunc.c: New file.
46305         * benchtests/bench-mempcpy.c: New file.
46306         * benchtests/bench-memset-ifunc.c: New file.
46307         * benchtests/bench-memset.c: New file.
46308         * benchtests/bench-rawmemchr-ifunc.c: New file.
46309         * benchtests/bench-rawmemchr.c: New file.
46310         * benchtests/bench-stpcpy-ifunc.c: New file.
46311         * benchtests/bench-stpcpy.c: New file.
46312         * benchtests/bench-stpncpy-ifunc.c: New file.
46313         * benchtests/bench-stpncpy.c: New file.
46314         * benchtests/bench-strcasecmp-ifunc.c: New file.
46315         * benchtests/bench-strcasecmp.c: New file.
46316         * benchtests/bench-strcasestr-ifunc.c: New file.
46317         * benchtests/bench-strcasestr.c: New file.
46318         * benchtests/bench-strcat-ifunc.c: New file.
46319         * benchtests/bench-strcat.c: New file.
46320         * benchtests/bench-strchr-ifunc.c: New file.
46321         * benchtests/bench-strchr.c: New file.
46322         * benchtests/bench-strchrnul-ifunc.c: New file.
46323         * benchtests/bench-strchrnul.c: New file.
46324         * benchtests/bench-strcmp-ifunc.c: New file.
46325         * benchtests/bench-strcmp.c: New file.
46326         * benchtests/bench-strcpy-ifunc.c: New file.
46327         * benchtests/bench-strcpy.c: New file.
46328         * benchtests/bench-strcspn-ifunc.c: New file.
46329         * benchtests/bench-strcspn.c: New file.
46330         * benchtests/bench-strlen-ifunc.c: New file.
46331         * benchtests/bench-strlen.c: New file.
46332         * benchtests/bench-strncasecmp-ifunc.c: New file.
46333         * benchtests/bench-strncasecmp.c: New file.
46334         * benchtests/bench-strncat-ifunc.c: New file.
46335         * benchtests/bench-strncat.c: New file.
46336         * benchtests/bench-strncmp-ifunc.c: New file.
46337         * benchtests/bench-strncmp.c: New file.
46338         * benchtests/bench-strncpy-ifunc.c: New file.
46339         * benchtests/bench-strncpy.c: New file.
46340         * benchtests/bench-strnlen-ifunc.c: New file.
46341         * benchtests/bench-strnlen.c: New file.
46342         * benchtests/bench-strpbrk-ifunc.c: New file.
46343         * benchtests/bench-strpbrk.c: New file.
46344         * benchtests/bench-strrchr-ifunc.c: New file.
46345         * benchtests/bench-strrchr.c: New file.
46346         * benchtests/bench-strspn-ifunc.c: New file.
46347         * benchtests/bench-strspn.c: New file.
46348         * benchtests/bench-strstr-ifunc.c: New file.
46349         * benchtests/bench-strstr.c: New file.
46350
46351         * benchtests/Makefile: Disable parallel execution of targets.
46352         (string-bench): Add memcpy.
46353         (benchset): New variable to store a list of benchmark sets.
46354         (bench-func): Renamed from bench.
46355         (bench-set): New target.
46356         (bench): Depend on bench-func and bench-set.
46357         * benchtests/README: Add section on benchmark sets.
46358         * benchtests/bench-memcpy-ifunc.c: New file.
46359         * benchtests/bench-memcpy.c: New file.
46360         * benchtests/bench-string.h: New file.
46361
46362 2013-06-11  Andreas Schwab  <schwab@suse.de>
46363
46364         [BZ #15577]
46365         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46366         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46367         values in the triple.
46368         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46369         terminator in the group key.
46370
46371 2013-06-11  Andreas Jaeger  <aj@suse.de>
46372
46373         * po/zh_TW.po: Update Chinese (traditional) translation from
46374         translation project.
46375
46376 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46377
46378         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46379         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46380         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46381         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46382         (clock_getcpuclockid): Likewise.
46383         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46384         Add weak_alias and libc_hidden_def.
46385         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46386         * rt/clock_gettime.c (clock_gettime): Rename to
46387         __clock_gettime.  Add weak_alias and libc_hidden_def.
46388         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46389         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46390         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46391         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46392         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46393         Likewise.
46394         * rt/clock_settime.c (clock_settime): Rename to
46395         __clock_settime.  Add weak_alias and libc_hidden_def.
46396         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46397
46398 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46399
46400         * mach/err_boot.sub: Remove trailing whitespace.
46401         * mach/err_ipc.sub: Likewise.
46402         * mach/err_mach.sub: Likewise.
46403
46404         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46405         (ROUNDING_TESTS_double): Likewise.
46406         (ROUNDING_TESTS_long_double): Likewise.
46407         (ROUNDING_TESTS): Likewise.
46408         * math/libm-test.inc: Include <math-tests.h>.
46409         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46410         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46411         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46412         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46413
46414 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46415
46416         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46417         of assigning.
46418
46419 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46420
46421         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46422         otherwise empty TRANS lines.
46423         * sysdeps/gnu/errlist.c: Regenerated.
46424
46425         * catgets/gencat.c (error_print): Use (void) in function
46426         definition.
46427         * crypt/crypt_util.c (__init_des): Likewise.
46428         * crypt/speeds.c (Stop): Likewise.
46429         (main): Likewise.
46430         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46431         * inet/ruserpass.c (token): Likewise.
46432         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46433         * intl/localealias.c (extend_alias_table): Likewise.
46434         * intl/plural-exp.c (init_germanic_plural): Likewise.
46435         * libio/fcloseall.c (__fcloseall): Likewise.
46436         * libio/genops.c (_IO_flush_all): Likewise.
46437         (_IO_flush_all_linebuffered): Likewise.
46438         (_IO_cleanup): Likewise.
46439         (_IO_iter_begin): Likewise.
46440         (_IO_iter_end): Likewise.
46441         (_IO_list_lock): Likewise.
46442         (_IO_list_unlock): Likewise.
46443         (_IO_list_resetlock): Likewise.
46444         * libio/getchar.c (getchar): Likewise.
46445         * libio/getchar_u.c (getchar_unlocked): Likewise.
46446         * libio/getwchar.c (getwchar): Likewise.
46447         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46448         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46449         * login/getpt.c (__getpt): Likewise.
46450         * login/tst-utmp.c (main): Likewise.
46451         * malloc/hooks.c (__malloc_check_init): Likewise.
46452         * malloc/malloc.c (__malloc_stats): Likewise.
46453         * malloc/mtrace.c (tr_break): Likewise.
46454         (mtrace): Likewise.
46455         (muntrace): Likewise.
46456         * misc/fstab.c (endfsent): Likewise.
46457         * misc/getclktck.c (__getclktck): Likewise.
46458         * misc/getdtsz.c (__getdtablesize): Likewise.
46459         * misc/gethostid.c (gethostid): Likewise.
46460         * misc/getpagesize.c (__getpagesize): Likewise.
46461         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46462         (__get_nprocs): Likewise.
46463         (__get_phys_pages): Likewise.
46464         (__get_avphys_pages): Likewise.
46465         * misc/getttyent.c (getttyent): Likewise.
46466         (setttyent): Likewise.
46467         (endttyent): Likewise.
46468         * misc/getusershell.c (getusershell): Likewise.
46469         (endusershell): Likewise.
46470         (setusershell): Likewise.
46471         (initshells): Likewise.
46472         * misc/hsearch.c (__hdestroy): Likewise.
46473         * misc/sync.c (sync): Likewise.
46474         * misc/syslog.c (closelog_internal): Likewise.
46475         (closelog): Likewise.
46476         * misc/ttyslot.c (ttyslot): Likewise.
46477         * misc/vhangup.c (vhangup): Likewise.
46478         * posix/fork.c (__fork): Likewise.
46479         * posix/getegid.c (__getegid): Likewise.
46480         * posix/geteuid.c (__geteuid): Likewise.
46481         * posix/getgid.c (__getgid): Likewise.
46482         * posix/getpid.c (__getpid): Likewise.
46483         * posix/getppid.c (__getppid): Likewise.
46484         * posix/getuid.c (__getuid): Likewise.
46485         * posix/pause.c (pause): Likewise.
46486         * posix/setpgrp.c (setpgrp): Likewise.
46487         * posix/setsid.c (__setsid): Likewise.
46488         * posix/test-vfork.c (noop): Likewise.
46489         * resolv/gethnamaddr.c (_endhtent): Likewise.
46490         (_gethtent): Likewise.
46491         (ht_endhostent): Likewise.
46492         (gethostent): Likewise.
46493         (dns_service): Likewise.
46494         * stdlib/drand48.c (drand48): Likewise.
46495         * stdlib/lrand48.c (lrand48): Likewise.
46496         * stdlib/mrand48.c (mrand48): Likewise.
46497         * stdlib/rand.c (rand): Likewise.
46498         * stdlib/random.c (__random): Likewise.
46499         * stdlib/setenv.c (clearenv): Likewise.
46500         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46501         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46502         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46503         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46504         (__get_nprocs): Likewise.
46505         (__get_phys_pages): Likewise.
46506         (__get_avphys_pages): Likewise.
46507         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46508         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46509         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46510         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46511         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46512         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46513         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46514         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46515         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46516         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46517         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46518         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46519         * sysdeps/posix/clock.c (clock): Likewise.
46520         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46521         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46522         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46523         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46524         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46525         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46526         (__get_nprocs_conf): Likewise.
46527         (__get_phys_pages): Likewise.
46528         (__get_avphys_pages): Likewise.
46529         * time/clock.c (clock): Likewise.
46530         * time/tzset.c (__tzname_max): Likewise.
46531
46532 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46533
46534         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46535         (__bswap_32): Do not use "register".
46536         * crypt/crypt.c (_ufc_doit_r): Likewise.
46537         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46538         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46539         * gmon/gmon.c (__monstartup): Likewise.
46540         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46541         * hurd/hurdmalloc.c (more_memory): Likewise.
46542         (malloc): Likewise.
46543         (free): Likewise.
46544         (realloc): Likewise.
46545         (malloc_fork_prepare): Likewise.
46546         (malloc_fork_parent): Likewise.
46547         (malloc_fork_child): Likewise.
46548         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46549         (_svcauth_des): Likewise.
46550         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46551         * inet/inet_net.c (inet_network): Likewise.
46552         * inet/inet_netof.c (inet_netof): Likewise.
46553         * inet/rcmd.c (__validuser2_sa): Likewise.
46554         * io/fts.c (fts_open): Likewise.
46555         (fts_load): Likewise.
46556         (fts_close): Likewise.
46557         (fts_read): Likewise.
46558         (fts_children): Likewise.
46559         (fts_build): Likewise.
46560         (fts_stat): Likewise.
46561         (fts_sort): Likewise.
46562         (fts_alloc): Likewise.
46563         (fts_lfree): Likewise.
46564         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46565         (_IO_file_xsgetn): Likewise.
46566         (_IO_file_xsgetn_mmap): Likewise.
46567         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46568         (_IO_cookie_write): Likewise.
46569         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46570         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46571         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46572         * malloc/obstack.c (_obstack_begin): Likewise.
46573         (_obstack_begin_1): Likewise.
46574         (_obstack_newchunk): Likewise.
46575         (_obstack_allocated_p): Likewise.
46576         (obstack_free): Likewise.
46577         (_obstack_memory_used): Likewise.
46578         * misc/getttyent.c (getttynam): Likewise.
46579         (getttyent): Likewise.
46580         (skip): Likewise.
46581         (value): Likewise.
46582         * misc/getusershell.c (initshells): Likewise.
46583         * misc/syslog.c (__vsyslog_chk): Likewise.
46584         * misc/ttyslot.c (ttyslot): Likewise.
46585         * nis/nis_hash.c (__nis_hash): Likewise.
46586         * posix/fnmatch_loop.c (FCT): Likewise.
46587         * posix/getconf.c (print_all): Likewise.
46588         (main): Likewise.
46589         * posix/getopt.c (exchange): Likewise.
46590         * posix/glob.c (globfree): Likewise.
46591         (prefix_array): Likewise.
46592         (__glob_pattern_type): Likewise.
46593         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46594         (NS_GET32): Likewise.
46595         (NS_PUT16): Likewise.
46596         (NS_PUT32): Likewise.
46597         * resolv/gethnamaddr.c (getanswer): Likewise.
46598         (gethostbyname2): Likewise.
46599         (gethostbyaddr): Likewise.
46600         (_gethtent): Likewise.
46601         (_gethtbyname2): Likewise.
46602         (_gethtbyaddr): Likewise.
46603         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46604         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46605         * resolv/res_init.c (__res_vinit): Likewise.
46606         (net_mask): Likewise.
46607         * resolv/res_mkquery.c (outchar): Likewise.
46608         (PRINT): Likewise.
46609         * stdio-common/printf_fp.c (outchar): Likewise.
46610         (PRINT): Likewise.
46611         * stdio-common/printf_fphex.c (outchar): Likewise.
46612         (PRINT): Likewise.
46613         * stdio-common/printf_size.c (outchar): Likewise.
46614         (PRINT): Likewise.
46615         * stdio-common/test_rdwr.c (main): Likewise.
46616         * stdio-common/tfformat.c (matches): Likewise.
46617         * stdio-common/vfprintf.c (outchar): Likewise.
46618         (printf_unknown): Likewise.
46619         (buffered_vfprintf): Likewise.
46620         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46621         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46622         (ReadFile): Likewise.
46623         * stdlib/qsort.c (SWAP): Likewise.
46624         (_quicksort): Likewise.
46625         * stdlib/setenv.c (__add_to_environ): Likewise.
46626         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46627         * stdlib/strtol_l.c (__strtol_l): Likewise.
46628         * stdlib/tst-strtod.c (main): Likewise.
46629         * stdlib/tst-strtol.c (main): Likewise.
46630         * stdlib/tst-strtoll.c (main): Likewise.
46631         * string/bits/string2.h (__strcmp_cc): Likewise.
46632         (__strcmp_cg): Likewise.
46633         (__strcspn_c1): Likewise.
46634         (__strcspn_c2): Likewise.
46635         (__strcspn_c3): Likewise.
46636         (__strspn_c1): Likewise.
46637         (__strspn_c2): Likewise.
46638         (__strspn_c3): Likewise.
46639         (__strsep_1c): Likewise.
46640         (__strsep_2c): Likewise.
46641         (__strsep_3c): Likewise.
46642         * string/memccpy.c (__memccpy): Likewise.
46643         * string/stpcpy.c (__stpcpy): Likewise.
46644         * string/strcmp.c (strcmp): Likewise.
46645         * string/strrchr.c (strrchr): Likewise.
46646         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46647         Likewise.
46648         * sysdeps/mach/hurd/getcwd.c
46649         (_hurd_canonicalize_directory_name_internal): Likewise.
46650         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46651         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46652         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46653         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46654         Likewise, in both definitions.
46655         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46656         definitions.
46657         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46658         64] (__bswap_64): Likewise.
46659         * time/test_time.c (main): Likewise.
46660         * time/tzfile.c (__tzfile_read): Likewise.
46661         (__tzfile_compute): Likewise.
46662         * time/tzset.c (__tzset_parse_tz): Likewise.
46663         (tzset_internal): Likewise.
46664         (compute_change): Likewise.
46665         * wcsmbs/wcscat.c (__wcscat): Likewise.
46666         * wcsmbs/wcschr.c (wcschr): Likewise.
46667         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46668         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46669         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46670         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46671         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46672         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46673         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46674         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46675         * wcsmbs/wmemset.c (wmemset): Likewise.
46676
46677 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46678
46679         * scripts/config.guess: Update to version 2013-05-16.
46680         * scripts/config.sub: Update to version 2013-04-24.
46681         * scripts/install-sh: Update to version 2011-11-20.07.
46682         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46683         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46684
46685 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46686
46687         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46688         * elf/sln.c: Likewise.
46689         * hurd/hurd/ioctl.h: Likewise.
46690         * hurd/hurdmalloc.c: Likewise.
46691         * hurd/xattr.c: Likewise.
46692         * include/shlib-compat.h: Likewise.
46693         * inet/ruserpass.c: Likewise.
46694         * libio/iofgets_u.c: Likewise.
46695         * libio/iofgetws_u.c: Likewise.
46696         * locale/programs/ld-identification.c: Likewise.
46697         * locale/programs/ld-time.c: Likewise.
46698         * mach/msg-destroy.c: Likewise.
46699         * nss/nss_files/files-netgrp.c: Likewise.
46700         * resolv/res_data.c: Likewise.
46701         * soft-fp/op-1.h: Likewise.
46702         * soft-fp/op-2.h: Likewise.
46703         * soft-fp/op-4.h: Likewise.
46704         * soft-fp/op-common.h: Likewise.
46705         * stdio-common/printf_fphex.c: Likewise.
46706         * stdlib/strtod_l.c: Likewise.
46707         * sunrpc/rpc/clnt.h: Likewise.
46708         * sysdeps/generic/framestate.c: Likewise.
46709         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46710         * sysdeps/i386/bsd-setjmp.S: Likewise.
46711         * sysdeps/i386/__longjmp.S: Likewise.
46712         * sysdeps/i386/setjmp.S: Likewise.
46713         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46714         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46715         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46716         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46717         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46718         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46719         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46720         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46721         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46722         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46723         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46724         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46725         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46726         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46727         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46728         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46729         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46730         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46731         * sysdeps/ieee754/support.c: Likewise.
46732         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46733         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46734         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46735         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46736         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46737         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46738         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46739         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46740         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46741         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46742         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46743         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46744         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46745         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46746         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46747         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46748         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46750
46751 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46752
46753         * posix/transbug.c: Remove executable mode.
46754
46755 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46756
46757         * crypt/speeds.c: Remove trailing whitespace.
46758         * dlfcn/default.c: Likewise.
46759         * elf/ifuncdep2.c: Likewise.
46760         * elf/ifuncmain1.c: Likewise.
46761         * elf/ifuncmain1vis.c: Likewise.
46762         * elf/testobj.h: Likewise.
46763         * elf/tst-stackguard1.c: Likewise.
46764         * gmon/sys/gmon.h: Likewise.
46765         * hurd/hurdmsg.c: Likewise.
46766         * hurd/new-fd.c: Likewise.
46767         * hurd/ports-get.c: Likewise.
46768         * iconvdata/ibm1008_420.c: Likewise.
46769         * inet/tst-getni1.c: Likewise.
46770         * inet/tst-getni2.c: Likewise.
46771         * libio/ioungetc.c: Likewise.
46772         * libio/wfiledoalloc.c: Likewise.
46773         * manual/libm-err-tab.pl: Likewise.
46774         * math/w_dremf.c: Likewise.
46775         * misc/ftruncate.c: Likewise.
46776         * posix/bug-glob2.c: Likewise.
46777         * posix/tst-pcre.c: Likewise.
46778         * posix/wait4.c: Likewise.
46779         * resolv/README: Likewise.
46780         * resolv/res_debug.h: Likewise.
46781         * resolv/tst-inet_ntop.c: Likewise.
46782         * setjmp/bug269-setjmp.c: Likewise.
46783         * soft-fp/extended.h: Likewise.
46784         * soft-fp/op-1.h: Likewise.
46785         * soft-fp/op-2.h: Likewise.
46786         * soft-fp/op-4.h: Likewise.
46787         * soft-fp/op-8.h: Likewise.
46788         * soft-fp/testit.c: Likewise.
46789         * stdio-common/bug16.c: Likewise.
46790         * stdlib/random.c: Likewise.
46791         * sunrpc/rpcsvc/rquota.x: Likewise.
46792         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46793         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46794         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46795         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46796         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46797         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46798         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46799         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46800         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46801         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46802         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46803         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46804         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46805         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46806         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46807         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46808         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46809         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46810         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46811         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46812         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46813         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46814         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46815         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46816         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46817         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46818         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46819         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46820         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46821         * sysdeps/ieee754/s_lib_version.c: Likewise.
46822         * sysdeps/mach/hurd/check_fds.c: Likewise.
46823         * sysdeps/mach/hurd/getsockname.c: Likewise.
46824         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46825         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46826         * sysdeps/powerpc/bits/link.h: Likewise.
46827         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46828         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46829         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46830         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46831         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46832         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46833         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46834         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46835         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46836         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46837         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46838         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46839         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46840         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46841         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46842         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46843         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46844         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46845         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46846         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46847         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46848         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46849         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46850         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46851         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46852         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46853         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46854         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46855         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46856         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46857         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46858         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46859         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46860         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46861         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46862         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46863         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46864         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46865         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46866         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46867         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46868         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46869         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46870         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46871         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46872         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46873         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46874         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46875         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46876         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46877         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46878         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46879         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46880         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46881         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46882         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46883         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46884         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46885         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46886         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46887         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46888         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46889         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46890         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46891         * sysdeps/powerpc/sysdep.h: Likewise.
46892         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46893         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46894         * sysdeps/sh/dl-trampoline.S: Likewise.
46895         * sysdeps/sh/memset.S: Likewise.
46896         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46897         * sysdeps/sh/strlen.S: Likewise.
46898         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46899         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46900         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46901         * sysdeps/sparc/sparc32/rem.S: Likewise.
46902         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46903         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46904         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46905         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46906         * sysdeps/sparc/sparc32/urem.S: Likewise.
46907         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46908         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46909         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46910         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46911         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46912         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46913         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46914         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46915         * sysdeps/unix/bsd/times.c: Likewise.
46916         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46917         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46921         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46922         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46923         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46924         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46925         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46926         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46927         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46928         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46929         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46930         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46931         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46932         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46933         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46934         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46935         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46936         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46937         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46938         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46939         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46940         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46941         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46942         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46943         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46944         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46945         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46946         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46947         * sysdeps/x86_64/strcspn.S: Likewise.
46948
46949 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46950
46951         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46952         generated file.  Regenerate properly from gen-translit.pl.
46953         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46954         locale/C-translit.h.
46955
46956 2013-06-05  Andreas Schwab  <schwab@suse.de>
46957
46958         [BZ #15100]
46959         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46960         week as 6 instead of -1.
46961         * time/tst-strptime.c (day_tests): Add test case.
46962
46963 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46964
46965         * sysdeps/generic/math_private.h
46966         (libc_feholdexcept_setround_53bit): Replace with
46967         libc_feholdsetround_53bit.
46968         (libc_feupdateenv_53bit): Replace with
46969         libc_feresetround_53bit.
46970         (SET_RESTORE_ROUND_53BIT): Adjust.
46971
46972 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46973
46974         * string/test-strchrnul.c: Add copyright header.
46975
46976         * posix/tst-getaddrinfo4.c: Increase test timeout.
46977
46978 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46979
46980         [BZ #15536]
46981         * math/libm-test.inc (MAX_EXP): Remove
46982         (MIN_EXP): Define.
46983         (ulp): Use MIN_EXP - MANT_DIG.
46984         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46985
46986 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46987
46988         * po/be.po: Revert last change.
46989         * po/zh_CN.po: Likewise.
46990         * po/header.pot: Likewise.
46991
46992 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46993
46994         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46995         link-libc-deps to empty as target-specific variable.
46996         * Makerules (link-libc-args): New variable.
46997         (libc-for-link): Likewise.
46998         (link-libc-deps): Likewise.
46999         (lib%.so): Depend on $(link-libc-deps).  Link with
47000         $(link-libc-args).
47001         (build-module): Link with $(link-libc-args).
47002         (build-module-asneeded): Likewise.
47003         (build-module-helper-objlist): Filter out $(link-libc-deps) from
47004         list of objects.
47005         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
47006         target-specific variable.
47007         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
47008         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
47009         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
47010         libc.
47011         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
47012         libc and ld.so.
47013         ($(objpfx)libpcprofile.so): Likewise.
47014         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
47015         libc_nonshared.a.
47016         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
47017         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
47018         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
47019         $(link-libc-deps).
47020         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
47021         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
47022         * login/Makefile ($(objpfx)libutil.so): Likewise.
47023         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
47024         * math/Makefile ($(objpfx)libm.so): Likewise.
47025         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
47026         $(objpfx)libnsl.so): Define libc-for-link as target-specific
47027         variable instead of depending directly on libc.
47028         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
47029         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
47030         $(link-libc-deps).
47031         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
47032         libc.
47033         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
47034         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
47035         ($(objpfx)libanl.so): Likewise.
47036         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
47037         ld.so.
47038         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
47039         $(link-libc-deps).
47040         * sysdeps/i386/fpu/Makefile: Remove file.
47041         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
47042         ($(objpfx)libm.so): Remove dependency on ld.so.
47043
47044 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
47045
47046         [BZ # 15553]
47047         * nis/yp_xdr.c (XDRMAXNAME): Define.
47048         (XDRMAXRECORD): Define.
47049         (xdr_domainname): Use XDRMAXNAME.
47050         (xdr_mapname): Likewise.
47051         (xdr_peername): Likewise.
47052         (xdr_keydat): Use XDRMAXRECORD.
47053         (xdr_valdat): Likewise.
47054
47055 2013-05-30  Jeff Law  <law@redhat.com>
47056
47057         [BZ #14256]
47058         * manual/errno.texi (ESTALE): Update to account for more than
47059         just NFS file systems.
47060         * sysdeps/gnu/errlist.c: Regenerated.
47061
47062 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47063
47064         [BZ #15465]
47065         * elf/Makefile (tests): Add tst-null-argv.
47066         (modules-names):  Add tst-null-argv-lib.
47067         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
47068         (tst-null-argv-ENV): Set environment for tst-null-argv.
47069         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
47070         (RTLD_PROGNAME): New macro.
47071         * elf/tst-null-argv.c: New test case.
47072         * elf/tst-null-argv-lib.c: Library for test case.
47073         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
47074         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
47075         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
47076         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
47077         * elf/dl-init.c (call_init): Likewise.
47078         (_dl_init): Likewise.
47079         * elf/dl-load.c (print_search_path): Likewise.
47080         (_dl_map_object): Likewise.
47081         * elf/dl-lookup.c (do_lookup_x): Likewise.
47082         (add_dependency): Likewise.
47083         (_dl_lookup_symbol_x): Likewise.
47084         (_dl_debug_bindings): Likewise.
47085         * elf/dl-open.c (_dl_show_scope): Likewise.
47086         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
47087         * elf/dl-version.c (match_symbol): Likewise.
47088         (_dl_check_map_versions): Likewise.
47089         * elf/rtld.c (dl_main): Likewise.
47090         (print_unresolved): Use RTLD_PROGNAME.
47091         (print_missing_version): Likewise.
47092         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
47093         (elf_machine_rela): Likewise.
47094         * sysdeps/powerpc/powerpc32/dl-machine.c
47095         (__process_machine_rela): Likewise.
47096         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
47097         Likewise.
47098         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
47099         Likewise.
47100         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
47101         Likewise.
47102         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
47103         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
47104         Likewise.
47105         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
47106         Likewise.
47107         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
47108
47109 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
47110
47111         * po/be.po: Add descriptive title.
47112         * po/zh_CN.po: Likewise.
47113         * po/header.pot: Likewise.
47114
47115 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
47116
47117         * locale/programs/locarchive.c (create_archive): Inlucde fname in
47118         error message.
47119         (enlarge_archive): Likewise.
47120
47121 2013-05-28  Ben North  <ben@redfrontdoor.org>
47122
47123         * manual/arith.texi (frexp): It is the magnitude of the return
47124         value which lies in [0.5, 1), not the return value itself.
47125
47126 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47127
47128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47129
47130 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
47131
47132         * stdio-common/bug26.c (main): Correct fscanf template.
47133
47134         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
47135         declare _dl_skip_args.
47136
47137         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
47138         Don't declare.
47139
47140         * manual/platform.texi: Add missing @end deftypefun.
47141
47142 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47143
47144         [BZ #15529]
47145         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
47146         bit of mantissa of 2^16382.
47147         * math/libm-test.inc (hypot_test_data): Add more tests.
47148
47149         * math/libm-test.inc: Add drem and pow10 to list of tested
47150         functions.
47151         (pow10_test): New function.
47152         (drem_test): Likewise.
47153         (drem_test_tonearest): Likewise.
47154         (drem_test_towardzero): Likewise.
47155         (drem_test_downward): Likewise.
47156         (drem_test_upward): Likewise.
47157         (main): Call the new functions.
47158
47159         * math/libm-test.inc (finite_test_data): Remove.
47160         (finite_test): Run tests from isfinite_test_data.
47161         (gamma_test_data): Remove.
47162         (gamma_test): Run tests from lgamma_test_data.
47163         * sysdeps/i386/fpu/libm-test-ulps: Update.
47164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47165
47166 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47167
47168         * manual/platform.texi: Add PowerPC PPR function set documentation.
47169         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
47170         implementation.
47171
47172 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
47173
47174         * math/libm-test.inc (MAX_EXP): Define.
47175         (ULPDIFF): Define.
47176         (ulp): New function.
47177         (check_float_internal): Use ULPDIFF.
47178         (cpow_test): Disable failing test.
47179         (check_ulp): Test ulp() implemetnation.
47180         (main): Call check_ulp before starting tests.
47181
47182 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47183
47184         * math/gen-libm-test.pl (generate_testfile): Do not handle
47185         START_DATA and END_DATA.
47186         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
47187         END_DATA.
47188         (acos_tonearest_test_data): Likewise.
47189         (acos_towardzero_test_data): Likewise.
47190         (acos_downward_test_data): Likewise.
47191         (acos_upward_test_data): Likewise.
47192         (acosh_test_data): Likewise.
47193         (asin_test_data): Likewise.
47194         (asin_tonearest_test_data): Likewise.
47195         (asin_towardzero_test_data): Likewise.
47196         (asin_downward_test_data): Likewise.
47197         (asin_upward_test_data): Likewise.
47198         (asinh_test_data): Likewise.
47199         (atan_test_data): Likewise.
47200         (atanh_test_data): Likewise.
47201         (atan2_test_data): Likewise.
47202         (cabs_test_data): Likewise.
47203         (cacos_test_data): Likewise.
47204         (cacosh_test_data): Likewise.
47205         (carg_test_data): Likewise.
47206         (casin_test_data): Likewise.
47207         (casinh_test_data): Likewise.
47208         (catan_test_data): Likewise.
47209         (catanh_test_data): Likewise.
47210         (cbrt_test_data): Likewise.
47211         (ccos_test_data): Likewise.
47212         (ccosh_test_data): Likewise.
47213         (ceil_test_data): Likewise.
47214         (cexp_test_data): Likewise.
47215         (cimag_test_data): Likewise.
47216         (clog_test_data): Likewise.
47217         (clog10_test_data): Likewise.
47218         (conj_test_data): Likewise.
47219         (copysign_test_data): Likewise.
47220         (cos_test_data): Likewise.
47221         (cos_tonearest_test_data): Likewise.
47222         (cos_towardzero_test_data): Likewise.
47223         (cos_downward_test_data): Likewise.
47224         (cos_upward_test_data): Likewise.
47225         (cosh_test_data): Likewise.
47226         (cosh_tonearest_test_data): Likewise.
47227         (cosh_towardzero_test_data): Likewise.
47228         (cosh_downward_test_data): Likewise.
47229         (cosh_upward_test_data): Likewise.
47230         (cpow_test_data): Likewise.
47231         (cproj_test_data): Likewise.
47232         (creal_test_data): Likewise.
47233         (csin_test_data): Likewise.
47234         (csinh_test_data): Likewise.
47235         (csqrt_test_data): Likewise.
47236         (ctan_test_data): Likewise.
47237         (ctan_tonearest_test_data): Likewise.
47238         (ctan_towardzero_test_data): Likewise.
47239         (ctan_downward_test_data): Likewise.
47240         (ctan_upward_test_data): Likewise.
47241         (ctanh_test_data): Likewise.
47242         (ctanh_tonearest_test_data): Likewise.
47243         (ctanh_towardzero_test_data): Likewise.
47244         (ctanh_downward_test_data): Likewise.
47245         (ctanh_upward_test_data): Likewise.
47246         (erf_test_data): Likewise.
47247         (erfc_test_data): Likewise.
47248         (exp_test_data): Likewise.
47249         (exp_tonearest_test_data): Likewise.
47250         (exp_towardzero_test_data): Likewise.
47251         (exp_downward_test_data): Likewise.
47252         (exp_upward_test_data): Likewise.
47253         (exp10_test_data): Likewise.
47254         (exp2_test_data): Likewise.
47255         (expm1_test_data): Likewise.
47256         (fabs_test_data): Likewise.
47257         (fdim_test_data): Likewise.
47258         (finite_test_data): Likewise.
47259         (floor_test_data): Likewise.
47260         (fma_test_data): Likewise.
47261         (fma_towardzero_test_data): Likewise.
47262         (fma_downward_test_data): Likewise.
47263         (fma_upward_test_data): Likewise.
47264         (fmax_test_data): Likewise.
47265         (fmin_test_data): Likewise.
47266         (fmod_test_data): Likewise.
47267         (fpclassify_test_data): Likewise.
47268         (frexp_test_data): Likewise.
47269         (gamma_test_data): Likewise.
47270         (hypot_test_data): Likewise.
47271         (ilogb_test_data): Likewise.
47272         (isfinite_test_data): Likewise.
47273         (isgreater_test_data): Likewise.
47274         (isgreaterequal_test_data): Likewise.
47275         (isinf_test_data): Likewise.
47276         (isless_test_data): Likewise.
47277         (islessequal_test_data): Likewise.
47278         (islessgreater_test_data): Likewise.
47279         (isnan_test_data): Likewise.
47280         (isnormal_test_data): Likewise.
47281         (issignaling_test_data): Likewise.
47282         (isunordered_test_data): Likewise.
47283         (j0_test_data): Likewise.
47284         (j1_test_data): Likewise.
47285         (jn_test_data): Likewise.
47286         (ldexp_test_data): Likewise.
47287         (lgamma_test_data): Likewise.
47288         (lrint_test_data): Likewise.
47289         (lrint_tonearest_test_data): Likewise.
47290         (lrint_towardzero_test_data): Likewise.
47291         (lrint_downward_test_data): Likewise.
47292         (lrint_upward_test_data): Likewise.
47293         (llrint_test_data): Likewise.
47294         (llrint_tonearest_test_data): Likewise.
47295         (llrint_towardzero_test_data): Likewise.
47296         (llrint_downward_test_data): Likewise.
47297         (llrint_upward_test_data): Likewise.
47298         (log_test_data): Likewise.
47299         (log10_test_data): Likewise.
47300         (log1p_test_data): Likewise.
47301         (log2_test_data): Likewise.
47302         (logb_test_data): Likewise.
47303         (logb_downward_test_data): Likewise.
47304         (lround_test_data): Likewise.
47305         (llround_test_data): Likewise.
47306         (modf_test_data): Likewise.
47307         (nearbyint_test_data): Likewise.
47308         (nextafter_test_data): Likewise.
47309         (nexttoward_test_data): Likewise.
47310         (pow_test_data): Likewise.
47311         (pow_tonearest_test_data): Likewise.
47312         (pow_towardzero_test_data): Likewise.
47313         (pow_downward_test_data): Likewise.
47314         (pow_upward_test_data): Likewise.
47315         (remainder_test_data): Likewise.
47316         (remainder_tonearest_test_data): Likewise.
47317         (remainder_towardzero_test_data): Likewise.
47318         (remainder_downward_test_data): Likewise.
47319         (remainder_upward_test_data): Likewise.
47320         (remquo_test_data): Likewise.
47321         (rint_test_data): Likewise.
47322         (rint_tonearest_test_data): Likewise.
47323         (rint_towardzero_test_data): Likewise.
47324         (rint_downward_test_data): Likewise.
47325         (rint_upward_test_data): Likewise.
47326         (round_test_data): Likewise.
47327         (scalb_test_data): Likewise.
47328         (scalbn_test_data): Likewise.
47329         (scalbln_test_data): Likewise.
47330         (signbit_test_data): Likewise.
47331         (sin_test_data): Likewise.
47332         (sin_tonearest_test_data): Likewise.
47333         (sin_towardzero_test_data): Likewise.
47334         (sin_downward_test_data): Likewise.
47335         (sin_upward_test_data): Likewise.
47336         (sincos_test_data): Likewise.
47337         (sinh_test_data): Likewise.
47338         (sinh_tonearest_test_data): Likewise.
47339         (sinh_towardzero_test_data): Likewise.
47340         (sinh_downward_test_data): Likewise.
47341         (sinh_upward_test_data): Likewise.
47342         (sqrt_test_data): Likewise.
47343         (tan_test_data): Likewise.
47344         (tan_tonearest_test_data): Likewise.
47345         (tan_towardzero_test_data): Likewise.
47346         (tan_downward_test_data): Likewise.
47347         (tan_upward_test_data): Likewise.
47348         (tanh_test_data): Likewise.
47349         (tgamma_test_data): Likewise.
47350         (trunc_test_data): Likewise.
47351         (y0_test_data): Likewise.
47352         (y1_test_data): Likewise.
47353         (yn_test_data): Likewise.
47354         (significand_test_data): Likewise.
47355
47356         * math/gen-libm-test.pl (@functions): Remove variable.
47357         (generate_testfile): Don't handle START and END lines.
47358         * math/libm-test.inc (START): New macro.
47359         (END): Likewise.
47360         (END_COMPLEX): Likewise.
47361         (acos_test): Use END macro without arguments.
47362         (acos_test_tonearest): Likewise.
47363         (acos_test_towardzero): Likewise.
47364         (acos_test_downward): Likewise.
47365         (acos_test_upward): Likewise.
47366         (acosh_test): Likewise.
47367         (asin_test): Likewise.
47368         (asin_test_tonearest): Likewise.
47369         (asin_test_towardzero): Likewise.
47370         (asin_test_downward): Likewise.
47371         (asin_test_upward): Likewise.
47372         (asinh_test): Likewise.
47373         (atan_test): Likewise.
47374         (atanh_test): Likewise.
47375         (atan2_test): Likewise.
47376         (cabs_test): Likewise.
47377         (cacos_test): Use END_COMPLEX macro without arguments.
47378         (cacosh_test): Likewise.
47379         (carg_test): Use END macro without arguments.
47380         (casin_test): Use END_COMPLEX macro without arguments.
47381         (casinh_test): Likewise.
47382         (catan_test): Likewise.
47383         (catanh_test): Likewise.
47384         (cbrt_test): Use END macro without arguments.
47385         (ccos_test): Use END_COMPLEX macro without arguments.
47386         (ccosh_test): Likewise.
47387         (ceil_test): Use END macro without arguments.
47388         (cexp_test): Use END_COMPLEX macro without arguments.
47389         (cimag_test): Use END macro without arguments.
47390         (clog_test): Use END_COMPLEX macro without arguments.
47391         (clog10_test): Likewise.
47392         (conj_test): Likewise.
47393         (copysign_test): Use END macro without arguments.
47394         (cos_test): Likewise.
47395         (cos_test_tonearest): Likewise.
47396         (cos_test_towardzero): Likewise.
47397         (cos_test_downward): Likewise.
47398         (cos_test_upward): Likewise.
47399         (cosh_test): Likewise.
47400         (cosh_test_tonearest): Likewise.
47401         (cosh_test_towardzero): Likewise.
47402         (cosh_test_downward): Likewise.
47403         (cosh_test_upward): Likewise.
47404         (cpow_test): Use END_COMPLEX macro without arguments.
47405         (cproj_test): Likewise.
47406         (creal_test): Use END macro without arguments.
47407         (csin_test): Use END_COMPLEX macro without arguments.
47408         (csinh_test): Likewise.
47409         (csqrt_test): Likewise.
47410         (ctan_test): Likewise.
47411         (ctan_test_tonearest): Likewise.
47412         (ctan_test_towardzero): Likewise.
47413         (ctan_test_downward): Likewise.
47414         (ctan_test_upward): Likewise.
47415         (ctanh_test): Likewise.
47416         (ctanh_test_tonearest): Likewise.
47417         (ctanh_test_towardzero): Likewise.
47418         (ctanh_test_downward): Likewise.
47419         (ctanh_test_upward): Likewise.
47420         (erf_test): Use END macro without arguments.
47421         (erfc_test): Likewise.
47422         (exp_test): Likewise.
47423         (exp_test_tonearest): Likewise.
47424         (exp_test_towardzero): Likewise.
47425         (exp_test_downward): Likewise.
47426         (exp_test_upward): Likewise.
47427         (exp10_test): Likewise.
47428         (exp2_test): Likewise.
47429         (expm1_test): Likewise.
47430         (fabs_test): Likewise.
47431         (fdim_test): Likewise.
47432         (finite_test): Likewise.
47433         (floor_test): Likewise.
47434         (fma_test): Likewise.
47435         (fma_test_towardzero): Likewise.
47436         (fma_test_downward): Likewise.
47437         (fma_test_upward): Likewise.
47438         (fmax_test): Likewise.
47439         (fmin_test): Likewise.
47440         (fmod_test): Likewise.
47441         (fpclassify_test): Likewise.
47442         (frexp_test): Likewise.
47443         (gamma_test): Likewise.
47444         (hypot_test): Likewise.
47445         (ilogb_test): Likewise.
47446         (isfinite_test): Likewise.
47447         (isgreater_test): Likewise.
47448         (isgreaterequal_test): Likewise.
47449         (isinf_test): Likewise.
47450         (isless_test): Likewise.
47451         (islessequal_test): Likewise.
47452         (islessgreater_test): Likewise.
47453         (isnan_test): Likewise.
47454         (isnormal_test): Likewise.
47455         (issignaling_test): Likewise.
47456         (isunordered_test): Likewise.
47457         (j0_test): Likewise.
47458         (j1_test): Likewise.
47459         (jn_test): Likewise.
47460         (ldexp_test): Likewise.
47461         (lgamma_test): Likewise.
47462         (lrint_test): Likewise.
47463         (lrint_test_tonearest): Likewise.
47464         (lrint_test_towardzero): Likewise.
47465         (lrint_test_downward): Likewise.
47466         (lrint_test_upward): Likewise.
47467         (llrint_test): Likewise.
47468         (llrint_test_tonearest): Likewise.
47469         (llrint_test_towardzero): Likewise.
47470         (llrint_test_downward): Likewise.
47471         (llrint_test_upward): Likewise.
47472         (log_test): Likewise.
47473         (log10_test): Likewise.
47474         (log1p_test): Likewise.
47475         (log2_test): Likewise.
47476         (logb_test): Likewise.
47477         (logb_test_downward): Likewise.
47478         (lround_test): Likewise.
47479         (llround_test): Likewise.
47480         (modf_test): Likewise.
47481         (nearbyint_test): Likewise.
47482         (nextafter_test): Likewise.
47483         (nexttoward_test): Likewise.
47484         (pow_test): Likewise.
47485         (pow_test_tonearest): Likewise.
47486         (pow_test_towardzero): Likewise.
47487         (pow_test_downward): Likewise.
47488         (pow_test_upward): Likewise.
47489         (remainder_test): Likewise.
47490         (remainder_test_tonearest): Likewise.
47491         (remainder_test_towardzero): Likewise.
47492         (remainder_test_downward): Likewise.
47493         (remainder_test_upward): Likewise.
47494         (remquo_test): Likewise.
47495         (rint_test): Likewise.
47496         (rint_test_tonearest): Likewise.
47497         (rint_test_towardzero): Likewise.
47498         (rint_test_downward): Likewise.
47499         (rint_test_upward): Likewise.
47500         (round_test): Likewise.
47501         (scalb_test): Likewise.
47502         (scalbn_test): Likewise.
47503         (scalbln_test): Likewise.
47504         (signbit_test): Likewise.
47505         (sin_test): Likewise.
47506         (sin_test_tonearest): Likewise.
47507         (sin_test_towardzero): Likewise.
47508         (sin_test_downward): Likewise.
47509         (sin_test_upward): Likewise.
47510         (sincos_test): Likewise.
47511         (sinh_test): Likewise.
47512         (sinh_test_tonearest): Likewise.
47513         (sinh_test_towardzero): Likewise.
47514         (sinh_test_downward): Likewise.
47515         (sinh_test_upward): Likewise.
47516         (sqrt_test): Likewise.
47517         (tan_test): Likewise.
47518         (tan_test_tonearest): Likewise.
47519         (tan_test_towardzero): Likewise.
47520         (tan_test_downward): Likewise.
47521         (tan_test_upward): Likewise.
47522         (tanh_test): Likewise.
47523         (tgamma_test): Likewise.
47524         (trunc_test): Likewise.
47525         (y0_test): Likewise.
47526         (y1_test): Likewise.
47527         (yn_test): Likewise.
47528         (significand_test): Likewise.
47529
47530 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47531
47532         [BZ #15381]
47533         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47534
47535 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47536
47537         [BZ #14894]
47538         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47539         __ppc_mdoio and __ppc_mdoom.
47540         * manual/platform.texi: Document new functions __ppc_yield,
47541         __ppc_mdoio and __ppc_mdoom.
47542
47543 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47544
47545         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47546         (main): Mention "tls" pseudo-hwcap is legacy.
47547         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47548
47549 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47550
47551         * math/gen-libm-test.pl (parse_args): Output only string of
47552         arguments as text for test name, not full call or descriptions of
47553         tests for extra outputs.
47554         (generate_testfile): Do not pass function name to parse_args.
47555         Generate this_func variable from START.
47556         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47557         field to arg_str.
47558         (struct test_ff_f_data): Likewise.
47559         (test_ff_f_data_nexttoward): Likewise.
47560         (struct test_fi_f_data): Likewise.
47561         (struct test_fl_f_data): Likewise.
47562         (struct test_if_f_data): Likewise.
47563         (struct test_fff_f_data): Likewise.
47564         (struct test_c_f_data): Likewise.
47565         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47566         (struct test_fF_f1_data): Likewise.
47567         (struct test_ffI_f1_data): Likewise.
47568         (struct test_c_c_data): Rename test_name field to arg_str.
47569         (struct test_cc_c_data): Likewise.
47570         (struct test_f_i_data): Likewise.
47571         (struct test_ff_i_data): Likewise.
47572         (struct test_f_l_data): Likewise.
47573         (struct test_f_L_data): Likewise.
47574         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47575         and extra2_name.
47576         (COMMON_TEST_SETUP): New macro.
47577         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47578         (COMMON_TEST_CLEANUP): Likewise.
47579         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47580         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47581         macros.
47582         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47583         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47584         macros.
47585         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47586         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47587         cleanup macros.
47588         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47589         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47590         macros.
47591         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47592         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47593         macros.
47594         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47595         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47596         cleanup macros.
47597         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47598         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47599         cleanup macros.
47600         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47601         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47602         cleanup macros.
47603         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47604         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47605         macros.
47606         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47607         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47608         macros.
47609         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47610         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47611         macros.
47612         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47613         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47614         cleanup macros.
47615         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47616         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47617         cleanup macros.
47618         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47619         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47620         macros.
47621         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47622         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47623         cleanup macros.
47624         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47625         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47626         macros.
47627         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47628         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47629         macros.
47630         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47631         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47632         cleanup macros.
47633         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47634
47635 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47636
47637         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47638         to _sifields.sigfault.
47639         (si_addr_lsb): Define new macro.
47640         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47641         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47642         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47643
47644 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47645
47646         [BZ #15441]
47647         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47648         returns -1.
47649         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47650         null return -1.
47651         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47652         loading the domain.
47653
47654 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47655
47656         * math/gen-libm-test.pl (parse_args): Do not include expected
47657         result in test name.
47658         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47659         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47660         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47661         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47662         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47664
47665 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47666
47667         * benchtests/Makefile: Sort function entries.
47668
47669         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47670         tanh, asinh, acosh, atanh.
47671         * benchtests/acos-inputs: New file.
47672         * benchtests/acosh-inputs: New file.
47673         * benchtests/asin-inputs: New file.
47674         * benchtests/asinh-inputs: New file.
47675         * benchtests/atanh-inputs: New file.
47676         * benchtests/cosh-inputs: New file.
47677         * benchtests/log-inputs: New file.
47678         * benchtests/sinh-inputs: New file.
47679         * benchtests/tanh-inputs: New file.
47680
47681 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47682
47683         [BZ #15339]
47684         * posix/tst-getaddrinfo4.c: New test.
47685         * posix/Makefile (tests): Add it.
47686
47687 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47688
47689         [BZ #15339]
47690         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47691         when no services were used.
47692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47693         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47694
47695 2013-05-21  Andreas Schwab  <schwab@suse.de>
47696
47697         [BZ #15014]
47698         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47699         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47700         successful.
47701         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47702         redundant variable declarations and reallocation of buffer when
47703         parsing as IPv6 address.  Always set NSS status when called from
47704         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47705         buffer too small.  Correct computation of needed size.
47706         * nss/Makefile (tests): Add test-digits-dots.
47707         * nss/test-digits-dots.c: New test.
47708
47709 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47710
47711         * benchtests/Makefile: Remove instructions for adding
47712         benchmark tests.
47713         * benchtests/README: New file to explain how to execute and
47714         enhance the benchmark tests.
47715
47716 2013-05-21  Andreas Schwab  <schwab@suse.de>
47717
47718         [BZ #15493]
47719         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47720         * setjmp/tst-sigsetjmp.c: New test.
47721
47722 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47723
47724         * sysdeps/x86_64/memset.S (memset): New implementation.
47725         (__bzero): Likewise.
47726         (__memset_tail): New function.
47727
47728 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47729
47730         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47731         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47732         __memcpy_sse2_unaligned ifunc selection.
47733         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47734         Add memcpy-sse2-unaligned.S.
47735         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47736         Add: __memcpy_sse2_unaligned.
47737
47738 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47739
47740         [BZ #15490]
47741         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47742         math_force_eval before restoring floating-point envrionment.
47743         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47744         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47745         Likewise.
47746         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47747         <math_private.h>.
47748         (__nearbyintl): Use math_force_eval before restoring
47749         floating-point environment.
47750         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47751
47752         * math/gen-libm-test.pl (special_functions): Remove.
47753         (parse_args): Don't handle TEST_extra.  Handle functions with no
47754         return value.
47755         * math/libm-test.inc (struct test_sincos_data): Replace with
47756         struct test_fFF_11_data.
47757         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47758         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47759         (sincos_test_data): Change element type to struct
47760         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47761         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47762         RUN_TEST_LOOP_sincos.
47763         * math/README.libm-test: Don't mention special handling of
47764         individual functions.
47765         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47766         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47767         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47768         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47769         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47771
47772         * math/gen-libm-test.pl (get_variable): Remove function.
47773         (parse_args): Don't show pointer parameters to call in test
47774         names.  Use "extra output N" in test names for extra outputs
47775         rather than naming variables.
47776
47777 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47778
47779         [BZ #15488]
47780         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47781         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47782         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47783         double tests.
47784         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47785         disable.
47786         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47787         check_long_double.
47788
47789         * math/gen-libm-test.pl (@tests): Remove variable.
47790         ($count): Likewise.
47791         (new_test): Remove function.
47792         (show_exceptions): New function.
47793         (special_functions): Use show_exceptions instead of new_test.
47794         (parse_args): Likewise.
47795         (generate_testfile): Pass only function name in generated call to
47796         print_max_error or print_complex_max_error.
47797         (get_ulps): Do not handle complex tests specially.
47798         (output_test): Rename to ...
47799         (get_all_ulps_for_test): ... this.  Return a string rather than
47800         printing to a file.  Require ulps to be present.
47801         (output_ulps): Generate arrays rather than #defines.
47802         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47803         (struct ulp_data): New type.
47804         (BUILD_COMPLEX_ULP): Remove macro.
47805         (compare_ulp_data): New function.
47806         (find_ulps): Likewise.
47807         (find_test_ulps): Likewise.
47808         (find_function_ulps): Likewise.
47809         (find_complex_function_ulps): Likewise.
47810         (print_max_error): Determine allowed ulps using
47811         find_function_ulps.
47812         (print_complex_max_error): Determine allowed ulps using
47813         find_complex_function_ulps.
47814         (check_float_internal): Determine max ulps using find_test_ulps.
47815         (check_float): Do not take max_ulp parameter.  Update call to
47816         check_float_internal.
47817         (check_complex): Likewise.
47818         (check_int): Do not take max_ulp parameter.
47819         (check_long): Likewise.
47820         (check_bool): Likewise.
47821         (check_longlong): Likewise.
47822         (struct test_f_f_data): Remove max_ulp field.
47823         (struct test_ff_f_data): Likewise.
47824         (struct test_ff_f_data_nexttoward): Likewise.
47825         (struct test_fi_f_data): Likewise.
47826         (struct test_fl_f_data): Likewise.
47827         (struct test_if_f_data): Likewise.
47828         (struct test_fff_f_data): Likewise.
47829         (struct test_c_f_data): Likewise.
47830         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47831         (struct test_fF_f1_data): Likewise.
47832         (struct test_ffI_f1_data): Likewise.
47833         (struct test_c_c_data): Remove max_ulp field.
47834         (struct test_cc_c_data): Likewise.
47835         (struct test_f_i_data): Likewise.
47836         (struct test_ff_i_data): Likewise.
47837         (struct test_f_l_data): Likewise.
47838         (struct test_f_L_data): Likewise.
47839         (struct test_sincos_data): Likewise.
47840         (RUN_TEST_f_f): Do not handle ulps.
47841         (RUN_TEST_LOOP_f_f): Likewise.
47842         (RUN_TEST_2_f): Likewise.
47843         (RUN_TEST_LOOP_2_f): Likewise.
47844         (RUN_TEST_fff_f): Likewise.
47845         (RUN_TEST_LOOP_fff_f): Likewise.
47846         (RUN_TEST_c_f): Likewise.
47847         (RUN_TEST_LOOP_c_f): Likewise.
47848         (RUN_TEST_f_f1): Likewise.
47849         (RUN_TEST_LOOP_f_f1): Likewise.
47850         (RUN_TEST_fF_f1): Likewise.
47851         (RUN_TEST_LOOP_fF_f1): Likewise.
47852         (RUN_TEST_fI_f1): Likewise.
47853         (RUN_TEST_LOOP_fI_f1): Likewise.
47854         (RUN_TEST_ffI_f1): Likewise.
47855         (RUN_TEST_LOOP_ffI_f1): Likewise.
47856         (RUN_TEST_c_c): Likewise.
47857         (RUN_TEST_LOOP_c_c): Likewise.
47858         (RUN_TEST_cc_c): Likewise.
47859         (RUN_TEST_LOOP_cc_c): Likewise.
47860         (RUN_TEST_f_i): Likewise.
47861         (RUN_TEST_LOOP_f_i): Likewise.
47862         (RUN_TEST_f_i_tg): Likewise.
47863         (RUN_TEST_LOOP_f_i_tg): Likewise.
47864         (RUN_TEST_ff_i_tg): Likewise.
47865         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47866         (RUN_TEST_f_b): Likewise.
47867         (RUN_TEST_LOOP_f_b): Likewise.
47868         (RUN_TEST_f_b_tg): Likewise.
47869         (RUN_TEST_LOOP_f_b_tg): Likewise.
47870         (RUN_TEST_f_l): Likewise.
47871         (RUN_TEST_LOOP_f_l): Likewise.
47872         (RUN_TEST_f_L): Likewise.
47873         (RUN_TEST_LOOP_f_L): Likewise.
47874         (RUN_TEST_sincos): Likewise.
47875         (RUN_TEST_LOOP_sincos): Likewise.
47876
47877 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47878
47879         [BZ #15480]
47880         [BZ #15485]
47881         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47882         main case of finite arguments, set rounding mode to FE_TONEAREST
47883         and discard exceptions.
47884         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47885         exceptions.
47886         (remainder_tonearest_test_data): New variable.
47887         (remainder_test_tonearest): New function.
47888         (remainder_towardzero_test_data): New variable.
47889         (remainder_test_towardzero): New function.
47890         (remainder_downward_test_data): New variable.
47891         (remainder_test_downward): New function.
47892         (remainder_upward_test_data): New variable.
47893         (remainder_test_upward): New function.
47894         (main): Call the new test functions.
47895
47896         * math/libm-test.inc (struct test_f_f1_data): Remove field
47897         extra_init.
47898         (struct test_fF_f1_data): Likewise.
47899         (struct test_ffI_f1_data): Likewise.
47900         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47901         based on value of EXTRA_EXPECTED.
47902         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47903         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47904         EXTRA_VAR based on value of EXTRA_EXPECTED.
47905         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47906         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47907         EXTRA_VAR based on value of EXTRA_EXPECTED.
47908         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47909         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47910         EXTRA_VAR based on value of EXTRA_EXPECTED.
47911         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47912         * math/gen-libm-test.pl (parse_args): Don't output initializers
47913         for extra output values.
47914
47915         * math/libm-test.inc (check_int): Expect result to be exactly
47916         equal to expected value and do not handle ulps.
47917         (check_long): Likewise.
47918         (check_longlong): Likewise.
47919
47920         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47921         exceptions.
47922         (cimag_test_data): Likewise.
47923         (conj_test_data): Likewise.
47924         (copysign_test_data): Likewise.
47925         (cproj_test_data): Likewise.
47926         (creal_test_data): Likewise.
47927         (fabs_test_data): Likewise.
47928         (fdim_test_data): Likewise.
47929         (finite_test_data): Likewise.
47930         (floor_test_data): Likewise.
47931         (fmax_test_data): Likewise.
47932         (fmin_test_data): Likewise.
47933         (fmod_test_data): Likewise.
47934         (fpclassify_test_data): Likewise.
47935         (frexp_test_data): Likewise.
47936         (ilogb_test_data): Likewise.
47937         (isfinite_test_data): Likewise.
47938         (isgreater_test_data): Likewise.
47939         (isgreaterequal_test_data): Likewise.
47940         (isinf_test_data): Likewise.
47941         (isless_test_data): Likewise.
47942         (islessequal_test_data): Likewise.
47943         (islessgreater_test_data): Likewise.
47944         (isnan_test_data): Likewise.
47945         (isnormal_test_data): Likewise.
47946         (issignaling_test_data): Likewise.
47947         (isunordered_test_data): Likewise.
47948         (ldexp_test_data): Likewise.
47949         (lrint_test_data): Likewise.
47950         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47951         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47952         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47953         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47954         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47955         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47956         test input.
47957         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47958         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47959         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47960         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47961         that test input.
47962         (lrint_downward_test_data): Test for "inexact" exceptions.
47963         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47964         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47965         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47966         test input.
47967         (lrint_upward_test_data): Test for "inexact" exceptions.
47968         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47969         test input.
47970         (llrint_test_data): Test for "inexact" exceptions.
47971         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47972         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47973         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47974         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47975         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47976         (llrint_downward_test_data): Test for "inexact" exceptions.
47977         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47978         (llrint_upward_test_data): Test for "inexact" exceptions.
47979         (logb_test_data): Likewise.
47980         (logb_downward_test_data): Likewise.
47981         (nextafter_test_data): Likewise.
47982         (nexttoward_test_data): Likewise.
47983         (remainder_test_data): Likewise.
47984         (remquo_test_data): Likewise.
47985         (scalbn_test_data): Likewise.
47986         (scalbln_test_data): Likewise.
47987         (signbit_test_data): Likewise.
47988         (sqrt_test_data): Likewise.
47989         (significand_test_data): Likewise.
47990
47991 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47992
47993         [BZ #15424]
47994         * benchtests/bench-modf.c (struct args): Mark arg0 as
47995         volatile.
47996         * scripts/bench.pl: Mark members of struct args as volatile.
47997
47998 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47999
48000         [BZ # 15497]
48001         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
48002         negative infinity on POWER6 or lower.
48003         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
48004
48005 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
48006
48007         [BZ #15442]
48008         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
48009         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
48010         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
48011         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
48012         (_FP_SETQNAN): New macro.
48013         (_FP_SETQNAN_SEMIRAW): Likewise.
48014         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
48015         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
48016         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
48017         (FP_EXTEND): Use _FP_FRAC_SNANP.
48018         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
48019         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
48020         into account.
48021         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
48022         New macro.
48023         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
48024         Likewise.
48025
48026 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48027
48028         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
48029         with DIVIDE_BY_ZERO_EXCEPTION.
48030         (gamma_test_data): Likewise.
48031         (lgamma_test_data): Likewise.
48032         (log_test_data): Likewise.
48033         (log10_test_data): Likewise.
48034         (log2_test_data): Likewise.
48035         (tgamma_test_data): Likewise.
48036
48037         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
48038         (acos_test_tonearest): Likewise.
48039         (acos_test_towardzero): Likewise.
48040         (acos_test_downward): Likewise.
48041         (acos_test_upward): Likewise.
48042         (acosh_test): Likewise.
48043         (asin_test): Likewise.
48044         (asin_test_tonearest): Likewise.
48045         (asin_test_towardzero): Likewise.
48046         (asin_test_downward): Likewise.
48047         (asin_test_upward): Likewise.
48048         (asinh_test): Likewise.
48049         (atan_test): Likewise.
48050         (atanh_test): Likewise.
48051         (atan2_test): Likewise.
48052         (cabs_test): Likewise.
48053         (cacos_test): Likewise.
48054         (cacosh_test): Likewise.
48055         (casin_test): Likewise.
48056         (casinh_test): Likewise.
48057         (catan_test): Likewise.
48058         (catanh_test): Likewise.
48059         (cbrt_test): Likewise.
48060         (ccos_test): Likewise.
48061         (ccosh_test): Likewise.
48062         (cexp_test): Likewise.
48063         (clog_test): Likewise.
48064         (clog10_test): Likewise.
48065         (cos_test): Likewise.
48066         (cos_test_tonearest): Likewise.
48067         (cos_test_towardzero): Likewise.
48068         (cos_test_downward): Likewise.
48069         (cos_test_upward): Likewise.
48070         (cosh_test): Likewise.
48071         (cosh_test_tonearest): Likewise.
48072         (cosh_test_towardzero): Likewise.
48073         (cosh_test_downward): Likewise.
48074         (cosh_test_upward): Likewise.
48075         (cpow_test): Likewise.
48076         (csin_test): Likewise.
48077         (csinh_test): Likewise.
48078         (csqrt_test): Likewise.
48079         (ctan_test): Likewise.
48080         (ctan_test_tonearest): Likewise.
48081         (ctan_test_towardzero): Likewise.
48082         (ctan_test_downward): Likewise.
48083         (ctan_test_upward): Likewise.
48084         (ctanh_test): Likewise.
48085         (ctanh_test_tonearest): Likewise.
48086         (ctanh_test_towardzero): Likewise.
48087         (ctanh_test_downward): Likewise.
48088         (ctanh_test_upward): Likewise.
48089         (erf_test): Likewise.
48090         (erfc_test): Likewise.
48091         (exp_test): Likewise.
48092         (exp_test_tonearest): Likewise.
48093         (exp_test_towardzero): Likewise.
48094         (exp_test_downward): Likewise.
48095         (exp_test_upward): Likewise.
48096         (exp10_test): Likewise.
48097         (exp2_test): Likewise.
48098         (expm1_test): Likewise.
48099         (fmod_test): Likewise.
48100         (gamma_test): Likewise.
48101         (hypot_test): Likewise.
48102         (j0_test): Likewise.
48103         (j1_test): Likewise.
48104         (jn_test): Likewise.
48105         (lgamma_test): Likewise.
48106         (log_test): Likewise.
48107         (log10_test): Likewise.
48108         (log1p_test): Likewise.
48109         (log2_test): Likewise.
48110         (logb_test_downward): Likewise.
48111         (pow_test): Likewise.
48112         (pow_test_tonearest): Likewise.
48113         (pow_test_towardzero): Likewise.
48114         (pow_test_downward): Likewise.
48115         (pow_test_upward): Likewise.
48116         (remainder_test): Likewise.
48117         (remquo_test): Likewise.
48118         (sin_test): Likewise.
48119         (sin_test_tonearest): Likewise.
48120         (sin_test_towardzero): Likewise.
48121         (sin_test_downward): Likewise.
48122         (sin_test_upward): Likewise.
48123         (sincos_test): Likewise.
48124         (sinh_test): Likewise.
48125         (sinh_test_tonearest): Likewise.
48126         (sinh_test_towardzero): Likewise.
48127         (sinh_test_downward): Likewise.
48128         (sinh_test_upward): Likewise.
48129         (sqrt_test): Likewise.
48130         (tan_test): Likewise.
48131         (tan_test_tonearest): Likewise.
48132         (tan_test_towardzero): Likewise.
48133         (tan_test_downward): Likewise.
48134         (tan_test_upward): Likewise.
48135         (tanh_test): Likewise.
48136         (tgamma_test): Likewise.
48137         (y0_test): Likewise.
48138         (y1_test): Likewise.
48139         (yn_test): Likewise.
48140
48141         * math/gen-libm-test.pl (adjust_arg): Remove function.
48142         (special_function): Remove argument $in_func.  Only handle
48143         generating output for tables of tests, not inside functions.
48144         (parse_args): Likewise.
48145         (generate_testfile): Remove variable $in_func.  Update call to
48146         parse_args.
48147         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
48148         (MINUS_ZERO_INIT): Rename macro to minus_zero.
48149         (PLUS_INFTY_INIT): Rename macro to plus_infty.
48150         (MINUS_INFTY_INIT): Rename macro to minus_infty.
48151         (QNAN_VALUE_INIT): Rename macro to qnan_value.
48152         (MAX_VALUE_INIT): Rename macro to max_value.
48153         (MIN_VALUE_INIT): Rename macro to min_value.
48154         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
48155         (plus_zero): Remove variable.
48156         (minus_zero): Likewise.
48157         (plus_infty): Likewise.
48158         (minus_infty): Likewise.
48159         (qnan_value): Likewise.
48160         (max_value): Likewise.
48161         (min_value): Likewise.
48162         (min_subnorm_value): Likewise.
48163
48164 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48165
48166         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
48167         uint64_t or uint32_t usage.
48168         * crypt/sha256-block.c: Likewise.
48169         * crypt/sha256-crypt.c: Likewise.
48170         * crypt/sha256.c: Likewise.
48171         * crypt/sha512-block.c: Likewise.
48172         * crypt/sha512-crypt.c: Likewise.
48173         * crypt/sha512.c: Likewise.
48174         * debug/backtrace-tst.c: Likewise.
48175         * debug/pcprofiledump.c: Likewise.
48176         * elf/cache.c: Likewise.
48177         * elf/dl-cache.c: Likewise.
48178         * elf/dl-misc.c: Likewise.
48179         * elf/dl-profile.c: Likewise.
48180         * elf/dl-support.c: Likewise.
48181         * elf/ldconfig.c: Likewise.
48182         * elf/sprof.c: Likewise.
48183         * iconv/dummy-repertoire.c: Likewise.
48184         * iconv/iconv_charmap.c: Likewise.
48185         * iconv/skeleton.c: Likewise.
48186         * iconvdata/8bit-generic.c: Likewise.
48187         * iconvdata/cp737.h: Likewise.
48188         * iconvdata/cp775.h: Likewise.
48189         * iconvdata/ibm1008.h: Likewise.
48190         * iconvdata/ibm1025.h: Likewise.
48191         * iconvdata/ibm1046.h: Likewise.
48192         * iconvdata/ibm1097.h: Likewise.
48193         * iconvdata/ibm1112.h: Likewise.
48194         * iconvdata/ibm1122.h: Likewise.
48195         * iconvdata/ibm1123.h: Likewise.
48196         * iconvdata/ibm1124.h: Likewise.
48197         * iconvdata/ibm1129.h: Likewise.
48198         * iconvdata/ibm1130.h: Likewise.
48199         * iconvdata/ibm1132.h: Likewise.
48200         * iconvdata/ibm1133.h: Likewise.
48201         * iconvdata/ibm1137.h: Likewise.
48202         * iconvdata/ibm1140.h: Likewise.
48203         * iconvdata/ibm1141.h: Likewise.
48204         * iconvdata/ibm1142.h: Likewise.
48205         * iconvdata/ibm1143.h: Likewise.
48206         * iconvdata/ibm1144.h: Likewise.
48207         * iconvdata/ibm1145.h: Likewise.
48208         * iconvdata/ibm1146.h: Likewise.
48209         * iconvdata/ibm1147.h: Likewise.
48210         * iconvdata/ibm1148.h: Likewise.
48211         * iconvdata/ibm1149.h: Likewise.
48212         * iconvdata/ibm1153.h: Likewise.
48213         * iconvdata/ibm1154.h: Likewise.
48214         * iconvdata/ibm1155.h: Likewise.
48215         * iconvdata/ibm1156.h: Likewise.
48216         * iconvdata/ibm1157.h: Likewise.
48217         * iconvdata/ibm1158.h: Likewise.
48218         * iconvdata/ibm1160.h: Likewise.
48219         * iconvdata/ibm1161.h: Likewise.
48220         * iconvdata/ibm1162.h: Likewise.
48221         * iconvdata/ibm1163.h: Likewise.
48222         * iconvdata/ibm1164.h: Likewise.
48223         * iconvdata/ibm1166.h: Likewise.
48224         * iconvdata/ibm1167.h: Likewise.
48225         * iconvdata/ibm12712.h: Likewise.
48226         * iconvdata/ibm1390.h: Likewise.
48227         * iconvdata/ibm1399.h: Likewise.
48228         * iconvdata/ibm16804.h: Likewise.
48229         * iconvdata/ibm4517.h: Likewise.
48230         * iconvdata/ibm4899.h: Likewise.
48231         * iconvdata/ibm4909.h: Likewise.
48232         * iconvdata/ibm4971.h: Likewise.
48233         * iconvdata/ibm5347.h: Likewise.
48234         * iconvdata/ibm803.h: Likewise.
48235         * iconvdata/ibm856.h: Likewise.
48236         * iconvdata/ibm901.h: Likewise.
48237         * iconvdata/ibm902.h: Likewise.
48238         * iconvdata/ibm9030.h: Likewise.
48239         * iconvdata/ibm9066.h: Likewise.
48240         * iconvdata/ibm921.h: Likewise.
48241         * iconvdata/ibm922.h: Likewise.
48242         * iconvdata/ibm9448.h: Likewise.
48243         * iconvdata/isiri-3342.h: Likewise.
48244         * iconvdata/jis0201.h: Likewise.
48245         * include/link.h: Likewise.
48246         * include/netdb.h: Likewise.
48247         * inet/check_native.c: Likewise.
48248         * inet/check_pf.c: Likewise.
48249         * inet/getipv4sourcefilter.c: Likewise.
48250         * inet/getnameinfo.c: Likewise.
48251         * inet/getsourcefilter.c: Likewise.
48252         * inet/htonl.c: Likewise.
48253         * inet/setipv4sourcefilter.c: Likewise.
48254         * inet/setsourcefilter.c: Likewise.
48255         * inet/test-inet6_opt.c: Likewise.
48256         * inet/tst-network.c: Likewise.
48257         * locale/C-collate.c: Likewise.
48258         * locale/C-ctype.c: Likewise.
48259         * locale/C-time.c: Likewise.
48260         * locale/C-translit.h: Likewise.
48261         * locale/loadarchive.c: Likewise.
48262         * locale/programs/3level.h: Likewise.
48263         * locale/programs/charmap.c: Likewise.
48264         * locale/programs/charmap.h: Likewise.
48265         * locale/programs/ld-address.c: Likewise.
48266         * locale/programs/ld-collate.c: Likewise.
48267         * locale/programs/ld-ctype.c: Likewise.
48268         * locale/programs/ld-identification.c: Likewise.
48269         * locale/programs/ld-measurement.c: Likewise.
48270         * locale/programs/ld-messages.c: Likewise.
48271         * locale/programs/ld-monetary.c: Likewise.
48272         * locale/programs/ld-name.c: Likewise.
48273         * locale/programs/ld-numeric.c: Likewise.
48274         * locale/programs/ld-paper.c: Likewise.
48275         * locale/programs/ld-telephone.c: Likewise.
48276         * locale/programs/ld-time.c: Likewise.
48277         * locale/programs/linereader.c: Likewise.
48278         * locale/programs/locale.c: Likewise.
48279         * locale/programs/locarchive.c: Likewise.
48280         * locale/programs/locfile.h: Likewise.
48281         * locale/programs/repertoire.c: Likewise.
48282         * locale/programs/simple-hash.c: Likewise.
48283         * locale/programs/simple-hash.h: Likewise.
48284         * malloc/memusage.c: Likewise.
48285         * malloc/memusagestat.c: Likewise.
48286         * nis/nis_defaults.c: Likewise.
48287         * nis/nis_hash.c: Likewise.
48288         * nis/nis_print.c: Likewise.
48289         * nis/nis_xdr.c: Likewise.
48290         * nscd/connections.c: Likewise.
48291         * nscd/hstcache.c: Likewise.
48292         * nscd/nscd_gethst_r.c: Likewise.
48293         * nscd/nscd_getserv_r.c: Likewise.
48294         * nscd/nscd_helper.c: Likewise.
48295         * nscd/servicescache.c: Likewise.
48296         * nss/makedb.c: Likewise.
48297         * nss/nss_db/db-XXX.c: Likewise.
48298         * nss/nss_db/db-initgroups.c: Likewise.
48299         * nss/nss_db/db-netgrp.c: Likewise.
48300         * nss/nss_files/files-network.c: Likewise.
48301         * nss/nss_files/files-parse.c: Likewise.
48302         * posix/bug-regex5.c: Likewise.
48303         * posix/fnmatch_loop.c: Likewise.
48304         * posix/regcomp.c: Likewise.
48305         * posix/regexec.c: Likewise.
48306         * posix/tst-rfc3484-2.c: Likewise.
48307         * posix/tst-rfc3484-3.c: Likewise.
48308         * posix/tst-rfc3484.c: Likewise.
48309         * resolv/nss_dns/dns-canon.c: Likewise.
48310         * resolv/nss_dns/dns-network.c: Likewise.
48311         * resolv/res_init.c: Likewise.
48312         * resolv/res_mkquery.c: Likewise.
48313         * resolv/tst-aton.c: Likewise.
48314         * stdlib/cxa_atexit.c: Likewise.
48315         * stdlib/cxa_finalize.c: Likewise.
48316         * stdlib/gen-fpioconst.c: Likewise.
48317         * stdlib/strtol_l.c: Likewise.
48318         * string/tst-endian.c: Likewise.
48319         * sunrpc/auth_des.c: Likewise.
48320         * sunrpc/clnt_udp.c: Likewise.
48321         * sunrpc/rtime.c: Likewise.
48322         * sunrpc/svcauth_des.c: Likewise.
48323         * sunrpc/xdr.c: Likewise.
48324         * sunrpc/xdr_intXX_t.c: Likewise.
48325         * sunrpc/xdr_rec.c: Likewise.
48326         * sysdeps/generic/ldconfig.h: Likewise.
48327         * sysdeps/generic/ldsodefs.h: Likewise.
48328         * sysdeps/generic/memusage.h: Likewise.
48329         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48330         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48331         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48332         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48333         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48334         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48335         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48336         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48337         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48338         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48339         * sysdeps/posix/getaddrinfo.c: Likewise.
48340         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48341         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48342         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48343         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48344         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48345         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48346         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48347         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48348         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48349         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48350         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48351         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48352         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48353         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48354         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48355         * sysdeps/x86_64/dl-tls.h: Likewise.
48356         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48357         * time/alt_digit.c: Likewise.
48358         * time/era.c: Likewise.
48359         * wcsmbs/tst-c16c32-1.c: Likewise.
48360
48361 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48362
48363         * math/libm-test.inc (struct test_sincos_data): New type.
48364         (RUN_TEST_LOOP_sincos): New macro.
48365         (sincos_test_data): New variable.
48366         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48367
48368 2013-05-16  Richard Henderson  <rth@redhat.com>
48369
48370         * math/atest-exp2.c (LIMB64): New macro.
48371         (CONSTSZ): New macro.
48372         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48373         (hexdig): Move ...
48374         (print_mpn_fp): ... to function scope.
48375         (read_mpn_hex): Remove.
48376         (get_log2): Remove.
48377         (exp2_mpn): Use mp_log2.
48378         (main): Use mp_exp1.
48379
48380 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48381
48382         * math/libm-test.inc: Remove comment about not testing "inexact"
48383         exceptions.
48384         (INEXACT_EXCEPTION): New macro.
48385         (NO_INEXACT_EXCEPTION): Likewise.
48386         (INVALID_EXCEPTION_OK): Update value.
48387         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48388         (OVERFLOW_EXCEPTION_OK): Likewise.
48389         (UNDERFLOW_EXCEPTION_OK): Likewise.
48390         (IGNORE_ZERO_INF_SIGN): Likewise.
48391         (ERRNO_UNCHANGED): Likewise.
48392         (ERRNO_EDOM): Likewise.
48393         (ERRNO_ERANGE): Likewise.
48394         (test_exceptions): Handle testing "inexact" exceptions.
48395         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48396         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48397         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48398         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48399         INEXACT_EXCEPTION.
48400         (rint_towardzero_test_data): Likewise.
48401         (rint_downward_test_data): Likewise.
48402         (rint_upward_test_data): Likewise.
48403
48404         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48405         with OVERFLOW_EXCEPTION.
48406         (exp10_test_data): Likewise.
48407         (exp2_test_data): Likewise.
48408         (expm1_test_data): Likewise.
48409         (lgamma_test_data): Likewise.
48410         (pow_test_data): Likewise.
48411         (tgamma_test_data): Likewise.
48412         (yn_test_data): Remove duplicate test of overflow.
48413
48414         * math/libm-test.inc (struct test_cc_c_data): New type.
48415         (RUN_TEST_LOOP_cc_c): New macro.
48416         (cpow_test_data): New variable.
48417         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48418
48419         * math/libm-test.inc (struct test_f_L_data): New type.
48420         (RUN_TEST_LOOP_f_L): New macro.
48421         (llrint_test_data): New variable.
48422         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48423         (llrint_tonearest_test_data): New variable.
48424         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48425         (llrint_towardzero_test_data): New variable.
48426         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48427         (llrint_downward_test_data): New variable.
48428         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48429         (llrint_upward_test_data): New variable.
48430         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48431         (llround_test_data): New variable.
48432         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48433
48434 2013-05-13  Peter Collingbourne  <pcc@google.com>
48435
48436         * math/atest-exp2.c (get_log2): Remove const attribute.
48437
48438 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48439
48440         * math/libm-test.inc (struct test_f_l_data): New type.
48441         (RUN_TEST_LOOP_f_l): New macro.
48442         (lrint_test_data): New variable.
48443         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48444         (lrint_tonearest_test_data): New variable.
48445         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48446         (lrint_towardzero_test_data): New variable.
48447         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48448         (lrint_downward_test_data): New variable.
48449         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48450         (lrint_upward_test_data): New variable.
48451         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48452         (lround_test_data): New variable.
48453         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48454
48455 2013-05-15  Peter Collingbourne  <pcc@google.com>
48456
48457         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48458         (EXTRACT_WORDS64) Use where appropriate.
48459         (INSERT_WORDS64) Likewise.
48460
48461         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48462         constraints with x constraints.
48463         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48464
48465         * malloc/obstack.c (_obstack_compat): Add initializer.
48466
48467 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48468
48469         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48470         si_trapno and add si_addr_lsb to _sifields.sigfault.
48471         (si_trapno): Remove macro.
48472         (si_addr_lsb): Define new macro.
48473         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48474
48475 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48476
48477         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48478         instead of TEST_f_l.
48479         (llrint_test_tonearest): Likewise.
48480         (llrint_test_towardzero): Likewise.
48481         (llrint_test_downward): Likewise.
48482         (llrint_test_upward): Likewise.
48483         (llround_test): Likewise.
48484
48485         * math/libm-test.inc (struct test_f_i_data): Add comment.
48486         (RUN_TEST_LOOP_f_b): New macro.
48487         (RUN_TEST_LOOP_f_b_tg): Likewise.
48488         (finite_test_data): New variable.
48489         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48490         (isfinite_test_data): New variable.
48491         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48492         (isinf_test_data): New variable.
48493         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48494         (isnan_test_data): New variable.
48495         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48496         (isnormal_test_data): New variable.
48497         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48498         (issignaling_test_data): New variable.
48499         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48500         (signbit_test_data): New variable.
48501         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48502
48503         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48504         with INVALID_EXCEPTION.
48505         (acosh_test_data): Likewise.
48506         (asin_test_data): Likewise.
48507         (atanh_test_data): Likewise.
48508         (fmod_test_data): Likewise.
48509         (log_test_data): Likewise.
48510         (log10_test_data): Likewise.
48511         (log2_test_data): Likewise.
48512         (pow_test_data): Likewise.
48513         (sqrt_test_data): Likewise.
48514         (y0_test_data): Likewise.
48515         (y1_test_data): Likewise.
48516         (yn_test_data): Likewise.
48517
48518         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48519         function contents.
48520
48521         * math/libm-test.inc (struct test_ff_i_data): New type.
48522         (RUN_TEST_LOOP_ff_i_tg): New macro.
48523         (isgreater_test_data): New variable.
48524         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48525         (isgreaterequal_test_data): New variable.
48526         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48527         (isless_test_data): New variable.
48528         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48529         (islessequal_test_data): New variable.
48530         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48531         (islessgreater_test_data): New variable.
48532         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48533         (isunordered_test_data): New variable.
48534         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48535
48536 2013-05-14  David S. Miller  <davem@davemloft.net>
48537
48538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48539
48540 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48541
48542         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48543
48544         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48545         extra_test to int.
48546         (struct test_f_i_data): Change type of max_ulp to int.
48547
48548         * math/libm-test.inc (test_ffI_f1_data): New type.
48549         (RUN_TEST_LOOP_ffI_f1): New macro.
48550         (remquo_test_data): New variable.
48551         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48552
48553         * setjmp/tst-setjmp-fp.c: New file.
48554         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48555         (link-libm): New variable.
48556         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48557
48558         * math/libm-test.inc (struct test_f_i_data): New type.
48559         (RUN_TEST_LOOP_f_i): New macro.
48560         (RUN_TEST_LOOP_f_i_tg): Likewise.
48561         (fpclassify_test_data): New variable.
48562         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48563         (ilogb_test_data): New variable.
48564         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48565
48566         * math/libm-test.inc (scalbln_test): Correct function name in END
48567         call.
48568
48569         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48570         (RUN_TEST_LOOP_fI_f1): New macro.
48571         (frexp_test_data): New variable.
48572         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48573
48574         * math/libm-test.inc (struct test_fF_f1_data): New type.
48575         (RUN_TEST_LOOP_fF_f1): New macro.
48576         (modf_test_data): New variable.
48577         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48578
48579         * math/libm-test.inc (struct test_f_f1_data): New type.
48580         (RUN_TEST_LOOP_f_f1): New macro.
48581         (gamma_test_data): New variable.
48582         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48583         (lgamma_test_data): New variable.
48584         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48585
48586 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48587
48588         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48589         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48590         (main): Comment "tls" pseudo-hwcap.
48591
48592 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48593
48594         * math/libm-test.inc (struct test_fl_f_data): New type.
48595         (RUN_TEST_LOOP_fl_f): New variable.
48596         (scalbln_test_data): New variable.
48597         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48598
48599         * math/libm-test.inc (struct test_fi_f_data): New type.
48600         (RUN_TEST_LOOP_fi_f): New macro.
48601         (ldexp_test_data): New variable.
48602         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48603         (scalbn_test_data): New variable.
48604         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48605
48606         * math/libm-test.inc (struct test_c_f_data): New type.
48607         (RUN_TEST_LOOP_c_f): New macro.
48608         (cabs_test_data): New variable.
48609         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48610         (carg_test_data): New variable.
48611         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48612         (cimag_test_data): New variable.
48613         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48614         (creal_test_data): New variable.
48615         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48616
48617         * math/libm-test.inc (struct test_if_f_data): New type.
48618         (RUN_TEST_LOOP_if_f): New macro.
48619         (jn_test_data): New variable.
48620         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48621         (yn_test_data): New variable.
48622         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48623
48624         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48625
48626 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48627
48628         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48629         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48630
48631 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48632
48633         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48634         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48635         (bench-deps): Add bench-timing.h.
48636         * benchtests-bench-skeleton.c: Include bench-timing.h.
48637         (main): Use TIMING_* macros instead of clock_gettime.
48638         * benchtests/bench-timing.h: New file.
48639
48640         [BZ #14582]
48641         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48642         Renamed from _LIB_VERSION.
48643         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48644
48645 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48646
48647         * math/libm-test.inc (struct test_fff_f_data): New type.
48648         (RUN_TEST_LOOP_fff_f): New macro.
48649         (fma_test_data): New variable.
48650         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48651         (fma_towardzero_test_data): New variable.
48652         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48653         (fma_downward_test_data): New variable.
48654         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48655         (fma_upward_test_data): New variable.
48656         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48657
48658         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48659         (struct test_c_c_data): New type.
48660         (RUN_TEST_LOOP_c_c): New macro.
48661         (cacos_test_data): New variable.
48662         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48663         (cacosh_test_data): New variable.
48664         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48665         (casin_test_data): New variable.
48666         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48667         (casinh_test_data): New variable.
48668         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48669         (catan_test_data): New variable.
48670         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48671         (catanh_test_data): New variable.
48672         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48673         (ccos_test_data): New variable.
48674         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48675         (ccosh_test_data): New variable.
48676         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48677         (cexp_test_data): New variable.
48678         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48679         (clog_test_data): New variable.
48680         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48681         (clog10_test_data): New variable.
48682         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48683         (conj_test_data): New variable.
48684         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48685         (cproj_test_data): New variable.
48686         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48687         (csin_test_data): New variable.
48688         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48689         (csinh_test_data): New variable.
48690         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48691         (csqrt_test_data): New variable.
48692         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48693         (ctan_test_data): New variable.
48694         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48695         (ctan_tonearest_test_data): New variable.
48696         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48697         (ctan_towardzero_test_data): New variable.
48698         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48699         (ctan_downward_test_data): New variable.
48700         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48701         (ctan_upward_test_data): New variable.
48702         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48703         (ctanh_test_data): New variable.
48704         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48705         (ctanh_tonearest_test_data): New variable.
48706         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48707         (ctanh_towardzero_test_data): New variable.
48708         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48709         (ctanh_downward_test_data): New variable.
48710         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48711         (ctanh_upward_test_data): New variable.
48712         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48713         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48714         of BUILD_COMPLEX.
48715
48716         * math/libm-test.inc (struct test_ff_f_data): New type.
48717         (struct test_ff_f_data_nexttoward): Likewise.
48718         (RUN_TEST_LOOP_2_f): New macro.
48719         (RUN_TEST_LOOP_ff_f): Likewise.
48720         (atan2_test_data): New variable.
48721         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48722         (copysign_test_data): New variable.
48723         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48724         (fdim_test_data): New variable.
48725         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48726         (fmax_test_data): New variable.
48727         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48728         (fmin_test_data): New variable.
48729         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48730         (fmod_test_data): New variable.
48731         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48732         (hypot_test_data): New variable.
48733         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48734         (nextafter_test_data): New variable.
48735         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48736         (nexttoward_test_data): New variable.
48737         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48738         (pow_test_data): New variable.
48739         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48740         (pow_tonearest_test_data): New variable.
48741         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48742         (pow_towardzero_test_data): New variable.
48743         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48744         (pow_downward_test_data): New variable.
48745         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48746         (pow_upward_test_data): New variable.
48747         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48748         (remainder_test_data): New variable.
48749         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48750         (scalb_test_data): New variable.
48751         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48752         * sysdeps/i386/fpu/libm-test-ulps: Update.
48753
48754 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48755
48756         * math/libm-test.inc (fma_test): Use max_value instead of local
48757         variable fltmax.
48758         (nextafter_test): Likewise.
48759
48760         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48761         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48762         (acos_downward_test_data): New variable.
48763         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48764         (acos_upward_test_data): New variable.
48765         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48766         (acosh_test_data): New variable.
48767         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48768         (asin_test_data): New variable.
48769         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48770         (asin_tonearest_test_data): New variable.
48771         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48772         (asin_towardzero_test_data): New variable.
48773         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48774         (asin_downward_test_data): New variable.
48775         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48776         (asin_upward_test_data): New variable.
48777         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48778         (asinh_test_data): New variable.
48779         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48780         (atan_test_data): New variable.
48781         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48782         (atanh_test_data): New variable.
48783         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48784         (cbrt_test_data): New variable.
48785         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48786         (ceil_test_data): New variable.
48787         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48788         (cos_test_data): New variable.
48789         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48790         (cos_tonearest_test_data): New variable.
48791         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48792         (cos_towardzero_test_data): New variable.
48793         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48794         (cos_downward_test_data): New variable.
48795         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48796         (cos_upward_test_data): New variable.
48797         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48798         (cosh_test_data): New variable.
48799         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48800         (cosh_tonearest_test_data): New variable.
48801         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48802         (cosh_towardzero_test_data): New variable.
48803         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48804         (cosh_downward_test_data): New variable.
48805         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48806         (cosh_upward_test_data): New variable.
48807         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48808         (erf_test_data): New variable.
48809         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48810         (erfc_test_data): New variable.
48811         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48812         (exp_test_data): New variable.
48813         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48814         (exp_tonearest_test_data): New variable.
48815         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48816         (exp_towardzero_test_data): New variable.
48817         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48818         (exp_downward_test_data): New variable.
48819         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48820         (exp_upward_test_data): New variable.
48821         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48822         (exp10_test_data): New variable.
48823         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48824         (exp2_test_data): New variable.
48825         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48826         (expm1_test_data): New variable.
48827         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48828         (fabs_test_data): New variable.
48829         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48830         (floor_test_data): New variable.
48831         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48832         (j0_test_data): New variable.
48833         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48834         (j1_test_data): New variable.
48835         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48836         (log_test_data): New variable.
48837         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48838         (log10_test_data): New variable.
48839         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48840         (log1p_test_data): New variable.
48841         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48842         (log2_test_data): New variable.
48843         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48844         (logb_test_data): New variable.
48845         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48846         (logb_downward_test_data): New variable.
48847         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48848         (nearbyint_test_data): New variable.
48849         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48850         (rint_test_data): New variable.
48851         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48852         (rint_tonearest_test_data): New variable.
48853         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48854         (rint_towardzero_test_data): New variable.
48855         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48856         (rint_downward_test_data): New variable.
48857         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48858         (rint_upward_test_data): New variable.
48859         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48860         (round_test_data): New variable.
48861         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48862         (sin_test_data): New variable.
48863         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48864         (sin_tonearest_test_data): New variable.
48865         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48866         (sin_towardzero_test_data): New variable.
48867         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48868         (sin_downward_test_data): New variable.
48869         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48870         (sin_upward_test_data): New variable.
48871         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48872         (sinh_test_data): New variable.
48873         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48874         (sinh_tonearest_test_data): New variable.
48875         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48876         (sinh_towardzero_test_data): New variable.
48877         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48878         (sinh_downward_test_data): New variable.
48879         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48880         (sinh_upward_test_data): New variable.
48881         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48882         (sqrt_test_data): New variable.
48883         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48884         (tan_test_data): New variable.
48885         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48886         (tan_tonearest_test_data): New variable.
48887         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48888         (tan_towardzero_test_data): New variable.
48889         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48890         (tan_downward_test_data): New variable.
48891         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48892         (tan_upward_test_data): New variable.
48893         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48894         (tanh_test_data): New variable.
48895         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48896         (tgamma_test_data): New variable.
48897         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48898         (trunc_test_data): New variable.
48899         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48900         (y0_test_data): New variable.
48901         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48902         (y1_test_data): New variable.
48903         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48904         (significand_test_data): New variable.
48905         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48906
48907 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48908
48909         [BZ #12387]
48910         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48911
48912 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48913
48914         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48915
48916 2013-05-10  Andreas Jaeger  <aj@suse.de>
48917
48918         [BZ #15448]
48919         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48920         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48921
48922 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48923
48924         * math/gen-libm-test.pl (adjust_arg): New function.
48925         (special_functions): Handle generating output in both functions
48926         and arrays.
48927         (parse_args): Likewise.
48928         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48929         $in_func argument to parse_args.
48930         * math/libm-test.inc (struct test_f_f_data): New type.
48931         (IF_ROUND_INIT_): New macro.
48932         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48933         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48934         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48935         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48936         (ROUND_RESTORE_): Likewise.
48937         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48938         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48939         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48940         (ROUND_RESTORE_FE_UPWARD): Likewise.
48941         (RUN_TEST_LOOP_f_f): New macro.
48942         (acos_test_data): New variable.
48943         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48944         (acos_tonearest_test_data): New variable.
48945         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48946
48947 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48948
48949         * benchtests/bench-skeleton.c (startup): Fix coding style.
48950
48951 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48952
48953         [BZ #6809]
48954         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48955         negative infinity argument.
48956         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48957         negative infinity argument.
48958         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48959         negative infinity argument.
48960         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48961         domain errors.
48962
48963 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48964
48965         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48966         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48967         * iconv/iconv_prog.c (main): Likewise.
48968         * locale/programs/charmap-dir.c (charmap_readdir)
48969         (fopen_uncompressed): Likewise.
48970         * locale/programs/locfile.c (siblings_uncached)
48971         (write_locale_data): Use lstat64 instead of lstat.
48972         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48973         stat.
48974
48975 2013-05-10  Andreas Jaeger  <aj@suse.de>
48976
48977         [BZ #15395]
48978         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48979         localization.
48980         Include <locale.h>.
48981
48982 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48983
48984         * elf/dl-close.c (_dl_close_worker): Add comments.
48985
48986 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48987
48988         [BZ #15359]
48989         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48990         high part of pi/2.
48991         (__ieee754_rem_pio2l): Update comments.
48992
48993         [BZ #15429]
48994         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48995         high part of pi/2.
48996         (__ieee754_rem_pio2l): Update comments.
48997
48998         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48999         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
49000
49001         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
49002         M_PI_4l.
49003
49004         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
49005         (M_PI_34_LOG10El): Likewise.
49006         (M_PI2_LOG10El): Likewise.
49007         (M_PI4_LOG10El): Likewise.
49008         (M_PI_LOG10El): Likewise.
49009
49010 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49011
49012         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49013
49014 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
49015
49016         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
49017         (MINUS_ZERO_INIT): Likewise.
49018         (PLUS_INFTY_INIT): Likewise.
49019         (MINUS_INFTY_INIT): Likewise.
49020         (QNAN_VALUE_INIT): Likewise.
49021         (MAX_VALUE_INIT): Likewise.
49022         (MIN_VALUE_INIT): Likewise.
49023         (MIN_SUBNORM_VALUE_INIT): Likewise.
49024         (plus_zero): Initialize with PLUS_ZERO_INIT.
49025         (minus_zero): Initialize with MINUS_ZERO_INIT.
49026         (plus_infty): Initialize with PLUS_INFTY_INIT.
49027         (minus_infty): Initialize with MINUS_INFTY_INIT.
49028         (qnan_value): Initialize with QNAN_VALUE_INIT.
49029         (max_value): Initialize with MAX_VALUE_INIT.
49030         (min_value): Initialize with MIN_VALUE_INIT.
49031         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
49032
49033         * math/libm-test.inc (RUN_TEST_if_f): New macro.
49034         (jn_test): Use TEST_if_f instead of TEST_ff_f.
49035         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
49036         (yn_test): Use TEST_if_f instead of TEST_ff_f.
49037
49038         * math/libm-test.inc (RUN_TEST_f_f): New macro.
49039         (RUN_TEST_2_f): Likewise.
49040         (RUN_TEST_ff_f): Likewise.
49041         (RUN_TEST_fi_f): Likewise.
49042         (RUN_TEST_fl_f): Likewise.
49043         (RUN_TEST_fff_f): Likewise.
49044         (RUN_TEST_c_f): Likewise.
49045         (RUN_TEST_f_f1): Likewise.
49046         (RUN_TEST_fF_f1): Likewise.
49047         (RUN_TEST_fI_f1): Likewise.
49048         (RUN_TEST_ffI_f1): Likewise.
49049         (RUN_TEST_c_c): Likewise.
49050         (RUN_TEST_cc_c): Likewise.
49051         (RUN_TEST_f_i): Likewise.
49052         (RUN_TEST_f_i_tg): Likewise.
49053         (RUN_TEST_ff_i_tg): Likewise.
49054         (RUN_TEST_f_b): Likewise.
49055         (RUN_TEST_f_b_tg): Likewise.
49056         (RUN_TEST_f_l): Likewise.
49057         (RUN_TEST_f_L): Likewise.
49058         (RUN_TEST_sincos): Likewise.
49059         * math/gen-libm-test.pl (new_test): Take new argument to indicate
49060         whether to show exceptions.  Do not include ");\n" in return
49061         value.
49062         (special_functions): Output call to RUN_TEST_sincos instead of
49063         check_float calls.  Update calls to new_test.
49064         (parse_args): Output call to single RUN_TEST_* macro instead of
49065         check_* calls and other assignments.  Update calls to new_test.
49066
49067         [BZ #2546]
49068         [BZ #2560]
49069         [BZ #5159]
49070         [BZ #15426]
49071         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
49072         input to result for tgamma overflow.
49073         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
49074         (gamma_coeff): New variable.
49075         (NCOEFF): New macro.
49076         (gamma_positive): New function.
49077         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
49078         underflow here.  Use gamma_positive instead of exp (lgamma) for
49079         other arguments.
49080         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
49081         (gamma_coeff): New variable.
49082         (NCOEFF): New macro.
49083         (gammaf_positive): New function.
49084         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
49085         underflow here.  Use gamma_positive instead of exp (lgamma) for
49086         other arguments.
49087         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
49088         (gamma_coeff): New variable.
49089         (NCOEFF): New macro.
49090         (gammal_positive): New function.
49091         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
49092         underflow here.  Use gamma_positive instead of exp (lgamma) for
49093         other arguments.
49094         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
49095         (gamma_coeff): New variable.
49096         (NCOEFF): New macro.
49097         (gammal_positive): New function.
49098         (__ieee754_gammal_r): Handle positive infinity, overflow and
49099         underflow here.  Handle NaN the same as positive infinity.  Remove
49100         check x < 0xffffffff for negative integers.  Use gamma_positive
49101         instead of exp (lgamma) for other arguments.
49102         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
49103         (gamma_coeff): New variable.
49104         (NCOEFF): New macro.
49105         (gammal_positive): New function.
49106         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
49107         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
49108         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
49109         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
49110         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
49111         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
49112         * sysdeps/generic/math_private.h (__gamma_productf): New
49113         prototype.
49114         (__gamma_product): Likewise.
49115         (__gamma_productl): Likewise.
49116         * math/Makefile (libm-calls): Add gamma_product.
49117         * math/libm-test.inc (tgamma_test): Add more tests.
49118         * sysdeps/i386/fpu/libm-test-ulps: Update.
49119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49120
49121 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
49122
49123         * benchtests/bench-skeleton.c (main): Preheat CPU.
49124
49125 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
49126
49127         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
49128
49129 2013-05-07  Roland McGrath  <roland@hack.frob.com>
49130
49131         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
49132         and _dl_skip_args_internal.
49133
49134 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
49135
49136         * manual/message.texi (Message Translation): Talk about users.
49137         Message to key mapping impacts design.
49138
49139 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49140
49141         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
49142
49143         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
49144
49145         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
49146         * sysdeps/wordsize-64/glob64.c: ... here.
49147
49148         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
49149         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
49150         New macros.
49151
49152         * debug/getlogin_r_chk.c: Moved to ...
49153         * login/getlogin_r_chk.c: ... here.
49154         * debug/Makefile (routines): Move getlogin_r_chk to ...
49155         * login/Makefile (routines): ... here.
49156         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
49157         * login/Versions (libc: GLIBC_2.4): ... here.
49158
49159         * io/poll.c (__poll): Renamed from poll.
49160         Add libc_hidden_def.
49161         (poll): Define as weak alias.
49162
49163         * debug/ptsname_r_chk.c: Moved to ...
49164         * login/ptsname_r_chk.c: ... here.
49165         * debug/Makefile (routines): Move ptsname_r_chk to ...
49166         * login/Makefile (routines): ... here.
49167         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
49168         * login/Versions (libc: GLIBC_2.4): ... here.
49169
49170         * posix/getlogin.c: Moved to ...
49171         * login/getlogin.c: ... here.
49172         * posix/getlogin_r.c: Moved to ...
49173         * login/getlogin_r.c: ... here.
49174         * posix/getlogin_r.c: Moved to ...
49175         * login/getlogin_r.c: ... here.
49176         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
49177         * login/Makefile (routines): ... here.
49178         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
49179         * login/Versions (libc: GLIBC_2.0): ... here.
49180
49181         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
49182         (setrlimit): Define as weak alias.
49183
49184         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
49185         Call __ names for open, ftruncate, and close.
49186         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
49187         (truncate): Define as weak alias.
49188
49189 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
49190
49191         * math/gen-libm-test.pl (parse_args): Initialize x before each
49192         test of frexp, modf and remquo.
49193
49194         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
49195         test signgam value.
49196
49197 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49198
49199         [BZ #15418]
49200         [BZ #15419]
49201         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49202         internal tests.
49203         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49204
49205 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49206
49207         * elf/dl-writev.h: New file.
49208         * elf/dl-misc.c: Include it.
49209         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49210         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49211
49212 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49213
49214         * math/libm-test.inc (noXFails): Remove variable.
49215         (noXPasses): Likewise.
49216         (BUILD_COMPLEX_INT): Remove macro.
49217         (print_screen): Remove xfail argument.
49218         (print_screen_max_error): Likewise.
49219         (update_stats): Likewise.
49220         (print_max_error): Likewise.  Update calls to other affected
49221         functions.
49222         (print_complex_max_error): Likewise.
49223         (test_single_exception): Update calls to print_screen.
49224         (test_single_errno): Likewise.
49225         (check_float_internal): Remove xfail argument.  Update calls to
49226         other affected functions.
49227         (check_float): Likewise.
49228         (check_complex): Likewise.
49229         (check_int): Likewise.
49230         (check_long): Likewise.
49231         (check_bool): Likewise.
49232         (check_longlong): Likewise.
49233         (main): Don't print noXFails and noXPasses.
49234         * math/gen-libm-test.pl (top level): Don't mention expected
49235         failure handling in comment.
49236         (new_test): Don't handle expected failures.
49237         (parse_args): Don't mention expected failure handling in comment.
49238         (generate_testfile): Don't handle expected failures.
49239         (parse_ulps): Likewise.
49240         (print_ulps_file): Likewise.
49241         (get_failure): Remove function.
49242         (output_test): Don't handle expected failures.
49243         * make/README.libm-test: Don't mention expected failure handling.
49244
49245         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49246         (minus_zero): Likewise.
49247         (plus_infty): Likewise.
49248         (minus_infty): Likewise.
49249         (qnan_value): Likewise.
49250         (max_value): Likewise.
49251         (min_value): Likewise.
49252         (min_subnorm_value): Likewise.
49253         (initialize): Do not initialize those variables dynamically.
49254
49255 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49256
49257         * io/open.c (__open_2): Moved to ...
49258         * io/open_2.c: ... this new file.
49259         * io/open64.c (__open64_2): Moved to ...
49260         * io/open64_2.c: ... this new file.
49261         * io/openat.c (__openat_2): Moved to ...
49262         * io/openat_2.c: ... this new file.
49263         * io/openat64.c (__openat64_2): Moved to ...
49264         * io/openat64_2.c: ... this new file.
49265         * io/Makefile (routines): Add them.
49266         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49267         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49268         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49269         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49270         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49271         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49272         (__openat64): Add hidden_ver.
49273         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49274         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49275
49276         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49277         Separately conditionalize setting of GLRO(dl_sysinfo) so
49278         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49279         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49280
49281 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49282
49283         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49284         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49285         definition.
49286         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49287         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49288         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49289         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49290         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49291
49292 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49293
49294         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49295         test signgam value.
49296
49297         * math/libm-test.inc (hypot_test): Do not use
49298         IGNORE_ZERO_INF_SIGN.
49299
49300 2013-05-03  Andreas Jaeger  <aj@suse.de>
49301
49302         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49303         Linux 3.9.
49304         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49305         (PF_MAX): Adjust for VSOCK change.
49306
49307 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49308
49309         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49310
49311 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49312
49313         [BZ #15264]
49314         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49315         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49316         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49317
49318 2013-05-02  David S. Miller  <davem@davemloft.net>
49319
49320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49321
49322 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49323
49324         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49325
49326 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49327
49328         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49329
49330 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49331
49332         [BZ #14952]
49333         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49334         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49335         Use __attribute__ ((__gnu_inline__)).
49336         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49337         Don't use __attribute__ ((__gnu_inline__)).
49338
49339 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49340
49341         [BZ #15423]
49342         * math/s_catan.c (__catan): Handle small real or imaginary part of
49343         input specially to avoid spurious underflow.
49344         * math/s_catanf.c (__catanf): Likewise.
49345         * math/s_catanh.c (__catanh): Likewise.
49346         * math/s_catanhf.c (__catanhf): Likewise.
49347         * math/s_catanhl.c (__catanhl): Likewise.
49348         * math/s_catanl.c (__catanl): Likewise.
49349         * math/libm-test.inc (catan_test): Add more tests.
49350         (catanh_test): Likewise.
49351         * sysdeps/i386/fpu/libm-test-ulps: Update.
49352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49353
49354 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49355
49356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49357
49358 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49359
49360         [BZ #15416]
49361         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49362         accurately for denominator in atan2.
49363         * math/s_catanf.c (__catanf): Likewise.
49364         * math/s_catanh.c (__catanh): Likewise.
49365         * math/s_catanhf.c (__catanhf): Likewise.
49366         * math/s_catanhl.c (__catanhl): Likewise.
49367         * math/s_catanl.c (__catanl): Likewise.
49368         * math/libm-test.inc (catan_test): Add more tests.
49369         (catanh_test): Likewise.
49370         * sysdeps/i386/fpu/libm-test-ulps: Update.
49371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49372
49373 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49374
49375         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49376
49377         * benchtests/Makefile (bench): Remove slow benchmarks.
49378         * benchtests/atan-inputs: Add slow benchmark inputs.
49379         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49380         (BENCH_FUNC): Accept variant offset.
49381         (VARIANT): Define.
49382         * benchtests/bench-skeleton.c (main): Run benchmark for each
49383         variant.
49384         * benchtests/cos-inputs: Add slow benchmark inputs.
49385         * benchtests/exp-inputs: Likewise.
49386         * benchtests/pow-inputs: Likewise.
49387         * benchtests/sin-inputs: Likewise.
49388         * benchtests/slowatan-inputs: Remove.
49389         * benchtests/slowatan.c: Remove.
49390         * benchtests/slowcos-inputs: Remove.
49391         * benchtests/slowcos.c: Remove.
49392         * benchtests/slowexp-inputs: Remove.
49393         * benchtests/slowexp.c: Remove.
49394         * benchtests/slowpow-inputs: Remove.
49395         * benchtests/slowpow.c: Remove.
49396         * benchtests/slowsin-inputs: Remove.
49397         * benchtests/slowsin.c: Remove.
49398         * benchtests/slowtan-inputs: Remove.
49399         * benchtests/slowtan.c: Remove.
49400         * benchtests/tan-inputs: Add slow benchmark inputs.
49401         * scripts/bench.pl: Parse comments and directives.
49402
49403         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49404         in CPPFLAGS.
49405         ($(objpfx)bench-%.c): Remove *-ITER.
49406         * benchtests/bench-modf.c: Remove definition of ITER.
49407         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49408         (main): Loop for DURATION seconds instead of fixed number of
49409         iterations.
49410         * scripts/bench.pl: Don't expect iterations in parameters.
49411
49412 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49413
49414         * io/fchdir.c (__fchdir): Renamed from fchdir.
49415         (fchdir): Define as weak alias.
49416
49417 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49418
49419         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49420         (ERRNO_EDOM): Likewise.
49421         (ERRNO_ERANGE): Likewise.
49422         (noErrnoTests): New variable.
49423         (init_max_error): Set errno to 0.
49424         (test_single_errno): New function.
49425         (test_errno): Likewise.
49426         (check_float_internal): Call test_errno.  Set errno to 0.
49427         (check_complex): Refer to errno tests in comment.
49428         (check_int): Call test_errno.  Set errno to 0.
49429         (check_long): Likewise.
49430         (check_bool): Likewise.
49431         (check_longlong): Likewise.
49432         (cos_test): Use ERRNO_* flags for errno tests instead of
49433         check_int.
49434         (expm1_test): Likewise.
49435         (fmod_test): Likewise.
49436         (ilogb_test): Likewise.
49437         (lgamma_test): Likewise.
49438         (pow_test): Likewise.
49439         (remainder_test): Likewise.
49440         (sin_test): Likewise.
49441         (tan_test): Likewise.
49442         (yn_test): Likewise.
49443         (initialize): Set errno to 0.
49444         (main): Print number of errno tests.
49445         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49446
49447 2013-04-29  Andreas Jaeger  <aj@suse.de>
49448
49449         [BZ #15084]
49450         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49451         and RES_USEVC.
49452
49453         [BZ #15085]
49454         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49455         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49456         unimplemented.
49457
49458         [BZ #15380]
49459         * stdlib/random.c (__initstate): Return NULL if
49460         __initstate fails.
49461
49462         [BZ #15086]
49463         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49464         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49465         RES_SNGLKUPREOP.
49466
49467 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49468
49469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49470
49471 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49472
49473         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49474         of individual tests.
49475         (casin_test): Likewise.
49476         (casinh_test): Likewise.
49477
49478 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49479
49480         [BZ #15409]
49481         * math/s_catan.c (__catan): Handle arguments with large real or
49482         imaginary part separately without squaring.
49483         * math/s_catanf.c (__catanf): Likewise.
49484         * math/s_catanh.c (__catanh): Likewise.
49485         * math/s_catanhf.c (__catanhf): Likewise.
49486         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49487         and redefine.
49488         (__catanhl): Handle arguments with large real or imaginary part
49489         separately without squaring.
49490         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49491         and redefine.
49492         (__catanl): Handle arguments with large real or imaginary part
49493         separately without squaring.
49494         * math/libm-test.inc (catan_test): Add more tests.
49495         (catanh_test): Likewise.
49496         * sysdeps/i386/fpu/libm-test-ulps: Update.
49497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49498
49499 2013-04-27  Andreas Jaeger  <aj@suse.de>
49500
49501         [BZ #15007]
49502         * stdlib/stdlib.h: Update guards for qecvt.
49503         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49504         <stdlib.h>.
49505
49506 2013-04-27  Allan McRae  <allan@archlinux.org>
49507
49508         * sysdeps/i386/fpu/libm-test-ulps: Update.
49509
49510 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49511
49512         [BZ #15406]
49513         * math/s_catan.c: Include <float.h>.
49514         (__catan): Ensure underflow exception occurs for underflowed
49515         result.
49516         * math/s_catanf.c: Include <float.h>.
49517         (__catanf): Ensure underflow exception occurs for underflowed
49518         result.
49519         * math/s_catanh.c: Include <float.h>.
49520         (__catanh): Ensure underflow exception occurs for underflowed
49521         result.
49522         * math/s_catanhf.c: Include <float.h>.
49523         (__catanhf): Ensure underflow exception occurs for underflowed
49524         result.
49525         * math/s_catanhl.c: Include <float.h>.
49526         (__catanhl): Ensure underflow exception occurs for underflowed
49527         result.
49528         * math/s_catanl.c: Include <float.h>.
49529         (__catanl): Ensure underflow exception occurs for underflowed
49530         result.
49531         * math/libm-test.inc (catan_test): Add more tests.
49532         (catanh_test): Likewise.
49533
49534         [BZ #15405]
49535         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49536         underflowed result.
49537         * math/s_ccoshf.c (__ccoshf): Likewise.
49538         * math/s_ccoshl.c (__ccoshl): Likewise.
49539         * math/s_csin.c (__csin): Likewise.
49540         * math/s_csinf.c (__csinf): Likewise.
49541         * math/s_csinh.c (__csinh): Likewise.
49542         * math/s_csinhf.c (__csinhf): Likewise.
49543         * math/s_csinhl.c (__csinhl): Likewise.
49544         * math/s_csinl.c (__csinl): Likewise.
49545         * math/libm-test.inc (ccos_test): Add more tests.
49546         (ccosh_test): Likewise.
49547         (csin_test): Likewise.
49548         (csinh_test): Likewise.
49549
49550 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49551
49552         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49553         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49554         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49555         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49556         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49557         powerpc/power5+/fpu folders.
49558         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49559
49560
49561 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49562
49563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49564
49565 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49566
49567         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49568         additions to variable.
49569         [$(config-machine) = x86_64] (modules-names): Likewise.
49570         ($(objpfx)tst-audit3): Remove dependency.
49571         ($(objpfx)tst-audit3.out): Likewise.
49572         ($(objpfx)tst-audit4): Likewise.
49573         ($(objpfx)tst-audit4.out): Likewise.
49574         ($(objpfx)tst-audit5): Likewise.
49575         ($(objpfx)tst-audit5.out): Likewise.
49576         ($(objpfx)tst-audit6): Likewise.
49577         ($(objpfx)tst-audit6.out): Likewise.
49578         ($(objpfx)tst-audit7): Likewise.
49579         ($(objpfx)tst-audit7.out): Likewise.
49580         (tst-audit3-ENV): Remove variable.
49581         (tst-audit4-ENV): Likewise.
49582         (tst-audit5-ENV): Likewise.
49583         (tst-audit6-ENV): Likewise.
49584         (tst-audit7-ENV): Likewise.
49585         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49586         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49587         addition to variable.
49588         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49589         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49590         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49591         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49592         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49593         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49594         tst-audit3, tst-audit4 and tst-audit5.
49595         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49596         tst-audit6 and tst-audit7.
49597         [$(subdir) = elf] (modules-names): Add audit modules for those
49598         tests.
49599         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49600         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49601         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49602         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49603         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49604         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49605         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49606         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49607         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49608         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49609         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49610         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49611         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49612         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49613         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49614         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49615         Likewise.
49616         [$(subdir) = elf && $(config-cflags-avx) = yes]
49617         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49618         [$(subdir) = elf && $(config-cflags-avx) = yes]
49619         (CFLAGS-tst-auditmod4a.c): Likewise.
49620         [$(subdir) = elf && $(config-cflags-avx) = yes]
49621         (CFLAGS-tst-auditmod4b.c): Likewise.
49622         [$(subdir) = elf && $(config-cflags-avx) = yes]
49623         (CFLAGS-tst-auditmod6b.c): Likewise.
49624         [$(subdir) = elf && $(config-cflags-avx) = yes]
49625         (CFLAGS-tst-auditmod6c.c): Likewise.
49626         [$(subdir) = elf && $(config-cflags-avx) = yes]
49627         (CFLAGS-tst-auditmod7b.c): Likewise.
49628         * elf/tst-audit3.c: Move to ...
49629         * sysdeps/x86_64/tst-audit3.c: ... here.
49630         * elf/tst-audit4.c: Move to ...
49631         * sysdeps/x86_64/tst-audit4.c: ... here.
49632         * elf/tst-audit5.c: Move to ...
49633         * sysdeps/x86_64/tst-audit5.c: ... here.
49634         * elf/tst-audit6.c: Move to ...
49635         * sysdeps/x86_64/tst-audit6.c: ... here.
49636         * elf/tst-audit7.c: Move to ...
49637         * sysdeps/x86_64/tst-audit7.c: ... here.
49638         * elf/tst-auditmod3a.c: Move to ...
49639         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49640         * elf/tst-auditmod3b.c: Move to ...
49641         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49642         * elf/tst-auditmod4a.c: Move to ...
49643         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49644         * elf/tst-auditmod4b.c: Move to ...
49645         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49646         * elf/tst-auditmod5a.c: Move to ...
49647         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49648         * elf/tst-auditmod5b.c: Move to ...
49649         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49650         * elf/tst-auditmod6a.c: Move to ...
49651         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49652         * elf/tst-auditmod6b.c: Move to ...
49653         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49654         * elf/tst-auditmod6c.c: Move to ...
49655         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49656         * elf/tst-auditmod7a.c: Move to ...
49657         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49658         * elf/tst-auditmod7b.c: Move to ...
49659         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49660
49661 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49662
49663         [BZ #15366]
49664         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49665         define unconditionally.
49666         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49667         define unconditionally.
49668         (INT8_C, INT16_C, etc.): Likewise.
49669
49670 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49671
49672         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49673         __ehdr_start with hidden visibility.
49674
49675         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49676
49677 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49678
49679         * math/libm-test.inc (cos_test): Use accurate hex constants.
49680         (sincost_test): Likewise.
49681
49682 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49683
49684         * math/libm-test.inc (catan_test): Add more tests.
49685         (catanh_test): Likewise.
49686
49687         * math/s_catanf.c (__catanf): Use suffixed floating-point
49688         constants.
49689         * math/s_catanhf.c (__catanhf): Likewise.
49690         * math/s_catanhl.c (__catanhl): Likewise.
49691         * math/s_catanl.c (__catanl): Likewise.
49692
49693         [BZ #15394]
49694         * math/s_catan.c (__catan): Calculate imaginary part of result
49695         with log1p not log unless computing log of number close to 0.
49696         * math/s_catanf.c (__catanf): Likewise.
49697         * math/s_catanl.c (__catanl): Likewise.
49698         * math/s_catanh.c (__catanh): Calculate real part of result with
49699         log1p not log unless computing log of number close to 0.
49700         * math/s_catanhf.c (__catanhf): Likewise.
49701         * math/s_catanhl.c (__catanhl): Likewise.
49702         * math/libm-test.inc (catan_test): Add more tests.
49703         (catanh_test): Likewise.
49704         * sysdeps/i386/fpu/libm-test-ulps: Update.
49705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49706
49707 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49708
49709         * benchtests/Makefile: Mention files in which fast and slow
49710         paths of math functions are implemented.
49711
49712 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49713
49714         * sysdeps/posix/timespec_get.c: New file.
49715
49716 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49717
49718         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49719         POWER.
49720         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49721         for POWER.
49722         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49723         powerpc/power5/fpu folders.
49724         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49725         * benchtests/Makefile: Add modf testcase.
49726         * benchtests/bench-modf.c: New file: Benchmark test for mo
49727
49728 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49729
49730         [BZ #14888]
49731         * time/Makefile (tests): Add tst-strptime-whitespace.
49732         * time/strptime_l.c (get_number): Use ISSPACE.
49733         (__strptime_internal): Likewise.
49734         * time/tst-strptime-whitespace.c: New test case.
49735
49736 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49737
49738         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49739         member.
49740         (_nss_files_init): Set it here.
49741
49742 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49743
49744         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49745         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49746         unsigned.
49747
49748 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49749
49750         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49751
49752 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49753
49754         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49755         size just once.
49756
49757 2013-04-21  David S. Miller  <davem@davemloft.net>
49758
49759         * po/ru.po: Update Russion translation from translation project.
49760
49761 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49762
49763         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49764         and setfsgid.
49765
49766 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49767
49768         * configure.in: Remove i386 configure warning. Remove i386 case.
49769         * configure: Regenerate.
49770         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49771         Add example to error message.
49772         * sysdeps/i386/configure: Regenerate.
49773
49774 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49775
49776         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49777         slowtan.
49778         * benchtests/cos-inputs: New file.
49779         * benchtests/slowcos-inputs: New file.
49780         * benchtests/slowcos.c: New file.
49781         * benchtests/slowtan-inputs: New file.
49782         * benchtests/slowtan.c: New file.
49783         * benchtests/tan-inputs: New file.
49784
49785 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49786
49787         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49788         considered kosher.
49789
49790 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49791
49792         * benchtests/Makefile: Include cppflags-iterator.mk to add
49793         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49794
49795         * Makefile.in (bench-clean): New target.
49796         * benchtests/Makefile (bench-clean): Likewise.
49797
49798 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49799
49800         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49801
49802 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49803
49804         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49805
49806 2013-04-15  Andreas Schwab  <schwab@suse.de>
49807
49808         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49809         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49810         * nscd/pwdcache.c (cache_addpw): Likewise.
49811         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49812         more than recsize.
49813
49814 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49815
49816         * benchtests/Makefile (bench): Write all output to
49817         bench-out.tmp together.
49818
49819 2013-04-15  Andreas Schwab  <schwab@suse.de>
49820
49821         * nscd/nscd.c (main): Don't fork again after closing files.
49822
49823 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49824
49825         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49826
49827         * benchtests/Rules (bench-deps): Collect dependencies into a
49828         single variable.  Add Makefile to dependencies.
49829         ($(objpfx)bench-%.c): Depend on bench-deps.
49830
49831 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49832             Xavier Roche  <roche+kml2@exalead.com>
49833
49834         [BZ #15361]
49835         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49836         just that it's a file descriptor.
49837         * manual/llio.texi (Synchronizing AIO Operations): Update description
49838         for EBADF error from aio_fsync.
49839
49840 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49841
49842         * Rules (bench): Move target definition...
49843         * benchtests/Makefile: ... here.
49844
49845 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49846
49847         * math/libm-test.inc (cos_test): Fix PI/2 test.
49848         (sincos_test): Likewise.
49849         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49850         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49851
49852 2013-04-11  Andreas Schwab  <schwab@suse.de>
49853
49854         [BZ #13988]
49855         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49856         accept exponent character only when digits were seen.
49857         * stdio-common/Makefile (tests): Add bug26.
49858         * stdio-common/bug26.c: New file.
49859
49860         [BZ #14293]
49861         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49862         non-freeable.
49863
49864 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49865
49866         * Makeconfig (rtld-prefix): Define built linker prefix.
49867         * Rules (run-bench): Use it.
49868         * math/Makefile (run-regen-ulps): Likewise.
49869
49870         * Rules (bench): Remove eval.
49871
49872 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49873             Roland McGrath  <roland@hack.frob.com>
49874             Ondrej Bilka  <neleai@seznam.cz>
49875
49876         [BZ #15346]
49877         * time/getdate.c: Include ctype.h and alloca.h.
49878         (__getdate_r): Trim leading and trailing spaces of input.
49879         * time/tst-getdate.c (tests): Add tests with leading and
49880         trailing spaces.
49881
49882 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49883
49884         [BZ #14280]
49885         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49886         when computing value.
49887
49888 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49889
49890         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49891         Use testrun.sh to run libm tests.
49892
49893         [BZ #15309]
49894         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49895
49896 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49897
49898         [BZ #15264]
49899         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49900
49901 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49902
49903         * Makefile.in (regen-ulps): New target.
49904         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49905         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49906         [ifneq (no,$(PERL)] (regen-ulps): New target.
49907         [ifeq (no,$(PERL)] (regen-ulps): New target.
49908         * math/libm-test.inc (ulps_file_name): Define.
49909         (output_dir): New variable.
49910         (options): Add "output-dir" option.
49911         (parse_opt): Handle 'o' case.
49912         (main): If output_dir is non-NULL use it as a prefix
49913         otherwise use "".
49914         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49915
49916 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49917
49918         [BZ #10060, #10062]
49919         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49920         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49921         fail configure if __sync_val_compare_and_swap is not inlined.
49922         * sysdeps/i386/configure: Regenerate.
49923         * configure.in: Build for i686 when configured for i386.
49924         * configure: Regenerate.
49925         * README: Remove i386 reference.
49926
49927 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49928
49929         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49930         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49931
49932 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49933
49934         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49935         (lmsnanval): New variables.
49936         (F): Add conversion tests.
49937         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49938         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49939
49940         * stdio-common/tstdiomisc.c (F): Properly collect individual
49941         tests' results.
49942
49943         [BZ #14686, #15336]
49944         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49945         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49946         Instead, use input NaN values or generate a qNaN by arithmetic
49947         operation.  Also fix bugs to comply with the standard.
49948         * math/libm-test.inc (remainder_test): Add more tests.
49949
49950         [BZ #15335, #15342]
49951         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49952         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49953         input NaN values or generate a qNaN by arithmetic operation.
49954
49955         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49956         unreachable code.
49957
49958         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49959         definitions.
49960
49961 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49962
49963         [BZ #14478]
49964         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49965         underflowed result.
49966         * math/s_cexpf.c (__cexpf): Likewise.
49967         * math/s_cexpl.c (__cexpl): Likewise.
49968         * math/libm-test.inc (cexp_test): Add more tests.
49969
49970 2013-04-03  Andreas Schwab  <schwab@suse.de>
49971
49972         [BZ #15330]
49973         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49974         order arrays from heap if bigger than alloca cutoff.
49975
49976 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49977
49978         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49979         (SNAN_TESTS_double): Refer to GCC PR56831.
49980         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49981         GCC PR56828.
49982
49983 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49984
49985         * Rules (bench): Move bench.out after the run is complete.
49986
49987         * Rules (bench): Echo currently running benchmark.
49988
49989         * benchtests/Makefile (bench): Add atan and slowatan.
49990         * benchtests/atan-inputs: New file.
49991         * benchtests/slowatan-inputs: New file.
49992         * benchtests/slowatan.c: New file.
49993
49994         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49995         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49996         its value.
49997
49998         [BZ #15305]
49999         * sysdeps/unix/sysv/linux/kernel-features.h
50000         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
50001         __ASSUME_XFS_RESTRICTED_CHOWN.
50002         * sysdeps/unix/sysv/linux/pathconf.c
50003         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
50004         Save and restore errno.
50005
50006 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
50007
50008         [BZ #15327]
50009         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
50010         arguments using __kernel_casinh.
50011         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
50012         arguments using __kernel_casinhf.
50013         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
50014         arguments using __kernel_casinhl.
50015         * math/libm-test.inc (cacosh_test): Add more tests.
50016         * sysdeps/i386/fpu/libm-test-ulps: Update.
50017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50018
50019 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
50020
50021         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
50022         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
50023
50024         * bench/Makefile (bench): Add sin and slowsin.
50025         * benchtests/sin-inputs: New file.
50026         * benchtests/slowsin-inputs: New file.
50027         * benchtests/slowsin.c: New file.
50028
50029         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
50030         (bench): Add slowexp and slowpow.
50031         (exp-ITER): Increase iterations.
50032         (pow-ITER): Likewise.
50033         * benchtests/exp-inputs: Change input.
50034         * benchtests/pow-inputs: Likewise.
50035         * benchtests/slowexp-inputs: New file.
50036         * benchtests/slowexp.c: New file.
50037         * benchtests/slowpow-inputs: New file.
50038         * benchtests/slowpow.c: New file.
50039
50040 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50041
50042         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
50043         instructions.
50044         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
50045         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
50046         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
50047         * benchtests/Makefile: Add rint benchtest.
50048         * benchtests/rint-inputs: Input for rint benchtest.
50049
50050 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
50051
50052         * Versions.def (libm): Add GLIBC_2.18.
50053         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
50054         hidden libm prototypes.
50055         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
50056         * math/Makefile (libm-calls): Add s_issignaling.
50057         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
50058         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
50059         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
50060         declaration.
50061         * math/math.h [__USE_GNU] (issignaling): New macro.
50062         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
50063         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
50064         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
50065         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
50066         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
50067         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
50068         * manual/arith.texi (issignaling): New section.
50069         * manual/libm-err-tab.pl (@all_functions): Update comment.
50070         * math/gen-libm-test.pl (parse_args): Apply special handling for
50071         issignaling.
50072         * math/libm-test.inc (print_float, issignaling_test): New
50073         functions.
50074         (check_float_internal): Add issignaling checks.
50075         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
50076         default definition.
50077         * sysdeps/powerpc/math-tests.h: New file.
50078         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
50079         tests.
50080         * math/test-snan.c (TEST_FUNC): Likewise.
50081
50082 2013-03-30  David S. Miller  <davem@davemloft.net>
50083
50084         * po/de.po: Update from translation team.
50085
50086 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
50087
50088         [BZ #10357]
50089         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50090         imaginary part less than 1.0 and real part less than 0.5
50091         specially.
50092         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50093         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50094         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
50095         (cacos_test): Add more tests.
50096         (casin_test): Likewise.
50097         (casinh_test): Likewise.
50098         * sysdeps/i386/fpu/libm-test-ulps: Update.
50099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50100
50101 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
50102
50103         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
50104         ONE with its value.
50105
50106         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
50107         (__pow_mp): Replace ONE and MONE with their values.
50108         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50109         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
50110         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
50111         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
50112         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50113         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50114
50115         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
50116
50117         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
50118         (__pow_mp): Replace ZERO and MZERO with their values.
50119         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50120         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50121         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
50122         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
50123         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50124         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
50125         (__sqr): Likewise.
50126
50127         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
50128
50129         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
50130
50131 2013-03-28  Roland McGrath  <roland@hack.frob.com>
50132
50133         * include/stdlib.h [!SHARED] (__call_tls_dtors):
50134         Declare with __attribute__ ((weak)).
50135         * stdlib/exit.c (__libc_atexit) [!SHARED]:
50136         Call __call_tls_dtors only if it's not NULL.
50137
50138 2013-03-28  Roland McGrath  <roland@hack.frob.com>
50139
50140         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
50141         didn't do it already, then set _dl_phdr and _dl_phnum based on the
50142         magic __ehdr_start linker symbol if it's defined.
50143         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
50144         them up here if it was already done.
50145
50146         * elf/dl-support.c (_dl_phdr): Make pointer to const.
50147         (_dl_aux_init): Use const in cast when setting it.
50148         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
50149         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
50150         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
50151
50152         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
50153         Declare them here.
50154         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
50155         * csu/libc-tls.c: Nor here.
50156         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
50157
50158         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
50159         (__libc_message): Never call vsyslog.
50160
50161 2013-03-28  Alan Modra  <amodra@gmail.com>
50162
50163         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
50164         Define as empty.
50165         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
50166         Likewise.
50167
50168 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50169
50170         [BZ #15214]
50171         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
50172         underflow.
50173         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50174
50175 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50176
50177         [BZ #15304]
50178         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
50179         Don't add gid passed as argument.
50180
50181         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
50182
50183 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
50184
50185         [BZ #15307]
50186         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50187         imaginary part between 1.0 and 1.5 and real part less than 0.5
50188         specially.
50189         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50190         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50191         * math/libm-test.inc (cacos_test): Add more tests.
50192         (casin_test): Likewise.
50193         (casinh_test): Likewise.
50194         * sysdeps/i386/fpu/libm-test-ulps: Update.
50195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50196
50197 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50198
50199         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
50200         constants.
50201         (norm): Likewise.
50202         (denorm): Likewise.
50203         (__dbl_mp): Likewise.
50204         (add_magnitudes): Likewise.
50205         (sub_magnitudes): Likewise.
50206         (__add): Likewise.
50207         (__sub): Likewise.
50208         (__mul): Likewise.
50209         (__sqr): Likewise.
50210         (__inv): Likewise.
50211         (__dvd): Likewise.
50212
50213         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50214         commented code.
50215         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50216         (__dubcos): Likewise.
50217         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50218         (__ieee754_acos): Likewise.
50219         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50220         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50221         (__exp1): Likewise.
50222         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50223         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50224         (log1): Likewise.
50225         (my_log2): Likewise.
50226         (checkint): Likewise.
50227         * sysdeps/ieee754/dbl-64/e_remainder.c
50228         (__ieee754_remainder): Likewise.
50229         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50230         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50231         (bsloww): Likewise.
50232         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50233
50234         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50235         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50236         MANTISSA_STORE_T to store computations on mantissa.  Use
50237         macros for rounding and division.
50238         (denorm): Likewise.
50239         (__dbl_mp): Likewise.
50240         (add_magnitudes): Likewise.
50241         (sub_magnitudes): Likewise.
50242         (__mul): Likewise.
50243         (__sqr): Likewise.
50244         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50245         powers of two in terms of TWOPOW macro.
50246         (mp_no): Make type of mantissa as MANTISSA_T.
50247         [!RADIXI]: Define RADIXI.
50248         [!TWO52]: Define TWO52.
50249         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50250
50251 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50252
50253         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50254         llroundl symbol when building for PPC32.
50255
50256 2013-03-24  Mark H Weaver  <mhw@netris.org>
50257
50258         * manual/arith.texi (Normalization Functions): Fix prototypes for
50259         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50260
50261 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50262
50263         [BZ #13889]
50264         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50265         high value to check if expl overflow.
50266         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50267         to check for underflow and overflow.
50268         * math/libm-test.inc: Add exp test.
50269
50270 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50271
50272         [BZ #11120]
50273         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50274         with NOT_IN_libc.
50275
50276 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50277
50278         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50279         symbol.
50280
50281 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50282
50283         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50284         wrap blocks consisting of several statements.
50285
50286         * sysdeps/generic/math-tests.h: New file.
50287         * sysdeps/i386/fpu/math-tests.h: Likewise.
50288         * math/test-snan.c: Include it.
50289         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50290
50291 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50292
50293         [BZ #15285]
50294         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50295         (__ieee754_j0l): Do not improve calculations using cos of twice
50296         input for inputs above LDBL_MAX / 2.0L.
50297         (__ieee754_y0l): Likewise.
50298         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50299         (__ieee754_j1l): Do not improve calculations using cos of twice
50300         input for inputs above LDBL_MAX / 2.0L.
50301         (__ieee754_y1l): Likewise.
50302         * math/libm-test.inc (j0_test): Add another test.
50303         (j1_test): Likewise.
50304         (y0_test): Likewise.
50305         (y1_test): Likewise.
50306         * sysdeps/i386/fpu/libm-test-ulps: Update.
50307
50308 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50309
50310         * Rules ($(objpfx)bench-%.c): Include code from a C source
50311         file.
50312
50313 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50314
50315         [BZ #15287]
50316         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50317         imaginary part 1.0 and real part less than 0.5 specially.
50318         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50319         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50320         * math/libm-test.inc (cacos_test): Add more tests.
50321         (casin_test): Likewise.
50322         (casinh_test): Likewise.
50323         * sysdeps/i386/fpu/libm-test-ulps: Update.
50324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50325
50326 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50327
50328         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50329         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50330
50331 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50332
50333         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50334         * config.make.in (config-cflags-sse4): Remove variable.
50335         (config-cflags-avx): Likewise.
50336         (config-cflags-sse2avx): Likewise.
50337         (config-cflags-novzeroupper): Likewise.
50338         (config-asflags-i686): Likewise.
50339         (have-mfma4): Likewise.
50340         (have-as-vis3): Likewise.
50341         (MIG): Likewise.
50342         * configure.in (MIG): Do not AC_SUBST.
50343         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50344         (libc_cv_cc_sse4): Do not AC_SUBST.
50345         (libc_cv_cc_avx): Likewise.
50346         (libc_cv_cc_sse2avx): Likewise.
50347         (libc_cv_cc_novzeroupper): Likewise.
50348         (libc_cv_cc_fma4): Likewise.
50349         (libc_cv_as_i686): Likewise.
50350         (libc_cv_sparc_as_vis3): Likewise.
50351         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50352         LIBC_CONFIG_VAR.
50353         (config-asflags-i686): Likewise.
50354         (config-cflags-avx): Likewise.
50355         (config-cflags-sse2avx): Likewise.
50356         (have-mfma4): Likewise.
50357         (config-cflags-novzeroupper): Likewise.
50358         * sysdeps/mach/configure.in (MIG): Likewise.
50359         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50360         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50361         LIBC_CONFIG_VAR.
50362         (config-cflags-avx): Likewise.
50363         (config-cflags-sse2avx): Likewise.
50364         (have-mfma4): Likewise.
50365         (config-cflags-novzeroupper): Likewise.
50366         * configure: Regenerated.
50367         * sysdeps/i386/configure: Likewise.
50368         * sysdeps/mach/configure: Likewise.
50369         * sysdeps/sparc/configure: Likewise.
50370         * sysdeps/x86_64/configure: Likewise.
50371
50372 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50373
50374         [BZ #14812]
50375         * locale/programs/localedef.c (options): Put N_ translation marker
50376         on argument names, not just descriptions.
50377
50378 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50379
50380         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50381
50382 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50383
50384         [BZ #14176]
50385         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50386
50387 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50388
50389         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50390         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50391         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50392         [!BEFORE_ABORT] (before_abort): New function.
50393         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50394         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50395         (writev_for_fatal): New function.
50396         (WRITEV_FOR_FATAL): New macro; call that.
50397         (backtrace_and_maps): New function.
50398         (BEFORE_ABORT): New macro; call that.
50399         (struct str_list): Type removed.
50400         (__libc_message, __libc_fatal): Functions removed.
50401         Include <sysdeps/posix/libc_fatal.c> instead.
50402
50403 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50404
50405         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50406         constants.
50407         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50408         double constants.
50409
50410 2013-03-19  Andreas Schwab  <schwab@suse.de>
50411
50412         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50413         * sysdeps/gnu/configure: Regenerate.
50414
50415         * configure.in: Substitute libc_cv_rtlddir.
50416         * configure: Regenerate.
50417         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50418         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50419         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50420         * elf/Makefile (install-others, CFLAGS-interp.c)
50421         (ldso_install, common-ldd-rewrite): Likewise.
50422         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50423         $(inst_slibdir)/$(rtld-installed-name).
50424         * scripts/rellns-sh: Add -p option.
50425         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50426         for source.
50427
50428 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50429
50430         * manual/nptl.texi: Renamed to ...
50431         * manual/threads.texi: ... this.
50432         * manual/Makefile (chapters): Update.
50433
50434 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50435
50436         [BZ #14812]
50437         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50438         on argument names, not just descriptions.
50439         * malloc/memusagestat.c (options): Likewise.
50440         * nss/getent.c (options): Likewise.
50441
50442 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50443
50444         [BZ #14812]
50445         * iconv/iconv_prog.c (options): Put N_ translation marker
50446         on argument names, not just descriptions.
50447         * iconv/iconvconfig.c (options): Likewise.
50448
50449 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50450
50451         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50452         implementation which is faster on all x86_64 architectures.
50453         Tested on AMD, Intel Nehalem, SNB, IVB.
50454         * sysdeps/x86_64/strnlen.S: Likewise.
50455
50456         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50457         Remove all multiarch strlen and strnlen versions.
50458         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50459         Remove strlen and strnlen related parts.
50460
50461         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50462         Inline strlen part.
50463         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50464
50465         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50466         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50467         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50468         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50469         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50470         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50471
50472 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50473
50474         * manual/memory.texi (Malloc Tunable Parameters):
50475         Sort parameters alphabetically. Add comments for missing entries.
50476
50477 2013-03-17  David S. Miller  <davem@davemloft.net>
50478
50479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50480
50481 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50482
50483         [BZ #15283]
50484         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50485         for arguments at most half maximum finite value.
50486         * math/libm-test.inc (j0_test): Add more tests.
50487         (j1_test): Likewise.
50488         (y0_test): Likewise.
50489         (y1_test): Likewise.
50490         * sysdeps/i386/fpu/libm-test-ulps: Update.
50491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50492
50493         [BZ #14155]
50494         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50495         1 / x and functions P and Q for arguments above 0x1p256L.
50496         (__ieee754_y0l): Likewise.
50497         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50498         (__ieee754_y1l): Likewise.
50499         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50500         (j1_test): Likewise.
50501         (y0_test): Likewise.
50502         (y1_test): Likewise.
50503
50504 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50505
50506         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50507         variable.
50508
50509 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50510
50511         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50512         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50513         zero since it's initialized to EXEC_PAGESIZE.
50514
50515         * sysdeps/unix/sysv/linux/ldsodefs.h
50516         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50517         * sysdeps/generic/ldsodefs.h: ... here.
50518
50519 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50520
50521         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50522
50523         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50524         math/test-snan.c.
50525         * math/test-snan.c: Renamed from
50526         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50527         * math/Makefile (tests): Add test-snan.
50528         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50529         test-powerpc-snan.
50530
50531         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50532         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50533         functions.
50534         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50535         __builtin_nan family of functions.
50536         * math/libm-test.inc (initialize): Initialize qnan_value with
50537         __builtin_nan family of functions.
50538         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50539         Remove variables.
50540         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50541         Remove functions.
50542         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50543         storage class.  Initialize qNaN_var and sNaN_var with
50544         __builtin_nan and __builtin_nans families of functions,
50545         respectively.
50546
50547         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50548         (sqrt_test): Remove duplicate test with qNaN input.
50549         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50550         (round_test, signbit_test, significand_test): Note missing +/-Inf
50551         as well as qNaN tests.
50552
50553         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50554         qNaN_var.  Fix a few strings, too.
50555         * math/libm-test.inc (nan_value): Rename to qnan_value.
50556         * math/gen-libm-test.pl (%beautify): Adjust to that.
50557         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50558         * math/test-misc.c (main): Likewise.
50559         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50560         to __qnan_bytes, and __qnan_union, respectively.
50561         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50562         Likewise.
50563         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50564         and lqnanval, respectively.
50565         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50566         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50567         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50568         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50569
50570         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50571         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50572         doubles.
50573
50574         * math/test-misc.c (main): Fix copy'n'pastos.
50575         * misc/tst-efgcvt.c (special): Likewise.
50576
50577         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50578         Remove declarations.
50579
50580 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50581
50582         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50583         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50584         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50585         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50586
50587 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50588
50589         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50590         macro to return vdso values correctly in IFUNC implementations.
50591         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50592         Optimization by using IFUNC.
50593
50594 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50595             Richard Henderson  <rth@redhat.com>
50596             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50597
50598         * Makefile.in (bench): New target.
50599         * NEWS: Mention the benchmark framework.
50600         * Rules (bench): Likewise.
50601         (binaries-bench): Generate binaries for functions to
50602         benchmark.
50603         * benchtests/Makefile: New makefile for benchmark tests.
50604         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50605         programs.
50606         * benchtests/exp-inputs: New input file for EXP function.
50607         * benchtests/pow-inputs: New input file for POW function.
50608         * scripts/bench.pl: New script to generate source files for
50609         benchmark programs.
50610
50611 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50612
50613         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50614         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50615         computations on mantissa.  Use macros for rounding and
50616         division.
50617         (denorm): Likewise.
50618         (__dbl_mp): Likewise.
50619         (add_magnitudes): Likewise.
50620         (sub_magnitudes): Likewise.
50621         (__mul): Likewise.
50622         (__sqr): Likewise.
50623         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50624         powers of two in terms of TWOPOW macro.
50625         (mp_no): Make type of mantissa as MANTISSA_T.
50626         [!RADIXI]: Define RADIXI.
50627         [!TWO52]: Define TWO52.
50628         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50629
50630         * manual/nptl.texi (cindex): Modify threads to pthreads.
50631
50632 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50633
50634         * sysdeps/x86_64/preconfigure: Regenerated.
50635
50636 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50637
50638         [BZ #14155]
50639         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50640         0x1p28 and above.
50641         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50642         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50643         0x1p28 and above.
50644         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50645         * math/libm-test.inc (j0_test): Do not allow one spurious
50646         underflow exception.
50647         (y1_test): Likewise.
50648
50649 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50650
50651         * manual/Makefile (chapters): Add nptl.
50652         * manual/debug.texi (Debugging Support): Add link to Threads
50653         chapter.
50654         * manual/nptl.texi: New file.
50655
50656         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50657
50658 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50659
50660         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50661         for non-NULL pointer before the memory validity test. Pointed
50662         out by Holger Brunck <holger.brunck@keymile.com>.
50663
50664 2013-03-13  Andreas Schwab  <schwab@suse.de>
50665
50666         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50667         instead of .os.
50668
50669 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50670
50671         * timezone/zic.c: Update from tzcode 2013b.
50672
50673 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50674
50675         * manual/install.texi (Configuring and compiling):
50676         Mention i686 and i586.
50677         * INSTALL: Regenerate.
50678
50679 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50680
50681         * sysdeps/init_array/elf-init.c: New file.
50682         * csu/elf-init.c
50683         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50684         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50685
50686         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50687         __gmon_start__ as global, but as static with a .preinit_array pointer.
50688         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50689         * sysdeps/init_array/crti.S: New file, empty except for comments.
50690         * sysdeps/init_array/crtn.S: Likewise.
50691
50692 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50693
50694         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50695         definining bcopy.
50696         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50697         Remove Prefer_SSE_for_memop.
50698         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50699         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50700         HAS_PREFER_SSE_FOR_MEMOP.
50701         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50702         memset-x86-64.
50703         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50704         Remove bzero, memset ifunc support.
50705         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50706         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50707         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50708         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50709
50710 2013-03-11  Andreas Schwab  <schwab@suse.de>
50711
50712         [BZ #15234]
50713         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50714         by SHLIB_COMPAT.
50715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50716         (GLIBC_2.16): Remove pthread_atfork.
50717
50718 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50719
50720         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50721         (ptestcases.h): Likewise.
50722
50723 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50724
50725         * Makeconfig ($(common-objpfx)config.status): Depend on
50726         sysdeps/*/preconfigure{,.in} too.
50727
50728 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50729
50730         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50731         (__free_hook): Use void * instead of __malloc_ptr_t.
50732         (__malloc_hook): Likewise.
50733         (__realloc_hook): Likewise.
50734         (__memalign_hook): Likewise.
50735         (__after_morecore_hook): Likewise.
50736         * malloc/arena.c (save_malloc_hook): Likewise.
50737         (save_free_hook): Likewise.
50738         * malloc/hooks.c (malloc_hook_ini): Likewise.
50739         (realloc_hook_ini): Likewise.
50740         (memalign_hook_ini): Likewise.
50741         * malloc/malloc.c (malloc_hook_ini): Likewise.
50742         (realloc_hook_ini): Likewise.
50743         (memalign_hook_ini): Likewise.
50744         (__free_hook): Likewise.
50745         (__malloc_hook): Likewise.
50746         (__realloc_hook): Likewise.
50747         (__memalign_hook): Likewise.
50748         (__libc_malloc): Likewise.
50749         (__libc_free): Likewise.
50750         (__libc_realloc): Likewise.
50751         (__libc_memalign): Likewise.
50752         (__libc_valloc): Likewise.
50753         (__libc_pvalloc): Likewise.
50754         (__libc_calloc): Likewise.
50755         (__posix_memalign): Likewise.
50756         * malloc/morecore.c (__sbrk): Likewise.
50757         (__default_morecore): Likewise.
50758
50759         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50760
50761         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50762         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50763         __malloc_ptrdiff_t.
50764
50765         * malloc/malloc.h (__malloc_size_t): Remove macro.
50766         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50767         __malloc_size_t.
50768         (old_memalign_hook): Likewise.
50769         (old_realloc_hook): Likewise.
50770         (struct hdr): Likewise.
50771         (flood): Likewise.
50772         (mallochook): Likewise.
50773         (memalignhook): Likewise.
50774         (reallochook): Likewise.
50775         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50776         (tr_old_realloc_hook): Likewise.
50777         (tr_old_memalign_hook): Likewise.
50778         (tr_mallochook): Likewise.
50779         (tr_reallochook): Likewise.
50780         (tr_memalignhook): Likewise.
50781
50782 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50783
50784         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50785         default_ldbl_pack and using as default implementation.
50786         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50787         implementation.
50788         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50789         redundant definition.
50790         (ldbl_insert_mantissa): Likewise.
50791         (ldbl_canonicalize): Likewise.
50792         (ldbl_nearbyint): Likewise.
50793         (ldbl_pack): Rename to ldbl_pack_ppc.
50794         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50795         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50796         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50797
50798 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50799
50800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50801         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50802         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50803         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50804         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50805         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50806         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50807         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50808
50809 2013-03-07  Andreas Jaeger  <aj@suse.de>
50810
50811         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50812         bits/mman-linux.h.
50813
50814 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50815
50816         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50817         Include mpa.h and declare __MPEXP.
50818         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50819         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50820         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50821         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50822         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50823         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50824         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50825
50826         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50827         (__slowpow): Use long double EXPL and LOGL functions to
50828         compute POW.
50829         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50830         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50831         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50832         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50833         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50834         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50835
50836         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50837         intermediate variable to calculate exponent.
50838         (__sqr): Likewise.
50839         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50840         Likewise.
50841         (__sqr): Likewise.
50842
50843         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50844         [!NO__SQR]: Define __sqr.
50845         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50846         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50847         sysdeps/ieee754/dbl-64/mpa.c.
50848         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50849
50850         [BZ #12723]
50851         * posix/Makefile (tests): Add tst-pathconf.
50852         * posix/tst-pathconf.c: New test case.
50853         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50854         _PC_PIPE_BUF.
50855         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50856
50857 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50858
50859         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50860
50861 2013-03-06  Andreas Jaeger  <aj@suse.de>
50862
50863         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50864         definition via __MAP_ANONYMOUS.
50865
50866         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50867         it's not part of Linux headers.
50868
50869         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50870         (MAP_HUGE_MASK): Define.
50871
50872         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50873         Define.
50874         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50875         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50876         Define.
50877         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50878         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50879         Define.
50880         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50881         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50882         Define.
50883         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50884
50885         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50886         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50887         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50888         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50889         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50890         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50891
50892         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50893         Handle f2fs.
50894
50895         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50896         Handle f2fs and efivarfs.
50897
50898         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50899         f2fs.
50900
50901         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50902         (EFIVARFS_MAGIC): Add.
50903         (F2FS_LINK_MAX): Add.
50904
50905 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50906
50907         * stdio-common/vfprintf.c: Replace __builtin_expect with
50908         __glibc_unlikely.
50909
50910 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50911
50912         [BZ #13550]
50913         * sysdeps/generic/bp-sym.h: Remove file.
50914         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50915         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50916         <bp-sym.h> and <bp-asm.h>.
50917         (__longjmp): Don't use BP_SYM.
50918         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50919         and <bp-asm.h>.
50920         (memcpy): Don't use BP_SYM.
50921         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50922         <bp-sym.h> and <bp-asm.h>.
50923         (memcpy): Don't use BP_SYM.
50924         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50925         <bp-asm.h>.
50926         (memcpy): Don't use BP_SYM.
50927         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50928         <bp-asm.h>.
50929         (memset): Don't use BP_SYM.
50930         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50931         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50932         (__bzero): Don't use BP_SYM.
50933         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50934         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50935         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50936         <bp-sym.h> and <bp-asm.h>.
50937         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50938         pointers.
50939         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50940         <bp-sym.h> and <bp-asm.h>.
50941         (memcpy): Don't use BP_SYM.
50942         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50943         <bp-sym.h> and <bp-asm.h>.
50944         (memset): Don't use BP_SYM.
50945         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50946         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50947         (__bzero): Don't use BP_SYM.
50948         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50949         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50950         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50951         <bp-sym.h> and <bp-asm.h>.
50952         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50953         pointers.
50954         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50955         <bp-sym.h> and <bp-asm.h>.
50956         (memcpy): Don't use BP_SYM.
50957         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50958         <bp-sym.h> and <bp-asm.h>.
50959         (memset): Don't use BP_SYM.
50960         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50961         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50962         (__bzero): Don't use BP_SYM.
50963         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50964         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50965         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50966         <bp-sym.h> and <bp-asm.h>.
50967         (__memchr): Don't use BP_SYM.
50968         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50969         <bp-sym.h> and <bp-asm.h>.
50970         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50971         pointers.
50972         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50973         <bp-sym.h> and <bp-asm.h>.
50974         (memcpy): Don't use BP_SYM.
50975         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50976         <bp-sym.h> and <bp-asm.h>.
50977         (__mempcpy): Don't use BP_SYM.
50978         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50979         <bp-sym.h> and <bp-asm.h>.
50980         (__memrchr): Don't use BP_SYM.
50981         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50982         <bp-sym.h> and <bp-asm.h>.
50983         (memset): Don't use BP_SYM.
50984         (__bzero): Likewise.
50985         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50986         <bp-sym.h> and <bp-asm.h>.
50987         (__rawmemchr): Don't use BP_SYM.
50988         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50989         <bp-sym.h> and <bp-asm.h>.
50990         (__STRCMP): Don't use BP_SYM.
50991         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50992         <bp-sym.h> and <bp-asm.h>.
50993         (strchr): Don't use BP_SYM.
50994         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50995         <bp-sym.h> and <bp-asm.h>.
50996         (__strchrnul): Don't use BP_SYM.
50997         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50998         <bp-sym.h> and <bp-asm.h>.
50999         (strlen): Don't use BP_SYM.
51000         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
51001         <bp-sym.h> and <bp-asm.h>.
51002         (strncmp): Don't use BP_SYM.  Remove comment about bounded
51003         pointers.
51004         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
51005         <bp-sym.h> and <bp-asm.h>.
51006         (__strnlen): Don't use BP_SYM.
51007         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
51008         <bp-sym.h> and <bp-asm.h>.
51009         (__GI__setjmp): Don't use BP_SYM.
51010         (_setjmp): Likewise.
51011         (__sigsetjmp): Likewise.
51012         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
51013         (L(start_addresses)): Don't use BP_SYM.
51014         (_start): Likewise.
51015         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
51016         <bp-asm.h>.
51017         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
51018         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
51019         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51020         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51021         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
51022         <bp-asm.h>.
51023         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
51024         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
51025         about bounded pointers.
51026         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51027         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51028         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
51029         <bp-asm.h>.
51030         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
51031         about bounded pointers.  Remove GKM FIXME comments.
51032         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51033         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
51034         <bp-asm.h>.
51035         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
51036         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
51037         Remove GKM FIXME comments.
51038         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51039         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51040         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
51041         <bp-asm.h>.
51042         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
51043         about bounded pointers.  Remove GKM FIXME comment.
51044         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
51045         and <bp-asm.h>.
51046         (strncmp): Don't use BP_SYM.  Remove comment about bounded
51047         pointers.
51048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
51049         <bp-sym.h> and <bp-asm.h>.
51050         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
51052         <bp-sym.h> and <bp-asm.h>.
51053         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51054         comment.
51055
51056 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
51057
51058         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
51059         call free(NULL).
51060
51061 2013-03-05  David S. Miller  <davem@davemloft.net>
51062
51063         * po/es.po: Update from translation team.
51064
51065 2013-03-05  Andreas Jaeger  <aj@suse.de>
51066
51067         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
51068         <bits/mman-linux.h>.
51069         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
51070         is fine.
51071         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
51072         <bits/mman-linux.h> to end of file.
51073         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
51074         is fine.
51075         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
51076         <bits/mman-linux.h> to end of file.
51077         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
51078         is fine.
51079         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
51080         <bits/mman-linux.h> to end of file.
51081
51082         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
51083         (MCL_CURRENT, MCL_FUTURE): Define here.
51084
51085 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51086
51087         [BZ #15232]
51088         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
51089         attribute_hidden.
51090         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
51091
51092 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51093
51094         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
51095         fourth parameter needed for rt_sigprocmask syscall.
51096         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
51097         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
51098         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
51099         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
51100         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
51101         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
51102
51103 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
51104
51105         [BZ #13550]
51106         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
51107         comment about bounded pointers.
51108         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
51109         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
51110
51111 2013-03-04  Andreas Jaeger  <aj@suse.de>
51112
51113         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
51114         common definitions.
51115
51116         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
51117         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
51118         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
51119         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
51120         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
51121         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
51122
51123 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51124
51125         [BZ #15055]
51126         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
51127         __ieee754_sqrl instead of __sqrl.
51128
51129 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
51130
51131         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
51132         * sysdeps/powerpc/fpu_control.h: ... here.
51133         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
51134         * sysdeps/powerpc/bits/fenvinline.h: ... here.
51135         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
51136         * sysdeps/powerpc/bits/mathinline.h: ... here.
51137
51138 2013-03-01  Roland McGrath  <roland@hack.frob.com>
51139
51140         * elf/dl-hwcaps.c (_dl_important_hwcaps):
51141         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
51142         to just [NEED_DL_SYSINFO_DSO].
51143         * elf/dl-support.c: Likewise.
51144         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
51145         * elf/rtld.c (dl_main): Likewise.
51146         * elf/setup-vdso.h (setup_vdso): Likewise.
51147         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
51148         * sysdeps/unix/sysv/linux/dl-sysdep.c
51149         (_dl_discover_osversion): Likewise.
51150
51151 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
51152
51153         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
51154         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51155
51156 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
51157
51158         * NEWS: Mention libm performance improvements and non-x86 PI
51159         futex support.
51160
51161         * csu/libc-start.c (__pthread_initialize_minimal): Change
51162         function arguments.
51163         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51164
51165 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
51166
51167         [BZ #13550]
51168         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
51169         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
51170         <bp-sym.h> and <bp-asm.h>.
51171         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51172         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
51173         and <bp-asm.h>.
51174         (memcpy): Don't use BP_SYM.
51175         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
51176         <bp-asm.h>.
51177         (__mpn_add_n): Don't use BP_SYM.
51178         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
51179         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
51180         and <bp-asm.h>.
51181         (__mpn_addmul_1): Don't use BP_SYM.
51182         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51183         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
51184         <bp-sym.h>.
51185         (_setjmp): Don't use BP_SYM.
51186         (__novmx_setjmp): Likewise.
51187         (__GI__setjmp): Likewise.
51188         (__vmx_setjmp): Likewise.
51189         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
51190         <bp-sym.h>.
51191         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
51192         (__bzero): Don't use BP_SYM.
51193         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
51194         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
51195         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
51196         <bp-sym.h> and <bp-asm.h>.
51197         (memcpy): Don't use BP_SYM.
51198         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
51199         <bp-sym.h> and <bp-asm.h>.
51200         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51201         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51202         <bp-sym.h> and <bp-asm.h>.
51203         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51204         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51205         <bp-asm.h>.
51206         (__mpn_lshift): Don't use BP_SYM.
51207         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51208         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51209         <bp-asm.h>.
51210         (memset): Don't use BP_SYM.
51211         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51212         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51213         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51214         <bp-asm.h>.
51215         (__mpn_mul_1): Don't use BP_SYM.
51216         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51217         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51218         <bp-sym.h> and <bp-asm.h>.
51219         (memcmp): Don't use BP_SYM.
51220         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51221         <bp-sym.h> and <bp-asm.h>.
51222         (memcpy): Don't use BP_SYM.
51223         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51224         <bp-sym.h> and <bp-asm.h>.
51225         (memset): Don't use BP_SYM.
51226         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51227         <bp-sym.h> and <bp-asm.h>.
51228         (strncmp): Don't use BP_SYM.
51229         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51230         <bp-sym.h> and <bp-asm.h>.
51231         (memcpy): Don't use BP_SYM.
51232         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51233         <bp-sym.h> and <bp-asm.h>.
51234         (memset): Don't use BP_SYM.
51235         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51236         <bp-sym.h> and <bp-asm.h>.
51237         (__memchr): Don't use BP_SYM.
51238         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51239         <bp-sym.h> and <bp-asm.h>.
51240         (memcmp): Don't use BP_SYM.
51241         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51242         <bp-sym.h> and <bp-asm.h>.
51243         (memcpy): Don't use BP_SYM.
51244         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51245         <bp-sym.h> and <bp-asm.h>.
51246         (__mempcpy): Don't use BP_SYM.
51247         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51248         <bp-sym.h> and <bp-asm.h>.
51249         (__memrchr): Don't use BP_SYM.
51250         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51251         <bp-sym.h> and <bp-asm.h>.
51252         (memset): Don't use BP_SYM.
51253         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51254         <bp-sym.h> and <bp-asm.h>.
51255         (__rawmemchr): Don't use BP_SYM.
51256         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51257         <bp-sym.h> and <bp-asm.h>.
51258         (__STRCMP): Don't use BP_SYM.
51259         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51260         <bp-sym.h> and <bp-asm.h>.
51261         (strchr): Don't use BP_SYM.
51262         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51263         <bp-sym.h> and <bp-asm.h>.
51264         (__strchrnul): Don't use BP_SYM.
51265         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51266         <bp-sym.h> and <bp-asm.h>.
51267         (strlen): Don't use BP_SYM.
51268         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51269         <bp-sym.h> and <bp-asm.h>.
51270         (strncmp): Don't use BP_SYM.
51271         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51272         <bp-sym.h> and <bp-asm.h>.
51273         (__strnlen): Don't use BP_SYM.
51274         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51275         <bp-asm.h>.
51276         (__mpn_rshift): Don't use BP_SYM.
51277         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51278         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51279         <bp-sym.h> and <bp-asm.h>.
51280         (__sigsetjmp): Don't use BP_SYM.
51281         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51282         (L(start_addresses)): Don't use BP_SYM.
51283         (_start): Likewise.
51284         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51285         <bp-asm.h>.
51286         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51287         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51288         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51289         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51290         <bp-asm.h>.
51291         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51292         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51293         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51294         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51295         <bp-asm.h>.
51296         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51297         comments.
51298         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51299         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51300         <bp-asm.h>.
51301         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51302         FIXME comments.
51303         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51304         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51305         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51306         <bp-asm.h>.
51307         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51308         comment.
51309         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51310         and <bp-asm.h>.
51311         (strncmp): Don't use BP_SYM,
51312         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51313         <bp-asm.h>.
51314         (__mpn_sub_n): Don't use BP_SYM.
51315         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51316         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51317         and <bp-asm.h>.
51318         (__mpn_submul_1): Don't use BP_SYM.
51319         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51321         <bp-sym.h> and <bp-asm.h>.
51322         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51324         <bp-sym.h> and <bp-asm.h>.
51325         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51326         comment.
51327
51328 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51329
51330         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51331         Use ZK to minimize writes to Z.
51332         (sub_magnitudes): Simplify code a bit.
51333         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51334         Use ZK to minimize writes to Z.
51335         (sub_magnitudes): Simplify code a bit.
51336
51337 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51338
51339         * csu/gmon-start.c: Add special exception to license text.
51340
51341 2013-02-27  Richard Henderson  <rth@redhat.com>
51342
51343         * scripts/config.guess: Update from config.git.
51344         * scripts/config.sub: Likewise.
51345
51346 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51347
51348         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51349
51350         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51351
51352         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51353
51354         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51355
51356         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51357
51358 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51359
51360         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51361         [$(build-shared = yes].
51362
51363 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51364
51365         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51366         (__mul): Reduce iterations for calculating mantissa.
51367
51368         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51369         MPTWO.
51370         (__mpranred): Likewise.
51371
51372         [BZ #15160]
51373         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51374         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51375
51376 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51377
51378         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51379         Define __attribute__.
51380
51381 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51382
51383         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51384         unused.
51385         * posix/regex_internal.h (__attribute): Remove.
51386         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51387         (re_string_context_at): Likewise.
51388         (bitset_not): Use __attribute__ and mark function as possibly
51389         unused.
51390         (bitset_merge): Likewise.
51391         (bitset_mask): Likewise.
51392         (re_string_char_size_at): Likewise.
51393         (re_string_wchar_at): Likewise.
51394         (re_string_elem_size_at): Likewise.
51395
51396 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51397
51398         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51399         code.
51400         (cc32): Likewise.
51401
51402         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51403         (__acr): Likewise.
51404         (__cpy): Likewise.
51405         (norm): Likewise.
51406         (denorm): Likewise.
51407         (__dbl_mp): Likewise.
51408         (add_magnitudes): Likewise.
51409         (sub_magnitudes): Likewise.
51410         (__mul): Likewise.
51411         (__inv): Likewise.
51412
51413         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51414         style.
51415
51416         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51417         style.
51418
51419         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51420         code.
51421
51422         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51423         up changes with default code.
51424         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51425         Likewise.
51426
51427 2013-02-24  Allan McRae  <allan@archlinux.org>
51428
51429         * manual/socket.texi (The Internet Namespace): Order menu items
51430         to match that in the file.
51431
51432         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51433         node listing of the info page menu.
51434
51435 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51436
51437         [BZ #13550]
51438         * sysdeps/i386/bp-asm.h: Remove file.
51439         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51440         (PARMS): Do not use macros from bp-asm.h.
51441         (S1): Likewise.
51442         (S2): Likewise.
51443         (SIZE): Likewise.
51444         (__mpn_add_n): Do not use BP_SYM
51445         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51446         "bp-asm.h".
51447         (PARMS): Do not use macros from bp-asm.h.
51448         (S1): Likewise.
51449         (SIZE): Likewise.
51450         (__mpn_addmul_1): Do not use BP_SYM
51451         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51452         "bp-asm.h".
51453         (PARMS): Do not use macros from bp-asm.h.
51454         (SIGMSK): Likewise.
51455         (_setjmp): Likewise.  Do not use BP_SYM.
51456         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51457         "bp-asm.h".
51458         (PARMS): Do not use macros from bp-asm.h.
51459         (SIGMSK): Likewise.
51460         (setjmp): Likewise.  Do not use BP_SYM.
51461         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51462         "bp-asm.h".
51463         (PARMS): Do not use macros from bp-asm.h.
51464         (__frexp): Do not use BP_SYM.
51465         (frexp): Likewise.
51466         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51467         "bp-asm.h".
51468         (PARMS): Do not use macros from bp-asm.h.
51469         (__frexpf): Do not use BP_SYM.
51470         (frexpf): Likewise.
51471         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51472         "bp-asm.h".
51473         (PARMS): Do not use macros from bp-asm.h.
51474         (__frexpl): Do not use BP_SYM.
51475         (frexpl): Likewise.
51476         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51477         "bp-asm.h".
51478         (PARMS): Do not use macros from bp-asm.h.
51479         (__remquo): Do not use BP_SYM.
51480         (remquo): Likewise.
51481         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51482         "bp-asm.h".
51483         (PARMS): Do not use macros from bp-asm.h.
51484         (__remquof): Do not use BP_SYM.
51485         (remquof): Likewise.
51486         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51487         "bp-asm.h".
51488         (PARMS): Do not use macros from bp-asm.h.
51489         (__remquol): Do not use BP_SYM.
51490         (remquol): Likewise.
51491         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51492         "bp-asm.h".
51493         (PARMS): Do not use macros from bp-asm.h.
51494         (DEST): Likewise.
51495         (SRC): Likewise.
51496         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51497         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51498         "bp-asm.h".
51499         (PARMS): Do not use macros from bp-asm.h.
51500         (strlen): Do not use BP_SYM.
51501         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51502         "bp-asm.h".
51503         (PARMS): Do not use macros from bp-asm.h.
51504         (S1): Likewise.
51505         (S2): Likewise.
51506         (SIZE): Likewise.
51507         (__mpn_add_n): Do not use BP_SYM.
51508         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51509         "bp-asm.h".
51510         (PARMS): Do not use macros from bp-asm.h.
51511         (S1): Likewise.
51512         (SIZE): Likewise.
51513         (__mpn_addmul_1): Do not use BP_SYM.
51514         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51515         weak_alias.
51516         (bzero): Likewise.
51517         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51518         "bp-asm.h".
51519         (PARMS): Do not use macros from bp-asm.h.
51520         (S): Likewise.
51521         (SIZE): Likewise.
51522         (__mpn_lshift): Do not use BP_SYM.
51523         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51524         "bp-asm.h".
51525         (PARMS): Do not use macros from bp-asm.h.
51526         (DEST): Likewise.
51527         (SRC): Likewise.
51528         (LEN): Likewise.
51529         (memcpy): Likewise.  Do not use BP_SYM.
51530         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51531         libc_hidden_def and weak_alias.
51532         (mempcpy): Do not use BP_SYM in weak_alias.
51533         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51534         "bp-asm.h".
51535         (PARMS): Do not use macros from bp-asm.h.
51536         (DEST): Likewise.
51537         (LEN): Likewise.
51538         [!BZERO_P] (CHR): Likewise.
51539         (memset): Likewise.  Do not use BP_SYM.
51540         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51541         "bp-asm.h".
51542         (PARMS): Do not use macros from bp-asm.h.
51543         (S1): Likewise.
51544         (SIZE): Likewise.
51545         (__mpn_mul_1): Do not use BP_SYM.
51546         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51547         "bp-asm.h".
51548         (PARMS): Do not use macros from bp-asm.h.
51549         (S): Likewise.
51550         (SIZE): Likewise.
51551         (__mpn_rshift): Do not use BP_SYM.
51552         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51553         "bp-asm.h".
51554         (PARMS): Do not use macros from bp-asm.h.
51555         (STR): Likewise.
51556         (CHR): Likewise.
51557         (strchr): Likewise.  Do not use BP_SYM.
51558         (index): Do not use BP_SYM in weak_alias.
51559         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51560         "bp-asm.h".
51561         (PARMS): Do not use macros from bp-asm.h.
51562         (DEST): Likewise.
51563         (SRC): Likewise.
51564         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51565         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51566         "bp-asm.h".
51567         (PARMS): Do not use macros from bp-asm.h.
51568         (strlen): Do not use BP_SYM.
51569         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51570         "bp-asm.h".
51571         (PARMS): Do not use macros from bp-asm.h.
51572         (S1): Likewise.
51573         (S2): Likewise.
51574         (SIZE): Likewise.
51575         (__mpn_sub_n): Do not use BP_SYM.
51576         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51577         "bp-asm.h".
51578         (PARMS): Do not use macros from bp-asm.h.
51579         (S1): Likewise.
51580         (SIZE): Likewise.
51581         (__mpn_submul_1): Do not use BP_SYM.
51582         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51583         "bp-asm.h".
51584         (PARMS): Do not use macros from bp-asm.h.
51585         (S1): Likewise.
51586         (S2): Likewise.
51587         (SIZE): Likewise.
51588         (__mpn_add_n): Do not use BP_SYM.
51589         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51590         weak_alias.
51591         (bzero): Likewise.
51592         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51593         "bp-asm.h".
51594         (PARMS): Do not use macros from bp-asm.h.
51595         (BLK2): Likewise.
51596         (LEN): Likewise.
51597         (memcmp): Do not use BP_SYM.
51598         (bcmp): Do not use BP_SYM in weak_alias.
51599         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51600         "bp-asm.h".
51601         (PARMS): Do not use macros from bp-asm.h.
51602         (DEST): Likewise.
51603         (SRC): Likewise.
51604         (LEN): Likewise.
51605         (memcpy): Likewise.  Do not use BP_SYM.
51606         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51607         "bp-asm.h".
51608         (PARMS): Do not use macros from bp-asm.h.
51609         (DEST): Likewise.
51610         (SRC): Likewise.
51611         (LEN): Likewise.
51612         (memmove): Likewise.  Do not use BP_SYM.
51613         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51614         "bp-asm.h".
51615         (PARMS): Do not use macros from bp-asm.h.
51616         (DEST): Likewise.
51617         (SRC): Likewise.
51618         (LEN): Likewise.
51619         (__mempcpy): Likewise.  Do not use BP_SYM.
51620         (mempcpy): Do not use BP_SYM in weak_alias.
51621         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51622         "bp-asm.h".
51623         (PARMS): Do not use macros from bp-asm.h.
51624         (DEST): Likewise.
51625         (LEN): Likewise.
51626         [!BZERO_P] (CHR): Likewise.
51627         (memset): Likewise.  Do not use BP_SYM.
51628         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51629         "bp-asm.h".
51630         (PARMS): Do not use macros from bp-asm.h.
51631         (STR2): Likewise.
51632         (strcmp): Do not use BP_SYM.
51633         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51634         "bp-asm.h".
51635         (PARMS): Do not use macros from bp-asm.h.
51636         (STR): Likewise.
51637         (DELIM): Likewise.
51638         [USE_AS_STRTOK_R] (SAVE): Likewise.
51639         (FUNCTION): Likewise.  Do not use BP_SYM.
51640         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51641         aliases.
51642         (strtok_r): Likewise.
51643         (__GI___strtok_r): Likewise.
51644         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51645         (PARMS): Do not use macros from bp-asm.h.
51646         (S): Likewise.
51647         (SIZE): Likewise.
51648         (__mpn_lshift): Do not use BP_SYM.
51649         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51650         (PARMS): Do not use macros from bp-asm.h.
51651         (STR): Likewise.
51652         (CHR): Likewise.
51653         (__memchr): Do not use BP_SYM.
51654         (memchr): Do not use BP_SYM in weak_alias.
51655         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51656         (PARMS): Do not use macros from bp-asm.h.
51657         (BLK2): Likewise.
51658         (LEN): Likewise.
51659         (memcmp): Do not use BP_SYM.
51660         (bcmp): Do not use BP_SYM in weak_alias.
51661         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51662         (PARMS): Do not use macros from bp-asm.h.
51663         (S1): Likewise.
51664         (SIZE): Likewise.
51665         (__mpn_mul_1): Do not use BP_SYM.
51666         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51667         "bp-asm.h".
51668         (PARMS): Do not use macros from bp-asm.h.
51669         (STR): Likewise.
51670         (CHR): Likewise.
51671         (__rawmemchr): Do not use BP_SYM.
51672         (rawmemchr): Do not use BP_SYM in weak_alias.
51673         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51674         (PARMS): Do not use macros from bp-asm.h.
51675         (S): Likewise.
51676         (SIZE): Likewise.
51677         (__mpn_rshift): Do not use BP_SYM.
51678         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51679         (PARMS): Do not use macros from bp-asm.h.
51680         (SIGMSK): Likewise.
51681         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51682         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51683         (_start): Do not use BP_SYM.
51684         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51685         (PARMS): Do not use macros from bp-asm.h.
51686         (DEST): Likewise.
51687         (SRC): Likewise.
51688         (__stpcpy): Likewise.  Do not use BP_SYM.
51689         (stpcpy): Do not use BP_SYM in weak_alias.
51690         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51691         "bp-asm.h".
51692         (PARMS): Do not use macros from bp-asm.h.
51693         (DEST): Likewise.
51694         (SRC): Likewise.
51695         (LEN): Likewise.
51696         (__stpncpy): Likewise.  Do not use BP_SYM.
51697         (stpncpy): Do not use BP_SYM in weak_alias.
51698         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51699         (PARMS): Do not use macros from bp-asm.h.
51700         (STR): Likewise.
51701         (CHR): Likewise.
51702         (strchr): Likewise.  Do not use BP_SYM.
51703         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51704         "bp-asm.h".
51705         (PARMS): Do not use macros from bp-asm.h.
51706         (STR): Likewise.
51707         (CHR): Likewise.
51708         (__strchrnul): Likewise.  Do not use BP_SYM.
51709         (strchrnul): Do not use BP_SYM in weak_alias.
51710         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51711         "bp-asm.h".
51712         (PARMS): Do not use macros from bp-asm.h.
51713         (STOP): Likewise.
51714         (strcspn): Do not use BP_SYM.
51715         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51716         "bp-asm.h".
51717         (PARMS): Do not use macros from bp-asm.h.
51718         (STR): Likewise.
51719         (STOP): Likewise.
51720         (strpbrk): Likewise.  Do not use BP_SYM.
51721         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51722         "bp-asm.h".
51723         (PARMS): Do not use macros from bp-asm.h.
51724         (STR): Likewise.
51725         (CHR): Likewise.
51726         (strrchr): Likewise.  Do not use BP_SYM.
51727         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51728         (PARMS): Do not use macros from bp-asm.h.
51729         (SKIP): Likewise.
51730         (strspn): Do not use BP_SYM.
51731         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51732         (PARMS): Do not use macros from bp-asm.h.
51733         (STR): Likewise.
51734         (DELIM): Likewise.
51735         (SAVE): Likewise.
51736         (FUNCTION): Likewise.  Do not use BP_SYM.
51737         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51738         aliases.
51739         (strtok_r): Likewise.
51740         (__GI___strtok_r): Likewise.
51741         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51742         (PARMS): Do not use macros from bp-asm.h.
51743         (S1): Likewise.
51744         (S2): Likewise.
51745         (SIZE): Likewise.
51746         (__mpn_sub_n): Do not use BP_SYM.
51747         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51748         "bp-asm.h".
51749         (PARMS): Do not use macros from bp-asm.h.
51750         (S1): Likewise.
51751         (SIZE): Likewise.
51752         (__mpn_submul_1): Do not use BP_SYM.
51753         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51754         <bp-sym.h>.
51755         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51756         and <bp-asm.h>.
51757         (PARMS): Do not use macros from bp-asm.h.
51758         (FLAGS): Likewise.
51759         (PTID): Likewise.
51760         (TLS): Likewise.
51761         (CTID): Likewise.
51762         (__clone): Do not use BP_SYM.
51763         (clone): Do not use BP_SYM in weak_alias.
51764         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51765         and <bp-asm.h>.
51766         (PARMS): Do not use macros from bp-asm.h.
51767         (LEN): Likewise.
51768         (__mmap64): Do not use BP_SYM.
51769         (mmap64): Do not use BP_SYM in weak_alias.
51770         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51771         <bp-sym.h> and <bp-asm.h>.
51772         (PARMS): Do not use macros from bp-asm.h.
51773         (__posix_fadvise64_l64): Do not use BP_SYM.
51774         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51775         (PARMS): Do not use macros from bp-asm.h.
51776         (NSOPS): Likewise.
51777         (semtimedop): Do not use BP_SYM.
51778         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51779         and <bp-asm.h>.
51780
51781 2013-02-21  Allan McRae  <allan@archlinux.org>
51782
51783         * manual/message.texi (Charset conversion in gettext):
51784         Move @end statement to beginning of line.
51785
51786 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51787
51788         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51789         static.
51790         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51791         Likewise.
51792
51793         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51794         (denorm): Likewise.
51795         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51796         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51797
51798 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51799
51800         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51801         tail-call to the resolved function if pltexit isn't needed.
51802
51803 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51804
51805         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51806         or Y being zero as being unlikely.
51807         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51808         Likewise.
51809
51810 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51811
51812         * manual/nss.texi (System Databases and Name Service Switch):
51813         Remove frobnicate @pxref.
51814
51815 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51816
51817         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51818         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51819
51820 2013-02-20  Petr Machata  <pmachata@redhat.com>
51821
51822         * elf/elf.h (R_ARM_TARGET1): New macro.
51823         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51824         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51825         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51826         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51827         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51828         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51829         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51830         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51831         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51832         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51833         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51834         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51835         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51836         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51837         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51838         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51839         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51840         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51841         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51842         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51843         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51844         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51845         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51846         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51847         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51848         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51849         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51850         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51851         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51852         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51853         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51854         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51855         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51856         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51857         (R_ARM_THM_GOT_BREL12): Likewise.
51858         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51859         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51860         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51861         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51862         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51863         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51864         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51865         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51866         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51867
51868 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51869
51870         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51871         __attribute_used__ to __attribute__ ((unused)).
51872
51873 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51874
51875         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51876         powerpc mpa.c.
51877         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51878         comment formatting.
51879         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51880
51881 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51882
51883         [BZ #13550]
51884         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51885         Remove macro.
51886         (ENTER): Remove both macro definitions.
51887         (LEAVE): Likewise.
51888         (CHECK_BOUNDS_LOW): Likewise.
51889         (CHECK_BOUNDS_HIGH): Likewise.
51890         (CHECK_BOUNDS_BOTH): Likewise.
51891         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51892         (RETURN_BOUNDED_POINTER): Likewise.
51893         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51894         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51895         (POP_ERRNO_LOCATION_RETURN): Likewise.
51896         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51897         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51898         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51899         macros.
51900         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51901         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51902         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51903         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51904         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51905         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51906         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51907         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51908         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51909         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51910         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51911         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51912         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51913         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51914         removed macros.
51915         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51916         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51917         macros.
51918         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51919         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51920         * sysdeps/i386/i586/memset.S (memset): Likewise.
51921         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51922         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51923         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51924         macros.
51925         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51926         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51927         Change uses of L(2) to L(out).
51928         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51929         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51930         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51931         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51932         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51933         removed macros.
51934         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51935         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51936         macros.
51937         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51938         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51939         (RETURN): Do not use macro LEAVE.
51940         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51941         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51942         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51943         * sysdeps/i386/i686/memset.S (memset): Likewise.
51944         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51945         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51946         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51947         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51948         Likewise.
51949         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51950         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51951         L(1_2) and L(1_3) into L(1).
51952         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51953         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51954         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51955         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51956         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51957         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51958         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51959         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51960         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51961         macros.
51962         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51963         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51964         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51965         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51966         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51967         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51968         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51969         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51970         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51971         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51972         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51973         * sysdeps/i386/strspn.S (strspn): Likewise.
51974         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51975         conditional code.
51976         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51977         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51978         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51979         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51980         L(1_3) into L(1_1).
51981         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51982         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51983         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51984         macros.
51985         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51986
51987 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51988
51989         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51990         macro.
51991
51992 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51993
51994         * math/atest-exp.c (exp_mpn): Remove ROUND.
51995         * math/atest-exp2.c (exp_mpn): Likewise.
51996         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51997
51998         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51999         * stdlib/tst-tls-atexit-lib.c: Likewise.
52000         * stdlib/tst-tls-atexit.c: Likewise.
52001
52002 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
52003
52004         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
52005         and __attribute_alloc_size__.
52006
52007 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
52008
52009         * include/programs/xmalloc.h: Change __attribute_alloc_size to
52010         __attribute_alloc_size__.
52011         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
52012         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
52013
52014 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
52015
52016         * include/programs/xmalloc.h: New file.
52017         * catgets/gencat.c: Include it.
52018         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
52019         * elf/pldd.c: Likewise.
52020         * iconv/iconv_charmap.c: Likewise.
52021         * iconv/iconvconfig.c: Likewise.
52022         * iconv/strtab.c: Likewise.
52023         * locale/programs/locale.c: Likewise.
52024         * locale/programs/localedef.h: Likewise.
52025         * locale/programs/simple-hash.c: Likewise.
52026         * nscd/nscd.h: Likewise.
52027         * nss/makedb.c: Likewise.
52028         * sysdeps/generic/ldconfig.h: Likewise.
52029
52030 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52031
52032         * Versions.def: Add GLIBC_2.18.
52033         * include/link.h (struct link_map): New member l_tls_dtor_count.
52034         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
52035         (__call_tls_dtors): Likewise.
52036         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
52037         __cxa_thread_atexit_impl.
52038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
52039         Likewise.
52040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
52041         Likewise.
52042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52043         Likewise.
52044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52045         Likewise.
52046         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
52047         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
52048         Likewise.
52049         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
52050         Likewise.
52051         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
52052         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
52053         Likewise.
52054         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
52055         (tests): Add test case tst-tls-atexit.
52056         (modules-names): Add shared library for tst-tls-atexit.
52057         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
52058         (GLIBC_PRIVATE): Add __call_tls_dtors.
52059         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
52060         for libstdc++.
52061         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
52062         * stdlib/tst-tls-atexit.c: New test case.
52063         * stdlib/tst-tls-atexit-lib.c: New test case.
52064
52065         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
52066
52067         * elf/Versions (ld): Add _dl_find_dso_for_object.
52068         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
52069         * elf/dl-open.c (_dl_find_dso_for_object): New function.
52070         (dl_open_worker): Use _dl_find_dso_for_object.
52071         * elf/dl-sym.c (do_sym): Likewise.
52072         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
52073
52074 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52075
52076         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
52077         Syntactic changes only.
52078         (_dl_runtime_profile): Do a tail-call to the resolved function.
52079
52080 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
52081
52082         [BZ #13550]
52083         * sysdeps/x86_64/bp-asm.h: Remove file.
52084         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
52085         <bp-sym.h> and <bp-asm.h>.
52086         (__clone): Do not use BP_SYM.
52087         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
52088         <bp-sym.h> and <bp-asm.h>.
52089         * sysdeps/unix/x86_64/sysdep.S: Likewise.
52090         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
52091         "bp-asm.h".
52092         (_setjmp): Do not use BP_SYM.
52093         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
52094         "bp-asm.h".
52095         (setjmp): Do not use BP_SYM.
52096         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
52097         libc_hidden_def.
52098         (mempcpy): Do not use BP_SYM in weak_alias.
52099         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
52100         "bp-asm.h".
52101         (strchr): Do not use BP_SYM.
52102         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
52103         "bp-asm.h".
52104         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
52105         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
52106         (_start): Do not use BP_SYM.
52107         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
52108         "bp-asm.h".
52109         (strcat): Do not use BP_SYM.
52110         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
52111         "bp-asm.h".
52112         (STRCMP): Do not use BP_SYM.
52113         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
52114         "bp-asm.h".
52115         (STRCPY): Do not use BP_SYM.
52116         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
52117         "bp-asm.h".
52118         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
52119         "bp-asm.h".
52120         (FUNCTION): Do not use BP_SYM.
52121         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
52122         weak_alias.
52123         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
52124
52125 2013-02-17  Andreas Jaeger  <aj@suse.de>
52126
52127         * time/Versions: Sort entries.
52128         * string/Versions: Likewise.
52129         * resolv/Versions: Likewise.
52130         * posix/Versions: Likewise.
52131         * iconv/Versions: Likewise.
52132         * elf/Versions: Likewise.
52133         * wcsmbs/Versions: Likewise.
52134
52135 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52136
52137         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
52138         loop termination condition.
52139
52140         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
52141         variable to calculate EZ.
52142         (__sqr): Likewise.
52143
52144         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
52145         the lower precision input.
52146
52147 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
52148
52149         [BZ #13550]
52150         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
52151         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
52152         (run-via-rtld-prefix): Do not handle %-bp tests.
52153         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
52154         (all-object-suffixes): Remove .ob.
52155         (bppfx): Remove variable.
52156         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
52157         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
52158         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
52159         [$(build-bounded) = yes] (libtype.ob): Likewise.
52160         * Makerules (elide-routines.ob): Remove variable.
52161         (do-tests-clean): Do not handle *-bp.out.
52162         (common-mostlyclean): Do not handle *-bp and *-bp.out.
52163         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
52164         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
52165         (tests): Do not include $(tests-bp.out).
52166         (xtests): Do not include $(xtests-bp.out).
52167         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
52168         [$(build-bounded) = yes] ($(addprefix
52169         $(objpfx),$(binaries-bounded))): Remove rule.
52170         ($(objpfx)%-bp.out): Remove rule.
52171         * config.make.in (build-bounded): Remove variable.
52172         * crypt/Makefile [$(build-bounded) = yes]
52173         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
52174         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
52175         append to variable.
52176         [$(build-bounded) = yes] (install-lib): Likewise.
52177         [$(build-bounded) = yes] (generated): Likewise.
52178         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
52179         Remove rule.
52180         * intl/Makefile [$(build-bounded) = yes]
52181         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
52182         * math/Makefile [$(build-bounded) = yes]
52183         ($(tests:%=$(objpfx)%-bp): Likewise.
52184         * misc/Makefile [$(build-bounded) = yes]
52185         ($(objpfx)tst-tsearch-bp): Likewise.
52186         * nptl/Makeconfig (bounded-thread-library): Remove variable.
52187         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
52188         Remove dependency.
52189         * string/Makefile (o-objects.ob): Remove variable.
52190         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
52191         (CFLAGS-.ob): Remove variable.
52192         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
52193         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
52194         both definitions of variable.
52195         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
52196         (ASFLAGS-.ob): Remove variable.
52197
52198 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
52199
52200         [BZ #13550]
52201         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52202         Remove __BOUNDED_POINTERS__ from condition.
52203         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52204         * string/bits/string2.h [!__NO_STRING_INLINES &&
52205         !__BOUNDED_POINTERS__]: Likewise.
52206         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52207         Likewise.
52208         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52209         Remove conditional code.
52210         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52211         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52212         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52213         condition.
52214
52215         [BZ #13550]
52216         * csu/libc-start.c: Do not include <bp-sym.h>.
52217         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52218         * elf/dl-open.c: Do not include <bp-sym.h>.
52219         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52220         * math/fegetenv.c: Do not include <bp-sym.h>.
52221         (fegetenv): Do not use BP_SYM in versioned symbols.
52222         * nptl/sysdeps/pthread/bits/libc-lockP.h
52223         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52224         <bp-sym.h>.
52225         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52226         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52227         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52228         (__pthread_mutex_destroy): Likewise.
52229         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52230         (__pthread_mutex_lock): Likewise.
52231         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52232         (__pthread_mutex_trylock): Likewise.
52233         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52234         (__pthread_mutex_unlock): Likewise.
52235         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52236         (__pthread_mutexattr_init): Likewise.
52237         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52238         (__pthread_mutexattr_destroy): Likewise.
52239         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52240         (__pthread_mutexattr_settype): Likewise.
52241         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52242         (__pthread_rwlock_init): Likewise.
52243         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52244         (__pthread_rwlock_destroy): Likewise.
52245         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52246         (__pthread_rwlock_rdlock): Likewise.
52247         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52248         (__pthread_rwlock_tryrdlock): Likewise.
52249         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52250         (__pthread_rwlock_wrlock): Likewise.
52251         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52252         (__pthread_rwlock_trywrlock): Likewise.
52253         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52254         (__pthread_rwlock_unlock): Likewise.
52255         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52256         (__pthread_key_create): Likewise.
52257         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52258         (__pthread_setspecific): Likewise.
52259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52260         (__pthread_getspecific): Likewise.
52261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52262         Likewise.
52263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52264         (_pthread_cleanup_push_defer): Likewise.
52265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52266         (_pthread_cleanup_pop_restore): Likewise.
52267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52268         (pthread_setcancelstate): Likewise.
52269         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52270         <bp-sym.h>.
52271         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52272         (memchr): Do not use BP_SYM in weak_alias.
52273         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52274         (fegetenv): Do not use BP_SYM in versioned symbols.
52275         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52276         (fesetenv): Do not use BP_SYM in versioned symbols.
52277         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52278         (feupdateenv): Do not use BP_SYM in versioned symbols.
52279         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52280         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52281         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52282         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52283         (open64): Do not use BP_SYM in weak_alias.
52284         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52285         (fegetenv): Do not use BP_SYM in versioned symbols.
52286         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52287         (fesetenv): Do not use BP_SYM in versioned symbols.
52288         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52289         (feupdateenv): Do not use BP_SYM in versioned symbols.
52290         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52291         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52292         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52293         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52294         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52295         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52296         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52297         <bp-sym.h>.
52298         (__libc_start_main): Do not use BP_SYM.
52299
52300 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52301
52302         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52303         redundant return line.
52304         (norm): Likewise.
52305         (denorm): Likewise.
52306         (dbl_mp): Likewise.
52307         (sub_magnitudes): Likewise.
52308         (__add): Likewise.
52309         (__sub): Likewise.
52310         (__mul): Likewise.
52311         (__inv): Likewise.
52312         (__dvd): Likewise.
52313         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52314         (norm): Likewise.
52315         (denorm): Likewise.
52316         (dbl_mp): Likewise.
52317         (sub_magnitudes): Likewise.
52318         (__add): Likewise.
52319         (__sub): Likewise.
52320         (__mul): Likewise.
52321         (__inv): Likewise.
52322         (__dvd): Likewise.
52323
52324         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52325         instead of __mul.
52326         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52327         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52328         (cc32): Likewise.
52329
52330         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52331         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52332         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52333         of __mul for squares.
52334         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52335         function
52336         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52337         Likewise.
52338         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52339         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52340
52341 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52342
52343         [BZ #13550]
52344         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52345         code.
52346         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52347         prototype or function definition.  Rename ubp_* variables and
52348         parameters.  Remove argv definitions conditional on
52349         [__BOUNDED_POINTERS__].
52350         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52351         * elf/dl-runtime.c (_dl_fixup): Likewise.
52352         * include/set-hooks.h (RUN_HOOK): Likewise.
52353         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52354         definition.
52355         * string/strcpy.c (strcpy): Do not use __unbounded.
52356         * sysdeps/generic/frame.h (struct layout): Likewise.
52357         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52358         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52359         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52360         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52361         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52362         (__backtrace): Likewise.
52363         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52364         use __ptrvalue.
52365         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52366         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52367         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52368         Likewise.
52369         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52370         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52371         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52372         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52373         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52374         Do not use __unbounded.
52375         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52376         Rename __unboundedrlimits parameter to rlimits in prototype.
52377         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52378         Do not use __unbounded.
52379         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52380         not use __ptrvalue.
52381         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52382         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52383         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52384         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52385         __ptrvalue or __unbounded.
52386         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52387         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52388         use __unbounded.
52389         (__new_msgctl): Do not use __ptrvalue.
52390         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52391         __unbounded.
52392         (__libc_msgrcv): Do not use __ptrvalue.
52393         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52394         startup_info): Do not use __unbounded.
52395         (__libc_start_main): Likewise.  Rename ubp_* variables and
52396         parameters.  Remove argv definitions conditional on
52397         [__BOUNDED_POINTERS__].
52398         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52399         __ptrvalue.
52400         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52401         use __unbounded.
52402         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52403         or __ptrvalue.
52404         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52405         use __unbounded.
52406         (__new_shmctl): Do not use __ptrvalue.
52407         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52408         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52409         Likewise.
52410         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52411         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52412         (__libc_sigaction): Likewise.
52413         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52414         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52415         Likewise.
52416         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52417
52418 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52419
52420         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52421
52422         * string/mempcpy.c: Implement by calling memcpy.
52423
52424 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52425
52426         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52427
52428         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52429         evaluation.
52430
52431         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52432         values in the mantissa.
52433
52434         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52435         minimize writes to Z.
52436         (sub_magnitudes): Simplify code a bit.
52437
52438 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52439
52440         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52441         from the message.  The linker prefixes all warnings with that already.
52442
52443 2013-02-12  Andreas Schwab  <schwab@suse.de>
52444
52445         [BZ #15078]
52446         * posix/regexec.c (extend_buffers): Add parameter min_len.
52447         (check_matching): Pass minimum needed length.
52448         (clean_state_log_if_needed): Likewise.
52449         (get_subexp): Likewise.
52450         * posix/Makefile (tests): Add bug-regex34.
52451         (bug-regex34-ENV): Define.
52452         * posix/bug-regex34.c: New file.
52453
52454         [BZ #11561]
52455         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52456         elements compare against the byte sequence of it, not its name.
52457         * posix/Makefile (tests): Add bug-regex35.
52458         (bug-regex35-ENV): Define.
52459         * posix/bug-regex35.c: New file.
52460
52461 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52462
52463         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52464         comment.
52465         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52466         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52467         (CHECK_EOL): Add undef.
52468
52469 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52470
52471         * bits/stdlib-bsearch.h: New file.
52472         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52473         * stdlib/stdlib.h: Likewise.
52474
52475 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52476
52477         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52478         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52479         declaration.
52480         * manual/search.texi (Array Search Function): Add missing const in
52481         lfind prototype.
52482         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52483         declaration to use rlim_t.
52484         (Basic Scheduling Functions): Remove erroneous const from
52485         sched_getparam prototype.  Remove erroneous * from
52486         sched_get_priority_max and sched_get_priority_min prototypes.
52487         (Resource Usage): Fix summary @comment on vtimes to refer to
52488         sys/vtimes.h rather than vtimes.h.
52489         Add missing *s in vtimes prototype.
52490         (Limits on Resources): Fix ulimit prototype to return long int.
52491         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52492         prototypes to use long int rather than double.
52493         (BSD Random): Fix initstate and setstate to use char *, not void *.
52494         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52495         prototype to make second argument 'struct aiocb64 *const[]'.
52496         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52497         (Status of AIO Operations): Remove erroneous const in aio_return and
52498         aio_return64 prototypes.
52499         (Synchronizing I/O): Fix sync prototype to return void.
52500         * manual/startup.texi (Suboptions): Remove an erroneous const in
52501         getsubopt prototype.
52502         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52503         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52504         use size_t rather than int.
52505         (Scanning All Users): Likewise for getpwent_r.
52506         (Setting Groups): Add missing const to setgroups prototype.
52507         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52508         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52509         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52510         'const void *' rather than 'const char *'.
52511         (Host Address Functions): Likewise for inet_ntop.
52512         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52513         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52514         ssize_t for return value.
52515         (Sending Data): Likewise for send, sendto, sendmsg.
52516         (Socket Option Functions): Add a missing const in setsockopt prototype.
52517         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52518         use wchar_t for the argument.
52519         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52520         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52521         take no arguments.
52522         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52523         double/float/long double for second argument.
52524         Fix return types of significand, significandf, significandl.
52525         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52526         argument in fchmod prototype.
52527         (File Owner): Use uid_t and gid_t in fchown prototype.
52528         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52529         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52530         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52531         use 'const struct dirent **' as argument types to CMP function pointer
52532         argument.
52533         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52534         (File Times): Fix summary magic @comment for struct utimbuf and utime
52535         to refer to utime.h, not time.h.
52536         * manual/string.texi (Argz Functions): Add missing const in
52537         argz_extract and argz_next prototypes.
52538         (Finding Tokens in a String): Likewise for basename.
52539         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52540         (Copying and Concatenation): Fix typo in wmemmove prototype.
52541         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52542         (Signal Stack): Remove erroneous const in sigstack prototype.
52543         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52544         prototype.
52545         (Simple Calendar Time): Likewise for stime.
52546         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52547         prototype.
52548         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52549         say sys/sysctl.h instead.
52550         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52551         and vsyslog prototypes.
52552
52553 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52554
52555         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52556         Remove.
52557
52558 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52559
52560         * misc/sys/mman.h: Fix typo in mremap comment.
52561
52562 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52563
52564         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52565         the '\0' terminator.
52566
52567 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52568
52569         [BZ #13550]
52570         * debug/segfault.c: Don't include <bp-checks.h>.
52571         * sysdeps/generic/bp-checks.h: Remove file.
52572         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52573         (__GETDENTS): Don't use CHECK_N.
52574         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52575         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52576         (__getgroups): Don't use CHECK_N.
52577         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52578         (setgroups): Don't use CHECK_N.
52579         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52580         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52581         (__libc_msgrcv): Don't use CHECK_N.
52582         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52583         (__libc_msgsnd): Don't use CHECK_N.
52584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52585         <bp-checks.h>.
52586         (__libc_pread): Don't use CHECK_N.
52587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52588         include <bp-checks.h>.
52589         (__libc_pread64): Don't use CHECK_N.
52590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52591         include <bp-checks.h>.
52592         (__libc_pwrite): Don't use CHECK_N.
52593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52594         include <bp-checks.h>.
52595         (__libc_pwrite64): Don't use CHECK_N.
52596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52597         <bp-checks.h>.
52598         (__libc_pread): Don't use CHECK_N.
52599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52600         include <bp-checks.h>.
52601         (__libc_pread64): Don't use CHECK_N.
52602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52603         include <bp-checks.h>.
52604         (__libc_pwrite): Don't use CHECK_N.
52605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52606         include <bp-checks.h>.
52607         (__libc_pwrite64): Don't use CHECK_N.
52608         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52609         (do_pread): Don't use CHECK_N.
52610         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52611         (do_pread64): Don't use CHECK_N.
52612         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52613         (do_pwrite): Don't use CHECK_N.
52614         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52615         (do_pwrite64): Don't use CHECK_N.
52616         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52617         (__libc_readv): Don't use CHECK_N.
52618         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52619         (semop): Don't use CHECK_N.
52620         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52621         <bp-checks.h>.
52622         (semtimedop): Don't use CHECK_N.
52623         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52624         (__libc_pread): Don't use CHECK_N.
52625         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52626         <bp-checks.h>.
52627         (__libc_pread64): Don't use CHECK_N.
52628         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52629         <bp-checks.h>.
52630         (__libc_pwrite): Don't use CHECK_N.
52631         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52632         <bp-checks.h>.
52633         (__libc_pwrite64): Don't use CHECK_N.
52634         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52635         <bp-checks.h>.
52636         (__libc_msgrcv): Don't use CHECK_N.
52637         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52638         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52639         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52640         (__libc_writev): Don't use CHECK_N.
52641
52642 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52643
52644         * string/strcpy.c: Removed unused variable.
52645
52646         * Makeconfig (+sysdep-includes): Define with := rather than =.
52647         Use an existing include/ subdir of each sysdeps dir before it.
52648
52649 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52650
52651         * nscd/connection.c (register_traced_file): Comment function.
52652         [HAVE_INOTIFY] (union __inev): Define.
52653         [HAVE_INOTIFY] (inotify_check_files): New function.
52654         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52655         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52656         clear_db_cache.
52657         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52658
52659 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52660
52661         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52662         loaded if not already and that a failure is permanent.
52663
52664 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52665
52666         [BZ #15006]
52667         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52668         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52669
52670 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52671
52672         [BZ #13550]
52673         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52674         (CHECK_1_NULL_OK): Likewise.
52675         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52676         (__fxstat): Do not use CHECK_1.
52677         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52678         <bp-checks.h>.
52679         (___fxstat64): Do not use CHECK_1.
52680         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52681         <bp-checks.h>.
52682         (__fxstatat): Do not use CHECK_1.
52683         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52684         <bp-checks.h>.
52685         (__fxstatat64): Do not use CHECK_1.
52686         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52687         <bp-checks.h>.
52688         (__fxstat): Do not use CHECK_1.
52689         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52690         <bp-checks.h>.
52691         (__fxstatat): Do not use CHECK_1.
52692         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52693         <bp-checks.h>.
52694         (__getresgid): Do not use CHECK_1.
52695         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52696         <bp-checks.h>.
52697         (__getresuid): Do not use CHECK_1.
52698         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52699         <bp-checks.h>.
52700         (__lxstat): Do not use CHECK_1.
52701         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52702         <bp-checks.h>.
52703         (__old_msgctl): Do not use CHECK_1.
52704         (__new_msgctl): Likewise.
52705         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52706         <bp-checks.h>.
52707         (__new_setrlimit): Do not use CHECK_1.
52708         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52709         <bp-checks.h>.
52710         (__old_shmctl): Do not use CHECK_1.
52711         (__new_shmctl): Likewise.
52712         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52713         <bp-checks.h>.
52714         (__xstat): Do not use CHECK_1.
52715         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52716         (__lxstat): Do not use CHECK_1.
52717         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52718         <bp-checks.h>.
52719         (___lxstat64): Do not use CHECK_1.
52720         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52721         (__old_msgctl): Do not use CHECK_1.
52722         (__new_msgctl): Likewise.
52723         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52724         <bp-checks.h>.
52725         (__gettimeofday): Do not use CHECK_1.
52726         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52727         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52728         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52729         <bp-checks.h>.
52730         (__gettimeofday): Do not use CHECK_1.
52731         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52732         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52733         (__new_shmctl): Do not use CHECK_1.
52734         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52735         <bp-checks.h>.
52736         (do_sigtimedwait): Do not use CHECK_1.
52737         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52738         <bp-checks.h>.
52739         (do_sigwaitinfo): Do not use CHECK_1.
52740         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52741         <bp-checks.h>.
52742         (msgctl): Do not use CHECK_1.
52743         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52744         <bp-checks.h>.
52745         (shmctl): Do not use CHECK_1.
52746         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52747         (ustat): Do not use CHECK_1.
52748         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52749         <bp-checks.h>.
52750         (__fxstat): Do not use CHECK_1.
52751         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52752         <bp-checks.h>.
52753         (__fxstatat): Do not use CHECK_1.
52754         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52755         <bp-checks.h>.
52756         (__lxstat): Do not use CHECK_1.
52757         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52758         <bp-checks.h>.
52759         (__xstat): Do not use CHECK_1.
52760         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52761         (__xstat): Do not use CHECK_1.
52762         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52763         (___xstat64): Do not use CHECK_1.
52764
52765         [BZ #13550]
52766         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52767         definitions.
52768         (CHECK_BOUNDS_HIGH): Likewise.
52769         * string/strcpy.c: Do not include <bp-checks.h>.
52770         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52771
52772 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52773
52774         * nscd/nscd-client.h (__nscd_drop_map_ref):
52775         Add __attribute__ ((unused)).
52776         * nis/nss-nisplus.h (niserr2nss): Likewise.
52777
52778         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52779         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52780
52781         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52782         Remove inline keyword.
52783         * include/rounding-mode.h (round_away): Likewise.
52784         * libio/wfileops.c (adjust_wide_data): Likewise.
52785         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52786         (__m128i_strloadu_tolower): Likewise.
52787         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52788         (__m128i_strloadu_tolower): Likewise.
52789         * time/mktime.c (ydhms_diff): Likewise.
52790         * locale/elem-hash.h (elem_hash): Likewise.
52791         * locale/setlocale.c (setdata): Likewise.
52792         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52793         (re_string_wchar_at): Likewise.
52794         (bitset_not, bitset_merge, bitset_mask): Likewise.
52795         [!(__GNUC__ > 3)] (inline): Remove macro.
52796         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52797         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52798         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52799         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52800         * string/memcmp.c (memcmp_bytes): Likewise.
52801         * locale/programs/locarchive.c (compute_hashval): Likewise.
52802         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52803         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52804         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52805         * nss/getent.c (print_rpc, print_protocols): Likewise.
52806         (print_passwd, print_group, print_aliases): Likewise.
52807         * nis/nss-nisplus.h (niserr2nss): Likewise.
52808         * nscd/connections.c (restart_p): Likewise.
52809         Change return type to bool.
52810
52811 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52812
52813         * Makeconfig (all-Depend-files): Add existing
52814         $(sorted-subdirs:=/Depend) files.
52815         (all-subdirs): Remove nss.
52816         * sysdeps/unix/inet/Subdirs: Add it here instead.
52817         * hesiod/Depend: New file.
52818
52819         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52820         instead of calling alloca.
52821
52822         * io/lseek.c (__lseek): Rename to __libc_lseek.
52823         Define __lseek as an alias.
52824
52825         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52826
52827 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52828
52829         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52830         else clause and remove check for non-standard endianness.
52831
52832 2013-02-04  David S. Miller  <davem@davemloft.net>
52833
52834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52835
52836 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52837
52838         [BZ #13550]
52839         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52840         (__ubp_memchr): Remove prototype.
52841         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52842         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52843         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52844         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52845         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52846         Remove alias.
52847         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52848         (__ubp_memchr): Likewise.
52849         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52850         (__ubp_memchr): Likewise.
52851         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52852         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52853         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52854         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52855         CHECK_STRING.
52856         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52857         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52858         (__getcwd): Do not use CHECK_STRING.
52859         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52860         <bp-checks.h>.
52861         (__real_chown): Do not use CHECK_STRING.
52862         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52863         <bp-checks.h>.
52864         (fchownat): Do not use CHECK_STRING.
52865         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52866         CHECK_STRING.
52867         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52868         <bp-checks.h>.
52869         (__lchown): Do not use CHECK_STRING.
52870         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52871         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52872         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52873         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52875         include <bp-checks.h>.
52876         (truncate64): Do not use CHECK_STRING.
52877         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52878         <bp-checks.h>.
52879         (__real_chown): Do not use CHECK_STRING.
52880         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52881         <bp-checks.h>.
52882         (__lchown): Do not use CHECK_STRING.
52883         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52884         <bp-checks.h>.
52885         (__chown): Do not use CHECK_STRING.
52886         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52887         <bp-checks.h>.
52888         (truncate64): Do not use CHECK_STRING.
52889         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52890         Likewise.
52891         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52892         (__xmknod): Do not use CHECK_STRING.
52893         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52894         <bp-checks.h>.
52895         (__xmknodat): Do not use CHECK_STRING.
52896         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52897         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52898
52899 2013-02-04  Andreas Schwab  <schwab@suse.de>
52900
52901         [BZ #14142]
52902         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52903         * include/netdb.h: Likewise for h_errno.
52904         * elf/tst-stackguard1.c: Include <tls.h>.
52905
52906 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52907
52908         * elf/link.h (struct link_map): Extend the l_addr comment.
52909         * include/link.h (struct link_map): Likewise.
52910
52911 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52912
52913         [BZ #13550]
52914         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52915         (BOUNDED_1): Remove macro.
52916         * debug/backtrace.c: Don't include <bp-checks.h>.
52917         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52918         (__backtrace): Likewise.
52919         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52920         <bp-checks.h>.
52921         (__backtrace): Don't use BOUNDED_1.
52922         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52923         <bp-checks.h>.
52924         (__backtrace): Don't use BOUNDED_1.
52925         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52926         (__backtrace): Don't use BOUNDED_1.
52927         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52928         (shmat): Don't use BOUNDED_N.
52929
52930 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52931
52932         [BZ #13550]
52933         * sysdeps/generic/bp-start.h: Remove file.
52934         * csu/libc-start.c: Don't include <bp-start.h>.
52935         (LIBC_START_MAIN): Set up __environ directly instead of using
52936         INIT_ARGV_and_ENVIRON.
52937         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52938         <bp-start.h>.
52939
52940         [BZ #13550]
52941         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52942         definitions.
52943         (CHECK_FCNTL): Likewise.
52944         (CHECK_N_PAGES): Likewise.
52945
52946         [BZ #13550]
52947         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52948         definitions.
52949         (CHECK_SIGSET_NULL_OK): Likewise.
52950         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52951         <bp-checks.h>.
52952         (sigpending): Don't use CHECK_SIGSET.
52953         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52954         <bp-checks.h>.
52955         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52956         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52957         <bp-checks.h>.
52958         (do_sigsuspend): Don't use CHECK_SIGSET.
52959         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52960         use CHECK_SIGSET.
52961         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52962         (do_sigwait): Don't use CHECK_SIGSET.
52963         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52964         use CHECK_SIGSET.
52965         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52966         include <bp-checks.h>.
52967         (sigpending): Don't use CHECK_SIGSET.
52968         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52969         include <bp-checks.h>.
52970         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52971         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52972         <bp-checks.h>.
52973         (sigpending): Don't use CHECK_SIGSET.
52974         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52975         <bp-checks.h>.
52976         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52977
52978         [BZ #13550]
52979         * sysdeps/generic/bp-semctl.h: Remove file.
52980         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52981         <bp-checks.h> and <bp-semctl.h>.
52982         (__old_semctl): Don't use CHECK_SEMCTL.
52983         (__new_semctl): Likewise.
52984         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52985         and <bp-semctl.h>.
52986         (__old_semctl): Don't use CHECK_SEMCTL.
52987         (__new_semctl): Likewise.
52988         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52989         <bp-checks.h> and <bp-semctl.h>.
52990         (__old_semctl): Don't use CHECK_SEMCTL.
52991         (__new_semctl): Likewise.
52992         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52993         <bp-checks.h> and <bp-semctl.h>.
52994         (semctl): Don't use CHECK_SEMCTL.
52995
52996         [BZ #13550]
52997         * Makerules (elide-bp-thunks): Remove variable.
52998         (elide-routines.oS): Don't use $(elide-bp-thunks).
52999         (elide-routines.os): Likewise.
53000         (elide-routines.o): Likewise.
53001         (elide-routines.op): Likewise.
53002         (elide-routines.og): Likewise.
53003         (objects): Don't use $(bp-thunks).
53004         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
53005         include.
53006         (common-generated): Do not add s-proto-bp.d.
53007         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
53008         (int): Likewise.
53009         (typ): Likewise.
53010         Do not generate makefile rules for bounded-pointer thunks.
53011         * sysdeps/generic/bp-thunks.h: Remove file.
53012         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
53013         * sysdeps/unix/s-proto-bp.S: Likewise.
53014
53015         [BZ #15062]
53016         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
53017         parts of result separately when argument is not close to line from
53018         -i to i and one part of argument is small.
53019         * math/k_casinhf.c (__kernel_casinhf): Likewise.
53020         * math/k_casinhl.c (__kernel_casinhl): Likewise.
53021         * math/libm-test.inc (cacos_test): Add more tests.
53022         (casin_test): Likewise.
53023         (casinh_test): Likewise.
53024         * sysdeps/i386/fpu/libm-test-ulps: Update.
53025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53026
53027 2013-01-31  David S. Miller  <davem@davemloft.net>
53028
53029         * po/de.po: Update from translation team.
53030
53031 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
53032
53033         * time/tzfile.c: Include stdint.h for SIZE_MAX.
53034
53035 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
53036
53037         * configure.in (_AC_PROG_CC_C89): New definition.
53038         * configure: Regenerate.
53039
53040         * configure.in (AC_PROG_CPP): New definition.
53041         * configure: Regenerate.
53042
53043 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
53044
53045         * debug/tst-backtrace.h: New file.
53046         * debug/tst-backtrace2.c: Include tst-backtrace.h.
53047         (ret): Remove variable.
53048         (x): Likewise.
53049         (FAIL): Remove macro.
53050         (NO_INLINE): Likewise.
53051         (fn1): Use match function instead of strstr.
53052         * debug/tst-backtrace3.c: Include tst-backtrace.h.
53053         (ret): Remove variable.
53054         (x): Likewise.
53055         (FAIL): Remove macro.
53056         (NO_INLINE): Likewise.
53057         (fn): Use match function instead of strstr.
53058         * debug/tst-backtrace4.c: Include tst-backtrace.h.
53059         (ret): Remove variable.
53060         (x): Likewise.
53061         (FAIL): Remove macro.
53062         (NO_INLINE): Likewise.
53063         (handle_signal): Use match function instead of strstr.
53064         * debug/tst-backtrace5.c: Include tst-backtrace.h.
53065         (ret): Remove variable.
53066         (x): Likewise.
53067         (FAIL): Remove macro.
53068         (NO_INLINE): Likewise.
53069         (handle_signal): Use match function instead of strstr.
53070
53071 2013-01-23  Roland McGrath  <roland@hack.frob.com>
53072
53073         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
53074
53075 2013-01-23  David S. Miller  <davem@davemloft.net>
53076
53077         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
53078         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
53079         argument of CAS if possible.
53080         * sysdeps/sparc/sparc64/bits/atomic.h
53081         (__arch_compare_and_exchange_val_32_acq): Likewise.
53082         (__arch_compare_and_exchange_val_64_acq): Likewise.
53083
53084 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
53085
53086         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
53087         * sysdeps/posix/ulimit.c: ... this.
53088         Include <limits.h>.
53089         * sysdeps/unix/bsd/ulimit.c: Remove file.
53090
53091 2013-01-23  Adam Conrad  <adconrad@0c3.net>
53092
53093         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
53094         (LDFLAGS-tst-array5): Likewise.
53095
53096 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
53097
53098         [BZ #15036]
53099         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
53100         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
53101         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
53102         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
53103
53104 2013-01-21  David S. Miller  <davem@davemloft.net>
53105
53106         * sysdeps/sparc/backtrace.c: New file.
53107         * sysdeps/sparc/sparc32/backtrace.h: New file.
53108         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
53109         * sysdeps/sparc/sparc64/backtrace.h: New file.
53110         * sysdeps/sparc/sparc64/backtrace.c: Delete.
53111         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
53112         -funwind-tables.
53113
53114 2013-01-21  Andreas Schwab  <schwab@suse.de>
53115
53116         [BZ #15020]
53117         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
53118         closed its stdout.
53119
53120 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
53121
53122         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
53123         "mpa2.h".
53124         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53125
53126 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
53127             Mark Mitchell  <mark@codesourcery.com>
53128             Tom de Vries  <tom@codesourcery.com>
53129             Paul Pluzhnikov  <ppluzhnikov@google.com>
53130
53131         * debug/tst-backtrace2.c: New file.
53132         * debug/tst-backtrace3.c: Likewise.
53133         * debug/tst-backtrace4.c: Likewise.
53134         * debug/tst-backtrace5.c: Likewise.
53135         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
53136         (CFLAGS-tst-backtrace3.c): Likewise.
53137         (CFLAGS-tst-backtrace4.c): Likewise.
53138         (CFLAGS-tst-backtrace5.c): Likewise.
53139         (LDFLAGS-tst-backtrace2): Likewise.
53140         (LDFLAGS-tst-backtrace3): Likewise.
53141         (LDFLAGS-tst-backtrace4): Likewise.
53142         (LDFLAGS-tst-backtrace5): Likewise.
53143         (tests): Add new tests tst-backtrace2, tst-backtrace3,
53144         tst-backtrace4 and tst-backtrace5.
53145
53146 2013-01-18  Anton Blanchard  <anton@samba.org>
53147             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53148
53149         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
53150         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
53151         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
53152         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
53153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53154         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
53155         "+r" and remove output regs list as redundant.  Add explicit inline
53156         asm to specify register of return val to work around compiler codegen
53157         bug.  Remove (int) cast on return value.  Add return type parameter to
53158         use in macro so that this macro does not truncate return value for
53159         64-bit values.
53160         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
53161         pass to INTERNAL_VSYSCALL_NCS.
53162         (INLINE_VSYSCALL): Add 'long int' as return type to
53163         INTERNAL_VSYSCALL_NCS macro invocation.
53164         (INTERNAL_VSYSCALL): Add 'long int' as return type to
53165         INTERNAL_VSYSCALL_NCS macro invocation.
53166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53167
53168 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
53169
53170         [BZ #14496]
53171         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
53172         Fix application of SIMD FP exception mask.
53173
53174         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
53175         mp_no from a power of two.
53176         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
53177         __mpexp_twomm1.  Use __pow_mp.
53178
53179         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
53180         multiplication.
53181
53182 2013-01-17  David S. Miller  <davem@davemloft.net>
53183
53184         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53185
53186 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53187
53188         [BZ #15023]
53189         * include/complex.h: Condition contents on [!_COMPLEX_H].
53190         (__kernel_casinhf): New prototype.
53191         (__kernel_casinh): Likewise.
53192         (__kernel_casinhl): Likewise.
53193         * math/Makefile (libm_calls): Add k_casinh.
53194         * math/k_casinh.c: New file.
53195         * math/k_casinhf.c: Likewise.
53196         * math/k_casinhl.c: Likewise.
53197         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
53198         finite nonzero arguments.
53199         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
53200         finite nonzero arguments.
53201         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53202         finite nonzero arguments.
53203         * math/s_casinh.c: Do not include <float.h>.
53204         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53205         * math/s_casinhf.c: Do not include <float.h>.
53206         (__casinhf): Move code for finite nonzero arguments to
53207         k_casinhf.c.
53208         * math/s_casinhl.c: Do not include <float.h>.
53209         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53210         redefine.
53211         (__casinhl): Move code for finite nonzero arguments to
53212         k_casinhl.c.
53213         * math/libm-test.inc (cacos_test): Add more tests.
53214         * sysdeps/i386/fpu/libm-test-ulps: Update.
53215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53216
53217 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53218
53219         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53220         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53221         [!HAVE_MREMAP]: Remove [defined linux] case.
53222         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53223
53224 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53225
53226         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53227
53228 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53229
53230         * elf/elf.h (R_386_SIZE32): New relocation.
53231         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53232         R_386_SIZE32.
53233         (elf_machine_rela): Likewise.
53234         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53235         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53236
53237 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53238
53239         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53240         (FP_FAST_FMA): Do not define.
53241         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53242         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53243         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53244         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53245         !_SOFT_FLOAT]: Likewise.
53246         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53247         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53248         value.
53249         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53250         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53251         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53252         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53253         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53254         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53255         file.
53256
53257 2013-01-16  Andreas Schwab  <schwab@suse.de>
53258
53259         [BZ #14327]
53260         * include/stdlib.h (__mktemp): Add declaration.
53261         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53262         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53263
53264 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53265
53266         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53267         definitions.
53268         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53269         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53270         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53271         definitions here.
53272         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53273         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53274         definitions.
53275         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53276         and ONE.
53277         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53278         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53279         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53280         definitions.
53281         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53282         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53283         definitions.
53284         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53285
53286         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53287
53288 2013-01-15  David S. Miller  <davem@davemloft.net>
53289
53290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53291         trunc{,f} to libm-sysdep_routes.
53292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53294         file.
53295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53297         file.
53298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53299         file.
53300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53302         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53303         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53304         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53305         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53306         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53307         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53308
53309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53310         nearbyint{,f} to libm-sysdep_routes.
53311         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53313         New file.
53314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53315         file.
53316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53317         New file.
53318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53319         file.
53320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53322         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53323         file.
53324         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53325         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53326         file.
53327         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53328         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53329         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53330
53331         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53332         libc_feholdexcept and libc_fesetenv.
53333
53334 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53335
53336         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53337
53338 2013-01-14  David S. Miller  <davem@davemloft.net>
53339
53340         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53341         (SPARC_ASM_VIS2_IFUNC): Likewise.
53342         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53344         use of 'siam' instruction.
53345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53346         Likewise.
53347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53348         Likewise.
53349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53350         Likewise.
53351         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53352         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53353         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53354         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53356         file.
53357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53358         file.
53359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53360         file.
53361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53362         file.
53363         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53364         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53365         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53366         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53368         new VIS2 routines.
53369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53372         Likewise.
53373         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53374         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53375         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53376         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53378         routines to libm-sysdep_routines.
53379         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53380
53381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53382         fdim/fdimf to libm-sysdep_routines.
53383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53384         file.
53385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53387         file.
53388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53391         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53392         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53393         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53394         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53395
53396 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53397
53398         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53399         to optimize copies.
53400
53401         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53402         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53403         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53404
53405         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53406         local variable MPTWO.
53407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53408         Likewise.
53409
53410 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53411
53412         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53413         GLOB_NOESCAPE.
53414
53415 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53416
53417         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53418
53419 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53420
53421         * manual/pattern.texi (glob_t): Document gl_flags.
53422         (glob64_t): Likewise.
53423
53424 2013-01-11  David S. Miller  <davem@davemloft.net>
53425
53426         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53427         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53428         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53429         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53430         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53431         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53432         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53433         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53434         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53435         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53436         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53437         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53438         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53439
53440         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53441         sparc V9 rather than using V8 code.
53442         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53443         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53444
53445         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53446         Move to...
53447         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53448         Here.
53449
53450 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53451
53452         [BZ #14941]
53453         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53454         not in the main loop.
53455         * configure: Regenerated.
53456
53457 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53458
53459         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53460         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53461         to just #else.
53462         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53463         [!__GLIBC_HAVE_LONG_LONG] case.
53464         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53465         condition to just #else.
53466         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53467         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53468         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53469         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53470         unconditional.
53471         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53472         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53473         #elif condition to just #else.
53474         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53475         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53476         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53477         #elif condition to just #else.
53478
53479 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53480
53481         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53482         (EF_MIPS_ARCH_64): Fix value.
53483         (EF_MIPS_ARCH_32R2): New.
53484         (EF_MIPS_ARCH_64R2): New.
53485
53486 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53487
53488         * Makeconfig (+link-pie-before-libc): New.
53489         (+link-pie-after-libc): Likewise.
53490         (+link-pie-tests): Likewise.
53491         (+link-pie): Rewritten.
53492         (link-before-libc): Remove $(config-LDFLAGS).
53493         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53494         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53495         (config-LDFLAGS): Renamed to ...
53496         (rtld-LDFLAGS): This.
53497         (rtld-tests-LDFLAGS): New macro.
53498         (link-libc-rpath-link): Likewise.
53499         (link-libc-tests-rpath-link): Likewise.
53500         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53501         (link-libc): Prepand $(link-libc-rpath-link).
53502         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53503         (test-program-prefix): New macro.
53504         (test-via-rtld-prefix): Likewise.
53505         (test-program-cmd): Likewise.
53506         (host-test-program-cmd): Likewise.
53507         * Makefile ($(common-objpfx)testrun.sh): Replace
53508         $(run-program-prefix) with $(test-program-prefix).
53509         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53510         $(rtld-LDFLAGS).
53511         ($(common-objpfx)shlib.lds): Likewise.
53512         (build-module-helper): Likewise.
53513         ($(common-objpfx)format.lds): Likewise.
53514         * Rules (binaries-pie-tests): New.
53515         (binaries-pie-notests): Likewise.
53516         (binaries-pie): Rewritten.
53517         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53518         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53519         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53520         (make-test-out): Replace $(host-built-program-cmd) with
53521         $(host-test-program-cmd).
53522         * config.make.in (build-hardcoded-path-in-tests): New variable.
53523         * configure.in (--enable-hardcoded-path-in-tests): New configure
53524         option.
53525         (hardcoded_path_in_tests): New AC_SUBST.
53526         * configure: Regenerated.
53527         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53528         $(built-program-cmd) with $(test-program-cmd).
53529         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53530         (test_program_cmd): This.
53531         * elf/Makefile ($(objpfx)order.out): Run test with
53532         $(test-program-prefix).
53533         ($(objpfx)order2.out): Likewise.
53534         ($(objpfx)tst-initorder.out): Likewise.
53535         ($(objpfx)tst-initorder2.out): Likewise.
53536         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53537         $(test-program-cmd).
53538         ($(objpfx)tst-array1-static.out): Likewise.
53539         ($(objpfx)tst-array2.out): Likewise.
53540         ($(objpfx)tst-array3.out): Likewise.
53541         ($(objpfx)tst-array4.out): Likewise.
53542         ($(objpfx)tst-array5.out): Likewise.
53543         ($(objpfx)tst-array5-static.out): Likewise.
53544         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53545         $(test-program-cmd).
53546         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53547         $(run-program-prefix) with $(test-program-prefix).
53548         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53549         (test_program_prefix): This.
53550         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53551         $(run-program-prefix) with $(test-program-prefix).
53552         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53553         (test_program_prefix): This.
53554         * iconvdata/tst-tables.sh: Likewise.
53555         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53556         $(run-program-prefix) with $(test-program-prefix).
53557         ($(objpfx)tst-translit.out): Likewise.
53558         ($(objpfx)tst-gettext2.out): Likewise.
53559         ($(objpfx)tst-gettext4.out): Likewise.
53560         ($(objpfx)tst-gettext6.out): Likewise.
53561         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53562         (test_program_prefix): This.
53563         * intl/tst-gettext2.sh: Likewise.
53564         * intl/tst-gettext4.sh  Likewise.
53565         * intl/tst-gettext6.sh: Likewise.
53566         * intl/tst-translit.sh: Likewise.
53567         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53568         with $(test-program-cmd).
53569         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53570         $(run-program-prefix) with $(test-program-prefix).
53571         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53572         (test_program_prefix): This.
53573         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53574         $(run-program-prefix) with $(test-program-prefix).
53575         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53576         (test_program_prefix): This.
53577         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53578         * posix/Makefile ($(objpfx)globtest.out): Replace
53579         $(run-via-rtld-prefix) and $(test-wrapper) with
53580         $(test-program-prefix) and $(test-via-rtld-prefix).
53581         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53582         $(test-program-prefix).
53583         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53584         $(host-test-program-cmd).
53585         (tst-spawn-ARGS): Likewise.
53586         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53587         $(test-program-prefix).
53588         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53589         (test_via_rtld_prefix): This.
53590         (test_wrapper): Renamed to ...
53591         (test_program_prefix): This.
53592         (run_program_prefix): Replaced by test_program_prefix.
53593         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53594         (test_program_prefix): This.
53595         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53596         with $(host-test-program-cmd).
53597         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53598         $(run-program-prefix) with $(test-program-prefix).
53599         ($(objpfx)tst-printf.out): Likewise.
53600         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53601         $(test-program-cmd).
53602         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53603         (test_program_prefix): This.
53604         * stdio-common/tst-unbputc.sh: Likewise.
53605         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53606         $(run-program-prefix) with $(test-program-prefix).
53607         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53608         (test_program_prefix): This.
53609         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53610         $(built-program-cmd) with $(test-program-cmd).
53611
53612 2013-01-11  Andreas Jaeger  <aj@suse.de>
53613
53614         [BZ #15003]
53615         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53616         value. Sync with Linux 3.7.
53617
53618 2013-01-10  David S. Miller  <davem@davemloft.net>
53619
53620         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53621         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53622         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53623
53624 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53625
53626         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53627         never set.
53628         * configure: Regenerated.
53629
53630 2013-01-10  David S. Miller  <davem@davemloft.net>
53631
53632         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53633         sparc V9 rather than using V8 code.
53634         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53635         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53636
53637 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53638
53639         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53640         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53641         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53642         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53643         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53644         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53645         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53646         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53647         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53648         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53649         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53650         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53651         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53652         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53653         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53654         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53655         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53656         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53657         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53658         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53659         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53660         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53661         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53662         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53663         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53664         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53665         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53666
53667 2013-01-10  David S. Miller  <davem@davemloft.net>
53668
53669         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53670
53671 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53672
53673         * posix/Makefile (tests-static): New variable.
53674         (tests): Add $(tests-static).
53675         (tst-exec-static-ARGS): New variable.
53676         (tst-spawn-static-ARGS): Likewise.
53677         * posix/tst-exec-static.c: New file.
53678         * posix/tst-spawn-static.c: Likewise.
53679         * posix/tst-exec.c: Support run directly.
53680         * posix/tst-spawn.c: Likewise.
53681
53682 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53683
53684         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53685         long.
53686         * math/bits/mathcalls.h (llrint): Likewise.
53687         (llround): Likewise.
53688         * stdlib/stdlib.h (struct drand48_data): Likewise.
53689         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53690         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53691         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53692         Likewise.
53693         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53694         Likewise.
53695         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53696         (elf_greg_t): Likewise.
53697         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53698         (__jmp_buf): Likewise.
53699         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53700         definitions.
53701         (llrint): Likewise, for all definitions.
53702         (llrintl): Likewise.
53703
53704         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53705         Remove [__GNUC__] condition.
53706         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53707         condition to just [__USE_ISOC99].
53708         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53709
53710 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53711
53712         [BZ #14200]
53713         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53714         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53715         defined.
53716         (_POSIX_V6_ILP32_OFF32): Likewise.
53717         (_XBS5_ILP32_OFF32): Likewise.
53718         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53719         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53720
53721 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53722
53723         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53724
53725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53726         doubles __mpexp_twomm1.  Adjust usage.
53727         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53728         Remove.
53729
53730 2013-01-10  Andreas Schwab  <schwab@suse.de>
53731
53732         [BZ #14964]
53733         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53734         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53735
53736 2013-01-09  David S. Miller  <davem@davemloft.net>
53737
53738         [BZ #15003]
53739         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53740         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53741         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53742         (TCP_FASTOPEN): Define.
53743         (tcp_repair_opt): New structure.
53744         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53745         enum values.
53746         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53747         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53748         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53749         (tcp_cookie_transactions): New structure.
53750
53751 2013-01-09  Anton Blanchard  <anton@samba.org>
53752
53753         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53754         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53755         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53756         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53757
53758 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53759
53760         * include/features.h (__USE_ANSI): Remove.
53761
53762 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53763
53764         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53765
53766         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53767
53768 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53769
53770         * sysdeps/s390/fpu/libm-test-ulps: Update.
53771
53772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53773
53774         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53775         (__acr): Likewise.
53776         (__cpy): Likewise.
53777         (norm): Likewise.
53778         (denorm): Likewise.
53779         (__mp_dbl): Likewise.
53780         (__dbl_mp): Likewise.
53781         (add_magnitudes): Likewise.
53782         (sub_magnitudes): Likewise.
53783         (__add): Likewise.
53784         (__sub): Likewise.
53785         (__mul): Likewise.
53786         (__inv): Likewise.
53787         (__dvd): Likewise.
53788         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53789         (__acr): Likewise.
53790         (__cpy): Likewise.
53791         (norm): Likewise.
53792         (denorm): Likewise.
53793         (__mp_dbl): Likewise.
53794         (__dbl_mp): Likewise.
53795         (add_magnitudes): Likewise.
53796         (sub_magnitudes): Likewise.
53797         (__add): Likewise.
53798         (__sub): Likewise.
53799         (__mul): Likewise.
53800         (__inv): Likewise.
53801         (__dvd): Likewise.
53802         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53803         (__acr): Likewise.
53804         (__cpy): Likewise.
53805         (norm): Likewise.
53806         (denorm): Likewise.
53807         (__mp_dbl): Likewise.
53808         (__dbl_mp): Likewise.
53809         (add_magnitudes): Likewise.
53810         (sub_magnitudes): Likewise.
53811         (__add): Likewise.
53812         (__sub): Likewise.
53813         (__mul): Likewise.
53814         (__inv): Likewise.
53815         (__dvd): Likewise.
53816
53817 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53818
53819         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53820         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53821         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53822         2 && __USE_EXTERN_INLINES]: Likewise.
53823
53824 2013-01-08  Andreas Jaeger  <aj@suse.de>
53825
53826         [BZ# 14985]
53827         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53828         Remove.
53829         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53830         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53831
53832 2013-01-07  Anton Blanchard  <anton@samba.org>
53833
53834         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53835         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53836         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53837         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53838         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53839         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53840         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53841         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53842         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53843         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53844         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53845         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53846         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53847         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53848         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53849         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53850         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53851         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53852         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53853         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53854         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53855         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53856         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53857         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53858         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53859         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53860         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53861         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53862         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53863         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53864         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53865         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53866         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53867         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53868         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53869         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53870         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53871         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53872         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53873         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53874         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53875         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53876         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53877
53878 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53879
53880         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53881         (__MALLOC_PMT): Likewise.
53882         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53883         [__GNUC__], only on [_LIBC].
53884         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53885         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53886         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53887         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53888         forward declaration.
53889         (realloc_hook_ini): Likewise.
53890         (memalign_hook_ini): Likewise.
53891         (__libc_memalign): Do not use __MALLOC_PMT in variable
53892         declaration.
53893         (__libc_valloc): Likewise.
53894         (__libc_pvalloc): Likewise.
53895         (__libc_calloc): Likewise.
53896         (__posix_memalign): Likewise.
53897
53898         [BZ #14996]
53899         * math/s_casinh.c: Include <float.h>.
53900         (__casinh): Do not do computation with squaring and square root
53901         for large arguments.
53902         * math/s_casinhf.c: Include <float.h>.
53903         (__casinhf): Do not do computation with squaring and square root
53904         for large arguments.
53905         * math/s_casinhl.c: Include <float.h>.
53906         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53907         (__casinhl): Do not do computation with squaring and square root
53908         for large arguments.
53909         * math/libm-test.inc (casin_test): Add more tests.
53910         (casinh_test): Likewise.
53911         * sysdeps/i386/fpu/libm-test-ulps: Update.
53912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53913
53914 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53915
53916         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53917         (__x86_64_raw_data_cache_size): Likewise.
53918         (__x86_64_data_cache_size_half): Likewise.
53919         (__x86_64_raw_data_cache_size_half): Likewise.
53920         (__x86_64_shared_cache_size): Likewise.
53921         (__x86_64_raw_shared_cache_size): Likewise.
53922         (__x86_64_shared_cache_size_half): Likewise.
53923         (__x86_64_raw_shared_cache_size_half): Likewise.
53924         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53925         to ...
53926         (__x86_data_cache_size): This.
53927         (__x86_64_raw_data_cache_size): Renamed to ...
53928         (__x86_raw_data_cache_size): This.
53929         (__x86_64_data_cache_size_half): Renamed to ...
53930         (__x86_data_cache_size_half): This.
53931         (__x86_64_raw_data_cache_size_half): Renamed to ...
53932         (__x86_raw_data_cache_size_half): This.
53933         (__x86_64_shared_cache_size): Renamed to ...
53934         (__x86_shared_cache_size): This.
53935         (__x86_64_raw_shared_cache_size): Renamed to ...
53936         (__x86_raw_shared_cache_size): This.
53937         (__x86_64_shared_cache_size_half): Renamed to ...
53938         (__x86_shared_cache_size_half): This.
53939         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53940         (__x86_raw_shared_cache_size_half): This.
53941         * sysdeps/x86_64/memcpy.S: Updated.
53942         * sysdeps/x86_64/memset.S: Likewise.
53943         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53944         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53945         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53946
53947 2013-01-04  David S. Miller  <davem@davemloft.net>
53948
53949         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53950
53951 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53952
53953         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53954         1 to avoid redefinition warning.
53955         (__USE_GNU): Don't define.
53956         (init_signaling_nan): Protoize.
53957
53958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53959
53960 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53961
53962         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53963         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53964         (__cpymn): Likewise.
53965         (norm): Remove commented code.
53966         (denorm): Likewise.
53967         (__mp_dbl): Likewise.
53968         (__inv): Likewise.
53969         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53970         (__cpymn): Likewise.
53971         (norm): Remove commented code.
53972         (denorm): Likewise.
53973         (__mp_dbl): Likewise.
53974         (__inv): Likewise.
53975
53976         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53977         mp_no value for 1.0 and 2.0.
53978         (norm): Use RADIXI instead of radixi.d.
53979         (denorm): Likewise.
53980         (__mul): Use 0.0 instead of zero.d.
53981         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53982         mp_no value for 1.0 and 2.0.
53983         (norm): Use RADIXI instead of radixi.d.
53984         (denorm): Likewise.
53985         (__mul): Use 0.0 instead of zero.d.
53986
53987 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53988
53989         [BZ #14994]
53990         * math/s_casinh.c (__casinh): Reduce finite argument to first
53991         quadrant then set signs of results at the end.
53992         * math/s_casinhf.c (__casinhf): Likewise.
53993         * math/s_casinhl.c (__casinhl): Likewise.
53994         * math/libm-test.inc (casin_test): Add more tests.
53995         (casinh_test): Likewise.
53996         * sysdeps/i386/fpu/libm-test-ulps: Update.
53997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53998
53999 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54000
54001         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
54002
54003         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
54004
54005         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
54006         declarations.
54007         (denorm): Likewise.
54008         (__mp_dbl): Likewise.
54009         (__inv): Likewise.
54010
54011         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
54012         and adjust the header comment.
54013
54014         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
54015         variable name from declaration.
54016
54017 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
54018
54019         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
54020         Initialize COMMON_CPUID_INDEX_7 element.
54021         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
54022         (CPUID_RTM): Likewise.
54023         (HAS_RTM): Likewise.
54024         (COMMON_CPUID_INDEX_7): New enum.
54025
54026 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
54027
54028         [BZ #14981]
54029         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
54030         size is zero, record memory as freed.
54031
54032 2013-01-03  Andreas Jaeger  <aj@suse.de>
54033
54034         * po/ia.po: Add new Interlingua translation.
54035
54036 2012-01-03  Allan McRae  <allan@archlinux.org>
54037
54038         * locale/programs/localedef.c: Fix description of '--posix' flag.
54039
54040 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
54041
54042         * NEWS: Update dates in second copyright notice.
54043         * README: Update copyright dates in example.
54044         * manual/libc.texinfo: Update copyright dates.
54045         * scripts/test-installation.pl: Update copyright date in --version
54046         output.
54047
54048         * hurd/ctty-input.c: Fix copyright notice formatting.
54049         * hurd/ctty-output.c: Likewise.
54050         * hurd/dtable.c: Likewise.
54051         * hurd/hurd-raise.c: Likewise.
54052         * hurd/hurdprio.c: Likewise.
54053         * hurd/msgportdemux.c: Likewise.
54054         * misc/sys/file.h: Likewise.
54055         * misc/sys/ioctl.h: Likewise.
54056         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
54057         * sysdeps/mach/hurd/chdir.c: Likewise.
54058         * sysdeps/mach/hurd/fchdir.c: Likewise.
54059         * sysdeps/mach/hurd/rename.c: Likewise.
54060         * sysdeps/mach/hurd/rmdir.c: Likewise.
54061         * sysdeps/mach/hurd/seekdir.c: Likewise.
54062         * sysdeps/mach/hurd/setsid.c: Likewise.
54063         * sysdeps/posix/wait3.c: Likewise.
54064
54065         * All files with FSF copyright notices: Update copyright dates
54066         using scripts/update-copyrights.
54067         * intl/plural.c: Regenerated.
54068         * locale/programs/charmap-kw.h: Likewise.
54069         * locale/programs/locfile-kw.h: Likewise.
54070
54071 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
54072
54073         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
54074         four values.
54075
54076         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
54077         calculation loop and add branch prediction.
54078
54079         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
54080         check access beyond bounds of m1np.
54081
54082         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54083         MPTWO.
54084         (__inv): Remove local variable MPTWO to use the global
54085         constant.
54086         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
54087         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54088         variable MPTWO.
54089         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
54090         MP3HALFS static const.
54091
54092 2013-01-01  David S. Miller  <davem@davemloft.net>
54093
54094         * po/ca.po: Update from translation team.
54095
54096 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
54097
54098         * scripts/update-copyrights: New file.
54099         * Makeconfig: Reformat copyright notice.
54100         * ctype/ctype.h: Likewise.
54101         * debug/swprintf_chk.c: Likewise.
54102         * elf/dl-cache.c: Likewise.
54103         * elf/dl-debug.c: Likewise.
54104         * elf/dl-object.c: Likewise.
54105         * grp/initgroups.c: Likewise.
54106         * hurd/Makefile: Likewise.
54107         * hurd/hurd/signal.h: Likewise.
54108         * hurd/hurdfault.c: Likewise.
54109         * hurd/hurdioctl.c: Likewise.
54110         * hurd/hurdlookup.c: Likewise.
54111         * hurd/intr-msg.c: Likewise.
54112         * iconv/gconv_open.c: Likewise.
54113         * libio/swprintf.c: Likewise.
54114         * locale/lc-ctype.c: Likewise.
54115         * locale/nl_langinfo.c: Likewise.
54116         * mach/Machrules: Likewise.
54117         * mach/Makefile: Likewise.
54118         * malloc/obstack.h: Likewise.
54119         * manual/Makefile: Likewise.
54120         * manual/tsort.awk: Likewise.
54121         * misc/bits/stab.def: Likewise.
54122         * nis/nis_print_group_entry.c: Likewise.
54123         * nis/nis_table.c: Likewise.
54124         * nis/nss_compat/compat-pwd.c: Likewise.
54125         * nis/nss_compat/compat-spwd.c: Likewise.
54126         * po/Makefile: Likewise.
54127         * posix/fnmatch.c: Likewise.
54128         * posix/regex.h: Likewise.
54129         * resolv/Makefile: Likewise.
54130         * resolv/nss_dns/dns-network.c: Likewise.
54131         * resolv/res_hconf.c: Likewise.
54132         * scripts/gen-sorted.awk: Likewise.
54133         * soft-fp/soft-fp.h: Likewise.
54134         * stdio-common/printf.h: Likewise.
54135         * stdlib/monetary.h: Likewise.
54136         * stdlib/random.c: Likewise.
54137         * stdlib/random_r.c: Likewise.
54138         * sysdeps/generic/Makefile: Likewise.
54139         * sysdeps/gnu/Makefile: Likewise.
54140         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
54141         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
54142         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
54143         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
54144         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
54145         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
54146         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
54147         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
54148         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
54149         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
54150         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
54151         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
54152         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
54153         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
54154         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
54155         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
54156         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
54157         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
54158         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
54159         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
54160         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
54161         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
54162         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
54163         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
54164         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
54165         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
54166         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
54167         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
54168         * sysdeps/mach/hurd/errnos.awk: Likewise.
54169         * sysdeps/mach/hurd/fork.c: Likewise.
54170         * sysdeps/mach/hurd/getcwd.c: Likewise.
54171         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
54172         * sysdeps/mach/hurd/mmap.c: Likewise.
54173         * sysdeps/mach/hurd/utimes.c: Likewise.
54174         * sysdeps/mach/hurd/xmknod.c: Likewise.
54175         * sysdeps/posix/profil.c: Likewise.
54176         * sysdeps/posix/readdir_r.c: Likewise.
54177         * sysdeps/powerpc/bits/mathdef.h: Likewise.
54178         * sysdeps/powerpc/bits/setjmp.h: Likewise.
54179         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
54180         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
54181         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
54182         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
54183         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
54184         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
54185         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
54186         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
54187         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
54188         * sysdeps/pthread/lio_listio.c: Likewise.
54189         * sysdeps/sparc/dl-procinfo.h: Likewise.
54190         * sysdeps/unix/i386/sysdep.S: Likewise.
54191         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
54192         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
54193         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
54194         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
54195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
54196         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
54197         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
54198         * sysdeps/unix/sysv/linux/speed.c: Likewise.
54199         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
54200         * sysdeps/wordsize-32/divdi3.c: Likewise.
54201         * time/sys/time.h: Likewise.
54202         * wcsmbs/Makefile: Likewise.
54203
54204 2013-01-01  David S. Miller  <davem@davemloft.net>
54205
54206         * po/fr.po: Update from translation team.
54207
54208         * catgets/gencat.c: Update copyright year.
54209         * csu/version.c: Likewise.
54210         * debug/catchsegv.sh: Likewise.
54211         * debug/pcprofiledump.c: Likewise.
54212         * debug/xtrace.sh: Likewise.
54213         * elf/ldconfig.c: Likewise.
54214         * elf/ldd.bash.in: Likewise.
54215         * elf/pldd.c: Likewise.
54216         * elf/sotruss.ksh: Likewise.
54217         * elf/sprof.c: Likewise.
54218         * iconv/iconv_prog.c: Likewise.
54219         * iconv/iconvconfig.c: Likewise.
54220         * locale/programs/locale.c: Likewise.
54221         * locale/programs/localedef.c: Likewise.
54222         * login/programs/pt_chown.c: Likewise.
54223         * malloc/memusage.sh: Likewise.
54224         * malloc/memusagestat.c: Likewise.
54225         * malloc/mtrace.pl: Likewise.
54226         * nscd/nscd.c: Likewise.
54227         * nss/getent.c: Likewise.
54228         * nss/makedb.c: Likewise.
54229         * posix/getconf.c: Likewise.
54230
54231 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54232
54233         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54234         numbers.
54235
54236 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54237
54238         * math/bits/mathcalls.h (modf): Use __nonnull.
54239
54240 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54241
54242         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54243         (split): Use macro CN instead of the bare value.
54244         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54245         could be used.
54246         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54247         instead of the bare value.
54248         (power1): Likewise.
54249
54250 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54251
54252         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54253         __ATAN_TWOM.
54254         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54255
54256         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54257         their values.
54258         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54259         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54260         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54261         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54262
54263 2012-12-28  Andreas Jaeger  <aj@suse.de>
54264
54265         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54266         values are from Linux 3.7.
54267
54268         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54269         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54270
54271 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54272
54273         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54274         TRUE case.
54275
54276         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54277         (norm): Likewise.
54278         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54279         variables with preprocessor constants.
54280         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54281         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54282         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54283
54284 2012-12-27  Bruno Haible  <bruno@clisp.org>
54285
54286         [BZ #14317]
54287         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54288         only if needed.
54289
54290 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54291
54292         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54293         and use variable directly.
54294         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54295
54296         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54297         MPONE.
54298         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54299         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54300         variable MPONE.
54301         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54302         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54303         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54304         include directive.  Remove local variable MPONE.
54305         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54306         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54307         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54308
54309 2012-12-25  David S. Miller  <davem@davemloft.net>
54310
54311         * version.h (RELEASE): Set to "development".
54312         (VERSION): Set to "2.17.90".
54313         * NEWS: Add 2.18 section.
54314
54315 2012-12-21  David S. Miller  <davem@davemloft.net>
54316
54317         * po/hr.po: Update from translation team.
54318
54319 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54320
54321         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54322
54323 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54324
54325         * NEWS:  Mention new memcpy for MIPS.
54326
54327 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54328
54329         * manual/contrib.texi (Contributors): Spelling correction.
54330
54331 2012-12-15  David S. Miller  <davem@davemloft.net>
54332
54333         * po/ru.po: Update from translation team.
54334
54335 2012-12-13  David S. Miller  <davem@davemloft.net>
54336
54337         * NEWS: Mention IFUNC testsuite enhancements.
54338
54339         * po/pl.po: Update from translation team.
54340         * po/bg.po: Likewise.
54341
54342         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54343         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54344
54345 2012-12-11  David S. Miller  <davem@davemloft.net>
54346
54347         * po/sv.po: Update from translation team.
54348
54349         * po/vi.po: Update from translation team.
54350
54351         * po/cs.po: Update from translation team.
54352
54353         * po/de.po: Update from translation team.
54354         * po/eo.po: Likewise.
54355         * po/nl.po: Likewise.
54356
54357 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54358
54359         [BZ #14246]
54360         * manual/argp.texi (Argp Helper Functions): Move node to follow
54361         Argp Parsing State.
54362
54363         [BZ #14872]
54364         * manual/conf.texi (Limits on File System Capacity): Mention if
54365         terminating null is included in the max size.
54366
54367 2012-12-10  Andreas Jaeger  <aj@suse.de>
54368
54369         * po/cs.po: Update from translation team.
54370
54371 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54372
54373         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54374         void pointer and cast to uintptr_t.
54375         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54376         path.
54377         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54378         * sysdeps/s390/s390-64/memset.S: Likewise.
54379
54380 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54381
54382         [BZ #14833]
54383         * menual/message.texi (Message Translation): Fix typos.
54384         (Helper programs for gettext): Likewise.
54385
54386 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54387
54388         [BZ #14898]
54389         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54390         Change to -1.
54391
54392 2012-12-07  David S. Miller  <davem@davemloft.net>
54393
54394         * po/libc.pot: Update.
54395
54396 2012-12-07  Richard Henderson  <rth@redhat.com>
54397
54398         [BZ #10114]
54399         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54400         normal/normal case to before the switch.
54401         (_FP_DIV): Likewise.
54402
54403 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54404             Mike Frysinger  <vapier@gentoo.org>
54405
54406         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54407         check for __NR_fadvise64_64.
54408
54409 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54410
54411         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54412         0, not just to plain "0" as a statement.
54413         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54414         with cw.
54415
54416 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54417
54418         * NEWS: Use sourceware.org in Bugzilla URL.
54419
54420 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54421
54422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54423         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54424
54425         * stdio-common/tst-put-error.c (do_test): Add newline to the
54426         padded test to ensure flush.
54427
54428 2012-12-05  Jeff Law  <law@redhat.com>
54429
54430         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54431
54432 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54433
54434         * README: Don't refer to ports add-on as distributed separately.
54435         Mention AArch64 in list of systems supported in the ports add-on.
54436
54437         * LICENSES: Add more non-FSF copyright and license notices.
54438
54439         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54440         ((unused)).
54441
54442         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54443
54444         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54445         10000 as width of padded output.
54446
54447 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54448
54449         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54450
54451         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54452         variable LX with __attribute__ ((unused)).
54453         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54454         Likewise.
54455         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54456         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54457         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54458         with __attribute__ ((unused)).
54459
54460 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54461
54462         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54463
54464 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54465
54466         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54467         (CFLAGS-nldbl-acos.c): New variable.
54468         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54469         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54470         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54471         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54472         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54473         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54474         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54475         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54476         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54477         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54478         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54479         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54480         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54481         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54482         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54483         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54484         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54485         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54486         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54487         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54488         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54489         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54490         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54491         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54492         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54493         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54494         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54495         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54496         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54497         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54498         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54499         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54500         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54501         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54502         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54503         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54504         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54505         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54506         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54507         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54508         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54509         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54510         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54511         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54512         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54513         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54514         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54515         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54516         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54517         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54518         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54519         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54520         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54521         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54522         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54523         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54524         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54525         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54526         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54527         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54528         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54529         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54530         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54531         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54532         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54533         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54534         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54535         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54536         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54537         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54538         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54539         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54540         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54541         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54542         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54543         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54544         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54545         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54546         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54547         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54548         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54549         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54550         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54551         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54552         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54553         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54554         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54555         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54556         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54557         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54558         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54559         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54560         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54561         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54562         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54563         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54564         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54565
54566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54567         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54568
54569         [BZ #14914]
54570         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54571         whole low double instead of just low 47 bits when splitting values
54572         into two parts.
54573
54574 2012-12-03  Allan McRae  <allan@archlinux.org>
54575
54576         * manual/stdio.texi (Predefined Printf Handlers): Remove
54577         @hsep and @vsep usage.
54578
54579 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54580
54581         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54582         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54583
54584 2012-12-03  Jeff Law  <law@redhat.com>
54585
54586         * time/sys/time.h (settimeofday): Do not mark TV argument
54587         as __nonnull.
54588
54589 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54590
54591         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54592         when currently writing and seek to current position when not.
54593         * libio/Makefile (tests): Remove bug-fclose1.
54594         * libio/bug-fclose1.c: Delete.
54595
54596 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54597
54598         * manual/arith.texi (feenableexcept): Fix typo.
54599         (fedisableexcept): Likewise.
54600
54601 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54602
54603         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54604         second, differently-typed declaration, rather than a cast.
54605
54606 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54607
54608         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54609         * include/rpc/svc.h: ... here.
54610
54611 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54612
54613         [BZ #13013]
54614         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54615         depending n and resplen2 to catch cases where answer
54616         equals answerp2.
54617
54618 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54619
54620         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54621         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54622
54623 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54624
54625         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54626
54627 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54628
54629         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54630
54631 2012-11-28  Jeff Law  <law@redhat.com>
54632
54633         [BZ #13761]
54634         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54635         dataset_temporary.  Track alloca usage into alloca_used.
54636         If dataset is large allocate and release it via malloc/free.
54637
54638 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54639
54640         [BZ #14197]
54641         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54642
54643 2012-11-28  David S. Miller  <davem@davemloft.net>
54644
54645         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54646
54647 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54648
54649         [BZ #14803]
54650         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54651         of pi/2 rounded to nearest to 64 bits.
54652         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54653         nearest to 64 bits.
54654         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54655         bits.
54656
54657 2012-11-28  Jeff Law <law@redhat.com>
54658             Martin Osvald <mosvald@redhat.com>
54659
54660         [BZ #14889]
54661         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54662         * sunrpc/svc.c: Include time.h.
54663         (__svc_accept_failed): New function.
54664         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54665         any reason other than EINTR, call __svc_accept_failed.
54666         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54667         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54668
54669 2012-11-28  Andreas Schwab  <schwab@suse.de>
54670
54671         * scripts/abilist.awk: Also handle indirect functions in .opd
54672         section.
54673
54674 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54675
54676         [BZ #13881]
54677         * sysdeps/x86/fpu/powl_helper.c: New file.
54678         * sysdeps/x86/fpu/Makefile: Likewise.
54679         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54680         (p3): New object.
54681         (__ieee754_powl): Use __powl_helper for finite arguments except
54682         integer exponents below 8.
54683         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54684         (p3): New object.
54685         (__ieee754_powl): Use __powl_helper for finite arguments except
54686         integer exponents below 8.
54687         * math/libm-test.inc (pow_test): Add more tests and enable some
54688         previously disabled tests.
54689         * sysdeps/i386/fpu/libm-test-ulps: Update.
54690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54691
54692 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54693             Carlos O'Donell  <carlos_odonell@mentor.com>
54694
54695         * nss/makedb.c (is_prime): Assert that input is odd and greater
54696         than 4.  Note that fact in a comment too.
54697         (next_prime): Add 4 to input.
54698
54699 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54700
54701         [BZ #11741]
54702         * libio/Makefile (tests): Add test case tst-fwrite-error.
54703         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54704         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54705         * libio/tst-fwrite-error.c: New test case.
54706
54707 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54708
54709         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54710         before casting to void *.
54711         * include/libc-internal.h (__pointer_type): New macro.
54712         (__integer_if_pointer_type_sub): Likewise.
54713         (__integer_if_pointer_type): Likewise.
54714         (cast_to_integer): Likewise.
54715         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54716         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54717         before casting to atomic64_t.
54718         (atomic_exchange_acq): Likewise.
54719         (__arch_exchange_and_add_body): Likewise.
54720         (__arch_add_body): Likewise.
54721         (atomic_add_negative): Likewise.
54722         (atomic_add_zero): Likewise.
54723
54724 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54725
54726         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54727         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54728         (add_fdes): Likewise.
54729         (linear_search_fdes): Likewise.
54730         (binary_search_unencoded_fdes): Likewise.
54731
54732 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54733
54734         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54735
54736 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54737
54738         * configure.in: Autodetect C++ header directories.
54739         * configure: Regenerated.
54740
54741 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54742
54743         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54744
54745 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54746
54747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54748
54749 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54750
54751         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54752         LDBL_MANT_DIG == 106]: Disable some tests.
54753         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54754         Likewise.
54755         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54756         Likewise.
54757
54758         [BZ #14871]
54759         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54760         input for small inputs.  Return +/- pi/2 for large inputs.
54761         * math/libm-test.inc (atan_test): Add more tests.
54762
54763         * sysdeps/generic/unwind-dw2-fde-glibc.c
54764         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54765         __attribute__ ((unused)).
54766
54767         [BZ #14645]
54768         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54769         x * y if x and y are nonzero and z is zero.
54770
54771         [BZ #14811]
54772         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54773         nonzero exponents with absolute value below 0x1p-117 to +/-
54774         0x1p-117.
54775
54776         [BZ #14869]
54777         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54778         up arguments below 2**-450, not just those below 2**-500.
54779         * math/libm-test.inc (hypot_test): Add another test.
54780
54781         [BZ #14868]
54782         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54783         Return a+b for ratio over 2**120, not 2**60.
54784         * math/libm-test.inc (hypot_test): Add another test.
54785
54786         * math/libm-test.inc (clog_test): Use
54787         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54788         (clog10_test): Likewise.
54789
54790         [BZ #6778]
54791         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54792
54793 2012-11-22  Andreas Schwab  <schwab@suse.de>
54794
54795         * sysdeps/i386/fpu/libm-test-ulps: Update.
54796
54797 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54798
54799         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54800         printf output with newline.
54801
54802 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54803
54804         [BZ #14865]
54805         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54806         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54807         -z nodlopen, -z initfirst and -z execstack support.
54808         * configure: Regenerated.
54809
54810         * elf/elf.h (DF_1_NODIRECT): New macro.
54811         (DF_1_IGNMULDEF): Likewise.
54812         (DF_1_NOKSYMS): Likewise.
54813         (DF_1_NOHDR): Likewise.
54814         (DF_1_EDITED): Likewise.
54815         (DF_1_NORELOC): Likewise.
54816         (DF_1_SYMINTPOSE): Likewise.
54817         (DF_1_GLOBAUDIT): Likewise.
54818         (DF_1_SINGLETON): Likewise.
54819         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54820         DT_1_SUPPORTED_MASK bits.
54821         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54822
54823 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54824
54825         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54826
54827 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54828
54829         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54830         macro.
54831
54832         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54833         (sendmmsg): Move declarations...
54834         * socket/sys/socket.h: ... here.
54835         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54836         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54837         include it from...
54838         * socket/recvmmsg.c: ... this new file.
54839         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54840         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54841         definition of __sendmmsg hidden.
54842         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54843         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54844         Move ENOSYS stub into and include it from...
54845         * socket/sendmmsg.c: ... this new file.
54846         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54847         (sysdep_routines): Move recvmmsg and sendmmsg...
54848         * socket/Makefile (routines): ... here.
54849         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54850         (GLIBC_PRIVATE): Add __sendmmsg.
54851         * include/sys/socket.h (__sendmmsg): Add declarations.
54852         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54853         sendmmsg.
54854
54855 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54856
54857         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54858         variable I1 with __attribute__ ((unused)).
54859         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54860
54861 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54862
54863         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54864         DUMMY variables with __attribute__ ((unused)).
54865
54866         * bits/byteswap.h: Include <bits/types.h>.
54867         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54868
54869 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54870
54871         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54872         string_t.  Do not manually set errno.
54873         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54874         length with __strnlen.  Make sure to both set errno and return it on
54875         failure.
54876
54877 2012-11-19  David S. Miller  <davem@davemloft.net>
54878
54879         With help from Joseph Myers.
54880         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54881         very large arguments properly.
54882         * math/libm-test.inc (atan_test): New tests.
54883         (atan2_test): New tests.
54884         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54885         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54886
54887 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54888
54889         [BZ #14856]
54890         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54891         Define to 3.
54892
54893         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54894         [POSIX] (EADDRNOTAVAIL): Likewise.
54895         [POSIX] (EAFNOSUPPORT): Likewise.
54896         [POSIX] (EALREADY): Likewise.
54897         [POSIX] (ECONNABORTED): Likewise.
54898         [POSIX] (ECONNREFUSED): Likewise.
54899         [POSIX] (ECONNRESET): Likewise.
54900         [POSIX] (EDESTADDRREQ): Likewise.
54901         [POSIX] (EDQUOT): Likewise.
54902         [POSIX] (EHOSTUNREACH): Likewise.
54903         [POSIX] (EIDRM): Likewise.
54904         [POSIX] (EISCONN): Likewise.
54905         [POSIX] (ELOOP): Likewise.
54906         [POSIX] (EMULTIHOP): Likewise.
54907         [POSIX] (ENETDOWN): Likewise.
54908         [POSIX] (ENETUNREACH): Likewise.
54909         [POSIX] (ENOBUFS): Likewise.
54910         [POSIX] (ENODATA): Likewise.
54911         [POSIX] (ENOLINK): Likewise.
54912         [POSIX] (ENOMSG): Likewise.
54913         [POSIX] (ENOPROTOOPT): Likewise.
54914         [POSIX] (ENOSR): Likewise.
54915         [POSIX] (ENOSTR): Likewise.
54916         [POSIX] (ENOTCONN): Likewise.
54917         [POSIX] (ENOTSOCK): Likewise.
54918         [POSIX] (EOPNOTSUPP): Likewise.
54919         [POSIX] (EOVERFLOW): Likewise.
54920         [POSIX] (EPROTO): Likewise.
54921         [POSIX] (EPROTONOSUPPORT): Likewise.
54922         [POSIX] (EPROTOTYPE): Likewise.
54923         [POSIX] (ESTALE): Likewise.
54924         [POSIX] (ETIME): Likewise.
54925         [POSIX] (ETXTBSY): Likewise.
54926         [POSIX] (EWOULDBLOCK): Likewise.
54927         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54928         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54929         [POSIX] (SEEK_CUR): Likewise.
54930         [POSIX] (SEEK_END): Likewise.
54931         [POSIX || UNIX98] (mode_t): Do not require.
54932         [POSIX] (off_t): Likewise.
54933         [POSIX] (pid_t): Likewise.
54934         [POSIX] (sys/stat.h): Do not allow header.
54935         [POSIX] (unistd.h): Likewise.
54936         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54937         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54938         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54939         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54940         require.
54941         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54942         sigevent): Specify elements.
54943         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54944         entry.
54945         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54946         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54947
54948         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54949         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54950         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54951         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54952         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54953         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54954         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54955         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54956         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54957         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54958         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54959         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54960         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54961         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54962         Likewise.
54963         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54964         Likewise.
54965         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54966         Likewise.
54967         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54968         Likewise.
54969         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54970         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54971         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54972         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54973         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54974         Specify lower bound on value.
54975         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54976         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54977         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54978         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54979         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54980         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54981         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54982         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54983         value.
54984         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54985         as optional.
54986         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54987         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54988         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54989         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54990         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54991         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54992         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54993         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54994         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54995         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54996         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54997         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54998         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54999         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
55000         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
55001         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
55002         entry.
55003         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
55004         optional.
55005         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
55006         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
55007         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
55008         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
55009         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
55010         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
55011         Likewise.
55012         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
55013         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
55014         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
55015         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
55016         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
55017         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
55018         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
55019         as optional.
55020         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
55021         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
55022         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
55023         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
55024         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
55025         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
55026         specify as optional.
55027         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
55028         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
55029         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
55030         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
55031         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
55032         [XPG3] (NL_LANGMAX): Likewise.
55033         [POSIX || XPG3] (NL_MSGMAX): Likewise.
55034         [POSIX || XPG3] (NL_NMAX): Likewise.
55035         [POSIX || XPG3] (NL_SETMAX): Likewise.
55036         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
55037         [XPG3] (NZERO): Likewise.
55038         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
55039         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
55040         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
55041         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
55042         (REG_ERANGE): Expect.
55043         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
55044         optional-constant.
55045         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
55046         Use (void) in prototype.
55047         [POSIX] (*_t): Allow.
55048         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
55049         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
55050         (WRDE_BADVAL): Expect.
55051
55052         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
55053         expect.
55054         [XPG3 || XPG4] (O_RSYNC): Likewise.
55055         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
55056         Likewise.
55057         [XPG3 || XPG4] (pthread_sigmask): Likewise.
55058         [XPG3 || XPG4] (sigqueue): Likewise.
55059         [XPG3 || XPG4] (sigtimedwait): Likewise.
55060         [XPG3 || XPG4] (sigwaitinfo): Likewise.
55061         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
55062         [XPG3 || XPG4] (vsnprintf): Likewise.
55063         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
55064         Likewise.
55065         [XPG3 || XPG4] (blksize_t): Likewise.
55066         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
55067         Likewise.
55068         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
55069         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
55070         [XPG3 || XPG4] (struct itimerspec): Likewise.
55071         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
55072         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
55073         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
55074         [XPG3 || XPG4] (clockid_t): Likewise.
55075         [XPG3 || XPG4] (timer_t): Likewise.
55076         [XPG3 || XPG4] (clock_getres): Likewise.
55077         [XPG3 || XPG4] (clock_gettime): Likewise.
55078         [XPG3 || XPG4] (clock_settime): Likewise.
55079         [XPG3 || XPG4] (nanosleep): Likewise.
55080         [XPG3 || XPG4] (timer_create): Likewise.
55081         [XPG3 || XPG4] (timer_delete): Likewise.
55082         [XPG3 || XPG4] (timer_gettime): Likewise.
55083         [XPG3 || XPG4] (timer_getoverrun): Likewise.
55084         [XPG3 || XPG4] (timer_settime): Likewise.
55085         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
55086         [XPG3 || XPG4] (getlogin_r): Likewise.
55087         [XPG3 || XPG4] (pread): Likewise.
55088         [XPG3 || XPG4] (pthread_atfork): Likewise.
55089         [XPG3 || XPG4] (pwrite): Likewise.
55090
55091         [BZ #14835]
55092         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
55093         <bits/siginfo.h>.
55094
55095 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
55096
55097         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
55098         finalizing MALLSTREAM.
55099
55100         * sysdeps/mach/hurd/syncfs.c: New file.
55101
55102 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
55103
55104         [BZ #14719]
55105         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
55106         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
55107         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
55108         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
55109         (_nss_dns_gethostbyname4_r): Likewise.
55110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
55111         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
55112
55113 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
55114
55115         [BZ #13763]
55116         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
55117
55118 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
55119
55120         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
55121         * elf/cache.c (print_entry): Print ",AArch64" for
55122         FLAG_AARCH64_LIB64
55123
55124         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
55125         * elf/cache.c (print_entry): Print ",hard-float" for
55126         FLAG_ARM_LIBHF.
55127
55128 2012-11-18  David S. Miller  <davem@davemloft.net>
55129
55130         With help from Joseph Myers.
55131         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
55132         cutoff to 2**-13.
55133         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
55134         cutoff to 2**-25.
55135         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
55136         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
55137         small.
55138         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
55139         * math/libm-test.inc (y0_test): New tests.
55140         (y1_test): New tests.
55141         * sysdeps/i386/fpu/libm-test-ulps: Update.
55142         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55144
55145 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
55146
55147         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
55148         64-bit targets.
55149         * configure: Regenerated.
55150
55151 2012-11-17  David S. Miller  <davem@davemloft.net>
55152
55153         [BZ #14811]
55154         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
55155         nonzero exponents with absolute value below 0x1p-128 to +/-
55156         0x1p-128.
55157
55158 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
55159
55160         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
55161
55162         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
55163
55164         * posix/getconf-speclist.c: New file.
55165         * posix/posix-envs.def: Likewise.
55166         * posix/confstr.c (START_ENV_GROUP): New macro.
55167         (END_ENV_GROUP): Likewise.
55168         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55169         (KNOWN_PRESENT_ENV_STRING): Likewise.
55170         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55171         (UNKNOWN_ENVIRONMENT): Likewise.
55172         (confstr): Include posix-envs.def instead of handling
55173         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
55174         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
55175         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
55176         (END_ENV_GROUP): Likewise.
55177         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55178         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55179         (UNKNOWN_ENVIRONMENT): Likewise.
55180         (__sysconf): Include posix-envs.def instead of handling associated
55181         cases directly here.
55182         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
55183         preprocessing getconf-speclist.c rather than running getconf or
55184         generating empty file.
55185
55186 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
55187
55188         * scripts/check-local-headers.sh: Ignore 'mach' headers.
55189
55190 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
55191
55192         [BZ #14672]
55193         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
55194
55195 2012-11-16  David S. Miller  <davem@davemloft.net>
55196
55197         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
55198         smaller than LDBL_EPSILON/2.0L, just return xm1.
55199
55200 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55201
55202         * elf/tst-array1.c (init): Set constructor priority to 1000.
55203         (fini): Set destructor priority to 1000.
55204         * elf/tst-array2dep.c: Likewise.
55205
55206 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55207
55208         [BZ #11741]
55209         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55210         (_IO_new_file_xsputn): Also return EOF if none of the input
55211         data was written when overflow failed.
55212         * libio/iopadn.c (_IO_padn): Likewise.
55213         * libio/iowpadn.c (_IO_wpadn): Likewise.
55214         * stdio-common/tst-put-error.c: Add copyright notice.
55215         (do_test): Add case for printing padded string.
55216         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55217         _IO_padn returned error.
55218         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55219         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55220         return EOF.
55221
55222 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55223
55224         * libio/libioP.h: Add comment note that the references to C++
55225         bits are now obsolete.
55226
55227 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55228
55229         * math/libm-test.inc (check_complex): Use asprintf.
55230
55231 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55232
55233         * debug/pcprofiledump.c (print_version): Update copyright year.
55234         * malloc/memusagestat.c (print_version): Likewise.
55235
55236 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55237
55238         [BZ #14831]
55239         * elf/Makefile (tests): Add tst-audit8.
55240         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55241         ($(objpfx)tst-audit8.out): New target.
55242         (tst-audit8-ENV): New variable.
55243         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55244         audit if l_reloc_result is NULL.
55245         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55246         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55247         * elf/tst-audit8.c: New file.
55248
55249 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55250
55251         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55252         * misc/Makefile (CFLAGS-select.c): Define.
55253         * posix/Makefile (CFLAGS-pause.c): Define.
55254
55255 2012-11-13  David S. Miller  <davem@davemloft.net>
55256
55257         * crypt/Makefile: Move test targets after toplevel Rules
55258         inclusion.  Grab any necessary sysdep routines when linking.
55259         * crypt/md5.c (md5_process_block): Remove define, we will always
55260         name it __md5_process_block.
55261         (md5_finish_ctx): Update md5_process_block call.
55262         (md5_stream): Likewise.
55263         (md5_process_bytes): Likewise.
55264         (md5_process_block): Rename to __md5_process_block and move to ...
55265         * crypt/md5-block.c: ... here.
55266         * crypt/sha256.c (sha256_process_block): Move to ...
55267         * crypt/sha256-block.c: ... here.
55268         * crypt/sha512.c (sha512_process_block): Move to ...
55269         * crypt/sha512-block.c: ... here.
55270         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55271         path.
55272         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55273         * sysdeps/sparc/sparc64/multiarch/Makefile
55274         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55275         crypt subdir.
55276         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55277         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55278         multiarch changes.
55279         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55280         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55281         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55282         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55283         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55284         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55285         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55286         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55287         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55288         file.
55289         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55290         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55291         file.
55292         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55293
55294 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55295
55296         * timezone/tzselect.ksh: Update from tzcode git revision
55297         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55298         * timezone/zdump.c: Likewise.
55299         * timezone/zic.c: Likewise.
55300         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55301         in TZVERSION setting, not $(PKGVERSION).
55302         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55303         REPORT_BUGS_TO settings.
55304
55305         [BZ #14838]
55306         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55307         macro.
55308
55309 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55310
55311         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55312         detection to immediately after _FP_ROUND().
55313         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55314         bits are 0.
55315
55316 2012-11-11  David S. Miller  <davem@davemloft.net>
55317
55318         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55319         inttypes.h
55320         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55321         __close rather than their public counterparts.
55322
55323 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55324
55325         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55326         file.
55327         [UNIX98] (sem_timedwait): Do not expect.
55328         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55329         [XPG4 || UNIX98] (sockatmark): Do not expect.
55330         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55331         (clock_getcpuclockid): Do not expect.
55332         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55333         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55334         Do not expect.
55335         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55336         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55337         [UNIX98] (vwscanf): Likewise.
55338         [UNIX98] (vswscanf): Likewise.
55339
55340 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55341
55342         * timezone/version.h: Remove file.
55343         * timezone/README: Do not refer to version.h.
55344         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55345         $(objpfx)version.h.
55346         ($(objpfx)zdump.o): Likewise.
55347         ($(objpfx)version.h): New target.
55348
55349         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55350         2012i.
55351         * timezone/README: Don't mention modification to tzselect.ksh.
55352         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55353         work on unmodified tzselect.ksh.  Substitute version numbers in
55354         tzselect.ksh.
55355
55356         * Makefile (format-me): Remove.
55357         (INSTALL): Adjust indentation.  Use commands directly instead of
55358         using $(format-me).
55359
55360         * aclocal.m4 (ACX_PKGVERSION): New macro.
55361         (ACX_BUGURL): Likewise.
55362         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55363         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55364         (REPORT_BUGS_TO): Likewise.
55365         * configure: Regenerated.
55366         * config.h.in (PKGVERSION): New macro.
55367         (REPORT_BUGS_TO): Likewise.
55368         * config.make.in (PKGVERSION): New variable.
55369         (PKGVERSION_TEXI): Likewise.
55370         (REPORT_BUGS_TO): Likewise.
55371         (REPORT_BUGS_TEXI): Likewise.
55372         * Makefile (format-me): Use -I$(common-objpfx)manual.
55373         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55374         ($(common-objpfx)manual/%): New target.
55375         (manual/%): Remove target.
55376         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55377         (print_version): Use PKGVERSION.
55378         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55379         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55380         and REPORT_BUGS_TO.
55381         ($(objpfx)xtrace): Likewise.
55382         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55383         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55384         (print_version): Use PKGVERSION.
55385         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55386         (do_version): Use PKGVERSION.
55387         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55388         REPORT_BUGS_TO.
55389         (common-ldd-rewrite): Likewise.
55390         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55391         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55392         (print_version): Use PKGVERSION.
55393         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55394         * elf/pldd.c (argp_program_bug_address): Remove variable.
55395         (more_help): New function.
55396         (argp): Use more_help.
55397         (print_version): Use PKGVERSION.
55398         * elf/sln.c (main): Use PKGVERSION.
55399         (usage): Use REPORT_BUGS_TO.
55400         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55401         (top level): Use PKGVERSION.
55402         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55403         (print_version): Use PKGVERSION.
55404         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55405         (print_version): Use PKGVERSION.
55406         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55407         (print_version): Use PKGVERSION.
55408         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55409         (print_version): Use PKGVERSION.
55410         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55411         (print_version): Use PKGVERSION.
55412         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55413         (print_version): Use PKGVERSION.
55414         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55415         and BUGURL.
55416         ($(objpfx)memusage): Likewise.
55417         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55418         (do_version): Use PKGVERSION.
55419         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55420         (print_version): Use PKGVERSION.
55421         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55422         ($PKGVERSION): New variable.
55423         ($REPORT_BUGS_TO): Likewise.
55424         (usage): Use $REPORT_BUGS_TO.
55425         (top level): Use $PKGVERSION.
55426         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55427         ($(objpfx)pkgvers.texi): New rule.
55428         ($(objpfx)stamp-pkgvers): Likewise.
55429         * manual/install.texi: Include pkgvers.texi.
55430         (--with-pkgversion): Document new configure option.
55431         (--with-bugurl): Likewise.
55432         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55433         than necessarily for this particular distribution.  Use
55434         REPORT_BUGS_TO for where to report bugs.
55435         * INSTALL: Regenerated.
55436         * manual/libc.texinfo: Include pkgvers.texi.
55437         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55438         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55439         (print_version): Use PKGVERSION.
55440         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55441         (print_version): Use PKGVERSION.
55442         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55443         (print_version): Use PKGVERSION.
55444         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55445         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55446         macro.
55447         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55448         (print_version): Use PKGVERSION.
55449         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55450         (print_version): Use PKGVERSION.
55451         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55452         and PKGVERSION.
55453
55454         * timezone/checktab.awk: Update from tzcode 2012i.
55455         * timezone/ialloc.c: Likewise.
55456         * timezone/private.h: Likewise.
55457         * timezone/scheck.c: Likewise.
55458         * timezone/tzfile.h: Likewise.
55459         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55460         (TZVERSION): Hardcode tzcode version number.
55461         * timezone/zdump.c: Update from tzcode 2012i.
55462         * timezone/zic.c: Likewise.
55463         * timezone/version.h: New file.
55464         * timezone/README: Describe version.h.  Update upstream location.
55465
55466         [BZ #14824]
55467         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55468         (mktemp): Enable declaration.
55469         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55470         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55471         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55472         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55473         Likewise.
55474         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55475         Likewise.
55476         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55477         Likewise.
55478         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55479         Likewise.
55480         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55481         Likewise.
55482         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55483         Likewise.
55484
55485         [BZ #14821]
55486         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55487         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55488         for copies of such integer values.
55489         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55490         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55491
55492 2012-11-09  Andreas Jaeger  <aj@suse.de>
55493
55494         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55495         definitions and declarations that are provided by
55496         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55497
55498 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55499
55500         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55501         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55502         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55503         definition.
55504
55505 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55506
55507         * elf/elf.h: Update comment before AArch64 relocations.
55508
55509 2012-11-07  David S. Miller  <davem@davemloft.net>
55510
55511         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55512         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55513         (__start_context): Declare.
55514         (__makecontext_ret): Delete.
55515         (__makecontext): Hook up __start_context instead of
55516         __makecontext_ret.
55517         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55518         (sysdep_routines): Add __start_context when in stdlib.
55519
55520 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55521
55522         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55523         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55524         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55525         hardcoded "nm".
55526         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55527         (READELF): New variable.  Use it instead of hardcoded "readelf".
55528
55529 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55530
55531         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55532         * sysdeps/x86/Makefile: Here.
55533         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55534         * sysdeps/x86/tst-xmmymm.sh: This.
55535
55536 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55537
55538         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55539         expectations.
55540         [UNIX98] (pthread_barrier_t): Do not expect.
55541         [UNIX98] (pthread_barrierattr_t): Likewise.
55542         [UNIX98] (pthread_spinlock_t): Likewise.
55543         [UNIX98] (pthread_barrier_destroy): Likewise.
55544         [UNIX98] (pthread_barrier_init): Likewise.
55545         [UNIX98] (pthread_barrier_wait): Likewise.
55546         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55547         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55548         [UNIX98] (pthread_barrierattr_init): Likewise.
55549         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55550         [UNIX98] (pthread_getcpuclockid): Likewise.
55551         [UNIX98] (pthread_mutex_timedlock): Likewise.
55552         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55553         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55554         [UNIX98] (pthread_sigmask): Likewise.
55555         [UNIX98] (pthread_spin_destroy): Likewise.
55556         [UNIX98] (pthread_spin_init): Likewise.
55557         [UNIX98] (pthread_spin_lock): Likewise.
55558         [UNIX98] (pthread_spin_trylock): Likewise.
55559         [UNIX98] (pthread_spin_unlock): Likewise.
55560         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55561         Do not expect.
55562         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55563         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55564         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55565         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55566         [XPG3 || XPG4] (pthread_key_t): Likewise.
55567         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55568         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55569         [XPG3 || XPG4] (pthread_once_t): Likewise.
55570         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55571         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55572         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55573         [XPG3 || XPG4] (pthread_t): Likewise.
55574
55575         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55576         not expect.
55577         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55578
55579         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55580         Change function return type to int.
55581
55582         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55583         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55584         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55585         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55586         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55587         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55588         [!POSIX] (posix_madvise): Likewise.
55589         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55590         && !UNIX98].
55591         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55592         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55593         (mode_t): Likewise.
55594         (posix_mem_offset): Likewise.
55595         (posix_typed_mem_get_info): Likewise.
55596         (posix_typed_mem_open): Likewise.
55597
55598         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55599         Change condition to [XOPEN2K8].
55600
55601         * conform/conformtest.pl: Preprocess allow-header data with -x c
55602         instead of from stdin.
55603         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55604         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55605         [C99-based standards] (cerfc): Likewise.
55606         [C99-based standards] (cexp2): Likewise.
55607         [C99-based standards] (cexpm1): Likewise.
55608         [C99-based standards] (clog10): Likewise.
55609         [C99-based standards] (clog1p): Likewise.
55610         [C99-based standards] (clog2): Likewise.
55611         [C99-based standards] (clgamma): Likewise.
55612         [C99-based standards] (ctgamma): Likewise.
55613         [C99-based standards] (cerff): Likewise.
55614         [C99-based standards] (cerfcf): Likewise.
55615         [C99-based standards] (cexp2f): Likewise.
55616         [C99-based standards] (cexpm1f): Likewise.
55617         [C99-based standards] (clog10f): Likewise.
55618         [C99-based standards] (clog1pf): Likewise.
55619         [C99-based standards] (clog2f): Likewise.
55620         [C99-based standards] (clgammaf): Likewise.
55621         [C99-based standards] (ctgammaf): Likewise.
55622         [C99-based standards] (cerfl): Likewise.
55623         [C99-based standards] (cerfcl): Likewise.
55624         [C99-based standards] (cexp2l): Likewise.
55625         [C99-based standards] (cexpm1l): Likewise.
55626         [C99-based standards] (clog10l): Likewise.
55627         [C99-based standards] (clog1pl): Likewise.
55628         [C99-based standards] (clog2l): Likewise.
55629         [C99-based standards] (clgammal): Likewise.
55630         [C99-based standards] (ctgammal): Likewise.
55631         * conform/data/inttypes.h-data [C99-based standards]: Include
55632         stdint.h-data.  Remove all expectations for stdint.h contents.
55633         [C99-based standards] (PRI*): Do not allow.
55634         [C99-based standards] (SCN*): Likewise.
55635         [C99-based standards] (*_t): Likewise.
55636         [C99-based-standards] (PRId8): Expect macro.
55637         [C99-based-standards] (PRIi8): Likewise.
55638         [C99-based-standards] (PRIo8): Likewise.
55639         [C99-based-standards] (PRIu8): Likewise.
55640         [C99-based-standards] (PRIx8): Likewise.
55641         [C99-based-standards] (PRIX8): Likewise.
55642         [C99-based-standards] (SCNd8): Likewise.
55643         [C99-based-standards] (SCNi8): Likewise.
55644         [C99-based-standards] (SCNo8): Likewise.
55645         [C99-based-standards] (SCNu8): Likewise.
55646         [C99-based-standards] (SCNx8): Likewise.
55647         [C99-based-standards] (PRIdLEAST8): Likewise.
55648         [C99-based-standards] (PRIiLEAST8): Likewise.
55649         [C99-based-standards] (PRIoLEAST8): Likewise.
55650         [C99-based-standards] (PRIuLEAST8): Likewise.
55651         [C99-based-standards] (PRIxLEAST8): Likewise.
55652         [C99-based-standards] (PRIXLEAST8): Likewise.
55653         [C99-based-standards] (SCNdLEAST8): Likewise.
55654         [C99-based-standards] (SCNiLEAST8): Likewise.
55655         [C99-based-standards] (SCNoLEAST8): Likewise.
55656         [C99-based-standards] (SCNuLEAST8): Likewise.
55657         [C99-based-standards] (SCNxLEAST8): Likewise.
55658         [C99-based-standards] (PRIdFAST8): Likewise.
55659         [C99-based-standards] (PRIiFAST8): Likewise.
55660         [C99-based-standards] (PRIoFAST8): Likewise.
55661         [C99-based-standards] (PRIuFAST8): Likewise.
55662         [C99-based-standards] (PRIxFAST8): Likewise.
55663         [C99-based-standards] (PRIXFAST8): Likewise.
55664         [C99-based-standards] (SCNdFAST8): Likewise.
55665         [C99-based-standards] (SCNiFAST8): Likewise.
55666         [C99-based-standards] (SCNoFAST8): Likewise.
55667         [C99-based-standards] (SCNuFAST8): Likewise.
55668         [C99-based-standards] (SCNxFAST8): Likewise.
55669         [C99-based-standards] (PRId16): Likewise.
55670         [C99-based-standards] (PRIi16): Likewise.
55671         [C99-based-standards] (PRIo16): Likewise.
55672         [C99-based-standards] (PRIu16): Likewise.
55673         [C99-based-standards] (PRIx16): Likewise.
55674         [C99-based-standards] (PRIX16): Likewise.
55675         [C99-based-standards] (SCNd16): Likewise.
55676         [C99-based-standards] (SCNi16): Likewise.
55677         [C99-based-standards] (SCNo16): Likewise.
55678         [C99-based-standards] (SCNu16): Likewise.
55679         [C99-based-standards] (SCNx16): Likewise.
55680         [C99-based-standards] (PRIdLEAST16): Likewise.
55681         [C99-based-standards] (PRIiLEAST16): Likewise.
55682         [C99-based-standards] (PRIoLEAST16): Likewise.
55683         [C99-based-standards] (PRIuLEAST16): Likewise.
55684         [C99-based-standards] (PRIxLEAST16): Likewise.
55685         [C99-based-standards] (PRIXLEAST16): Likewise.
55686         [C99-based-standards] (SCNdLEAST16): Likewise.
55687         [C99-based-standards] (SCNiLEAST16): Likewise.
55688         [C99-based-standards] (SCNoLEAST16): Likewise.
55689         [C99-based-standards] (SCNuLEAST16): Likewise.
55690         [C99-based-standards] (SCNxLEAST16): Likewise.
55691         [C99-based-standards] (PRIdFAST16): Likewise.
55692         [C99-based-standards] (PRIiFAST16): Likewise.
55693         [C99-based-standards] (PRIoFAST16): Likewise.
55694         [C99-based-standards] (PRIuFAST16): Likewise.
55695         [C99-based-standards] (PRIxFAST16): Likewise.
55696         [C99-based-standards] (PRIXFAST16): Likewise.
55697         [C99-based-standards] (SCNdFAST16): Likewise.
55698         [C99-based-standards] (SCNiFAST16): Likewise.
55699         [C99-based-standards] (SCNoFAST16): Likewise.
55700         [C99-based-standards] (SCNuFAST16): Likewise.
55701         [C99-based-standards] (SCNxFAST16): Likewise.
55702         [C99-based-standards] (PRId32): Likewise.
55703         [C99-based-standards] (PRIi32): Likewise.
55704         [C99-based-standards] (PRIo32): Likewise.
55705         [C99-based-standards] (PRIu32): Likewise.
55706         [C99-based-standards] (PRIx32): Likewise.
55707         [C99-based-standards] (PRIX32): Likewise.
55708         [C99-based-standards] (SCNd32): Likewise.
55709         [C99-based-standards] (SCNi32): Likewise.
55710         [C99-based-standards] (SCNo32): Likewise.
55711         [C99-based-standards] (SCNu32): Likewise.
55712         [C99-based-standards] (SCNx32): Likewise.
55713         [C99-based-standards] (PRIdLEAST32): Likewise.
55714         [C99-based-standards] (PRIiLEAST32): Likewise.
55715         [C99-based-standards] (PRIoLEAST32): Likewise.
55716         [C99-based-standards] (PRIuLEAST32): Likewise.
55717         [C99-based-standards] (PRIxLEAST32): Likewise.
55718         [C99-based-standards] (PRIXLEAST32): Likewise.
55719         [C99-based-standards] (SCNdLEAST32): Likewise.
55720         [C99-based-standards] (SCNiLEAST32): Likewise.
55721         [C99-based-standards] (SCNoLEAST32): Likewise.
55722         [C99-based-standards] (SCNuLEAST32): Likewise.
55723         [C99-based-standards] (SCNxLEAST32): Likewise.
55724         [C99-based-standards] (PRIdFAST32): Likewise.
55725         [C99-based-standards] (PRIiFAST32): Likewise.
55726         [C99-based-standards] (PRIoFAST32): Likewise.
55727         [C99-based-standards] (PRIuFAST32): Likewise.
55728         [C99-based-standards] (PRIxFAST32): Likewise.
55729         [C99-based-standards] (PRIXFAST32): Likewise.
55730         [C99-based-standards] (SCNdFAST32): Likewise.
55731         [C99-based-standards] (SCNiFAST32): Likewise.
55732         [C99-based-standards] (SCNoFAST32): Likewise.
55733         [C99-based-standards] (SCNuFAST32): Likewise.
55734         [C99-based-standards] (SCNxFAST32): Likewise.
55735         [C99-based-standards] (PRId64): Likewise.
55736         [C99-based-standards] (PRIi64): Likewise.
55737         [C99-based-standards] (PRIo64): Likewise.
55738         [C99-based-standards] (PRIu64): Likewise.
55739         [C99-based-standards] (PRIx64): Likewise.
55740         [C99-based-standards] (PRIX64): Likewise.
55741         [C99-based-standards] (SCNd64): Likewise.
55742         [C99-based-standards] (SCNi64): Likewise.
55743         [C99-based-standards] (SCNo64): Likewise.
55744         [C99-based-standards] (SCNu64): Likewise.
55745         [C99-based-standards] (SCNx64): Likewise.
55746         [C99-based-standards] (PRIdLEAST64): Likewise.
55747         [C99-based-standards] (PRIiLEAST64): Likewise.
55748         [C99-based-standards] (PRIoLEAST64): Likewise.
55749         [C99-based-standards] (PRIuLEAST64): Likewise.
55750         [C99-based-standards] (PRIxLEAST64): Likewise.
55751         [C99-based-standards] (PRIXLEAST64): Likewise.
55752         [C99-based-standards] (SCNdLEAST64): Likewise.
55753         [C99-based-standards] (SCNiLEAST64): Likewise.
55754         [C99-based-standards] (SCNoLEAST64): Likewise.
55755         [C99-based-standards] (SCNuLEAST64): Likewise.
55756         [C99-based-standards] (SCNxLEAST64): Likewise.
55757         [C99-based-standards] (PRIdFAST64): Likewise.
55758         [C99-based-standards] (PRIiFAST64): Likewise.
55759         [C99-based-standards] (PRIoFAST64): Likewise.
55760         [C99-based-standards] (PRIuFAST64): Likewise.
55761         [C99-based-standards] (PRIxFAST64): Likewise.
55762         [C99-based-standards] (PRIXFAST64): Likewise.
55763         [C99-based-standards] (SCNdFAST64): Likewise.
55764         [C99-based-standards] (SCNiFAST64): Likewise.
55765         [C99-based-standards] (SCNoFAST64): Likewise.
55766         [C99-based-standards] (SCNuFAST64): Likewise.
55767         [C99-based-standards] (SCNxFAST64): Likewise.
55768         [C99-based-standards] (PRIdMAX): Likewise.
55769         [C99-based-standards] (PRIiMAX): Likewise.
55770         [C99-based-standards] (PRIoMAX): Likewise.
55771         [C99-based-standards] (PRIuMAX): Likewise.
55772         [C99-based-standards] (PRIxMAX): Likewise.
55773         [C99-based-standards] (PRIXMAX): Likewise.
55774         [C99-based-standards] (SCNdMAX): Likewise.
55775         [C99-based-standards] (SCNiMAX): Likewise.
55776         [C99-based-standards] (SCNoMAX): Likewise.
55777         [C99-based-standards] (SCNuMAX): Likewise.
55778         [C99-based-standards] (SCNxMAX): Likewise.
55779         [C99-based-standards] (PRIdPTR): Likewise.
55780         [C99-based-standards] (PRIiPTR): Likewise.
55781         [C99-based-standards] (PRIoPTR): Likewise.
55782         [C99-based-standards] (PRIuPTR): Likewise.
55783         [C99-based-standards] (PRIxPTR): Likewise.
55784         [C99-based-standards] (PRIXPTR): Likewise.
55785         [C99-based-standards] (SCNdPTR): Likewise.
55786         [C99-based-standards] (SCNiPTR): Likewise.
55787         [C99-based-standards] (SCNoPTR): Likewise.
55788         [C99-based-standards] (SCNuPTR): Likewise.
55789         [C99-based-standards] (SCNxPTR): Likewise.
55790         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55791         allow.
55792         * conform/data/stdint.h-data: Update comments to clarify
55793         requirements.
55794         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55795         type.
55796         [C99-based standards] (INT8_MAX): Likewise.
55797         [C99-based standards] (INT16_MIN): Likewise.
55798         [C99-based standards] (INT16_MAX): Likewise.
55799         [C99-based standards] (INT32_MIN): Likewise.
55800         [C99-based standards] (INT32_MAX): Likewise.
55801         [C99-based standards] (INT64_MIN): Likewise.
55802         [C99-based standards] (INT64_MAX): Likewise.
55803         [C99-based standards] (UINT8_MAX): Likewise.
55804         [C99-based standards] (UINT16_MAX): Likewise.
55805         [C99-based standards] (UINT32_MAX): Likewise.
55806         [C99-based standards] (UINT64_MAX): Likewise.
55807         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55808         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55809         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55810         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55811         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55812         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55813         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55814         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55815         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55816         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55817         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55818         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55819         [C99-based standards] (INT_FAST8_MIN): Likewise.
55820         [C99-based standards] (INT_FAST8_MAX): Likewise.
55821         [C99-based standards] (INT_FAST16_MIN): Likewise.
55822         [C99-based standards] (INT_FAST16_MAX): Likewise.
55823         [C99-based standards] (INT_FAST32_MIN): Likewise.
55824         [C99-based standards] (INT_FAST32_MAX): Likewise.
55825         [C99-based standards] (INT_FAST64_MIN): Likewise.
55826         [C99-based standards] (INT_FAST64_MAX): Likewise.
55827         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55828         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55829         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55830         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55831         [C99-based standards] (INTPTR_MIN): Likewise.
55832         [C99-based standards] (INTPTR_MAX): Likewise.
55833         [C99-based standards] (UINTPTR_MAX): Likewise.
55834         [C99-based standards] (INTMAX_MIN): Likewise.
55835         [C99-based standards] (INTMAX_MAX): Likewise.
55836         [C99-based standards] (UINTMAX_MAX): Likewise.
55837         [C99-based standards] (PTRDIFF_MIN): Likewise.
55838         [C99-based standards] (PTRDIFF_MAX): Likewise.
55839         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55840         [C99-based standards] (SIZE_MAX): Likewise.
55841         [C99-based standards] (WCHAR_MAX): Likewise.
55842         [C99-based standards] (WINT_MAX): Likewise.
55843         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55844         constraint on value.
55845         [C99-based standards] (WCHAR_MIN): Likewise.
55846         [C99-based standards] (WINT_MIN): Likewise.
55847         [C99-based standards] (*_t): Allow.
55848         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55849         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55850         Include math.h-data and complex.h-data.  Remove all expectations
55851         of math.h and complex.h contents.
55852         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55853         at end of line.
55854         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55855         (struct tm): Expect tag.
55856         [C99-based-standards] (wcstof): Expect function.
55857         [C99-based-standards] (wcstold): Likewise.
55858         [C99-based-standards] (wcstoll): Likewise.
55859         [C99-based-standards] (wcstoull): Likewise.
55860         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55861         macro-int-constant.  Specify type.
55862         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55863         constraint on value.
55864         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55865         Specify type.
55866         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55867         Specify value.
55868         [ISO C standards]: Do not allow headers.
55869         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55870         wcs[abcdefghijklmnopqrstuvwxyz]*.
55871         [ISO C standards] (*_t): Do not allow.
55872         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55873         Expect function.
55874         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55875         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55876         Specify type.
55877         [ISO C standards]: Do not allow headers.
55878         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55879         is[abcdefghijklmnopqrstuvwxyz]*.
55880         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55881         to[abcdefghijklmnopqrstuvwxyz]*.
55882         [ISO C standards] (*_t): Do not allow.
55883         * conform/data/stdalign.h-data: New file.
55884         * conform/data/stdbool.h-data: Likewise.
55885         * conform/data/stdnoreturn.h-data: Likewise.
55886
55887 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55888
55889         [BZ #14815]
55890         * manual/filesys.texi (Directory Entries): Typo fix.
55891         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55892
55893 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55894
55895         * elf/elf.h (EM_AARCH64): New macro.
55896         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55897         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55898         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55899         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55900         (R_AARCH64_TLSDESC): Likewise.
55901         (NT_ARM_TLS): Likewise.
55902         (NT_ARM_HW_BREAK): Likewise.
55903         (NT_ARM_HW_WATCH): Likewise.
55904
55905 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55906
55907         [BZ #14811]
55908         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55909         (__ieee754_powl): Saturate nonzero exponents with absolute value
55910         below 0x1p-79 to +/- 0x1p-79.
55911         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55912         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55913         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55914         nonzero exponents with absolute value below 0x1p-32 to +/-
55915         0x1p-32.
55916         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55917         (__ieee754_powl): Saturate nonzero exponents with absolute value
55918         below 0x1p-79 to +/- 0x1p-79.
55919         * math/libm-test.inc (pow_test): Add more tests.
55920
55921 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55922
55923         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55924         _dl_s390_cap_flags with kernel. Increase string length.
55925         (_dl_s390_platforms): Add z196 and zEC12.
55926
55927 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55928
55929         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55930         Change XOPEN21K to XOPEN2K.
55931
55932 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55933
55934         * string/memmove.c: Use memcpy when possible.
55935
55936 2012-11-06  Andreas Jaeger  <aj@suse.de>
55937
55938         * po/eo.po: Update from translation team.
55939
55940 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55941
55942         [BZ #14793]
55943         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55944         exponent and small x and y exponents, scale x or y up.  Increase
55945         by 2 the exponent used in scaling up.
55946         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55947         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55948         * math/libm-test.inc (fma_test): Add more tests.
55949         (fma_test_towardzero): Likewise.
55950         (fma_test_downward): Likewise.
55951         (fma_test_upward): Likewise.
55952
55953 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55954
55955         [BZ #14805]
55956         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55957         fenv_t *.
55958
55959         [BZ #14801]
55960         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55961         namespace for names of struct fields.
55962         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55963         fenv_t fields.
55964         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55965         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55966
55967 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55968
55969         [BZ #3665]
55970         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55971
55972 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55973
55974         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55975         PTR_DEMANGLE.
55976
55977         [BZ #5246]
55978         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55979         PTR_DEMANGLE.
55980
55981 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55982
55983         [BZ #14797]
55984         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55985         definitely overflow as x * y not x * y + z.
55986         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55987         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55988         * math/libm-test.inc (fma_test): Add more tests.
55989         (fma_test_towardzero): Likewise.
55990         (fma_test_downward): Likewise.
55991         (fma_test_upward): Likewise.
55992
55993 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55994
55995         [BZ #157]
55996
55997         * include/stub-tag.h: Remove file.
55998         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55999         '#include' of it.
56000         * manual/maint.texi (Porting): Don't reference it.
56001         * Makerules ($(objpfx)stubs): Likewise.
56002         * dirent/closedir.c: Don't include <stub-tag.h>.
56003         * dirent/dirfd.c: Likewise.
56004         * dirent/fdopendir.c: Likewise.
56005         * dirent/getdents.c: Likewise.
56006         * dirent/getdents64.c: Likewise.
56007         * dirent/opendir.c: Likewise.
56008         * dirent/readdir.c: Likewise.
56009         * dirent/readdir64.c: Likewise.
56010         * dirent/readdir64_r.c: Likewise.
56011         * dirent/readdir_r.c: Likewise.
56012         * dirent/rewinddir.c: Likewise.
56013         * dirent/seekdir.c: Likewise.
56014         * dirent/telldir.c: Likewise.
56015         * gmon/profil.c: Likewise.
56016         * grp/setgroups.c: Likewise.
56017         * inet/if_index.c: Likewise.
56018         * io/access.c: Likewise.
56019         * io/chdir.c: Likewise.
56020         * io/chmod.c: Likewise.
56021         * io/chown.c: Likewise.
56022         * io/close.c: Likewise.
56023         * io/dup.c: Likewise.
56024         * io/dup2.c: Likewise.
56025         * io/dup3.c: Likewise.
56026         * io/euidaccess.c: Likewise.
56027         * io/faccessat.c: Likewise.
56028         * io/fchdir.c: Likewise.
56029         * io/fchmod.c: Likewise.
56030         * io/fchmodat.c: Likewise.
56031         * io/fchown.c: Likewise.
56032         * io/fchownat.c: Likewise.
56033         * io/fcntl.c: Likewise.
56034         * io/flock.c: Likewise.
56035         * io/fstatfs.c: Likewise.
56036         * io/fstatfs64.c: Likewise.
56037         * io/fstatvfs.c: Likewise.
56038         * io/fstatvfs64.c: Likewise.
56039         * io/futimens.c: Likewise.
56040         * io/fxstat.c: Likewise.
56041         * io/fxstat64.c: Likewise.
56042         * io/fxstatat.c: Likewise.
56043         * io/fxstatat64.c: Likewise.
56044         * io/getcwd.c: Likewise.
56045         * io/isatty.c: Likewise.
56046         * io/lchmod.c: Likewise.
56047         * io/lchown.c: Likewise.
56048         * io/link.c: Likewise.
56049         * io/linkat.c: Likewise.
56050         * io/lseek.c: Likewise.
56051         * io/lseek64.c: Likewise.
56052         * io/lxstat64.c: Likewise.
56053         * io/mkdir.c: Likewise.
56054         * io/mkdirat.c: Likewise.
56055         * io/mkfifo.c: Likewise.
56056         * io/mkfifoat.c: Likewise.
56057         * io/open.c: Likewise.
56058         * io/open64.c: Likewise.
56059         * io/openat.c: Likewise.
56060         * io/openat64.c: Likewise.
56061         * io/pipe.c: Likewise.
56062         * io/pipe2.c: Likewise.
56063         * io/poll.c: Likewise.
56064         * io/posix_fadvise.c: Likewise.
56065         * io/posix_fadvise64.c: Likewise.
56066         * io/posix_fallocate.c: Likewise.
56067         * io/posix_fallocate64.c: Likewise.
56068         * io/read.c: Likewise.
56069         * io/readlink.c: Likewise.
56070         * io/readlinkat.c: Likewise.
56071         * io/rmdir.c: Likewise.
56072         * io/sendfile.c: Likewise.
56073         * io/sendfile64.c: Likewise.
56074         * io/statfs.c: Likewise.
56075         * io/statfs64.c: Likewise.
56076         * io/statvfs.c: Likewise.
56077         * io/statvfs64.c: Likewise.
56078         * io/symlink.c: Likewise.
56079         * io/symlinkat.c: Likewise.
56080         * io/ttyname.c: Likewise.
56081         * io/ttyname_r.c: Likewise.
56082         * io/umask.c: Likewise.
56083         * io/unlink.c: Likewise.
56084         * io/unlinkat.c: Likewise.
56085         * io/utime.c: Likewise.
56086         * io/utimensat.c: Likewise.
56087         * io/write.c: Likewise.
56088         * io/xmknod.c: Likewise.
56089         * io/xmknodat.c: Likewise.
56090         * io/xstat.c: Likewise.
56091         * io/xstat64.c: Likewise.
56092         * login/getpt.c: Likewise.
56093         * login/grantpt.c: Likewise.
56094         * login/unlockpt.c: Likewise.
56095         * math/e_acoshl.c: Likewise.
56096         * math/e_acosl.c: Likewise.
56097         * math/e_asinl.c: Likewise.
56098         * math/e_atan2l.c: Likewise.
56099         * math/e_atanhl.c: Likewise.
56100         * math/e_coshl.c: Likewise.
56101         * math/e_expl.c: Likewise.
56102         * math/e_fmodl.c: Likewise.
56103         * math/e_gammal_r.c: Likewise.
56104         * math/e_hypotl.c: Likewise.
56105         * math/e_j0l.c: Likewise.
56106         * math/e_j1l.c: Likewise.
56107         * math/e_jnl.c: Likewise.
56108         * math/e_lgammal_r.c: Likewise.
56109         * math/e_log10l.c: Likewise.
56110         * math/e_log2l.c: Likewise.
56111         * math/e_logl.c: Likewise.
56112         * math/e_powl.c: Likewise.
56113         * math/e_rem_pio2l.c: Likewise.
56114         * math/e_sinhl.c: Likewise.
56115         * math/e_sqrtl.c: Likewise.
56116         * math/fclrexcpt.c: Likewise.
56117         * math/fedisblxcpt.c: Likewise.
56118         * math/feenablxcpt.c: Likewise.
56119         * math/fegetenv.c: Likewise.
56120         * math/fegetexcept.c: Likewise.
56121         * math/fegetround.c: Likewise.
56122         * math/feholdexcpt.c: Likewise.
56123         * math/fesetenv.c: Likewise.
56124         * math/fesetround.c: Likewise.
56125         * math/feupdateenv.c: Likewise.
56126         * math/fgetexcptflg.c: Likewise.
56127         * math/fraiseexcpt.c: Likewise.
56128         * math/fsetexcptflg.c: Likewise.
56129         * math/ftestexcept.c: Likewise.
56130         * math/k_cosl.c: Likewise.
56131         * math/k_rem_pio2l.c: Likewise.
56132         * math/k_sinl.c: Likewise.
56133         * math/k_tanl.c: Likewise.
56134         * math/s_asinhl.c: Likewise.
56135         * math/s_atanl.c: Likewise.
56136         * math/s_cbrtl.c: Likewise.
56137         * math/s_erfl.c: Likewise.
56138         * math/s_expm1l.c: Likewise.
56139         * math/s_log1pl.c: Likewise.
56140         * math/s_tanhl.c: Likewise.
56141         * misc/acct.c: Likewise.
56142         * misc/brk.c: Likewise.
56143         * misc/chflags.c: Likewise.
56144         * misc/chroot.c: Likewise.
56145         * misc/fchflags.c: Likewise.
56146         * misc/fgetxattr.c: Likewise.
56147         * misc/flistxattr.c: Likewise.
56148         * misc/fremovexattr.c: Likewise.
56149         * misc/fsetxattr.c: Likewise.
56150         * misc/fsync.c: Likewise.
56151         * misc/ftruncate.c: Likewise.
56152         * misc/futimes.c: Likewise.
56153         * misc/futimesat.c: Likewise.
56154         * misc/getdomain.c: Likewise.
56155         * misc/getdtsz.c: Likewise.
56156         * misc/gethostid.c: Likewise.
56157         * misc/gethostname.c: Likewise.
56158         * misc/getloadavg.c: Likewise.
56159         * misc/getpagesize.c: Likewise.
56160         * misc/getsysstats.c: Likewise.
56161         * misc/getxattr.c: Likewise.
56162         * misc/gtty.c: Likewise.
56163         * misc/ioctl.c: Likewise.
56164         * misc/lgetxattr.c: Likewise.
56165         * misc/listxattr.c: Likewise.
56166         * misc/llistxattr.c: Likewise.
56167         * misc/lremovexattr.c: Likewise.
56168         * misc/lsetxattr.c: Likewise.
56169         * misc/lutimes.c: Likewise.
56170         * misc/madvise.c: Likewise.
56171         * misc/mincore.c: Likewise.
56172         * misc/mlock.c: Likewise.
56173         * misc/mlockall.c: Likewise.
56174         * misc/mmap.c: Likewise.
56175         * misc/mprotect.c: Likewise.
56176         * misc/msync.c: Likewise.
56177         * misc/munlock.c: Likewise.
56178         * misc/munlockall.c: Likewise.
56179         * misc/munmap.c: Likewise.
56180         * misc/preadv.c: Likewise.
56181         * misc/preadv64.c: Likewise.
56182         * misc/ptrace.c: Likewise.
56183         * misc/pwritev.c: Likewise.
56184         * misc/pwritev64.c: Likewise.
56185         * misc/readv.c: Likewise.
56186         * misc/reboot.c: Likewise.
56187         * misc/remap_file_pages.c: Likewise.
56188         * misc/removexattr.c: Likewise.
56189         * misc/revoke.c: Likewise.
56190         * misc/select.c: Likewise.
56191         * misc/setdomain.c: Likewise.
56192         * misc/setegid.c: Likewise.
56193         * misc/seteuid.c: Likewise.
56194         * misc/sethostid.c: Likewise.
56195         * misc/sethostname.c: Likewise.
56196         * misc/setregid.c: Likewise.
56197         * misc/setreuid.c: Likewise.
56198         * misc/setxattr.c: Likewise.
56199         * misc/sstk.c: Likewise.
56200         * misc/stty.c: Likewise.
56201         * misc/swapoff.c: Likewise.
56202         * misc/swapon.c: Likewise.
56203         * misc/sync.c: Likewise.
56204         * misc/syncfs.c: Likewise.
56205         * misc/syscall.c: Likewise.
56206         * misc/truncate.c: Likewise.
56207         * misc/ualarm.c: Likewise.
56208         * misc/usleep.c: Likewise.
56209         * misc/ustat.c: Likewise.
56210         * misc/utimes.c: Likewise.
56211         * misc/vhangup.c: Likewise.
56212         * misc/writev.c: Likewise.
56213         * posix/_exit.c: Likewise.
56214         * posix/alarm.c: Likewise.
56215         * posix/execve.c: Likewise.
56216         * posix/fexecve.c: Likewise.
56217         * posix/fork.c: Likewise.
56218         * posix/fpathconf.c: Likewise.
56219         * posix/getaddrinfo.c: Likewise.
56220         * posix/getegid.c: Likewise.
56221         * posix/geteuid.c: Likewise.
56222         * posix/getgid.c: Likewise.
56223         * posix/getgroups.c: Likewise.
56224         * posix/getlogin.c: Likewise.
56225         * posix/getlogin_r.c: Likewise.
56226         * posix/getpgid.c: Likewise.
56227         * posix/getpid.c: Likewise.
56228         * posix/getppid.c: Likewise.
56229         * posix/getresgid.c: Likewise.
56230         * posix/getresuid.c: Likewise.
56231         * posix/getsid.c: Likewise.
56232         * posix/getuid.c: Likewise.
56233         * posix/glob64.c: Likewise.
56234         * posix/nanosleep.c: Likewise.
56235         * posix/pathconf.c: Likewise.
56236         * posix/pause.c: Likewise.
56237         * posix/posix_madvise.c: Likewise.
56238         * posix/pread.c: Likewise.
56239         * posix/pread64.c: Likewise.
56240         * posix/pwrite.c: Likewise.
56241         * posix/pwrite64.c: Likewise.
56242         * posix/sched_getaffinity.c: Likewise.
56243         * posix/sched_getp.c: Likewise.
56244         * posix/sched_gets.c: Likewise.
56245         * posix/sched_primax.c: Likewise.
56246         * posix/sched_primin.c: Likewise.
56247         * posix/sched_rr_gi.c: Likewise.
56248         * posix/sched_setaffinity.c: Likewise.
56249         * posix/sched_setp.c: Likewise.
56250         * posix/sched_sets.c: Likewise.
56251         * posix/sched_yield.c: Likewise.
56252         * posix/setgid.c: Likewise.
56253         * posix/setlogin.c: Likewise.
56254         * posix/setpgid.c: Likewise.
56255         * posix/setresgid.c: Likewise.
56256         * posix/setresuid.c: Likewise.
56257         * posix/setsid.c: Likewise.
56258         * posix/setuid.c: Likewise.
56259         * posix/sleep.c: Likewise.
56260         * posix/spawni.c: Likewise.
56261         * posix/sysconf.c: Likewise.
56262         * posix/times.c: Likewise.
56263         * posix/wait.c: Likewise.
56264         * posix/wait3.c: Likewise.
56265         * posix/wait4.c: Likewise.
56266         * posix/waitpid.c: Likewise.
56267         * resolv/gai_sigqueue.c: Likewise.
56268         * resource/getpriority.c: Likewise.
56269         * resource/getrlimit.c: Likewise.
56270         * resource/getrusage.c: Likewise.
56271         * resource/nice.c: Likewise.
56272         * resource/setpriority.c: Likewise.
56273         * resource/setrlimit.c: Likewise.
56274         * resource/ulimit.c: Likewise.
56275         * rt/aio_cancel.c: Likewise.
56276         * rt/aio_fsync.c: Likewise.
56277         * rt/aio_read.c: Likewise.
56278         * rt/aio_sigqueue.c: Likewise.
56279         * rt/aio_suspend.c: Likewise.
56280         * rt/aio_write.c: Likewise.
56281         * rt/clock_getres.c: Likewise.
56282         * rt/clock_gettime.c: Likewise.
56283         * rt/clock_nanosleep.c: Likewise.
56284         * rt/clock_settime.c: Likewise.
56285         * rt/lio_listio.c: Likewise.
56286         * rt/mq_close.c: Likewise.
56287         * rt/mq_getattr.c: Likewise.
56288         * rt/mq_notify.c: Likewise.
56289         * rt/mq_open.c: Likewise.
56290         * rt/mq_receive.c: Likewise.
56291         * rt/mq_send.c: Likewise.
56292         * rt/mq_setattr.c: Likewise.
56293         * rt/mq_timedreceive.c: Likewise.
56294         * rt/mq_timedsend.c: Likewise.
56295         * rt/mq_unlink.c: Likewise.
56296         * rt/shm_open.c: Likewise.
56297         * rt/shm_unlink.c: Likewise.
56298         * rt/timer_create.c: Likewise.
56299         * rt/timer_delete.c: Likewise.
56300         * rt/timer_getoverr.c: Likewise.
56301         * rt/timer_gettime.c: Likewise.
56302         * rt/timer_settime.c: Likewise.
56303         * setjmp/__longjmp.c: Likewise.
56304         * setjmp/setjmp.c: Likewise.
56305         * signal/kill.c: Likewise.
56306         * signal/killpg.c: Likewise.
56307         * signal/raise.c: Likewise.
56308         * signal/sigaction.c: Likewise.
56309         * signal/sigaltstack.c: Likewise.
56310         * signal/sigblock.c: Likewise.
56311         * signal/sigignore.c: Likewise.
56312         * signal/sigintr.c: Likewise.
56313         * signal/signal.c: Likewise.
56314         * signal/sigpause.c: Likewise.
56315         * signal/sigpending.c: Likewise.
56316         * signal/sigqueue.c: Likewise.
56317         * signal/sigreturn.c: Likewise.
56318         * signal/sigset.c: Likewise.
56319         * signal/sigsetmask.c: Likewise.
56320         * signal/sigstack.c: Likewise.
56321         * signal/sigsuspend.c: Likewise.
56322         * signal/sigtimedwait.c: Likewise.
56323         * signal/sigvec.c: Likewise.
56324         * signal/sigwait.c: Likewise.
56325         * signal/sigwaitinfo.c: Likewise.
56326         * signal/sysv_signal.c: Likewise.
56327         * socket/accept.c: Likewise.
56328         * socket/accept4.c: Likewise.
56329         * socket/bind.c: Likewise.
56330         * socket/connect.c: Likewise.
56331         * socket/getpeername.c: Likewise.
56332         * socket/getsockname.c: Likewise.
56333         * socket/getsockopt.c: Likewise.
56334         * socket/isfdtype.c: Likewise.
56335         * socket/listen.c: Likewise.
56336         * socket/recv.c: Likewise.
56337         * socket/recvfrom.c: Likewise.
56338         * socket/recvmsg.c: Likewise.
56339         * socket/send.c: Likewise.
56340         * socket/sendmsg.c: Likewise.
56341         * socket/sendto.c: Likewise.
56342         * socket/setsockopt.c: Likewise.
56343         * socket/shutdown.c: Likewise.
56344         * socket/sockatmark.c: Likewise.
56345         * socket/socket.c: Likewise.
56346         * socket/socketpair.c: Likewise.
56347         * stdio-common/ctermid.c: Likewise.
56348         * stdio-common/cuserid.c: Likewise.
56349         * stdio-common/remove.c: Likewise.
56350         * stdio-common/rename.c: Likewise.
56351         * stdio-common/renameat.c: Likewise.
56352         * stdio-common/tempname.c: Likewise.
56353         * stdlib/getcontext.c: Likewise.
56354         * stdlib/makecontext.c: Likewise.
56355         * stdlib/setcontext.c: Likewise.
56356         * stdlib/swapcontext.c: Likewise.
56357         * stdlib/system.c: Likewise.
56358         * streams/fattach.c: Likewise.
56359         * streams/fdetach.c: Likewise.
56360         * streams/getmsg.c: Likewise.
56361         * streams/getpmsg.c: Likewise.
56362         * streams/putmsg.c: Likewise.
56363         * streams/putpmsg.c: Likewise.
56364         * sysdeps/unix/bsd/getpt.c: Likewise.
56365         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56366         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56367         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56369         Likewise.
56370         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56371         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56372         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56373         * sysvipc/msgctl.c: Likewise.
56374         * sysvipc/msgget.c: Likewise.
56375         * sysvipc/msgrcv.c: Likewise.
56376         * sysvipc/msgsnd.c: Likewise.
56377         * sysvipc/semctl.c: Likewise.
56378         * sysvipc/semget.c: Likewise.
56379         * sysvipc/semop.c: Likewise.
56380         * sysvipc/semtimedop.c: Likewise.
56381         * sysvipc/shmat.c: Likewise.
56382         * sysvipc/shmctl.c: Likewise.
56383         * sysvipc/shmdt.c: Likewise.
56384         * sysvipc/shmget.c: Likewise.
56385         * termios/tcdrain.c: Likewise.
56386         * termios/tcflow.c: Likewise.
56387         * termios/tcflush.c: Likewise.
56388         * termios/tcgetattr.c: Likewise.
56389         * termios/tcgetpgrp.c: Likewise.
56390         * termios/tcsendbrk.c: Likewise.
56391         * termios/tcsetattr.c: Likewise.
56392         * termios/tcsetpgrp.c: Likewise.
56393         * time/adjtime.c: Likewise.
56394         * time/clock.c: Likewise.
56395         * time/getitimer.c: Likewise.
56396         * time/gettimeofday.c: Likewise.
56397         * time/setitimer.c: Likewise.
56398         * time/settimeofday.c: Likewise.
56399         * time/stime.c: Likewise.
56400         * time/time.c: Likewise.
56401
56402 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56403
56404         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56405         /usr/old/bin.
56406
56407         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56408         instead of spaces.
56409         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56410
56411 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56412
56413         [BZ #14796]
56414         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56415         FE_TONEAREST before applying Dekker multiplication and Knuth
56416         addition.  Clear inexact exceptions and check for exact zero
56417         results afterwards.
56418         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56419         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56420         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56421         * math/libm-test.inc (fma_test): Add more tests.
56422         (fma_test_towardzero): Likewise.
56423         (fma_test_downward): Likewise.
56424         (fma_test_upward): Likewise.
56425         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56426         function.
56427         (libc_fesetround): New macro.
56428         (libc_fesetroundf): Likewise.
56429         (libc_fesetroundl): Likewise.
56430         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56431         function.
56432         (libc_fesetround_387): Likewise.
56433         (libc_fesetroundf): New macro.
56434         (libc_fesetround): Likewise.
56435         (libc_fesetroundl): Likewise.
56436         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56437         function.
56438         (libc_fesetroundf): New macro.
56439         (libc_fesetround): Likewise.
56440         (libc_fesetroundl): Likewise.
56441         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56442         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56443         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56444         libm_hidden_ver.
56445         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56446         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56447         libm_hidden_def.
56448         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56449         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56450         libm_hidden_ver.
56451         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56452         libm_hidden_def.
56453
56454         [BZ #3439]
56455         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56456         integer constant usable in #if and use that to give value to enum
56457         constant.
56458         (FE_DIVBYZERO): Likewise.
56459         (FE_UNDERFLOW): Likewise.
56460         (FE_OVERFLOW): Likewise.
56461         (FE_INVALID): Likewise.
56462         (FE_INVALID_SNAN): Likewise.
56463         (FE_INVALID_ISI): Likewise.
56464         (FE_INVALID_IDI): Likewise.
56465         (FE_INVALID_ZDZ): Likewise.
56466         (FE_INVALID_IMZ): Likewise.
56467         (FE_INVALID_COMPARE): Likewise.
56468         (FE_INVALID_SOFTWARE): Likewise.
56469         (FE_INVALID_SQRT): Likewise.
56470         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56471         (FE_TONEAREST): Likewise.
56472         (FE_TOWARDZERO): Likewise.
56473         (FE_UPWARD): Likewise.
56474         (FE_DOWNWARD): Likewise.
56475         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56476         (FE_DIVBYZERO): Likewise.
56477         (FE_OVERFLOW): Likewise.
56478         (FE_UNDERFLOW): Likewise.
56479         (FE_INEXACT): Likewise.
56480         (FE_TONEAREST): Likewise.
56481         (FE_DOWNWARD): Likewise.
56482         (FE_UPWARD): Likewise.
56483         (FE_TOWARDZERO): Likewise.
56484         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56485         (FE_UNDERFLOW): Likewise.
56486         (FE_OVERFLOW): Likewise.
56487         (FE_DIVBYZERO): Likewise.
56488         (FE_INVALID): Likewise.
56489         (FE_TONEAREST): Likewise.
56490         (FE_TOWARDZERO): Likewise.
56491         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56492         (FE_OVERFLOW): Likewise.
56493         (FE_UNDERFLOW): Likewise.
56494         (FE_DIVBYZERO): Likewise.
56495         (FE_INEXACT): Likewise.
56496         (FE_TONEAREST): Likewise.
56497         (FE_TOWARDZERO): Likewise.
56498         (FE_UPWARD): Likewise.
56499         (FE_DOWNWARD): Likewise.
56500         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56501         (FE_DIVBYZERO): Likewise.
56502         (FE_OVERFLOW): Likewise.
56503         (FE_UNDERFLOW): Likewise.
56504         (FE_INEXACT): Likewise.
56505         (FE_TONEAREST): Likewise.
56506         (FE_DOWNWARD): Likewise.
56507         (FE_UPWARD): Likewise.
56508         (FE_TOWARDZERO): Likewise.
56509
56510 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56511
56512         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56513
56514 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56515
56516         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56517         commands.  Quote $PWD.
56518         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56519         -x" by "export".
56520         (remove_newlines): Remove.
56521
56522 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56523
56524         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56525         * stdlib/stdlib.h (atof): Moved to ...
56526         * include/bits/stdlib-float.h: Here.  New file.
56527         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56528         * stdlib/bits/stdlib-float.h: New file.
56529         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56530         -mno-sse -mno-mmx.
56531         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56532         <xmmintrin.h>.
56533
56534 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56535
56536         * conform/conformtest.pl (@headers): Add fenv.h.
56537         * conform/data/fenv.h-data: New file.
56538         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56539         include of <math/fenv.h>.
56540
56541         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56542         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56543         && !UNIX98].  Enables tests for XOPEN2K8.
56544         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56545         POSIX2008]: Likewise.
56546
56547         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56548         (struct rusage): Do not expect type or its members.
56549
56550         [BZ #3439]
56551         * math/math.h (FP_NAN): Define macro to integer constant usable in
56552         #if and use that to give value to enum constant.
56553         (FP_INFINITE): Likewise.
56554         (FP_ZERO): Likewise.
56555         (FP_SUBNORMAL): Likewise.
56556         (FP_NORMAL): Likewise.
56557
56558 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56559
56560         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56561         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56562         arguments.
56563
56564 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56565
56566         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56567         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56568         autoconf-time if not.
56569         * configure.in: Remove AC_PREREQ.
56570
56571 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56572
56573         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56574         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56575         of the internal implementation.
56576
56577 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56578
56579         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56580         except include of <misc/sys/syslog.h>.
56581
56582 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56583
56584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56585         function returns with a NULL context exit with zero.
56586
56587 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56588
56589         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56590
56591 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56592
56593         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56594         (run_program_cmd): This.
56595         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56596         (tst_langinfo): New variable.  Use it.
56597
56598 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56599
56600         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56601         floating point opcodes.
56602
56603 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56604
56605         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56606         variable.
56607
56608         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56609
56610         * sysdeps/mach/hurd/powerpc: Remove directory.
56611         * sysdeps/mach/powerpc: Likewise.
56612
56613 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56614
56615         * scripts/check-local-headers.sh: Ignore c++ headers.
56616
56617 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56618
56619         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56620         __libc_cleanup_region_start argument.
56621
56622 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56623
56624         [BZ #14784]
56625         [BZ #14785]
56626         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56627         x * y using scaling, not as x * y + z.
56628         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56629         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56630         * math/libm-test.inc (fma_test): Add more tests.
56631         (fma_test_towardzero): Likewise.
56632         (fma_test_downward): Likewise.
56633         (fma_test_upward): Likewise.
56634
56635 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56636
56637         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56638
56639 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56640
56641         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56642         New variable.
56643
56644 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56645
56646         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56647
56648 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56649
56650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56651         Fix sort order.
56652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56653         Likewise.
56654
56655 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56656
56657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56658         Fix the order of the list for glibc 2.17.
56659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56660         Likewise.
56661
56662 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56663
56664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56665
56666 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56667
56668         [BZ #14610]
56669         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56670         for low part of x being zero before using __atanl (y).
56671         * math/libm-test.inc (atan2_test): Add another test.
56672
56673         * manual/install.texi (Configuring and compiling): Document
56674         general use of test-wrapper and test-wrapper-env.
56675         * INSTALL: Regenerated.
56676
56677         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56678         (__fma): Do not extract and scale down low bits on after-rounding
56679         systems when result rounded to normal precision would have normal
56680         exponent.
56681         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56682         (__fmal): Do not extract and scale down low bits on after-rounding
56683         systems when result rounded to normal precision would have normal
56684         exponent.
56685         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56686         (__fmal): Do not extract and scale down low bits on after-rounding
56687         systems when result rounded to normal precision would have normal
56688         exponent.
56689         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56690         macro.
56691         (fma_test): Add more tests.
56692         (fma_test_towardzero): Likewise.
56693         (fma_test_downward): Likewise.
56694         (fma_test_upward): Likewise.
56695
56696 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56697
56698         * sysdeps/i386/tininess.h: Renamed to ...
56699         * sysdeps/x86/tininess.h: This.
56700         * sysdeps/x86_64/tininess.h: Removed.
56701
56702 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56703
56704         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56705         input.  Use $(build-program-cmd).
56706         ($(objpfx)tst-array1-static.out): Likewise.
56707         ($(objpfx)tst-array2.out): Likewise.
56708         ($(objpfx)tst-array3.out): Likewise.
56709         ($(objpfx)tst-array4.out): Likewise.
56710         ($(objpfx)tst-array5.out): Likewise.
56711         ($(objpfx)tst-array5-static.out): Likewise.
56712
56713 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56714
56715         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56716         if defined.
56717
56718         * nss/nsswitch.h (nss_interface_function): Provide new
56719         macro for use with NSS functions.
56720         * grp/initgroups.c: Use new macro.
56721         * nss/getXXbyYY.c: Likewise.
56722         * nss/getXXbyYY_r.c: Likewise.
56723         * nss/getXXent.c: Likewise.
56724         * nss/getXXent_r.c: Likewise.
56725         * sysdeps/posix/getaddrinfo.c: Likewise.
56726
56727 2012-10-30  Andreas Jaeger  <aj@suse.de>
56728
56729         * po/ru.po: Update Russion translation from translation project.
56730
56731 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56732
56733         [BZ #14152]
56734         [BZ #14783]
56735         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56736         result and shift together with sticky bit instead of replicating
56737         round-to-nearest rounding.
56738         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56739         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56740         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56741         missing underflow exceptions.
56742         (fma_test_towardzero): Add more tests.
56743         (fma_test_downward): Likewise.
56744         (fma_test_upward): Likewise.
56745
56746         [BZ #14047]
56747         * sysdeps/generic/tininess.h: New file.
56748         * sysdeps/i386/tininess.h: Likewise.
56749         * sysdeps/sh/tininess.h: Likewise.
56750         * sysdeps/x86_64/tininess.h: Likewise.
56751         * stdlib/tst-strtod-underflow.c: Likewise.
56752         * stdlib/tst-tininess.c: Likewise.
56753         * stdlib/strtod_l.c: Include <tininess.h>.
56754         (round_and_return): Do not set errno for exact underflow cases.
56755         Force an underflow exception when setting errno for underflow.
56756         Determine underflow based on rounding to normal precision if
56757         TININESS_AFTER_ROUNDING.
56758         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56759         ERANGE for exact underflow cases.
56760         * stdlib/Makefile (tests): Add tst-tininess and
56761         tst-strtod-underflow.
56762         ($(objpfx)tst-tininess): Use $(link-libm).
56763         ($(objpfx)tst-strtod-underflow): Likewise.
56764
56765 2012-10-30  Andreas Jaeger  <aj@suse.de>
56766
56767         [BZ#14767]
56768         * elf/Makefile (tests): Remove conditional for have-initfini-array
56769         since this is now always required and the variable does not exist
56770         anymore.
56771         (tests-static): Likewise.
56772         (modules-names): Likewise.
56773
56774         * po/eo.po: Add Esperanto translation from translation project.
56775
56776         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56777         merged with constructor/destructor.
56778         (init_array): Likewise.
56779         * elf/tst-array2dep.c (fini_array): Likewise.
56780         (init_array): Likewise.
56781
56782 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56783
56784         * manual/message.texi: Delete @cartouche tags.
56785
56786 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56787
56788         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56789         EOPNOTSUPP.
56790         * sysdeps/mach/hurd/fsync.c: Likewise.
56791
56792         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56793         [_POSIX_REALTIME_SIGNALS]: Change condition to
56794         [_POSIX_REALTIME_SIGNALS > 0].
56795
56796 2012-10-27  Andreas Jaeger  <aj@suse.de>
56797
56798         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56799         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56800         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56801         [__WORDSIZE != 64]: Likewise.
56802
56803 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56804
56805         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56806         *  iconvdata/tst-tables.sh: Likewise.
56807
56808 2012-10-25  David S. Miller  <davem@davemloft.net>
56809
56810         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56811         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56812         of strtoull.
56813
56814         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56815         ifunc-impl-list.c
56816         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56817         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56818         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56819         file.
56820
56821 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56822
56823         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56824         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56825         __getdirentries.
56826
56827 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56828             Jim Blandy  <jimb@codesourcery.com>
56829
56830         * scripts/cross-test-ssh.sh: New file.
56831         * manual/install.texi (Configuring and compiling): Document use of
56832         cross-test-ssh.sh.
56833         * INSTALL: Regenerated.
56834
56835 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56836
56837         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56838         EOPNOTSUPP.
56839
56840 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56841
56842         * Makeconfig (run-program-prefix): Fix comment.
56843
56844 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56845             Jim Blandy  <jimb@codesourcery.com>
56846
56847         * Makeconfig (test-wrapper): New variable,
56848         (test-wrapper-env): Likewise.
56849         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56850         (run-built-tests): Define to yes.
56851         (run-program-prefix): Use $(test-wrapper).
56852         (built-program-cmd): Likewise.
56853         * Rules (make-test-out): Use $(test-wrapper-env) and
56854         $(host-built-program-cmd).
56855         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56856         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56857         tst-pathopt.sh.
56858         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56859         $(test-wrapper-env) to tst-rtld-load-self.sh.
56860         ($(objpfx)order2.out): Use $(test-wrapper).
56861         ($(objpfx)tst-initorder.out): Likewise.
56862         ($(objpfx)tst-initorder2.out): Likewise.
56863         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56864         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56865         (test_wrapper_env): New variable.  Use it to run ld.so.
56866         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56867         Use it to run ld.so.
56868         (test_wrapper_env): Likewise.
56869         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56870         $(test-wrapper) to run-iconv-test.sh.
56871         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56872         (ICONV): Use $test_wrapper.
56873         * posix/Makefile ($(objpfx)globtest.out): Pass
56874         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56875         globtest.sh, not $(run-program-prefix).
56876         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56877         (test_wrapper): Likewise.
56878         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56879         set together with run_via_rtld_prefix.
56880         (run_program_prefix): Define in terms of test_wrapper and
56881         run_via_rtld_prefix.
56882
56883 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56884
56885         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56886         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56887         Targets removed.
56888
56889         [BZ #14743]
56890         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56891         Declare __clock_getres, __clock_gettime, __clock_settime,
56892         __clock_nanosleep, and __clock_getcpuclockid.
56893         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56894         Remove librt_hidden_def (clock_gettime).
56895         * sysdeps/unix/clock_gettime.c: Likewise.
56896         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56897         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56898         * rt/clock_getres.c: Define __clock_getres as an alias.
56899         * sysdeps/posix/clock_getres.c: Likewise.
56900         * rt/clock_settime.c: Define __clock_settime as an alias.
56901         * sysdeps/unix/clock_settime.c: Likewise.
56902         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56903         * sysdeps/unix/clock_nanosleep.c: Likewise.
56904         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56905         * rt/clock-compat.c: New file.
56906         * rt/Makefile (librt-routines): Add clock-compat and move
56907         $(clock-routines) to ...
56908         (routines): ... here, new variable.
56909         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56910         Don't add get_clockfreq here.
56911         * rt/Versions (libc: GLIBC_2.17): New version set.
56912         Add clock_* symbols here.
56913         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56914         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56915         (GLIBC_2.17): Add clock_* symbols.
56916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56917         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56918         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56920         Likewise.
56921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56922         Likewise.
56923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56924         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56927         * NEWS: Mention the move.
56928
56929         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56930         Use __open, __read, __close rather than their public counterparts.
56931         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56932         (__get_clockfreq_via_cpuinfo): Likewise.
56933         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56934         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56935
56936         * config.h.in (HAVE_IFUNC): New #undef.
56937         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56938         was successful.
56939         * configure: Regenerated.
56940
56941 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56942
56943         * configure.in: Move READELF check to start of file.
56944         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56945         libc_cv_asm_gnu_indirect_function in the process.
56946         * configure: Regenerated.
56947
56948 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56949
56950         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56951         send the output to /dev/null.
56952         (libc_cv_cc_with_libunwind): Likewise.
56953         (libc_cv_as_noexecstack): Likewise.
56954         * configure: Regenerate.
56955
56956 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56957
56958         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56959
56960         * posix/globtest.sh (TMPDIR): Do not set.
56961         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56962         (testout): Likewise.
56963
56964 2012-10-24  Andreas Jaeger  <aj@suse.de>
56965
56966         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56967         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56968         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56969         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56970         posix_fadvise64, posix_fallocate64.
56971
56972         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56973         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56974         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56975         Likewise.
56976         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56977         Likewise.
56978         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56979
56980         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56981         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56982         <bits/fcntl-linux.h>.
56983         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56984
56985         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56986         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56987         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56988         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56989         [__WORDSIZE != 64]: Likewise.
56990
56991 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56992
56993         * Makeconfig (run-built-tests): New variable.
56994         * Rules [$(cross-compiling) = yes]: Change condition to
56995         [$(run-built-tests) = no].
56996         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56997         to [$(run-built-tests) = yes].
56998         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56999         * grp/Makefile [$(cross-compiling) = no]: Likewise.
57000         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
57001         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
57002         * intl/Makefile [$(cross-compiling) = no]: Likewise.
57003         * io/Makefile [$(cross-compiling) = no]: Likewise.
57004         * libio/Makefile [$(cross-compiling) = no]: Likewise.
57005         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
57006         * misc/Makefile [$(cross-compiling) = no]: Likewise.
57007         * posix/Makefile [$(cross-compiling) = no]: Likewise.
57008         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
57009         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
57010         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
57011         * string/Makefile [$(cross-compiling) = no]: Likewise.
57012
57013         * posix/Makefile ($(objpfx)globtest.out): Pass
57014         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
57015         $(rtld-installed-name).
57016         * posix/globtest.sh (elf_objpfx): Remove variable.
57017         (rtld_installed_name): Likewise.
57018         (library_path): Likewise.
57019         (run_program_prefix): New variable.  Use for running globtest
57020         binary.
57021
57022 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
57023             Joseph Myers  <joseph@codesourcery.com>
57024
57025         * Makeconfig (host-built-program-cmd): New variable.
57026         * elf/Makefile (tst-stackguard1-ARGS): Use
57027         $(host-built-program-cmd).
57028         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
57029         (tst-spawn-ARGS): Likewise.
57030         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
57031
57032 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
57033             Jim Blandy  <jimb@codesourcery.com>
57034
57035         * Makeconfig (run-via-rtld-prefix): New variable.
57036         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
57037         (built-program-cmd): Likewise.
57038
57039 2012-10-22  Andreas Jaeger  <aj@suse.de>
57040
57041         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
57042         __O_RSYNC if it exists, otherwise to O_SYNC.
57043
57044 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
57045             Joseph Myers  <joseph@codesourcery.com>
57046
57047         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
57048         /dev/null.
57049         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
57050         from /dev/null
57051         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
57052         /dev/null.
57053
57054 2012-10-22  Andreas Jaeger  <aj@suse.de>
57055
57056         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
57057         Define always.
57058         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
57059
57060         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
57061         bits/fcntl-linux.h.
57062
57063         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
57064         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
57065
57066         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
57067         to __O_LARGEFILE.
57068         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
57069         to __O_LARGEFILE.
57070
57071 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
57072             Joseph Myers  <joseph@codesourcery.com>
57073
57074         * config.make.in (NM): New variable.
57075
57076 2012-10-21  Andreas Jaeger  <aj@suse.de>
57077
57078         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
57079         definitions and declarations that are provided by
57080         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
57081
57082 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
57083
57084         [BZ #14683]
57085         * elf/Makefile (tests-static): Add tst-leaks1-static.
57086         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
57087         ($(objpfx)tst-leaks1-static): New rule.
57088         ($(objpfx)tst-leaks1-static-mem): Likewise.
57089         (tst-leaks1-static-ENV): New macro.
57090         * elf/dl-open.c (dl_open_worker): Check the main application
57091         only if SHARED is defined.
57092         * elf/tst-leaks1-static.c: New file.
57093
57094 2012-10-20  Andreas Jaeger  <aj@suse.de>
57095
57096         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
57097         generic values for Linux.
57098         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
57099         and declarations that are provided by <bits/fcntl-linux.h> and
57100         include <bits/fcntl-linux.h>.
57101         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
57102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
57103
57104 2012-10-20  Roland McGrath  <roland@hack.frob.com>
57105
57106         * io/fcntl.h: Move include of <bits/types.h> to the top and
57107         include it unconditionally.
57108
57109 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
57110
57111         * wcsmbs/Makefile (tests-ifunc): New variable.
57112         (tests): Add $(tests-ifunc).
57113         * wcsmbs/test-wcschr-ifunc.c: New file.
57114         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
57115         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
57116         * wcsmbs/test-wcslen-ifunc.c: Likewise.
57117         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
57118         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
57119
57120         * string/Makefile (tests-ifunc): New variable.
57121         (tests): Add $(tests-ifunc).
57122         * string/test-memccpy.c (TEST_NAME): New macro.
57123         * string/test-memchr.c (TEST_NAME): Likewise.
57124         * string/test-memcmp.c (TEST_NAME): Likewise.
57125         * string/test-memcpy.c (TEST_NAME): Likewise.
57126         * string/test-memmem.c (TEST_NAME): Likewise.
57127         * string/test-memmove.c (TEST_NAME): Likewise.
57128         * string/test-memset.c (TEST_NAME): Likewise.
57129         * string/test-rawmemchr.c (TEST_NAME): Likewise.
57130         * string/test-stpcpy.c (TEST_NAME): Likewise.
57131         * string/test-stpncpy.c (TEST_NAME): Likewise.
57132         * string/test-strcasecmp.c (TEST_NAME): Likewise.
57133         * string/test-strcasestr.c (TEST_NAME): Likewise.
57134         * string/test-strcat.c (TEST_NAME): Likewise.
57135         * string/test-strchr.c (TEST_NAME): Likewise.
57136         * string/test-strcmp.c(TEST_NAME): Likewise.
57137         * string/test-strcpy.c (TEST_NAME): Likewise.
57138         * string/test-strcspn.c (TEST_NAME): Likewise.
57139         * string/test-strlen.c (TEST_NAME): Likewise.
57140         * string/test-strncasecmp.c (TEST_NAME): Likewise.
57141         * string/test-strncmp.c (TEST_NAME): Likewise.
57142         * string/test-strncpy.c (TEST_NAME): Likewise.
57143         * string/test-strnlen.c (TEST_NAME): Likewise.
57144         * string/test-strpbrk.c (TEST_NAME): Likewise.
57145         * string/test-strrchr.c (TEST_NAME): Likewise.
57146         * string/test-strspn.c (TEST_NAME): Likewise.
57147         * string/test-strstr.c (TEST_NAME): Likewise.
57148         * string/test-bcopy-ifunc.c: New file.
57149         * string/test-bzero-ifunc.c: Likewise.
57150         * string/test-memccpy-ifunc.c: Likewise.
57151         * string/test-memchr-ifunc.c: Likewise.
57152         * string/test-memcmp-ifunc.c: Likewise.
57153         * string/test-memcpy-ifunc.c: Likewise.
57154         * string/test-memmem-ifunc.c: Likewise.
57155         * string/test-memmove-ifunc.c: Likewise.
57156         * string/test-mempcpy-ifunc.c: Likewise.
57157         * string/test-memset-ifunc.c: Likewise.
57158         * string/test-rawmemchr-ifunc.c: Likewise.
57159         * string/test-stpcpy-ifunc.c: Likewise.
57160         * string/test-stpncpy-ifunc.c: Likewise.
57161         * string/test-strcasecmp-ifunc.c: Likewise.
57162         * string/test-strcasestr-ifunc.c: Likewise.
57163         * string/test-strcat-ifunc.c: Likewise.
57164         * string/test-strchr-ifunc.c: Likewise.
57165         * string/test-strchrnul-ifunc.c: Likewise.
57166         * string/test-strcmp-ifunc.c: Likewise.
57167         * string/test-strcpy-ifunc.c: Likewise.
57168         * string/test-strcspn-ifunc.c: Likewise.
57169         * string/test-strlen-ifunc.c: Likewise.
57170         * string/test-strncasecmp-ifunc.c: Likewise.
57171         * string/test-strncat-ifunc.c: Likewise.
57172         * string/test-strncmp-ifunc.c: Likewise.
57173         * string/test-strncpy-ifunc.c: Likewise.
57174         * string/test-strnlen-ifunc.c: Likewise.
57175         * string/test-strpbrk-ifunc.c: Likewise.
57176         * string/test-strrchr-ifunc.c: Likewise.
57177         * string/test-strspn-ifunc.c: Likewise.
57178         * string/test-strstr-ifunc.c: Likewise.
57179
57180         * debug/Makefile (tests-ifunc): New variable.
57181         (tests): Add $(tests-ifunc).
57182         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
57183         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
57184         * debug/test-stpcpy_chk-ifunc.c: New file.
57185         * debug/test-strcpy_chk-ifunc.c: Likewise.
57186
57187 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57188
57189         [BZ #13601]
57190         * elf/dl-load.c (open_verify): Retry read if the entire ELF
57191         header is not read in.
57192
57193 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
57194
57195         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
57196         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
57197         directly.  Pass built executable to script as
57198         $(built-program-cmd).
57199         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
57200         $testprogram without using LD_LIBRARY_PATH and $ldso.
57201
57202         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57203         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57204         $(rtld-installed-name).
57205         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57206         (rtld_installed_name): Likewise.
57207         (library_path): Likewise.
57208         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57209         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57210         $(run-program-prefix) to tst-tables.sh.
57211         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57212         it to run tst-table-from and tst-table-to.
57213         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57214         Pass it to tst-table.sh.
57215         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57216         $(run-program-prefix) to tst-gettext.sh.
57217         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57218         tst-translit.sh.
57219         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57220         tst-gettext2.sh.
57221         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57222         to run tst-gettext.
57223         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57224         to run tst-gettext2.
57225         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57226         to run tst-translit.
57227         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57228         $(run-program-prefix) to tst-mtrace.sh.
57229         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57230         to run tst-mtrace.
57231         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57232         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57233         $(rtld-installed-name).
57234         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57235         (rtld_installed_name): Likewise.
57236         (run_program_prefix): New variable.  Use it to run wordexp-test.
57237
57238         * Makeconfig (ARCH): Remove all definitions.
57239         (machine): Likewise.
57240         [ARCH]: Remove conditional code.
57241         [!objdir]: Give error.
57242         [!objdir] (objpfx): Remove.
57243         [!objdir] (common-objpfx): Likewise.
57244         [!objdir] (common-objdir): Likewise.
57245         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57246         AC_CONFIG_FILES call.
57247         * configure: Regenerated.
57248
57249         [BZ #13888]
57250         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57251         or TMPDIR.
57252         (testout): Likewise.
57253
57254         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57255         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57256         $(rtld-installed-name).
57257         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57258         (rtld_installed_name): Likwise.
57259         (runit): Remove function.
57260         (run_getconf): New variable,  Use it for running getconf binary.
57261
57262 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57263
57264         [BZ #14716]
57265         * string/test-memmem.c (check_result): New function.
57266         (do_one_test): Use it.
57267         (check1): New function.
57268         (test_main): Use it.
57269
57270 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57271
57272         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57273
57274 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57275
57276         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57277         (_G_LSEEK64): Likewise.
57278         (_G_MMAP64): Likewise.
57279         (_G_FSTAT64): Likewise.
57280         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57281         (_G_LSEEK64): Likewise.
57282         (_G_MMAP64): Likewise.
57283         (_G_FSTAT64): Likewise.
57284         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57285         unconditional.  Call __mmap64 directly.
57286         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57287         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57288         __lseek64 directly.
57289         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57290         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57291         __mmap64 directly.
57292         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57293         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57294         __lseek64 directly.
57295         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57296         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57297         __lseek64 directly.
57298         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57299         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57300         __lseek64 directly.
57301         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57302         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57303         __fxstat64 directly.
57304         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57305         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57306         unconditional.
57307         (freopen64) [!_G_OPEN64]: Remove conditional code.
57308         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57309         unconditional.
57310         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57311         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57312         unconditional.
57313         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57314         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57315         unconditional.
57316         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57317         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57318         unconditional.
57319         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57320         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57321         unconditional.
57322         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57323         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57324         unconditional.
57325         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57326         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57327         unconditional.
57328         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57329
57330 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57331
57332         [BZ #12140]
57333         * manual/memory.texi (Malloc Tunable Parameters): Add note
57334         about free list pointers overwriting some perturb bytes.
57335         Wording suggested by Roland McGrath.
57336
57337 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57338
57339         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57340         (lgamma_test): Likewise.
57341         (tgamma_test): Likewise.
57342
57343 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57344
57345         [BZ #14700]
57346         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57347         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57348
57349 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57350
57351         * NEWS: Mention BZ #14716.
57352         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57353         when removing AVAILABLE1_USES_J macro.
57354
57355 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57356
57357         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57358         (__bswap_64): __uint64_t for unsigned 64-bit int.
57359
57360 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57361
57362         * include/string.h (memmem): Declare libc hidden alias.
57363         * string/memmem.c (memmem): Define libc hidden alias.
57364         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57365         __read, __close instead of open, read, close.
57366
57367 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57368
57369         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57370         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57371         global and hidden.
57372         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57373         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57374         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57375         Likewise.
57376         (__rawmemchr_sse2): Likewise.
57377         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57378         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57379         (__strchr_sse2): Likewise.
57380         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57381         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57382         (__strcasecmp_sse2): Likewise.
57383         (__strncasecmp_sse2): Likewise.
57384         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57385         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57386         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57387         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57388         (__strrchr_sse2): Likewise.
57389         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57390         ifunc-impl-list.c.
57391         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57392         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57393         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57394         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57395         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57396         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57397         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57398         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57399         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57400         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57401         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57402         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57403         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57404         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57405         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57406         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57407         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57408         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57409         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57410         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57411         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57412         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57413         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57414         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57415         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57416         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57417         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57418         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57419         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57420         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57421
57422         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57423         global and hidden.
57424         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57425         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57426         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57427         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57428         Likewise.
57429         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57430         Likewise.
57431         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57432         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57433         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57434         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57435         ifunc-impl-list.c.
57436         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57437         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57438         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57439         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57440         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57441         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57442         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57443         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57444         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57445         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57446         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57447         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57448         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57449         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57450         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57451         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57452         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57453         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57454         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57455         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57456         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57457         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57458         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57459         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57460         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57461         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57462         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57463         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57464         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57465         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57466         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57467         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57468         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57469         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57470         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57471         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57472         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57473         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57474         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57475         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57476         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57477
57478         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57479         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57480         * include/ifunc-impl-list.h: New file.
57481         * misc/ifunc-impl-list.c: Likewise.
57482         * misc/Makefile (routines): Add ifunc-impl-list.
57483         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57484         * string/test-string.h: Include <ifunc-impl-list.h>.
57485         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57486         TEST_NAME]: New variables.
57487         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57488         are defined.
57489         (test_init): Call __libc_ifunc_impl_list to initialize
57490         func_list if TEST_IFUNC and TEST_NAME are defined.
57491
57492         * string/Makefile (strop-tests): Add bcopy and bzero.
57493         * string/test-bcopy.c: New file.
57494         * string/test-bzero.c: Likewise.
57495         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57496         defined.
57497         * string/test-memset.c: Support bzero test if TEST_BZERO is
57498         defined.
57499         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57500         __libc_memmove.
57501         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57502         __libc_memset.
57503         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57504         of memset.
57505
57506 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57507
57508         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57509         * configure: Regenerated.
57510
57511         * Makeconfig (+link-static-before-libc): Don't include
57512         $(link-static-libc).
57513
57514         * libio/libio.h (_IO_pos_t): Remove.
57515
57516 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57517
57518         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57519         McGrath.
57520
57521 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57522
57523         * crypt/crypt-entry.c: Include fips-private.h.
57524         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57525         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57526         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57527         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57528
57529 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57530
57531         * crypt/crypt-private.h: Include stdbool.h.
57532         (_ufc_setup_salt_r): Return bool.
57533         * crypt/crypt-entry.c: Include errno.h.
57534         (__crypt_r): Return NULL with EINVAL for bad salt.
57535         * crypt/crypt_util.c (bad_for_salt): New.
57536         (_ufc_setup_salt_r): Check that salt is long enough and within
57537         the specified alphabet.
57538         * crypt/badsalttest.c: New file.
57539         * crypt/Makefile (tests): Add it.
57540         ($(objpfx)badsalttest): New.
57541
57542 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57543
57544         * NEWS: Add entry for BZ #14602.
57545
57546 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57547
57548         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57549         type-generic.
57550         * math/libm-test.inc: Update comment listing what functions and
57551         macros are tested.
57552         (isgreater_test): New function.
57553         (isgreaterequal_test): Likewise.
57554         (isless_test): Likewise.
57555         (islessequal_test): Likewise.
57556         (islessgreater_test): Likewise.
57557         (isunordered_test): Likewise.
57558         (main): Call the new functions.
57559
57560 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57561
57562         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57563         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57564         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57565         * sysdeps/i386/configure: Regenerated.
57566         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57567         * sysdeps/mach/configure: Regenerated.
57568         * sysdeps/mach/hurd/configure: Regenerated.
57569         * sysdeps/powerpc/configure: Regenerated.
57570         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57571         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57572         * sysdeps/s390/s390-32/configure: Regenerated.
57573         * sysdeps/s390/s390-64/configure: Regenerated.
57574         * sysdeps/sh/configure: Regenerated.
57575         * sysdeps/sparc/configure: Regenerated.
57576         * sysdeps/unix/sysv/linux/configure: Regenerated.
57577         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57578         * sysdeps/x86_64/configure: Regenerated.
57579
57580         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57581         defined.  Don't check if MAP is NULL.
57582
57583 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57584
57585         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57586         (_G_stat64): Likewise.
57587         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57588         (_G_stat64): Likewise.
57589         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57590         instead of struct _G_stat64.
57591         * libio/fileops.c (mmap_remap_check): Likewise.
57592         (decide_maybe_mmap): Likewise.
57593         (_IO_new_file_seekoff): Likewise.
57594         (_IO_file_stat): Likewise.
57595         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57596         _G_off64_t.
57597         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57598         instead of struct _G_stat64.
57599         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57600
57601 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57602
57603         [BZ #14602]
57604         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57605         Replace with ...
57606         (CHECK_EOL): New macro.
57607         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57608         CHECK_EOL.
57609         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57610         Replace with CHECK_EOL.
57611         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57612         Replace with CHECK_EOL.
57613
57614 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57615
57616         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57617         type-generic.
57618         * math/libm-test.inc: Update comment listing what functions and
57619         macros are tested.
57620         (finite_test): New function.
57621         (isinf_test): Likewise.
57622         (isnan_test): Likewise.
57623         (fpclassify_test): Test subnormal input.
57624         (isfinite_test): Likewise.
57625         (isnormal_test): Likewise.
57626         (main): Call the new functions.
57627
57628 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57629
57630         [BZ #14660]
57631         * Makerules (%.dynsym): Force C locale when running
57632         $(OBJDUMP) --dynamic-syms.
57633
57634 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57635
57636         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57637         <stdint.h>.
57638
57639 2012-10-06  David S. Miller  <davem@davemloft.net>
57640
57641         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57642         upper 32-bits of the length value in %o2 since we use branch-on-register
57643         tests which consider the entire 64-bit register.
57644
57645 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57646
57647         * string/test-strstr.c (check2): Add a test for page boundary.
57648
57649 2012-10-05  David S. Miller  <davem@davemloft.net>
57650
57651         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57652         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57653         file.
57654         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57655         sysdep_routines.
57656         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57657         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57658         and bzero when HWCAP_SPARC_CRYPTO is present.
57659
57660 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57661
57662         [BZ #14602]
57663         * string/test-strstr.c (check2): New function.
57664         (test_main): Call check2.
57665
57666         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57667         and bug-strchr1.
57668         * string/bug-strcasestr1.c (do_test): Moved to ...
57669         * string/test-strcasestr.c (check1): Here.  New function.
57670         (do_one_test): Break out result checking code into ...
57671         (check_result): This.  New function.
57672         (do_one_test): Call check_result.
57673         (test_main): Call check1.
57674         * string/bug-strchr1.c (do_test): Moved to ...
57675         * string/test-strchr.c (check1): Here.  New function.
57676         (do_one_test): Break out result checking code into ...
57677         (check_result): This.  New function.
57678         (do_one_test): Call check_result.
57679         (test_main): Call check1.
57680         * string/bug-strstr1.c (main): Moved to ...
57681         * string/test-strstr.c (check1): Here.  New function.
57682         (do_one_test): Break out result checking code into ...
57683         (check_result): This.  New function.
57684         (do_one_test): Call check_result.
57685         (test_main): Call check1.
57686         * string/bug-strcasestr1.c: Removed.
57687         * string/bug-strchr1.c: Likewise.
57688         * string/bug-strstr1.c: Likewise.
57689
57690         * elf/Makefile (dl-routines): Add hwcaps.
57691         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57692         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57693         (_dl_important_hwcaps): Moved to ...
57694         * elf/dl-hwcaps.c: Here.  New file.
57695         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57696
57697         [BZ #14557]
57698         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57699         if IS_IN_rtld isn't defined.
57700
57701         * elf/dl-support.c (_dl_sysinfo_map): New.
57702         Include "get-dynamic-info.h" and "setup-vdso.h".
57703         (_dl_non_dynamic_init): Call setup_vdso.
57704         * elf/dynamic-link.h: Don't include <assert.h>.
57705         (elf_get_dynamic_info): Moved to ...
57706         * elf/get-dynamic-info.h: Here.  New file.
57707         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57708         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57709         * elf/setup-vdso.h: Here.  New file.
57710         * elf/rtld.c: Include "setup-vdso.h".
57711         (dl_main): Call setup_vdso.
57712
57713 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57714
57715         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57716         creal in comment listing functions tested.  List finite, isinf,
57717         isnan, isless, islessequal, isgreater, isgreaterequal,
57718         islessgreater, isunordered, lgamma_r and pow10 as functions and
57719         macros not tested.  Mention which functions not tested are aliases
57720         for other functions.  Fix typo.  Note that signs of NaNs are not
57721         tested.
57722
57723         * scripts/config.guess: Update from config.git.
57724         * scripts/config.sub: Likewise.
57725
57726 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57727
57728         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57729         * misc/madvise.c (madvise): Renamed to __madvise.
57730         Make madvise a weak alias.
57731         * include/sys/mman.h: Declare __madvise.
57732         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57733         * sysdeps/unix/syscalls.list
57734         (madvise): Make __madvise the strong name, and madvise a weak alias.
57735         * sysdeps/unix/sysv/linux/syscalls.list
57736         (madvise, mmap): Remove redundant entries.
57737         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57738         * malloc/malloc.c (mtrim): Likewise.
57739         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57740
57741 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57742
57743         * sysdeps/mach/hurd/dl-cache.c: File removed.
57744         * config.h.in (USE_LDCONFIG): New #undef.
57745         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57746         * configure: Regenerated.
57747         * elf/Makefile (dl-routines): Add dl-cache only under
57748         [$(use-ldconfig) = yes].
57749         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57750         cache on [USE_LDCONFIG].
57751         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57752         [USE_LDCONFIG].
57753         * elf/rtld.c (dl_main): Likewise.
57754
57755 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57756
57757         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57758         _SC_LEVEL4_CACHE_LINESIZE.
57759
57760 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57761
57762         * sysdeps/unix/bsd/confstr.h: File removed.
57763
57764 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57765
57766         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57767         sys/sdt-config.h.
57768
57769 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57770
57771         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57772         Make 'mapoff' field ElfW(Off) rather than off_t.
57773
57774 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57775
57776         * nscd/Makefile: Remove nscd-cflags and all its users.
57777         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57778         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57779
57780         [BZ #10631]
57781         * malloc.c (malloc_printerr): Clarify error message.
57782
57783 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57784
57785         [BZ #14648]
57786         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57787         Set bit_FMA_Usable if FMA is supported.
57788         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57789         macro.
57790         (bit_FMA4_Usable): Updated.
57791         (index_FMA_Usable): New macro.
57792         (CPUID_FMA): Likewise.
57793         (HAS_FMA): Defined with bit_FMA_Usable.
57794
57795 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57796
57797         * bits/types.h (__swblk_t): Type removed.
57798         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57799         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57800         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57801         (__SWBLK_T_TYPE): Likewise.
57802         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57803         (__SWBLK_T_TYPE): Likewise.
57804         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57805         (__SWBLK_T_TYPE): Likewise.
57806         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57807         (__SWBLK_T_TYPE): Likewise.
57808
57809 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57810             Honza Horak <hhorak@redhat.com>
57811
57812         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57813         (xdr_mapname): Use YPMAXMAP as maxsize.
57814         (xdr_peername): Use YPMAXPEER as maxsize.
57815         (xdr_keydat): Use YPAXRECORD as maxsize.
57816         (xdr_valdat): Use YPMAXRECORD as maxsize.
57817
57818 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57819
57820         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57821
57822         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57823         * csu/init-first.c: ... here.
57824         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57825         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57826         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57827         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57828         * sysdeps/i386/init-first.c: File removed.
57829         * sysdeps/sh/init-first.c: File removed.
57830
57831 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57832
57833         [BZ #14645]
57834         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57835         if x * y might underflow to zero and z is zero.
57836         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57837         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57838         * math/libm-test.inc (min_subnorm_value): New variable.
57839         (fma_test): Add more tests.
57840         (fma_test_towardzero): Likewise.
57841         (fma_test_downward): Likewise.
57842         (fma_test_upward): Likewise.
57843         (initialize): Set min_subnorm_value.
57844
57845 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57846
57847         [BZ #14638]
57848         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57849         0 + 0.
57850         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57851         mode for addition resulting in exact zero.
57852         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57853         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57854         exact 0 + 0.
57855         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57856         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57857         * math/libm-test.inc (fma_test): Add more tests.
57858         (fma_test_towardzero): New function.
57859         (fma_test_downward): Likewise.
57860         (fma_test_upward): Likewise.
57861         (main): Call the new functions.
57862
57863 2012-09-28  David S. Miller  <davem@davemloft.net>
57864
57865         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57866
57867 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57868
57869         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57870         instead of SIGALRM.
57871
57872         * sysdeps/gnu/_G_config.h: Moved to ...
57873         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57874         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57875         * sysdeps/generic/_G_config.h: ... here.
57876
57877         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57878
57879         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57880
57881         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57882         Conditionalize target on [libnss_test1.so-version].
57883
57884         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57885
57886         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57887         (elfobjdir): Move out of conditionals.
57888
57889         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57890         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57891         (__nss_lookup_function): Conditionalize label remove_from_tree on
57892         [!DO_STATIC_NSS || SHARED], matching its only use.
57893
57894 2012-09-28  David S. Miller  <davem@davemloft.net>
57895
57896         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57897         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57898         file.
57899         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57900         sysdep_routines.
57901         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57902         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57903         when HWCAP_SPARC_CRYPTO is present.
57904
57905 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57906
57907         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57908
57909 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57910
57911         [BZ #6530]
57912         * stdio-common/vfprintf.c (process_string_arg): Revert
57913         2000-07-22 change.
57914
57915 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57916
57917         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57918         for testcase.
57919         * stdio-common/tst-sprintf.c: Include <locale.h>
57920         (main): Test sprintf's handling of incomplete multibyte
57921         characters.
57922
57923 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57924
57925         * elf/dl-runtime.c (VERSYMIDX): Removed.
57926         * elf/dl-version.c (VERSYMIDX): Likewise.
57927         * elf/do-rel.h (VERSYMIDX): Likewise.
57928         (VALIDX): Likewise.
57929         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57930         * elf/rtld.c (VALIDX): Likewise.
57931         (ADDRIDX): Likewise.
57932         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57933         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57934         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57935         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57936         (VALIDX): Likewise.
57937         (ADDRIDX): Likewise.
57938
57939 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57940
57941         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57942
57943 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57944
57945         [BZ #11438]
57946         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57947         to global scope.
57948         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57949         addresses are in the same scope as 192.0.2/24.
57950         * posix/gai.conf: Document new scope table defaults.
57951
57952 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57953
57954         [BZ #5298]
57955         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57956         for ftell.  Compute offsets from write pointers instead.
57957         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57958
57959 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57960
57961         [BZ #14543]
57962         * libio/Makefile (tests): New test case tst-fseek.
57963         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57964         combination works in wide mode.
57965         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57966         state when the external buffer state changes.
57967
57968 2012-09-27  David S. Miller  <davem@davemloft.net>
57969
57970         [BZ #14376]
57971         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57972         pass reloc->r_addend in as the 'high' argument to
57973         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57974
57975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57976
57977 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57978
57979         * rt/tst-aio2.c: Include <pthread.h>.
57980         * rt/tst-aio3.c: Likewise.
57981
57982 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57983
57984         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57985
57986 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57987
57988         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57989         contents on [SHARED].
57990
57991 2012-09-26  Marek Polacek  <polacek@redhat.com>
57992
57993         [BZ #14530]
57994         [BZ #13741]
57995         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57996         for C++ and GCC <4.3 as well as for non GCC compilers.
57997
57998 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57999
58000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58001
58002 2012-09-25  Roland McGrath  <roland@hack.frob.com>
58003
58004         * Makefile.in (all, install): Declare with .PHONY.
58005         Reported by Michael Hope <michael.hope@linaro.org>.
58006
58007 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
58008
58009         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
58010         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
58011         system header.
58012         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
58013         Likewise.
58014         (sydep_routines): Add the new and the internal functions.
58015         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
58016         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
58017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
58018         (GLIBC_2.17): Add the new function.
58019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
58020         (GLIBC_2.17): Likewise.
58021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
58022         (GLIBC_2.17): Likewise.
58023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
58024         (GLIBC_2.17): Likewise.
58025         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
58026
58027 2012-09-25  Alan Modra  <amodra@gmail.com>
58028
58029         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
58030         Add release barrier before setting once_control to say
58031         initialisation is done.  Add hints on lwarx.  Use macro in
58032         place of isync.
58033         (clear_once_control): Add release barrier.
58034
58035 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
58036
58037         [BZ #13629]
58038         * math/s_clog.c (__clog): Handle more values close to |z| = 1
58039         specially.
58040         * math/s_clog10.c (__clog10): Likewise.
58041         * math/s_clog10f.c (__clog10f): Likewise.
58042         * math/s_clog10l.c (__clog10l): Likewise.
58043         * math/s_clogf.c (__clogf): Likewise.
58044         * math/s_clogl.c (__clogl): Likewise.
58045         * math/Makefile (libm-calls): Add x2y2m1.
58046         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
58047         (__x2y2m1): Likewise.
58048         (__x2y2m1l): Likewise.
58049         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
58050         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
58051         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
58052         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
58053         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
58054         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
58055         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
58056         * sysdeps/i386/fpu/libm-test-ulps: Update.
58057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58058
58059         [BZ #14621]
58060         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
58061         int as type of variable DEPTH.
58062         (glob): Use size_t instead of int as type of variables NEWCOUNT
58063         and OLD_PATHC.
58064
58065 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58066
58067         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58068         Add s_sincosf-sse2.
58069         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
58070         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
58071         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
58072         macros for using routine as __sincosf_ia32.
58073         Use macro for function declaration and weak_alias.
58074         * sysdeps/i386/fpu/libm-test-ulps: Update.
58075
58076         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
58077         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58078
58079         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
58080         subnormal argument.
58081         * math/s_cexpf.c (__cexpf): Likewise.
58082         * math/s_csinf.c (__csinf): Likewise.
58083         * math/s_csinhf.c (__csinhf): Likewise.
58084         * math/s_ctanf.c (__ctanf): Likewise.
58085         * math/s_ctanhf.c (__ctanhf): Likewise.
58086         * math/s_ccosh.c (__ccoshf): Likewise.
58087         * math/s_cexp.c (__cexpl): Likewise.
58088         * math/s_csin.c (__csin): Likewise.
58089         * math/s_csinh.c (__csinh): Likewise.
58090         * math/s_ctan.c (__ctan): Likewise.
58091         * math/s_ctanh.c (ctanh): Likewise.
58092         * math/s_ccoshl.c (__ccoshl): Likewise.
58093         * math/s_cexpl.c (__cexpl): Likewise.
58094         * math/s_csinl.c (__csinl): Likewise.
58095         * math/s_csinhl.c (__csinhl): Likewise.
58096         * math/s_ctanl.c (__ctanl): Likewise.
58097         * math/s_ctanhl.c (__ctanhl): Likewise.
58098
58099 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
58100
58101         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
58102         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
58103         (_IO_off_t): Define to __off_t, not _G_off_t.
58104         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
58105         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
58106         (_IO_wint_t): Define to wint_t, not _G_wint_t.
58107         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
58108         type of __dummy and __dummy2 fields.
58109         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
58110         (_G_ssize_t): Likewise.
58111         (_G_off_t): Likewise.
58112         (_G_pid_t): Likewise.
58113         (_G_uid_t): Likewise.
58114         (_G_wchar_t): Likewise.
58115         (_G_wint_t): Likewise.
58116         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
58117         (_G_ssize_t): Likewise.
58118         (_G_off_t): Likewise.
58119         (_G_pid_t): Likewise.
58120         (_G_uid_t): Likewise.
58121         (_G_wchar_t): Likewise.
58122         (_G_wint_t): Likewise.
58123         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
58124         (_G_ssize_t): Likewise.
58125         (_G_off_t): Likewise.
58126         (_G_pid_t): Likewise.
58127         (_G_uid_t): Likewise.
58128         (_G_wchar_t): Likewise.
58129         (_G_wint_t): Likewise.
58130
58131 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58132
58133         * malloc/arena.c: Include malloc-sysdep.h.
58134         (shrink_heap): Use check_may_shrink_heap to decide if madvise
58135         is sufficient to shrink the heap or an unmap is needed.
58136         * sysdeps/generic/malloc-sysdep.h: New file.  Define
58137         new function check_may_shrink_heap.
58138         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
58139         new function check_may_shrink_heap.
58140
58141 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58142
58143         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
58144         comments.
58145
58146 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
58147
58148         * catgets/test-gencat.sh: Add "set -e".
58149         * elf/tst-pathopt.sh: Likewise.
58150         * grp/tst_fgetgrent.sh: Likewise.
58151         * iconvdata/run-iconv-test.sh: Likewise.
58152         * intl/tst-gettext.sh: Likewise.
58153         * intl/tst-gettext2.sh: Likewise.
58154         * intl/tst-gettext4.sh: Likewise.
58155         * intl/tst-gettext6.sh: Likewise.
58156         * intl/tst-translit.sh: Likewise.
58157         * io/ftwtest-sh: Likewise.
58158         * libio/test-freopen.sh: Likewise.
58159         * malloc/tst-mtrace.sh: Likewise.
58160         * posix/globtest.sh: Likewise.
58161         * posix/tst-getconf.sh: Likewise.
58162         * posix/wordexp-tst.sh: Likewise.
58163         * stdio-common/tst-printf.sh: Likewise.
58164         * stdio-common/tst-unbputc.sh: Likewise.
58165         * stdlib/tst-fmtmsg.sh: Likewise.
58166         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58167         * catgets/Makefile: Do not specify -e option when running
58168         testsuite shell scripts.
58169         * elf/Makefile: Likewise.
58170         * grp/Makefile: Likewise.
58171         * iconvdata/Makefile: Likewise.
58172         * intl/Makefile: Likewise.
58173         * io/Makefile: Likewise.
58174         * libio/Makefile: Likewise.
58175         * malloc/Makefile: Likewise.
58176         * posix/Makefile: Likewise.
58177         * stdio-common/Makefile: Likewise.
58178         * stdlib/Makefile: Likewise.
58179         * sysdeps/x86_64/Makefile: Likewise.
58180
58181         * io/ftwtest-sh: Add copyright header.
58182         * posix/globtest.sh: Likewise.
58183         * posix/tst-getconf.sh: Likewise.
58184         * posix/wordexp-tst.sh: Likewise.
58185         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58186
58187 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
58188
58189         [BZ #13679]
58190         * Makeconfig (+link): Defined as $(+link-static) if
58191         $(build-shared) isn't yes.
58192         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
58193         isn't yes.
58194         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
58195
58196         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
58197
58198         [BZ #14562]
58199         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
58200         new chunk size with MALLOC_ALIGN_MASK.
58201
58202 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58203
58204         [BZ #5044]
58205         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58206         <rounding-mode.h>.
58207         (__printf_fphex): Determine rounding using get_rounding_mode and
58208         round_away.
58209         * stdio-common/tst-printf-round.c (struct hex_test): New
58210         structure.
58211         (hex_tests): New variable.
58212         (test_hex_in_one_mode): New function.
58213         (do_test): Also run tests for hex float output.
58214
58215 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58216
58217         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58218         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58219         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58220         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58221         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58222         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58223         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58224         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58225
58226 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58227
58228         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58229         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58230         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58231         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58232
58233 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58234
58235         [BZ #14579]
58236         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58237         mode only.
58238         * elf/tst-rtld-load-self.sh: New test.
58239         * elf/Makefile: Run it.
58240
58241 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58242
58243         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58244         (tst-writev-ENV): Remove.
58245         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58246
58247 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58248
58249         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58250
58251 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58252
58253         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58254         unconditional.
58255         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58256         Likewise.
58257         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58258         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58259         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58260         Likewise.
58261
58262 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58263
58264         [BZ #14587]
58265         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58266         * config.make.in (have-cpp-asm-debuginfo): Removed.
58267         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58268         * configure: Regenerated.
58269
58270 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58271
58272         [BZ #5044]
58273         * stdio-common/printf_fp.c: Include <stdbool.h> and
58274         <rounding-mode.h>.
58275         (___printf_fp): Determine rounding using get_rounding_mode and
58276         round_away.
58277         * stdio-common/tst-printf-round.c: New file.
58278         * stdio-common/Makefile (tests): Add tst-printf-round.
58279         (link-libm): New variable.
58280         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58281
58282 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58283
58284         [BZ #14576]
58285         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58286         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58287         Likewise.
58288         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58289         Likewise.
58290
58291 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58292
58293         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58294         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58295         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58296         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58297
58298 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58299
58300         [BZ #14518]
58301         * include/rounding-mode.h: New file.
58302         * sysdeps/generic/get-rounding-mode.h: Likewise.
58303         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58304         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58305         (MAX_VALUE): New macro.
58306         (MIN_VALUE): Likewise.
58307         (overflow_value): New function.
58308         (underflow_value): Likewise.
58309         (round_and_return): Use overflow_value and underflow_value to
58310         determine return values in overflow and underflow cases.  Use
58311         round_away to determine rounding depending on rounding mode.
58312         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58313         determine return values in overflow and underflow cases.
58314         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58315         (struct test_results): New structure.
58316         (struct test): Use struct test_results to store expected results
58317         for all rounding modes.
58318         (TEST): Include expected results for all rounding modes.
58319         (test_in_one_mode): New function.
58320         (do_test): Use test_in_one_mode to compute and check results.
58321         Check results for all rounding modes.
58322         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58323         $(link-libm).
58324
58325 2012-12-09  Allan McRae  <allan@archlinux.org>
58326
58327         * sysdeps/i386/fpu/libm-test-ulps: Update
58328
58329 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58330
58331         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58332         (_G_int32_t): Likewise.
58333         (_G_uint16_t): Likewise.
58334         (_G_uint32_t): Likewise.
58335         (_G_HAVE_BOOL): Likewise.
58336         (_G_HAVE_ATEXIT): Likewise.
58337         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58338         (_G_HAVE_IO_FILE_OPEN): Likewise.
58339         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58340         (_G_int32_t): Likewise.
58341         (_G_uint16_t): Likewise.
58342         (_G_uint32_t): Likewise.
58343         (_G_HAVE_BOOL): Likewise.
58344         (_G_HAVE_ATEXIT): Likewise.
58345         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58346         (_G_HAVE_IO_FILE_OPEN): Likewise.
58347         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58348         (_G_int32_t): Likewise.
58349         (_G_uint16_t): Likewise.
58350         (_G_uint32_t): Likewise.
58351         (_G_HAVE_BOOL): Likewise.
58352         (_G_HAVE_ATEXIT): Likewise.
58353         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58354         (_G_HAVE_IO_FILE_OPEN): Likewise.
58355
58356 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58357
58358         * csu/libc-tls.c: Update copyright years.
58359
58360 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58361
58362         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58363         [!_G_USING_THUNKS]: Remove conditional code.
58364         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58365         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58366
58367         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58368         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58369         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58370         (_G_VTABLE_LABEL_PREFIX): Likewise.
58371         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58372         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58373         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58374         (_G_VTABLE_LABEL_PREFIX): Likewise.
58375         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58376         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58377         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58378         (_G_VTABLE_LABEL_PREFIX): Likewise.
58379         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58380
58381 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58382
58383         * libio/Makefile: Include ../Makeconfig before tests.
58384         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58385         only if $(build-shared) is yes.
58386
58387         * iconv/gconv_db.c: Update copyright years.
58388
58389 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58390
58391         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58392         unwind info if defined PIC. Fix special cases description.
58393         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58394
58395         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58396         DP_HI_MASK entry.
58397         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58398
58399 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58400
58401         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58402
58403         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58404         is NULL.
58405
58406         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58407         (LDLIBS-tst-chk4): This.
58408         (LDFLAGS-tst-chk5): Renamed to ...
58409         (LDLIBS-tst-chk5): This.
58410         (LDFLAGS-tst-chk6): Renamed to ...
58411         (LDLIBS-tst-chk6): This.
58412         (LDFLAGS-tst-lfschk4): Renamed to ...
58413         (LDLIBS-tst-lfschk4): This.
58414         (LDFLAGS-tst-lfschk5): Renamed to ...
58415         (LDLIBS-tst-lfschk5): This.
58416         (LDFLAGS-tst-lfschk6): Renamed to ...
58417         (LDLIBS-tst-lfschk6): This.
58418
58419         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58420         on $(common-objpfx)soversions.mk.
58421
58422 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58423
58424         [BZ #10014]
58425         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58426         example host name.
58427
58428 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58429
58430         * malloc/arena.c (arena_get_retry): New function that gets
58431         another arena for the caller to try its request on.
58432         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58433         current arena cannot fulfill the request.
58434         (__libc_memalign): Likewise.
58435         (__libc_memalign): Likewise.
58436         (__libc_pvalloc): Likewise.
58437         (__libc_calloc): Likewise.
58438
58439 2012-09-05  John Tobey  <john.tobey@gmail.com>
58440
58441         [BZ #13542]
58442         * manual/arith.texi (Operations on Complex): Fix description
58443         of carg branch cut.
58444
58445 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58446
58447         [BZ #10014]
58448         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58449         host name.
58450
58451         [BZ #10038]
58452         * manual/memory.texi (Memory): Make order of menu items match
58453         order of sections.
58454
58455 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58456
58457         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58458         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58459         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58460
58461 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58462
58463         * csu/libc-tls.c (static_dtv): Renamed to ...
58464         (_dl_static_dtv): This.  Make it global.
58465         (_dl_initial_dtv): Removed.
58466         (__libc_setup_tls): Updated.
58467         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58468         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58469         DL_INITIAL_DTV.
58470
58471 2012-09-06  Petr Machata  <pmachata@redhat.com>
58472
58473         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58474         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58475         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58476         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58477
58478 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58479
58480         [BZ #14545]
58481         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58482         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58483         freeing dtv[-1].
58484
58485 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58486
58487         [BZ #14544]
58488         * Makeconfig (link-static-before-libc): Replace $(+prector)
58489         with $(+prectorT).
58490         (link-static-after-libc): Replace $(+postctor) with
58491         $(+postctorT).
58492         (link-bounded): Replace $(+prector)/$(+postctor) with
58493         $(+prectorT)/$(+postctorT).
58494         (+prectorT): New macro.
58495         (+postctorT): Likewise.
58496
58497 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58498
58499         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58500         (round_str): Handle values above the maximum for IBM long double
58501         as inexact.
58502         * stdlib/tst-strtod-round.c (tests): Regenerated.
58503
58504 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58505
58506         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58507         assembler flag.
58508         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58509         zarch_nohighgprs around the zarch optimized routines.
58510         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58511         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58512         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58513         for zarch.
58514
58515 2012-09-05  David S. Miller  <davem@davemloft.net>
58516
58517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58518
58519         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58520         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58521         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58522         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58523         entries.
58524
58525 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58526
58527         * malloc/arena.c: Fold copyright years.
58528         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58529
58530 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58531
58532         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58533
58534 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58535
58536         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58537
58538 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58539
58540         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58541         change internal state upon failure.
58542
58543 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58544
58545         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58546         * malloc/memusage.c (mmap): Likewise.
58547         (mmap64, mremap): Likewise.  Adjust name in comment.
58548
58549 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58550
58551         * libio/fileops.c: Fix typos in comments.
58552         * libio/oldfileops.c: Likewise.
58553         * libio/wfileops.c: Likewise.
58554
58555 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58556
58557         [BZ #1349]
58558         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58559         (tst-malloc-usable-ENV): Set environment for test case.
58560         * malloc/hooks.c (malloc_check_get_size): New function to get
58561         requested size.
58562         * malloc/malloc.c (musable): Use malloc_check_get_size.
58563         * malloc/tst-malloc-usable.c: New test case.
58564
58565 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58566
58567         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58568
58569 2012-09-05  Allan McRae  <allan@archlinux.org>
58570
58571         [BZ #13966]
58572         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58573         determine header location.
58574         * configure: Regenerated.
58575
58576 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58577
58578         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58579         float format.
58580         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58581         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58582         format.
58583         (test): Regenerate.
58584
58585 2012-09-04  David S. Miller  <davem@davemloft.net>
58586
58587         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58588         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58589         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58590
58591 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58592
58593         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58594         failures.
58595
58596         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58597
58598 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58599
58600         [BZ #9914]
58601         * libio/iogetdelim.c: Include <limits.h>.
58602         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58603         + len + 1 would overflow.
58604
58605 2012-09-03  Andreas Jaeger  <aj@suse.de>
58606
58607         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58608         * sysdeps/i386/fpu/libm-test-ulps: Update.
58609
58610 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58611
58612         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58613         Add s_sinf-sse2, s_conf-sse2.
58614
58615         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58616         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58617         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58618         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58619
58620         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58621         for using routine as __sinf_ia32.
58622         Use macro for function declaration and weak_alias.
58623         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58624         for using routine as __cosf_ia32.
58625         Use macro for function declaration and weak_alias.
58626
58627         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58628         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58629
58630         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58631         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58632         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58633
58634         * math/libm-test.inc (cos_test): Add more test cases.
58635         (sin_test): Likewise.
58636         (sincos_test): Likewise.
58637
58638 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58639
58640         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58641         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58642         hidden.
58643         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58644
58645 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58646
58647         [BZ #14538]
58648         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58649         first element of the GOT.
58650         (elf_machine_load_address): Return the difference between
58651         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58652
58653 2012-09-01  Allan McRae  <allan@archlinux.org>
58654
58655         [BZ #13412]
58656         * configure.in (AWK): Require gawk version 3.0 or later.
58657         * configure: Regenerated.
58658
58659 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58660
58661         * sysdeps/unix/sysv/linux/kernel-features.h
58662         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58663         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58664         [__NR_clock_getres]: Make code unconditional.
58665         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58666         (clock_getcpuclockid): Remove code left unreachable by removal of
58667         conditionals.
58668         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58669         code unconditional.
58670         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58671         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58672         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58673         Make code unconditional.
58674         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58675         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58676         * sysdeps/unix/sysv/linux/clock_settime.c
58677         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58678         conditional code.
58679         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58680         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58681
58682 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58683
58684         [BZ #14476]
58685         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58686         scripts/test-installation.pl.
58687
58688         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58689         and $ld_so_version if it is set.
58690
58691 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58692
58693         [BZ #14516]
58694         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58695         failure if reading from procfs failed.
58696         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58697
58698 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58699
58700         * sysdeps/unix/sysv/linux/kernel-features.h
58701         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58702         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58703         Remove conditional code.
58704         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58705         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58706         Remove conditional code.
58707         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58708         * sysdeps/unix/sysv/linux/i386/fxstat.c
58709         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58710         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58711         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58712         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58713         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58714         * sysdeps/unix/sysv/linux/i386/lxstat.c
58715         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58716         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58717         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58718         Remove conditional code.
58719         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58720         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58721         Remove conditional code.
58722         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58723         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58724         <kernel-features.h>.
58725         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58726         Remove.
58727         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58728         Remove conditional code.
58729         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58730         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58731         Remove conditional.
58732
58733 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58734
58735         [BZ #5400]
58736         * NEWS: Add fixed bug number.
58737
58738 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58739
58740         [BZ #14519]
58741         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58742         underflowing exponent in case of negative sign.
58743         * stdlib/tst-strtod-round-data: Add more tests.
58744         * stdlib/tst-strtod-round.c (tests): Regenerated.
58745
58746         [BZ #3479]
58747         * stdlib/strtod_l.c (NDIG): Remove.
58748         (HEXNDIG): Likewise.
58749         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58750         smallest representable value.
58751         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58752         lie within an exact representation of 1/2 ulp of the result.
58753         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58754         unconditionally.
58755         (TENS_P9_IDX): Define unconditionally.
58756         (TENS_P9_SIZE): Likewise.
58757         (TENS_P10_IDX): Likewise.
58758         (TENS_P10_SIZE): Likewise.
58759         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58760         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58761         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58762         entries for 10^2^13 and 10^2^14.
58763         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58764         (TENS_P13_IDX): Define.
58765         (TENS_P13_SIZE): Likewise.
58766         (TENS_P14_IDX): Likewise.
58767         (TENS_P14_SIZE): Likewise.
58768         (_fpioconst_pow10): Change array size to
58769         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58770         unconditional.
58771         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58772         1024]: Add entries for 10^2^13 and 10^2^14.
58773         [LAST_POW10 > _LAST_POW10]: Remove #error.
58774         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58775         (_fpioconst_pow10): Change array size to
58776         FPIOCONST_POW10_ARRAY_SIZE.
58777         * stdlib/gen-fpioconst.c: New file.
58778         * stdlib/gen-tst-strtod-round.c: Likewise.
58779         * stdlib/tst-strtod-round-data: Likewise.
58780         * stdlib/tst-strtod-round.c: Likewise.
58781         * stdlib/Makefile (tests): Add tst-strtod-round.
58782
58783         [BZ #14459]
58784         * stdlib/strtod_l.c: Include <stdint.h>.
58785         (NDEBUG): Do not define.
58786         (round_and_return): Change EXPONENT parameter to type intmax_t.
58787         Rearrange calculations to avoid internal overflow possibilities.
58788         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58789         Rearrange calculations to avoid internal overflow possibilities.
58790         Assert that number fits inside MPNSIZE limbs.
58791         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58792         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58793         calculations and add assertions to avoid internal overflow
58794         possibilities.  Add casts to avoid signed/unsigned operations.
58795         * stdlib/tst-strtod-overflow.c: New file.
58796         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58797
58798 2012-08-25  Marek Polacek  <polacek@redhat.com>
58799
58800         * time/time.h: Fix some typos in comments.
58801
58802 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58803
58804         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58805         * posix/tst-rfc3484-2.c: Likewise.
58806         * posix/tst-rfc3484-3.c: Likewise.
58807
58808 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58809
58810         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58811         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58812
58813 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58814
58815         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58816         #include of fxstatat64.c.
58817
58818 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58819
58820         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58821         * shadow/getspent_r.c: Likewise.
58822         * shadow/getspnam.c: Likewise.
58823         * shadow/getspnam_r.c: Likewise.
58824         * gshadow/getsgent.c: Likewise.
58825         * gshadow/getsgent_r.c: Likewise.
58826         * gshadow/getsgnam.c: Likewise.
58827         * gshadow/getsgnam_r.c: Likewise.
58828         * inet/getnetbyad.c: Likewise.
58829         * inet/getnetbyad_r.c: Likewise.
58830         * inet/getnetbynm.c: Likewise.
58831         * inet/getnetbynm_r.c: Likewise.
58832         * inet/getnetent.c: Likewise.
58833         * inet/getnetent_r.c: Likewise.
58834         * inet/getproto.c: Likewise.
58835         * inet/getproto_r.c: Likewise.
58836         * inet/getprtent.c: Likewise.
58837         * inet/getprtent_r.c: Likewise.
58838         * inet/getprtname.c: Likewise.
58839         * inet/getprtname_r.c: Likewise.
58840         * inet/getrpcbyname.c: Likewise.
58841         * inet/getrpcbyname_r.c: Likewise.
58842         * inet/getrpcbynumber.c: Likewise.
58843         * inet/getrpcbynumber_r.c: Likewise.
58844         * inet/getrpcent.c: Likewise.
58845         * inet/getrpcent_r.c: Likewise.
58846         * inet/getaliasent.c: Likewise.
58847         * inet/getaliasent_r.c: Likewise.
58848         * inet/getaliasname.c: Likewise.
58849         * inet/getaliasname_r.c: Likewise.
58850         * nscd/getgrgid_r.c: Likewise.
58851         * nscd/getgrnam_r.c: Likewise.
58852         * nscd/gethstbyad_r.c: Likewise.
58853         * nscd/gethstbynm3_r.c: Likewise.
58854         * nscd/getpwnam_r.c: Likewise.
58855         * nscd/getpwuid_r.c: Likewise.
58856         * nscd/getsrvbynm_r.c: Likewise.
58857         * nscd/getsrvbypt_r.c: Likewise.
58858         * nscd/gai.c: Likewise.
58859
58860         * configure.in (build_nscd): New substituted variable, set
58861         by --disable-build-nscd and defaults to $use_nscd.
58862         * configure: Regenerated.
58863         * config.make.in (build-nscd): New substituted variable.
58864         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58865         Change conditional to require [$(build-nscd) = yes] as well.
58866         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58867
58868         [BZ# 13696]
58869         * configure.in (use_nscd): New substituted variable, set by
58870         --disable-nscd.  If enabled, define USE_NSCD.
58871         * configure: Regenerated.
58872         * config.h.in: Add USE_NSCD.
58873         * config.make.in (use-nscd): New substituted variable.
58874         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58875         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58876         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58877         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58878         (CFLAGS-getgrnam_r.c): Likewise.
58879         (CFLAGS-initgroups.c): Likewise.
58880         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58881         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58882         Variables removed.
58883         * inet/getnetgrent_r.c
58884         (nscd_setnetgrent): New function, broken out of ...
58885         (setnetgrent): ... here.  Call it.
58886         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58887         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58888         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58889         * nscd/Makefile (routines, aux): Move definitions after include of
58890         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58891         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58892         Conditionalize on [USE_NSCD].
58893         (is_nscd, nscd_init_cb): Likewise.
58894         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58895         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58896         * nss/nss_db/db-init.c: Likewise.
58897         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58898         [USE_NSCD].
58899         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58900         (make_request): Use it.
58901         (cache_valid_p): New function.
58902         (__check_pf): Use it.
58903         * NEWS: Add item for --disable-nscd.
58904
58905 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58906
58907         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58908         to support sed >= 4.2.1-20-ga9bf076.
58909         * configure: Regenerated.
58910
58911 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58912
58913         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58914         Conditionalize whole body on [IREL].
58915
58916 2012-08-22  Jeff Law <law@redhat.com>
58917
58918         [BZ #14505]
58919         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58920         if the family is PF_UNSPEC.
58921
58922 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58923
58924         * Makerules (lib-version): Rename from V.
58925         (install-lib-nosubdir): Change V to lib-version.
58926
58927 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58928
58929         [BZ #14252]
58930         * powerpc32/power6/wcschr.c: New file.
58931         * powerpc32/power6/wcscpy.c: New file.
58932         * powerpc32/power6/wcsrchr.c: New file.
58933         * powerpc64/power6/wcschr.c: New file.
58934         * powerpc64/power6/wcscpy.c: New file.
58935         * powerpc64/power6/wcsrchr.c: New file.
58936
58937 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58938
58939         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58940         (two_way_short_needle): Use it.
58941         * string/strstr.c (AVAILABLE1_USES_J): Define.
58942         * string/strcasestr.c: Likewise.
58943
58944         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58945         array references.
58946         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58947
58948         [BZ #11607]
58949         * NEWS: Add an entry.
58950         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58951         define their defaults.
58952         (two_way_short_needle): Detect end-of-string on-the-fly.
58953         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58954         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58955         * string/bug-strcasestr1.c: New test.
58956         * string/Makefile: Run it.
58957
58958 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58959
58960         [BZ #11607]
58961         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58962         the first character.
58963
58964 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58965
58966         * csu/elf-init.c (__libc_csu_irel): Function removed.
58967         * csu/libc-start.c (apply_irel): New function.
58968         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58969
58970 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58971
58972         * sysdeps/unix/sysv/linux/kernel-features.h
58973         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58974         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58975         <kernel-features.h>.
58976         [__NR_fadvise64_64]: Make code unconditional.
58977         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58978         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58979         !__NR_fadvise64_64)]: Likewise.
58980         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58981         !__NR_fadvise64_64))]: Likewise.
58982         [__NR_fadvise64]: Make code unconditional.
58983         [!__NR_fadvise64]: Remove conditional code.
58984         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58985         <kernel-features.h>.
58986         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58987         unconditional.
58988         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58989         conditional code.
58990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58991         not include <kernel-features.h>.
58992         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58993         unconditional.
58994         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58995         conditional code.
58996         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58997         include <kernel-features.h>.
58998         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58999         unconditional.
59000         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
59001         conditional code.
59002
59003 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
59004
59005         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
59006         slight instruction rearrangements per scrollpipe analysis.
59007         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59008
59009 2012-08-20  Roland McGrath  <roland@hack.frob.com>
59010
59011         * manual/syslog.texi (syslog; vsyslog, closelog):
59012         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
59013         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
59014
59015         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
59016         DSOCAPS to match condition on defining it.
59017
59018 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
59019
59020         * sysdeps/unix/sysv/linux/kernel-features.h
59021         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
59022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
59023         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
59024         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
59025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
59026         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
59027         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
59028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
59029         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
59030         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
59031
59032         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
59033         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
59034
59035         * sysdeps/unix/sysv/linux/kernel-features.h
59036         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
59037         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
59038         unconditional.
59039         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
59040         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
59041         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
59042         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
59043         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
59044         Make code unconditional.
59045         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
59046         (__mmap64) [!__NR_mmap2]: Likewise.
59047         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
59048         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
59049         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
59050         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
59051         [__NR_mmap2]: Make code unconditional.
59052         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
59053         (__mmap64) [!__NR_mmap2]: Likewise.
59054
59055 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59056
59057         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
59058
59059 2012-08-18  Andreas Jaeger  <aj@suse.de>
59060
59061         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
59062
59063 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
59064
59065         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
59066         * include/unistd.h (__have_sock_cloexec): Likewise.
59067         (__have_pipe2): Likewise.
59068         (__have_dup3): Likewise.
59069
59070 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
59071
59072         [BZ #9685]
59073         * include/unistd.h (__have_pipe2): Change define into an extern int.
59074         (__have_dup3): Likewise.
59075         * socket/have_sock_cloexec.c: Include fcntl.h.
59076         (__have_pipe2): New variable.
59077         (__have_dup3): Likewise.
59078
59079 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
59080
59081         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
59082
59083 2012-08-17  Marek Polacek  <polacek@redhat.com>
59084
59085         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
59086         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
59087
59088 2012-08-17  Roland McGrath  <roland@hack.frob.com>
59089
59090         * configure.in: Add AC_SUBST for sysheaders.
59091         * configure: Regenerated.
59092         * config.make.in (sysheaders): New substituted variable.
59093
59094         * sysdeps/unix/mkfifo.c: Moved ...
59095         * sysdeps/posix/mkfifo.c: ... here.
59096         * sysdeps/unix/mkfifoat.c: Moved ...
59097         * sysdeps/posix/mkfifoat.c: ... here.
59098
59099         * sysdeps/unix/utime.c: Moved ...
59100         * sysdeps/posix/utime.c: ... here.
59101
59102         * sysdeps/unix/time.c: Moved ...
59103         * sysdeps/posix/time.c: ... here.
59104         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
59105         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
59106
59107         * sysdeps/unix/nice.c: Moved ...
59108         * sysdeps/posix/nice.c: ... here.
59109
59110         * sysdeps/unix/alarm.c: Moved ...
59111         * sysdeps/posix/alarm.c: ... here.
59112
59113         * intl/Makefile ($(codeset_mo)): Depend on the input file.
59114
59115 2012-08-17  Jeff Law <law@redhat.com>
59116
59117         * intl/Makefile (codeset_mo): New variable.
59118         ($(codeset_mo)): New target.
59119         (tst-codeset.out): Depend on that.  Remove explicit rule.
59120         (tst-gettext3.out, tst-gettext5.out): Likewise.
59121         (LOCPATH-ENV, tst-codeset-ENV): New variables.
59122         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
59123         * intl/tst-codeset.sh: Remove.
59124         * intl/tst-gettext3.sh: Likewise.
59125         * intl/tst-gettext5.sh: Likewise.
59126
59127 2012-08-17  Roland McGrath  <roland@hack.frob.com>
59128
59129         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
59130         * sysdeps/unix/syscalls.list: ... here.
59131
59132         * sysdeps/posix/getaddrinfo.c
59133         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
59134         (gaiconf_init, gaiconf_reload): Use them.
59135         [!_STATBUF_ST_NSEC]
59136         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
59137         Define using time_t rather than struct timespec.
59138
59139         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
59140         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
59141         Macros removed.
59142         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
59143         [!NO_THREADS].
59144         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
59145         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
59146         Likewise.
59147
59148         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
59149         __libc_cleanup_push argument.
59150
59151         * bits/param.h: New file.
59152         * misc/sys/param.h: New file.
59153         * include/sys/param.h: New file.
59154         * misc/Makefile (headers): Add bits/param.h.
59155         * sysdeps/generic/sys/param.h: File removed.
59156         * sysdeps/unix/sysv/linux/bits/param.h: New file.
59157         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
59158         * sysdeps/mach/hurd/bits/param.h: New file.
59159         * sysdeps/mach/hurd/sys/param.h: File removed.
59160
59161         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
59162         last change.
59163
59164         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
59165         [_IO_MTSAFE_IO].
59166         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
59167         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
59168         New macros.
59169
59170         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
59171         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
59172         rather than -D_IO_MTSAFE_IO conditionally.
59173         * stdio-common/Makefile (CPPFLAGS): Likewise.
59174         * wcsmbs/Makefile (CPPFLAGS): Likewise.
59175         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
59176         Use $(libio-mtsafe).
59177         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
59178         of -D_IO_MTSAFE_IO.
59179         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
59180         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
59181         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
59182         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
59183         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
59184         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
59185         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
59186         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
59187         (CFLAGS-fread_u_chk.c): Likewise.
59188         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
59189         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
59190         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
59191         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
59192         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
59193         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
59194         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
59195         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
59196         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
59197
59198         * libio/Makefile: Test [$(libc-reentrant) = yes]
59199         instead of [$(filter %REENTRANT, $(defines)) nonempty].
59200
59201         * Makeconfig
59202         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59203         * sysdeps/pthread/configure: File removed.
59204         * sysdeps/pthread/Makeconfig: New file.
59205         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59206         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59207
59208 2012-08-16  Gary Benson  <gbenson@redhat.com>
59209
59210         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59211         unmapping the first object in a namespace.
59212
59213 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59214
59215         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59216         (__internal_setnetgrent): ... this.  Add internal_function to
59217         definition.  Add libc_hidden_def.
59218         (setnetgrent): Update caller.
59219         (internal_endnetgrent): Renamed to ...
59220         (__internal_endnetgrent): ... this.  Add internal_function to
59221         definition.  Add libc_hidden_def.
59222         (endnetgrent): Update caller.
59223         (internal_getnetgrent_r): Renamed to ...
59224         (__internal_getnetgrent_r): ... this.  Add internal_function to
59225         definition.  Add libc_hidden_def.
59226         (__getnetgrent_r): Update caller.
59227         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59228
59229 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59230
59231         * stdlib/longlong.h: Update from GCC.
59232
59233 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59234
59235         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59236         on _QL, which is set by umul_ppmm but never used.
59237         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59238         variables, which are set by GMP macros but never used.
59239         * stdio-common/_itowa.c (_itowa): Likewise.
59240         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59241         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59242
59243 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59244
59245         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59246         struct La_sh_regs is not constant.
59247         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59248         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59249         and struct La_sparc64_regs are not constant.
59250
59251 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59252
59253         * sysdeps/unix/sysv/linux/kernel-features.h
59254         (__ASSUME_POSIX_TIMERS): Remove.
59255         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59256         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59257         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59258         Make code unconditional.
59259         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59260         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59261         Make code unconditional.
59262         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59263         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59264         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59265         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59266         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59267         Make code unconditional.
59268         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59269         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59270         (__libc_missing_posix_timers): Remove.
59271
59272 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59273
59274         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59275         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59276
59277         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59278
59279         * elf/dl-sym.c: Include <stdlib.h>.
59280
59281         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59282         constants, which avoids warnings in 32-bit builds.
59283
59284         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59285         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59286
59287         * misc/lseek.c: File moved to ...
59288         * io/lseek.c: ... here.
59289
59290         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59291
59292         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59293         shifting LEN more than 31 bits at once.
59294
59295 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59296
59297         [BZ #14195]
59298         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59299         segmentation fault for a case of two empty input strings.
59300         * string/test-strncasecmp.c (check1): Renamed to...
59301         (bz12205): ...this.
59302         (bz14195): Add new testcase for two empty input strings and N > 0.
59303         (test_main): Call new testcase, adapt for renamed function.
59304
59305 2012-08-15  Andreas Jaeger  <aj@suse.de>
59306
59307         [BZ #14090]
59308         * crypt/md5test2.c: New test, based on test supplied by Serge
59309         Belyshev <belyshev@depni.sinp.msu.ru>.
59310         * crypt/Makefile (xtests): Add md5test-giant..
59311         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59312
59313 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         [BZ #14090]
59316         * crypt/md5.c (md5_process_block): Don't assume the buffer
59317         length is less than 2**32.
59318         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59319         length is less than 2**64.
59320
59321 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59322
59323         * string/str-two-way.h: Include <sys/param.h>.
59324         (MAX): Macro removed.
59325
59326         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59327         Move #define and #undef of memmove to just before and after
59328         including <string.h>.
59329
59330         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59331         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59332         and after including <string.h>.  Move declarations of
59333         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59334         to before #include "string/memmove.c".
59335
59336         * include/dirent.h: Declare __getdirentries.
59337
59338         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59339         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59340
59341 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59342
59343         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59344         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59345         * sysdeps/i386/configure: Regenerated.
59346         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59347         STABS_CURRENT_FILE, and STABS_FUN.
59348         (END): Remove call to STABS_FUN_END.
59349         (STABS_CURRENT_FILE1): Delete.
59350         (STABS_CURRENT_FILE): Likewise.
59351         (STABS_FUN): Likewise.
59352         (STABS_FUN_END): Likewise.
59353         (STABS_FUN2): Likewise.
59354         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59355         * sysdeps/x86_64/configure: Regenerated.
59356
59357 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59358
59359         * elf/dl-open.c: Include <atomic.h>.
59360         * elf/dl-lookup.c: Likewise.
59361
59362 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59363
59364         * sysdeps/unix/sysv/linux/kernel-features.h
59365         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59366         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59367         unconditionally.
59368         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59369         unconditionally.
59370         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59371         condition on __ASSUME_CLONE_THREAD_FLAGS.
59372
59373 2012-08-14  Andreas Jaeger  <aj@suse.de>
59374
59375         * sysdeps/i386/fpu/libm-test-ulps: Update.
59376
59377 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59378
59379         * include/atomic.h (atomic_exchange_and_add): Split into ...
59380         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59381         New atomic macros.
59382
59383 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59384
59385         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59386
59387 2012-08-13  Jeff Law <law@redhat.com>
59388
59389         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59390         null byte in the output string.
59391
59392 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59393
59394         * sysdeps/unix/sysv/linux/kernel-features.h
59395         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59396         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59397         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59398         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59399         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59400         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59401         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59402
59403 2012-08-09  Jeff Law <law@redhat.com>
59404
59405         [BZ #13939]
59406         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59407         When avoid_arena is set, don't retry in the that arena.  Pick the
59408         next one, whatever it might be.
59409         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59410         (arena_lock): Pass in new parameter to arena_get2.
59411         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59412         arena_get2.
59413         (__libc_malloc): Unify retrying after main arena failure with
59414         __libc_memalign version.
59415         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59416
59417 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59418
59419         [BZ #14166]
59420         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59421         to __redirect_strstr.
59422         (__strstr_sse42): Use typeof __redirect_strstr.
59423         (__strstr_ia32): Likewise.
59424         (__libc_strstr): New prototype.
59425         (strstr): Renamed to ...
59426         (__libc_strstr): This.
59427         (strstr): New strong alias of __libc_strstr.
59428         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59429         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59430         __redirect_time.
59431         Include <time.h>.
59432         (__libc_time): New prototype.
59433         (time_ifunc): Replace time with __libc_time.
59434         (time): New strong alias and hidden definition of __libc_time.
59435         (__GI_time): Remove strong alias.
59436         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59437         Include <stddef.h>.
59438         (memmove): Redefined to __redirect_memmove.
59439         (__memmove_sse2): Use typeof __redirect_memmove.
59440         (__memmove_ssse3): Likewise.
59441         (__memmove_ssse3_back): Likewise.
59442         (__libc_memmove): New prototype.
59443         (memmove): Renamed to ...
59444         (__libc_memmove): This.
59445         (memmove): New strong alias of __libc_memmove.
59446
59447 2012-08-08  Mark Salter  <msalter@redhat.com>
59448
59449         * elf/elf.h
59450         (R_MN10300_TLS_GD): Define.
59451         (R_MN10300_TLS_LD): Likewise.
59452         (R_MN10300_TLS_LDO): Likewise.
59453         (R_MN10300_TLS_GOTIE): Likewise.
59454         (R_MN10300_TLS_IE): Likewise.
59455         (R_MN10300_TLS_LE): Likewise.
59456         (R_MN10300_TLS_DTPMOD): Likewise.
59457         (R_MN10300_TLS_DTPOFF): Likewise.
59458         (R_MN10300_TLS_TPOFF): Likewise.
59459         (R_MN10300_SYM_DIFF): Likewise.
59460         (R_MN10300_ALIGN): Likewise.
59461         (R_MN10300_NUM): Update.
59462
59463 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59464
59465         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59466         Remove.
59467
59468 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59469
59470         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59471
59472         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59473         sysdeps/unix -> sysdeps/posix move.
59474         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59475
59476 2012-08-07      Allan McRae     <allan@archlinux.org>
59477
59478         [BZ #14303]
59479         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59480         (SUNOS_CPP): Likewise.
59481         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59482         not found.
59483         (open_input): Call CPP using execvp.
59484
59485 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59486
59487         * sysdeps/unix/sysv/linux/kernel-features.h
59488         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59489         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59490         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59491         (__ASSUME_WAITID_SYSCALL): Likewise.
59492         * sysdeps/unix/sysv/linux/dl-execstack.c
59493         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59494         code unconditional.
59495         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59496         conditional code.
59497         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59498         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59499         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59500         code.
59501         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59502         unconditional.
59503         [__ASSUME_WAITID_SYSCALL]: Likewise.
59504         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59505
59506 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59507
59508         * sysdeps/unix/closedir.c: Renamed to ...
59509         * sysdeps/posix/closedir.c: ... here.
59510         * sysdeps/unix/dirfd.c: Renamed to ...
59511         * sysdeps/posix/dirfd.c: ... here.
59512         * sysdeps/unix/dirstream.h: Renamed to ...
59513         * sysdeps/posix/dirstream.h: ... here.
59514         * sysdeps/unix/fdopendir.c: Renamed to ...
59515         * sysdeps/posix/fdopendir.c: ... here.
59516         * sysdeps/unix/opendir.c: Renamed to ...
59517         * sysdeps/posix/opendir.c: ... here.
59518         * sysdeps/unix/readdir.c: Renamed to ...
59519         * sysdeps/posix/readdir.c: ... here.
59520         * sysdeps/unix/readdir_r.c: Renamed to ...
59521         * sysdeps/posix/readdir_r.c: ... here.
59522         * sysdeps/unix/rewinddir.c: Renamed to ...
59523         * sysdeps/posix/rewinddir.c: ... here.
59524         * sysdeps/unix/seekdir.c: Renamed to ...
59525         * sysdeps/posix/seekdir.c: ... here.
59526         * sysdeps/unix/telldir.c: Renamed to ...
59527         * sysdeps/posix/telldir.c: ... here.
59528         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59529         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59530         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59531         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59532
59533         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59534         * bits/fcntl.h: ... here.
59535
59536         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59537         not 0.
59538         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59539         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59540         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59541         (struct flock): Move l_start, l_len to the beginning.
59542         Use __pid_t for l_pid.
59543         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59544         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59545         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59546         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59547         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59548         [__USE_LARGEFILE64] (struct flock64): New type.
59549         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59550
59551         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59552         * bits/dirent.h: ... here.
59553
59554         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59555         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59556
59557 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59558
59559         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59560         Change from 2.6.0 to 2.6.16.
59561         * sysdeps/unix/sysv/linux/configure: Regenerated.
59562         * sysdeps/unix/sysv/linux/kernel-features.h
59563         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59564         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59565         version.
59566         (__ASSUME_UTIMES): Likewise.
59567         (__ASSUME_CLONE_STOPPED): Remove.
59568         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59569         architectures, not kernel version.
59570         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59571         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59572         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59573         (__ASSUME_WAITID_SYSCALL): Likewise.
59574         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59575         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59576         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59577         refer to older versions.
59578
59579 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59580
59581         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59582         Define alphasort64 as an alias.
59583         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59584         Define versionsort64 as an alias.
59585         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59586         Define scandir64 as an alias.
59587         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59588         Define scandirat64 as an alias.
59589         * dirent/alphasort64.c (alphasort64):
59590         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59591         * dirent/versionsort64.c: Likewise.
59592         * dirent/scandir64.c: Likewise.
59593         * dirent/scandirat64.c: Likewise.
59594         * sysdeps/wordsize-64/alphasort.c: File removed.
59595         * sysdeps/wordsize-64/alphasort64.c: File removed.
59596         * sysdeps/wordsize-64/scandir.c: File removed.
59597         * sysdeps/wordsize-64/scandir64.c: File removed.
59598         * sysdeps/wordsize-64/scandirat.c: File removed.
59599         * sysdeps/wordsize-64/scandirat64.c: File removed.
59600         * sysdeps/wordsize-64/versionsort.c: File removed.
59601         * sysdeps/wordsize-64/versionsort64.c: File removed.
59602         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59603         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59604         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59605         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59606         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59607         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59608         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59609         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59610
59611         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59612         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59613         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59614         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59615         [defined __arch64__ || defined __sparcv9]
59616         (__INO_T_MATCHES_INO64_T): New macro.
59617         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59618         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59619         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59620         * sysdeps/unix/sysv/linux/bits/dirent.h
59621         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59622         (_DIRENT_MATCHES_DIRENT64): New macro.
59623
59624         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59625         Define lockf64 as an alias.
59626         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59627         Define fseeko64 as an alias.
59628         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59629         Define ftello64 as an alias.
59630         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59631         Define _IO_fgetpos64 and fgetpos64 as aliases.
59632         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59633         Define _IO_fsetpos64 and fsetpos64 as aliases.
59634         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59635         Conditionalize body on this.
59636         * libio/fseeko64.c: Likewise.
59637         * libio/ftello64.c: Likewise.
59638         * libio/iofgetpos64.c: Likewise.
59639         * libio/iofsetpos64.c: Likewise.
59640         * sysdeps/wordsize-64/lockf.c: File removed.
59641         * sysdeps/wordsize-64/lockf64.c: File removed.
59642         * sysdeps/wordsize-64/fseeko.c: File removed.
59643         * sysdeps/wordsize-64/fseeko64.c: File removed.
59644         * sysdeps/wordsize-64/ftello.c: File removed.
59645         * sysdeps/wordsize-64/ftello64.c: File removed.
59646         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59647         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59648         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59649         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59650         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59651         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59652         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59653         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59654         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59655         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59656         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59657         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59658         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59659         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59660
59661         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59662         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59663         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59664         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59665         [defined __arch64__ || defined __sparcv9]
59666         (__OFF_T_MATCHES_OFF64_T): New macro.
59667         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59668         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59669         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59670         (__OFF_T_MATCHES_OFF64_T): New macro.
59671
59672 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59673
59674         * stdlib/secure-getenv.c (__secure_getenv): Replace
59675         GLIBC_2_16 with GLIBC_2_17.
59676
59677 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59678
59679         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59680         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59681
59682 2012-08-03  David S. Miller  <davem@davemloft.net>
59683
59684         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59685
59686 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59687
59688         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59689         Remove.
59690         (__ASSUME_CORRECT_SI_PID): Likewise.
59691         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59692         (__ASSUME_TMPFS_NAME): Likewise.
59693         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59694         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59695         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59696         (HAVE_AUX_SECURE): Make definition unconditional.
59697         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59698         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59699
59700 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59701
59702         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59703         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59704         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59705         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59706         __eloop_threshold instead of SYMLOOP_MAX.
59707
59708         * sysdeps/generic/eloop-threshold.h: New file.
59709         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59710         of MAXSYMLINKS.
59711         * elf/chroot_canon.c (chroot_canon): Likewise.
59712
59713 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59714
59715         [BZ #13717]
59716         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59717         Change to 2.6.0 everywhere.
59718         * sysdeps/unix/sysv/linux/configure: Regenerated.
59719         * sysdeps/unix/sysv/linux/kernel-features.h
59720         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59721         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59722         kernel versions.
59723         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59724         (__ASSUME_FUTEX_REQUEUE): Remove.
59725         (__ASSUME_STATFS64): Define unconditionally.
59726         (__ASSUME_AT_SECURE): Likewise.
59727         (__ASSUME_CORRECT_SI_PID): Likewise.
59728         (__ASSUME_TGKILL): Define without depending on kernel version for
59729         i386.
59730         (__ASSUME_UTIMES): Likewise.
59731         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59732         kernel version.
59733         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59734         (__ASSUME_TMPFS_NAME): Likewise.
59735         * README: Update reference to Linux kernel versions.
59736
59737 2012-08-02  Marek Polacek  <polacek@redhat.com>
59738
59739         [BZ# 14150]
59740         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59741         libc_cv_asm_type_prefix with %.
59742         * configure: Regenerated.
59743         * include/libc-symbols.h: Remove comment about
59744         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59745         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59746         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59747         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59748         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59749         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59750         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59751         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59752         * elf/tst-unique2mod1.c: Likewise.
59753         * elf/tst-unique1mod2.c: Likewise.
59754         * elf/tst-unique1mod1.c: Likewise.
59755         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59756         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59757         Replace ASM_TYPE_DIRECTIVE with .type.
59758         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59759         * sysdeps/i386/sysdep.h: Likewise.
59760         * sysdeps/x86_64/sysdep.h: Likewise.
59761         * sysdeps/sh/sysdep.h: Likewise.
59762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59763         Do not define ASM_TYPE_DIRECTIVE.
59764         * sysdeps/powerpc/sysdep.h: Likewise.
59765         * sysdeps/powerpc/powerpc32/sysdep.h:
59766         Replace ASM_TYPE_DIRECTIVE with .type.
59767         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59768         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59769         * sysdeps/i386/fpu/e_powf.S: Likewise.
59770         * sysdeps/i386/fpu/e_expl.S: Likewise.
59771         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59772         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59773         * sysdeps/i386/fpu/e_pow.S: Likewise.
59774         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59775         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59776         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59777         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59778         * sysdeps/i386/fpu/e_log2.S: Likewise.
59779         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59780         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59781         * sysdeps/i386/fpu/e_powl.S: Likewise.
59782         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59783         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59784         * sysdeps/i386/fpu/e_logl.S: Likewise.
59785         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59786         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59787         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59788         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59789         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59790         * sysdeps/i386/fpu/e_log.S: Likewise.
59791         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59792         * sysdeps/i386/fpu/e_logf.S: Likewise.
59793         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59794         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59795         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59796         * sysdeps/i386/fpu/e_log10.S: Likewise.
59797         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59798         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59799         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59800         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59801         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59802         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59803         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59804         * sysdeps/i386/i686/strtok.S: Likewise.
59805         * sysdeps/i386/i386-mcount.S: Likewise.
59806         * sysdeps/i386/strtok.S: Likewise.
59807         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59808         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59809         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59810         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59811         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59812         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59813         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59814         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59815         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59816         * sysdeps/x86_64/_mcount.S: Likewise.
59817         * sysdeps/x86_64/strtok.S: Likewise.
59818         * sysdeps/sh/_mcount.S: Likewise.
59819
59820 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59821
59822         * libio/iofopen.c: Include <fcntl.h>.
59823         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59824         (_IO_fopen64, fopen64): Define as aliases.
59825         * libio/iofopen64.c: Include <fcntl.h>.
59826         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59827         Conditionalize body on this.
59828         * sysdeps/wordsize-64/iofopen.c: File removed.
59829         * sysdeps/wordsize-64/iofopen64.c: File removed.
59830
59831 2012-08-01  Marek Polacek  <polacek@redhat.com>
59832
59833         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59834         Use dlfcn directly instead of a variable.
59835         (binfmt-subdir): Do not define.
59836         (dlfcn): Likewise.
59837
59838 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59839
59840         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59841         Remove all definitions.
59842         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59843         <kernel-features.h>.
59844         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59845         (miss_F_GETOWN_EX): Remove all definitions.
59846         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59847         macro definition.
59848         [!__ASSUME_FCNTL64]: Remove conditional code.
59849         [__ASSUME_FCNTL64]: Make code unconditional.
59850         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59851         <kernel-features.h>.
59852         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59853         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59854         (lockf64) [__NR_fcntl64]: Make code unconditional.
59855         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59856
59857         * sysdeps/unix/sysv/linux/kernel-features.h
59858         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59859         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59860         Make code unconditional.
59861         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59862         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59864         [__NR_vfork]: Make code unconditional.
59865         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59866         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59868         [__NR_vfork]: Make code unconditional.
59869         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59870         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59871
59872 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59873
59874         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59875         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59876
59877         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59878         Define mkstemp64 as an alias.
59879         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59880         Define mkstemps64 as an alias.
59881         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59882         Define mkostemp64 as an alias.
59883         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59884         Define mkostemps64 as an alias.
59885         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59886         Conditionalize body on this.
59887         * misc/mkostemp64.c: Likewise.
59888         * misc/mkostemps64.c: Likewise.
59889         * misc/mkstemps64.c: Likewise.
59890         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59891         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59892         * sysdeps/wordsize-64/mkostemp.c: File removed.
59893         * sysdeps/wordsize-64/mkstemp.c: File removed.
59894         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59895         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59896         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59897         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59898
59899         [BZ #14138]
59900         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59901         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59902         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59903         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59904
59905         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59906         compat_symbol macros from <shlib-compat.h> rather than the underlying
59907         default_symbol_version and symbol_version macros, so that DEFAULT
59908         lines in shlib-versions are respected.
59909         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59910
59911 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59912
59913         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59914         Declare with warn_unused_result.
59915         (setgid, setregid, setegid, setresgid): Likewise.
59916         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59917         Likewise.
59918         * WUR-REPORT: Remove set*id functions.
59919
59920 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59921
59922         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59923
59924 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59925
59926         [BZ #10191]
59927         * include/sys/socket.h (__libc_accept, __libc_accept4):
59928         Add attribute_hidden.
59929         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59930
59931         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59932         use of PTR_MANGLE.
59933         * inet/getnetgrent_r.c (setup): Likewise.
59934
59935         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59936
59937 2012-07-31  David S. Miller  <davem@davemloft.net>
59938
59939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59940
59941 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59942
59943         [BZ #13629]
59944         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59945         value between 1.0 and 2.0 and smaller part has absolute value less
59946         than 1.0.
59947         * math/s_clog10.c (__clog10): Likewise.
59948         * math/s_clog10f.c (__clog10f): Likewise.
59949         * math/s_clog10l.c (__clog10l): Likewise.
59950         * math/s_clogf.c (__clogf): Likewise.
59951         * math/s_clogl.c (__clogl): Likewise.
59952         * math/libm-test.inc (clog_test): Add more tests.
59953         (clog10_test): Likewise.
59954         * sysdeps/i386/fpu/libm-test-ulps: Update.
59955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59956
59957 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59958
59959         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59960         Exit with zero in case no suitable GID is found, and write a
59961         message to standard error.
59962
59963 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59964
59965         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59966         rather than to 1.
59967         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59968         (MAXPATHLEN): Removed.
59969         (NOGROUP, NODEV): New macros.
59970         (setbit, clrbit, isset, isclr): New macros.
59971         (howmany, roundup, powerof2): New macros.
59972         (DEV_BSIZE): New macro.
59973
59974         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59975         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59976
59977         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59978         definition on [!__NO_LONG_DOUBLE_MATH].
59979
59980         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59981         PTR_MANGLE and PTR_DEMANGLE.
59982
59983         * socket/accept4.c (accept4): Rename to __libc_accept4.
59984         Define accept4 as a weak alias.
59985
59986         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59987         on [_DIRENT_HAVE_D_TYPE].
59988         * io/ftw.c (ftw_dir): Likewise.
59989
59990         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59991
59992         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59993
59994         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59995         Use the BSD numbers rather than the arbitrary ones we had.
59996         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59997         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59998         (SIGXCPU, SIGXFSZ): New macros.
59999         (_NSIG): Now 32.
60000
60001         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
60002         initializer on [_LIBC_REENTRANT].
60003
60004         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
60005         definitions inside [_POSIX_MAPPED_FILES].
60006
60007         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
60008
60009         * dirent/opendir.c: Include <fcntl.h>.
60010
60011         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
60012         (__libc_getspecific): Likewise.
60013         (__libc_key_create): Likewise.
60014
60015         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
60016         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
60017         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
60018         (tmpfile64): Define as alias.
60019         * sysdeps/wordsize-64/tmpfile.c: File removed.
60020         * sysdeps/wordsize-64/tmpfile64.c: File removed.
60021         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
60022         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
60023
60024         * stdio-common/vfscanf.c: Include <stdbool.h>.
60025         * nss/makedb.c: Likewise.
60026         * stdio-common/_i18n_number.h: Likewise.
60027         * argp/argp-help.c: Likewise.
60028         * posix/wordexp.c: Likewise.
60029         * sysdeps/posix/spawni.c: Likewise.
60030         * nss/nss_files/files-initgroups.c: Likewise.
60031         * stdio-common/reg-modifier.c: Include <stdlib.h>.
60032         * nss/nss_files/files-initgroups.c: Likewise.
60033         * nss/nss_db/db-netgrp.c: Likewise.
60034         * nss/nss_db/db-initgroups.c: Likewise.
60035         * io/fchmodat.c: Include <sys/stat.h>.
60036
60037         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
60038         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
60039
60040         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
60041         [HAVE_MMAP].
60042
60043         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
60044         Add multiple inclusion protection.
60045
60046 2012-07-27  David S. Miller  <davem@davemloft.net>
60047
60048         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60049
60050 2012-07-27  Gary Benson  <gbenson@redhat.com>
60051
60052         [BZ #14298]
60053         * elf/rtld.c: Include <stap-probe.h>.
60054         (dl_main): Added static probes "init_start" and "init_complete".
60055         * elf/dl-load.c: Include <stap-probe.h>.
60056         (lose): Take new parameter "nsid".
60057         Added static probe "map_failed".
60058         (_dl_map_object_from_fd): Pass namespace id to lose.
60059         Added static probe "map_start".
60060         (open_verify): Pass namespace id to lose.
60061         * elf/dl-open.c: Include <stap-probe.h>.
60062         (dl_open_worker) Added static probes "map_complete", "reloc_start"
60063         and "reloc_complete".
60064         * elf/dl-close.c: Include <stap-probe.h>.
60065         (_dl_close_worker): Added static probes "unmap_start" and
60066         "unmap_complete".
60067         * elf/rtld-debugger-interface.txt: New file documenting the above.
60068
60069 2012-07-26  Roland McGrath  <roland@hack.frob.com>
60070
60071         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
60072         rather than a string variable.
60073         * sunrpc/rpc_main.c (h_output): Likewise.
60074         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
60075
60076 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
60077
60078         * inet/check_native.c: New file.
60079
60080 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
60081
60082         [BZ #13629]
60083         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
60084         if larger part has absolute value 1.0.
60085         * math/s_clog10.c (__clog10): Likewise.
60086         * math/s_clog10f.c (__clog10f): Likewise.
60087         * math/s_clog10l.c (__clog10l): Likewise.
60088         * math/s_clogf.c (__clogf): Likewise.
60089         * math/s_clogl.c (__clogl): Likewise.
60090         * math/libm-test.inc (clog_test): Add more tests.
60091         (clog10_test): Likewise.
60092         * sysdeps/i386/fpu/libm-test-ulps: Update.
60093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60094
60095         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
60096         (pltexit): Likewise.
60097         (La_regs): Likewise.
60098         (La_retval): Likewise.
60099         (int_retval): Likewise.
60100         Update #error for removed macros to refer only to definitions in
60101         tst-audit.h.
60102         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
60103         macro.
60104         (pltexit): Likewise.
60105         (La_regs): Likewise.
60106         (La_retval): Likewise.
60107         (int_retval): Likewise.
60108         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
60109         macro.
60110         (pltexit): Likewise.
60111         (La_regs): Likewise.
60112         (La_retval): Likewise.
60113         (int_retval): Likewise.
60114         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
60115         macro.
60116         (pltexit): Likewise.
60117         (La_regs): Likewise.
60118         (La_retval): Likewise.
60119         (int_retval): Likewise.
60120         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
60121         macro.
60122         (pltexit): Likewise.
60123         (La_regs): Likewise.
60124         (La_retval): Likewise.
60125         (int_retval): Likewise.
60126         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
60127         macro.
60128         (pltexit): Likewise.
60129         (La_regs): Likewise.
60130         (La_retval): Likewise.
60131         (int_retval): Likewise.
60132         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
60133         macro.
60134         (pltexit): Likewise.
60135         (La_regs): Likewise.
60136         (La_retval): Likewise.
60137         (int_retval): Likewise.
60138         * sysdeps/generic/tst-audit.h: Update comment to refer only to
60139         macro definitions in tst-audit.h.
60140         * sysdeps/i386/tst-audit.h: New file.
60141         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
60142         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
60143         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
60144         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
60145         * sysdeps/sh/tst-audit.h: Likewise.
60146         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
60147         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
60148         * sysdeps/x86_64/tst-audit.h: Likewise.
60149
60150 2012-07-26  Andreas Jaeger  <aj@suse.de>
60151
60152         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
60153         ptrace.
60154
60155         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
60156         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
60157         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
60158         PTRACE_O_MASK.
60159         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
60160         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
60161         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
60162
60163         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
60164         value.
60165
60166         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
60167         _sigsys.
60168         (si_call_addr, si_syscall, si_arch): Define new macro.
60169         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
60170         _sigsys.
60171         (si_call_addr, si_syscall, si_arch): Define new marcro.
60172         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
60173         _sigsys.
60174         (si_call_addr, si_syscall, si_arch): Define new macro.
60175         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
60176         _sigsys.
60177         (si_call_addr, si_syscall, si_arch): Define new macro.
60178
60179 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60180
60181         [BZ #13717]
60182         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60183         Change to 2.4.21 where previously 2.4.1.
60184         * sysdeps/unix/sysv/linux/configure: Regenerated.
60185         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
60186         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
60187         Linux kernel version.
60188         (__ASSUME_STD_AUXV): Remove.
60189         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
60190         kernel version.
60191         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
60192         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
60193         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
60194         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
60195         (__ASSUME_NETLINK_SUPPORT): Likewise.
60196         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
60197         (__no_netlink_support): Remove conditional definition.
60198         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
60199         Remove.
60200         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60201         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60202         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60203         (if_nameindex_ioctl): Remove.
60204         (if_nameindex_netlink): Do not handle __no_netlink_support.
60205         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60206         code.
60207         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60208         Remove conditional code.
60209         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60210         code.
60211         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60212         unconditional.
60213         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60214         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60215         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60216         Remove.
60217         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60218         [!__ASSUME_STD_AUXV]: Remove conditional code.
60219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60220         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60221         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60223         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60224         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60225         code.
60226         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60228         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60229         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60230         conditional code.
60231         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60233         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60234         code.
60235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60236         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60237         conditional code.
60238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60239         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60240         code unconditional.
60241         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60242         conditional code.
60243         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60244         unconditional.
60245         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60246         conditional code.
60247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60248         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60249         unconditional.
60250         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60251         conditional code.
60252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60253         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60254         code unconditional.
60255         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60256         conditional code.
60257         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60258         unconditional.
60259         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60260         conditional code.
60261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60262         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60263         code unconditional.
60264         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60265         conditional code.
60266         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60267         unconditional.
60268         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60269         conditional code.
60270
60271 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60272
60273         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60274         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60275         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60276         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60277         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60278         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60279         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60280         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60281         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60282         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60283         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60284         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60285         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60286         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60287         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60288         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60289         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60290         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60291         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60292         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60293         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60294         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60295         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60296
60297 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60298
60299         * Versions.def: Add GLIBC_2.17.
60300         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60301         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60302         Introduce __libc_secure_getenv.
60303         * stdlib/Versions (2.17): Add secure_getenv
60304         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60305         * stdlib/secure-getenv.c: Rename __secure_getenv to
60306         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60307         symbol __secure_getenv for GLIBC_2.0.
60308         * stdlib/tst-secure-getenv.c: New.
60309         * stdlib/Makefile (tests): Add testcase.
60310         * manual/startup.texi (Environment Access): Document
60311         secure_getenv.
60312         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60313         __libc_secure_getenv.
60314         * inet/ruserpass.c (ruserpass): Likewise.
60315         * malloc/mtrace.c (mtrace): Likewise.
60316         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60317         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60318         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60319         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60320         HAVE_SECURE_GETENV.
60321         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60322         __secure_getenv to __libc_secure_getenv.
60323         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60325         Likewise.
60326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60327         Likewise.
60328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60330         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60332         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60333         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60335
60336 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60337
60338         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60339         (struct La_i86_retval): Likewise.
60340         (struct La_x86_64_regs): Likewise.
60341         (struct La_x86_64_retval): Likewise.
60342         (struct La_x32_regs): Likewise.
60343         (struct La_x32_retval): Likewise.
60344         (struct La_ppc32_regs): Likewise.
60345         (struct La_ppc32_retval): Likewise.
60346         (struct La_ppc64_regs): Likewise.
60347         (struct La_ppc64_retval): Likewise.
60348         (struct La_sh_regs): Likewise.
60349         (struct La_sh_retval): Likewise.
60350         (struct La_s390_32_regs): Likewise.
60351         (struct La_s390_32_retval): Likewise.
60352         (struct La_s390_64_regs): Likewise.
60353         (struct La_s390_64_retval): Likewise.
60354         (struct La_sparc32_regs): Likewise.
60355         (struct La_sparc32_retval): Likewise.
60356         (struct La_sparc64_regs): Likewise.
60357         (struct La_sparc64_retval): Likewise.
60358         (struct audit_ifaces): Remove architecture-specific pltenter and
60359         pltexit members.
60360         * sysdeps/i386/ldsodefs.h: New file.
60361         * sysdeps/powerpc/ldsodefs.h: Likewise.
60362         * sysdeps/s390/ldsodefs.h: Likewise.
60363         * sysdeps/sh/ldsodefs.h: Likewise.
60364         * sysdeps/sparc/ldsodefs.h: Likewise.
60365         * sysdeps/x86_64/ldsodefs.h: Likewise.
60366
60367 2012-07-25  Marek Polacek  <polacek@redhat.com>
60368
60369         [BZ #6808]
60370         * math/libm-test.inc (yn_test): Add another test.
60371         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60372         to ERANGE when the result is +-Inf.
60373         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60374         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60375         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60376         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60377
60378 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60379
60380         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60381         equal to 0.
60382         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60383         clock_t.
60384         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60385
60386 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60387
60388         * configure.in <sysdeps resolving>: Correct printing
60389         Implies_before.
60390         * configure: Regenerate.
60391
60392 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60393
60394         * math/w_ilogb.c: Include <limits.h>.
60395         * math/w_ilogbl.c: Likewise.
60396
60397 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60398
60399         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60400         va_copy.  Document allowing for unavailable va_copy only as
60401         pre-C99 compatibility.
60402         * manual/string.texi (Copying and Concatenation): Use va_copy
60403         instead of __va_copy in concat example.
60404
60405 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60406
60407         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60408         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60409         it if not null.
60410
60411         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60412         with O_NOLINK passed to __file_name_lookup.
60413
60414         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60415         with O_NOLINK passed to __file_name_lookup.
60416
60417         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60418         negative N or less than NGIDS.
60419
60420         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60421         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60422         enough.  Use memcpy instead of strncpy.
60423
60424 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60425
60426         * elf/Makefile (check-data): Remove.
60427         (localplt.data): New vpath directive.
60428         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60429         instead of $(check-data).
60430         * scripts/data/localplt-generic.data: Move to ...
60431         * sysdeps/generic/localplt.data: ... here.
60432         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60433         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60434         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60436         ... here.
60437         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60439         ... here.
60440         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60442         ... here.
60443         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60444         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60445         ... here.
60446         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60447         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60448         ... here.
60449         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60450         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60451         ... here.
60452
60453 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60454
60455         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60456         PPC32 and PPC64 files.
60457         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60458         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60459
60460 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60461
60462         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60463         __makecontext_ret to ...
60464         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60465         ... here and call exit if uc_link is NULL.  New file.
60466         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60467         __makecontext_ret.S.
60468         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60469         __makecontext_ret to ...
60470         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60471         ... here and call exit if uc_link is NULL.  New file.
60472         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60473         __makecontext_ret.S.
60474
60475 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60476
60477         * elf/elf.h (R_390_IRELATIVE): New definition.
60478         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60479         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60480         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60481         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60482         (elf_machine_lazy_rel): Likewise.
60483         * sysdeps/s390/dl-irel.h: New file.
60484         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60485         * sysdeps/s390/s390-64/memset.S: New asm code.
60486         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60487         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60488         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60489         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60490         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60491         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60492         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60493         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60494         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60495         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60496         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60497         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60498         * sysdeps/s390/s390-32/memset.S: New asm code.
60499         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60500
60501 2012-07-17  Marek Polacek  <polacek@redhat.com>
60502
60503         [BZ #14349]
60504         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60505         * sysdeps/s390/s390-64/configure.in: Likewise.
60506         * sysdeps/sparc/configure.in: Likewise.
60507         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60508         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60509         * sysdeps/i386/configure.in: Likewise.
60510         * sysdeps/x86_64/configure.in: Likewise.
60511         * sysdeps/sh/configure.in: Likewise.
60512         * sysdeps/s390/s390-32/configure: Regenerated.
60513         * sysdeps/s390/s390-64/configure: Likewise.
60514         * sysdeps/x86_64/configure: Likewise.
60515         * sysdeps/sh/configure: Likewise.
60516         * sysdeps/powerpc/powerpc64/configure: Likewise.
60517         * sysdeps/powerpc/powerpc32/configure: Likewise.
60518         * sysdeps/sparc/configure: Likwise.
60519         * sysdeps/i386/configure: Likewise.
60520
60521         * elf/dl-open.c: Comment fixes.
60522
60523 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60524
60525         * Makefile [CXX] (check-data): Remove.
60526         [CXX] (c++-types.data): New vpath directive.
60527         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60528         vpath.  Do not allow for C++ type data being missing.
60529         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60530         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60531         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60532         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60533         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60534         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60535         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60537         ... here.
60538         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60540         ... here.
60541         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60543         ... here.
60544         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60546         ... here.
60547         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60549         ... here.
60550         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60551         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60552         ... here.
60553         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60555         ... here.
60556         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60557         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60558
60559         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60560         definitions to architecture-specific files.
60561         (TLS_IE): Likewise.
60562         (TLS_LD): Likewise.
60563         (TLS_GD): Likewise.
60564         * sysdeps/i386/tls-macros.h: New file.
60565         * sysdeps/powerpc/tls-macros.h: Likewise.
60566         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60567         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60568         * sysdeps/sh/tls-macros.h: Likewise.
60569         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60570         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60571         * sysdeps/x86_64/tls-macros.h: Likewise.
60572
60573 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60574
60575         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60576         zero value for regular exit case.
60577
60578         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60579         (__start_context): Preserve zero value for regular exit case.
60580
60581 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60582             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60583
60584         * manual/setjmp.texi (setcontext): Clarify normal process
60585         termination when uc_link is the null pointer.
60586         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60587         exit call.
60588
60589 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60590
60591         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60592         preprocessor.  Test for each exception mask separately.
60593
60594 2012-07-16  Andreas Jaeger  <aj@suse.de>
60595
60596         * po/ru.po: Update from translation team.
60597
60598 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60599
60600         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60601         equal to 0.
60602         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60603         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60604         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60605         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60606         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60607
60608 2012-07-13  Andreas Jaeger  <aj@suse.de>
60609
60610         * po/fr.po: Update from translation team.
60611
60612 2012-07-12  Marek Polacek  <polacek@redhat.com>
60613
60614         [BZ #14173]
60615         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60616         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60617         loop condition.
60618
60619 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60620
60621         [BZ #13717]
60622         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60623         Change to 2.4.1 where previously 2.4.0.
60624         * sysdeps/unix/sysv/linux/configure: Regenerated.
60625         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60626         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60627         version.
60628         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60629         (__ASSUME_AT_CLKTCK): Remove.
60630         (__ASSUME_AT_PAGESIZE): Likewise.
60631         (__ASSUME_AT_XID): Likewise.
60632         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60633         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60634         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60635         unconditionally.
60636         (HAVE_AUX_PAGESIZE): Likewise.
60637         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60638         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60639         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60640
60641 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60642
60643         [BZ #14307]
60644         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60645         the temporary buffer used to invoke __gethostbyname2_r,
60646         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60647         host_data / struct gaih_addrtuple.
60648         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60649         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60650         header file nss/nsswitch.h.
60651         * nss/nsswitch.h (global scope): Add definition of implementation
60652         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60653         resolv/nss_dns/dns-host.c).
60654
60655 2012-07-11  Andreas Jaeger  <aj@suse.de>
60656
60657         * po/fr.po: Update from translation team.
60658
60659         * po/sv.po: Update from translation team
60660         * po/fr.po: Another update from translation team.
60661
60662 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60663
60664         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60665         for subnormals or multiply small sinh result by itself.
60666         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60667         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60668
60669 2012-07-11  David S. Miller  <davem@davemloft.net>
60670
60671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60672
60673 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60674
60675         [BZ #14347]
60676         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60677         (INTERNAL_MARK): Shift it here.
60678
60679 2012-07-10  Marek Polacek  <polacek@redhat.com>
60680
60681         [BZ #14151]
60682         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60683         libc_cv_asm_global_directive with .globl.
60684         * configure: Regenerated.
60685         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60686         with .globl.
60687         * sysdeps/i386/configure: Regenerated.
60688         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60689         with .globl.
60690         * sysdeps/x86_64/configure: Regenerated.
60691         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60692         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60693         * elf/tst-unique2mod2.c: Likewise.
60694         * elf/tst-unique2mod1.c: Likewise.
60695         * elf/tst-unique1mod2.c: Likewise.
60696         * elf/tst-unique1mod1.c: Likewise.
60697         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60698         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60699         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60700         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60701         * sysdeps/mach/sysdep.h: Likewise.
60702         * sysdeps/i386/sysdep.h: Likewise.
60703         * sysdeps/i386/i386-mcount.S: Likewise.
60704         * sysdeps/x86_64/_mcount.S: Likewise.
60705         * sysdeps/x86_64/sysdep.h: Likewise.
60706         * sysdeps/sh/_mcount.S: Likewise.
60707         * sysdeps/sh/sysdep.h: Likewise.
60708         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60709         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60710         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60711         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60712         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60713         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60714         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60715         * locale/localeinfo.h: Likewise.
60716         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60717         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60718
60719 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60720
60721         [BZ #14336]
60722         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60723         system".
60724         * manual/message.texi (The Uniforum approach): Likewise.
60725         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60726         (glibc iconv Implementation): Likewise.
60727
60728 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60729
60730         [BZ #14337]
60731         * math/s_clog.c (__clog): Avoid scaling a value down where that
60732         could result in underflow.
60733         * math/s_clog10.c (__clog10): Likewise.
60734         * math/s_clog10f.c (__clog10f): Likewise.
60735         * math/s_clog10l.c (__clog10l): Likewise.
60736         * math/s_clogf.c (__clogf): Likewise.
60737         * math/s_clogl.c (__clogl): Likewise.
60738         * math/libm-test.inc (clog_test): Add more tests.
60739         (clog10_test): Likewise.
60740         * sysdeps/i386/fpu/libm-test-ulps: Update.
60741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60742
60743 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60744
60745         [BZ #14283]
60746         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60747         by 7 not 8 to examine high bit of fractional part.
60748
60749         [BZ #14042]
60750         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60751         for call to __mcount_internal.
60752         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60753         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60754         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60755
60756 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60757
60758         [BZ #14154]
60759         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60760         approximation for values within 0x1p-13f of an odd multiple of
60761         pi/4.
60762         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60763         exception.  Add more tests.
60764         * sysdeps/i386/fpu/libm-test-ulps: Update.
60765
60766         [BZ #6778]
60767         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60768         inputs and return -1 for them.  Do not check for +Inf in case not
60769         reachable for +Inf.
60770         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60771         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60772         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60773         and return -1 for them.  Do not check for +Inf in case not
60774         reachable for +Inf.
60775         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60776         define.
60777         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60778         and return -1 for them.  Do not check for +Inf in case not
60779         reachable for +Inf.
60780         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60781         spurious underflow.
60782         * sysdeps/i386/fpu/libm-test-ulps: Update.
60783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60784
60785 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60786
60787         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60788
60789 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60790
60791         [BZ #14157]
60792         [BZ #14331]
60793         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60794         could result in spurious underflow.  Scale down values above
60795         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60796         * math/s_csqrtf.c (__csqrtf): Likewise.
60797         * math/s_csqrtl.c (__csqrtl): Likewise.
60798         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60799         spurious underflow.
60800         * sysdeps/i386/fpu/libm-test-ulps: Update.
60801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60802
60803 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60804
60805         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60806         xopen-msg.sed.
60807         * catgets/xopen-msg.awk: New file.
60808         * catgets/xopen-msg.sed: Removed.
60809
60810         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60811         po2text.sed.
60812         * intl/po2test.awk: New file.
60813         * intl/po2test.sed: Removed.
60814
60815 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60816
60817         [BZ #14328]
60818         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60819         or multiply small sinh result by itself.
60820         * math/s_ctanf.c (__ctanf): Likewise.
60821         * math/s_ctanh.c (__ctanh): Likewise.
60822         * math/s_ctanhf.c (__ctanhf): Likewise.
60823         * math/s_ctanhl.c (__ctanhl): Likewise.
60824         * math/s_ctanl.c (__ctanl): Likewise.
60825         * math/libm-test.inc (ctan_test_tonearest): New function.
60826         (ctan_test_towardzero): Likewise.
60827         (ctan_test_downward): Likewise.
60828         (ctan_test_upward): Likewise.
60829         (ctanh_test_tonearest): Likewise.
60830         (ctanh_test_towardzero): Likewise.
60831         (ctanh_test_downward): Likewise.
60832         (ctanh_test_upward): Likewise.
60833         (main): Call these new functions.
60834         * sysdeps/i386/fpu/libm-test-ulps: Update.
60835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60836
60837 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60838
60839         * .gitignore: Delete /ports entry.
60840
60841 2012-07-03  Andreas Jaeger  <aj@suse.de>
60842
60843         * po/bg.po: Update from translation team.
60844         * po/cs.po: Likewise.
60845         * po/de.po: Likewise.
60846         * po/hr.po: Likewise.
60847         * po/nl.pl: Likewise.
60848         * po/pl.po: Likewise.
60849         * po/vi.po: Likewise.
60850
60851 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60852
60853         * Makeconfig [!+link] (+link-before-libc): New variable.
60854         [!+link] (+link-after-libc): Likewise.
60855         [!+link] (+link-tests): Likewise.
60856         [!+link] (+link): Define in terms of $(+link-before-libc) and
60857         $(+link-after-libc).
60858         [!+link-static] (+link-static-before-libc): New variable.
60859         [!+link-static] (+link-static-after-libc): Likewise.
60860         [!+link-static] (+link-static-tests): Likewise.
60861         [!+link-static] (+link-static): Define in terms of
60862         $(+link-static-before-libc) and $(+link-static-after-libc).
60863         [build-shared] (link-libc-before-gnulib): New variable.
60864         [build-shared] (link-libc-tests): Likewise.
60865         [build-shared] (link-libc): Define in terms of
60866         $(link-libc-before-gnulib).
60867         [!build-shared] (link-libc-tests): New variable.
60868         (link-libc-static-tests): New variable.
60869         [!gnulib] (gnulib-arch): New variable.
60870         [!gnulib] (gnulib-tests): Likewise.
60871         [!gnulib] (static-gnulib-arch): Likewise.
60872         [!gnulib] (static-gnulib-tests): Likewise.
60873         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60874         Define with "=" instead of ":=".
60875         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60876         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60877         * Rules (binaries-all-notests): New variable.
60878         (binaries-all-tests): Likewise.
60879         (binaries-static-notests): Likewise.
60880         (binaries-static-tests): Likewise.
60881         (binaries-all): Define using $(binaries-all-notests) and
60882         $(binaries-all-tests).
60883         (binaries-static): Define using $(binaries-static-notests) and
60884         $(binaries-static-tests).
60885         (binaries-shared-tests): New variable.
60886         (binaries-shared-notests): Likewise.
60887         (binaries-shared): Remove variable.
60888         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60889         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60890         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60891         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60892         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60893         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60894         * elf/Makefile (sln-modules): New variable.
60895         (extra-objs): Add $(sln-modules:=.o).
60896         (ldconfig-modules): Add static-stubs.
60897         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60898         * elf/static-stubs.c: New file.
60899
60900         [BZ #14283]
60901         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60902         by 7 not 8 to examine high bit of fractional part.  Use volatile
60903         variables when splitting into final array of floats if
60904         __FLT_EVAL_METHOD__ != 0.
60905         * math/libm-test.inc (cos_test): Add another test.
60906         (sin_test): Likewise.
60907         * sysdeps/i386/fpu/libm-test-ulps: Update.
60908
60909         [BZ #14273]
60910         * math/libm-test.inc (cosh_test): Add more tests.
60911
60912         * version.h (RELEASE): Set to "development".
60913         (VERSION): Set to "2.16.90".
60914
60915 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60916
60917         * NEWS: Update copyright. Remove last-updated date.
60918         Mention math library bug fixes and timezone data changes.
60919         * README: Mention GNU/Hurd, x32, and HPPA support status.
60920
60921 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60922
60923         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60924
60925 2012-06-27  Andreas Jaeger  <aj@suse.de>
60926
60927         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60928
60929 2012-06-25  Andreas Jaeger  <aj@suse.de>
60930
60931         * sysdeps/s390/fpu/libm-test-ulps: Update.
60932
60933 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60934             Thomas Schwinge  <thomas@codesourcery.com>
60935
60936         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60937         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60938         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60939         fanotify_mark.
60940
60941 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60942
60943         * sysdeps/mach/start.c: Remove file.
60944         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60945         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60946         * sysdeps/sh/init-first.c: Likewise.
60947
60948         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60949         registers for frame unwinding purposes, add CFI directives.
60950         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60951         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60952         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60953         Likewise.
60954
60955         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60956         __fortify_fail returning.
60957         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60958
60959         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60960         sysdeps/sh/____longjmp_chk.S.
60961         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60962         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60963         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60964         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60965
60966         * sysdeps/sh/abort-instr.h: New file.
60967         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60968         process in case exit returns.
60969
60970         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60971         initialize the GOT register before use.
60972
60973         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60974         calculation of ARGC > 4.
60975
60976         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60977         meaningful names to some local labels.
60978
60979 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60980             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60981
60982         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60983         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60984         (__arch_compare_and_exchange_val_16_acq): Likewise.
60985         (__arch_compare_and_exchange_val_32_acq): Likewise.
60986         (atomic_exchange_and_add): Fix gUSA sequence.
60987         (atomic_add): Likewise.
60988         (atomic_add_negative): Likewise.
60989         (atomic_add_zero): Likewise.
60990         (atomic_bit_test_set): Likewise.
60991
60992 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60993
60994         [BZ #13579]
60995         * include/link.h (struct link_map): Add l_free_initfini.
60996         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60997         l_initfini.
60998         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60999         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
61000         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
61001         set.
61002
61003 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
61004
61005         * configure.in: Use AC_LANG_SOURCE.
61006         * configure: Regenerate.
61007
61008 2012-06-22  Roland McGrath  <roland@hack.frob.com>
61009
61010         * configure.in (libc_cv_localstatedir): New substituted variable.
61011         * configure: Regenerated.
61012         * config.make.in (localstatedir): New variable, substituted from
61013         libc_cv_localstatedir.
61014         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
61015         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
61016         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
61017         * sysdeps/gnu/configure: Regenerated.
61018
61019 2012-06-21  Jeff Law  <law@redhat.com>
61020
61021         [BZ #14277]
61022         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
61023         free.  Simplify list management for _LIBC case.
61024
61025 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
61026
61027         [BZ #14273]
61028         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
61029         Clear sign bit of 64-bit integer value before comparing against
61030         overflow value.
61031
61032         * sysdeps/mach/configure: Regenerated.
61033
61034 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
61035
61036         [BZ #14278]
61037         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
61038
61039 2012-06-21  Jeff Law  <law@redhat.com>
61040
61041         [BZ #13882]
61042         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
61043         uint16_t for elements in the "seen" array to avoid char overflows.
61044         * elf/dl-fini.c (_dl_sort_fini): Likewise.
61045         * elf/dl-open.c (dl_open_worker): Likewise.
61046
61047 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
61048
61049         * scripts/list-sources.sh: Scan PORTS for translations.
61050         * po/libc.pot: Regenerated.
61051
61052 2012-06-21  Andreas Jaeger  <aj@suse.de>
61053
61054         [BZ #12194]
61055         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
61056         warning.
61057         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
61058         * bits/byteswap-16.h (__bswap_16): Likewise.
61059         * bits/byteswap.h (__bswap_constant_16): Likewise.
61060
61061 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
61062
61063         [BZ #14117]
61064         * sysdeps/i386/fpu_control.h: Removed.
61065         * sysdeps/x86_64/fpu_control.h: Moved to ...
61066         * sysdeps/x86/fpu_control.h: Here.
61067
61068         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
61069         (_FPU_SETCW): Likewise.
61070
61071 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
61072
61073         [BZ #14117]
61074         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
61075         * sysdeps/x86/fpu/bits/mathinline.h: This.
61076         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
61077
61078         [BZ #14050]
61079         [BZ #14117]
61080         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
61081         functions if __x86_64__ is defined.
61082
61083 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
61084
61085         * string/endian.h: Add !__ASSEMBLER__ condition for including
61086         conversion interfaces.
61087
61088 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
61089
61090         [BZ #14241]
61091         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
61092         of ABS(x) in calculating zero to negative powers other than odd
61093         integers.
61094         * math/libm-test.inc (pow_test): Add more tests.
61095
61096 2012-06-15  Andreas Jaeger  <aj@suse.de>
61097
61098         * manual/contrib.texi (Contributors): Update entry of Liubov
61099         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
61100         Machado Filho.
61101
61102 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
61103
61104         * string/string.h: Add __wur to GNU version of strerror_r.
61105
61106 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
61107
61108         [BZ #14229]
61109         * string/Makefile (tests): Add tst-strtok_r.
61110         * string/tst-strtok_r.c: New file.
61111         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
61112         RAX_LP/RDX_LP on SAVE_PTR.
61113
61114 2012-06-14  Roland McGrath  <roland@hack.frob.com>
61115
61116         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
61117
61118 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
61119
61120         * libm_test.inc (csqrt_test): Allow more spurious underflow
61121         exceptions.
61122         (j0_test): Likewise.
61123         (j1_test): Likewise.
61124         (y0_test): Likewise.
61125         (y1_test): Likewise.
61126
61127 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
61128
61129         * po/Makefile (libc.pot): Use UTF-8 charset.
61130
61131 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
61132
61133         [BZ #14210]
61134         Suppress sign-conversion warning from FD_SET.
61135         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
61136         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
61137         not unsigned long int.
61138         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
61139
61140 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
61141
61142         [BZ #14050]
61143         [BZ #14117]
61144         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
61145         __extern_always_inline instead of __extern_inline.
61146         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
61147         (__signbit): Likewise.
61148         (__signbitl): Support C++ namespace.
61149         (lrintf): New inline function.
61150         (lrint): Likewise.
61151         (llrintf): Likewise.
61152         (llrint): Likewise.
61153         (fmaxf): Likewise.
61154         (fmax): Likewise.
61155         (fminf): Likewise.
61156         (fmin): Likewise.
61157         (rint): Likewise.
61158         (rintf): Likewise.
61159         (ceil): Likewise.
61160         (ceilf): Likewise.
61161         (floor): Likewise.
61162         (floorf): Likewise.
61163         (nearbyint): Likewise.
61164         (nearbyintf): Likewise.
61165
61166 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
61167
61168         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
61169         non-default versions.
61170
61171 2012-06-11  Roland McGrath  <roland@hack.frob.com>
61172
61173         [BZ #14218]
61174         * manual/argp.texi (Argp): Reword argp_parse description slightly.
61175
61176 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
61177
61178         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
61179         (FE_UPWARD, FE_DOWNWARD): Don't define.
61180         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
61181         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61182
61183         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
61184         reading it.
61185         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61186         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61187
61188 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61189
61190         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61191         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
61192         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
61193         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
61194
61195 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
61196
61197         [BZ #14117]
61198         * sysdeps/i386/fpu/bits/fenv.h: Removed.
61199         * sysdeps/i386/fpu/Implies: New file.
61200         * sysdeps/x86_64/fpu/Implies: Likewise.
61201         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61202         * sysdeps/x86/fpu/bits/fenv.h: This.
61203
61204         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61205         __SSE_MATH__.
61206
61207 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61208
61209         [BZ #14134]
61210         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61211         character 0xffff that matches the last element of the
61212         conversion table.
61213
61214 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61215
61216         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61217         fmodl commit.
61218
61219 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61220
61221         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61222         values higher than 25.6283.
61223
61224 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61225
61226         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61227         subnormal exponent extraction and add some __builtin_expect.
61228         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61229         Fix for subnormal mantissa calculation.
61230
61231 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61232
61233         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61234         cpu2 is -1 and errno is not ENOSYS.
61235
61236 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61237
61238         [BZ #14117]
61239         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61240         * sysdeps/x86/bits/string.h: This.
61241         * sysdeps/x86_64/bits/string.h: Removed.
61242
61243         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61244         if not compiling for x86-64, but compiling for >= i486.
61245
61246         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61247         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61248
61249         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61250         New macro from Linux kernel 3.4.0.
61251         (FP_XSTATE_MAGIC2): Likewise.
61252         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61253         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61254         (struct _fpx_sw_bytes): New struct.
61255         (struct _xsave_hdr): Likewise.
61256         (struct _ymmh_state): Likewise.
61257         (struct _xstate): Likewise.
61258
61259         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61260         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61261         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61262         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61263         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61264         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61265
61266         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61267         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61268         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61269         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61270         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61271         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61272
61273 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61274
61275         [BZ #13743]
61276         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61277         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61278         (sysdep_headers): Include sys/platform/ppc.h.
61279         * sysdeps/powerpc/test-gettimebase.c: Test for
61280         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61281         * manual/Makefile (appendices): Include platform.texi.
61282         * manual/contrib.texi (Contributors): Update @node pointers.
61283         * manual/maint.texi (Maintenance): Likewise.
61284         (Platform): New node.
61285         * manual/platform.texi: New file.  Document the new features.
61286
61287 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61288             Jakub Jelinek  <jakub@redhat.com>
61289
61290         [BZ #14188]
61291         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61292         where __builtin_expect is unavailable.
61293
61294 2012-06-03  David S. Miller  <davem@davemloft.net>
61295
61296         * stdlib/longlong.h: Updated from GCC.
61297
61298 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61299
61300         [BZ #14042]
61301         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61302         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61303         __mcount_internal.
61304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61305         (GLIBC_2.16): Likewise.
61306
61307 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61308
61309         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61310
61311 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61312
61313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61314         (default-abi): New variable.
61315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61316         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61317         variable.
61318         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61319         Likewise.
61320         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61321         Likewise.
61322         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61323         Likewise.
61324
61325         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61326         definition.  Document in comment.
61327
61328 2012-06-01  David S. Miller  <davem@davemloft.net>
61329
61330         * stdlib/longlong.h: Updated from GCC.
61331
61332 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61333
61334         [BZ #14117]
61335         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61336         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61337         sys/debugreg.h sys/io.h here.
61338         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61339         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61340         sys/io.h.
61341         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61342         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61343         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61344         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61345         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61346         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61347
61348         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61349         Define only if __x86_64__ is defined.
61350
61351 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61352
61353         [BZ #14048]
61354         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61355         Use int64_t for variable i.
61356         * math/libm-test.inc (fmod_test): Add more tests.
61357
61358         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61359         z computation is not scheduled after fetestexcept.
61360         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61361         Use math_force_eval instead of asm to ensure calculation scheduled
61362         before exception test.
61363         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61364         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61365
61366 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61367
61368         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61369         computation is not scheduled after fetestexcept.
61370
61371 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61372
61373         [BZ #14117]
61374         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61375         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61376
61377 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61378
61379         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61380         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61381
61382 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61383
61384         [BZ #14117]
61385         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61386         <bits/wordsize.h>.
61387         (__WCHAR_MIN): Support __WORDSIZE == 64.
61388         (__WCHAR_MAX): Likewise.
61389
61390         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61391         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61392
61393         [BZ #14183]
61394         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61395         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61396
61397         [BZ #14117]
61398         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61399         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61400
61401         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61402         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61403
61404         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61405         Defined to 1 if __x86_64__ isn't defined.
61406         (_STAT_VER_LINUX_OLD): New.
61407         (st_atime): Remove duplicate.
61408         (st_mtime): Likewise.
61409         (st_ctime): Likewise.
61410
61411 2012-05-31  David S. Miller  <davem@davemloft.net>
61412
61413         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61414         entries.
61415
61416 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61417
61418         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61419         gen-libm-test.pl.
61420
61421         [BZ #14132]
61422         * elf/dl-reloc.c: Include <_itoa.h>.
61423         (_dl_reloc_bad_type): Remove use of INTUSE.
61424         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61425         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61426         * stdio-common/psiginfo.c (psiginfo): Likewise.
61427         * stdio-common/psignal.c (psignal): Likewise.
61428         * string/strsignal.c (strsignal): Likewise.
61429         * include/signal.h (_sys_siglist): Declare hidden proto.
61430         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61431         INTVARDEF with libc_hidden_data_def.
61432         * stdio-common/itoa-udigits.c: Likewise.
61433         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61434         (_itoa_lower_digits_internal): Remove declaration.
61435         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61436         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61437         (_sys_sigabbrev_internal): Remove aliases.
61438         (_sys_siglist): Define hidden alias.
61439
61440 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61441
61442         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61443         bits/sysctl.h.
61444
61445 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61446
61447         [BZ #14117]
61448         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61449         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61450
61451         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61452         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61453         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61454         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61455         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61456         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61457
61458         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61459         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61460         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61461
61462         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61463         with __addr.
61464         (insw): Likewise.
61465         (insl): Likewise.
61466         (outsb): Likewise.
61467         (outsw): Likewise.
61468         (outsl): Likewise.
61469
61470         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61471         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61472         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61473
61474         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61475         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61476         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61477         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61478         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61479         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61480
61481         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61482         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61483
61484         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61485         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61486
61487         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61488         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61489         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61490
61491         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61492         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61493         to ...
61494         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61495
61496         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61497         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61498         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61499
61500         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61501         for x86-64.
61502         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61503
61504 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61505
61506         * math/math.h (M_El): Use two more decimal places.
61507         (M_LOG2El): Likewise.
61508         (M_LOG10El): Likewise.
61509         (M_LN2l): Likewise.
61510         (M_LN10l): Likewise.
61511         (M_PIl): Likewise.
61512         (M_PI_2l): Likewise.
61513         (M_PI_4l): Likewise.
61514         (M_1_PIl): Likewise.
61515         (M_2_PIl): Likewise.
61516         (M_2_SQRTPIl): Likewise.
61517         (M_SQRT2l): Likewise.
61518         (M_SQRT1_2l): Likewise.
61519
61520 2012-05-31  David S. Miller  <davem@davemloft.net>
61521
61522         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61523         values between float registers.
61524         * sysdeps/sparc/sparc64/memset.S: Likewise.
61525         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61526
61527 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61528
61529         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61530         -D_FORTIFY_SOURCE=1.
61531         (CPPFLAGS-tst-longjmp_chk.c): Define.
61532         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61533         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61534         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61535         CFLAGS-tst-wchar-h.c.
61536
61537 2012-05-31  Marek Polacek  <polacek@redhat.com>
61538
61539         [BZ #14132]
61540         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61541         __endmntent_internal): Remove declaration.
61542         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61543         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61544         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61545
61546 2012-05-30  David S. Miller  <davem@davemloft.net>
61547
61548         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61549         (___Q_simulate_exceptions): Use real FP ops rather than writing
61550         into the %fsr.
61551         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61552         Likewise.
61553
61554 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61555
61556         [BZ #14117]
61557         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61558         * sysdeps/x86/bits/xtitypes.h: This.
61559
61560         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61561         * sysdeps/x86/bits/wordsize.h: This.
61562
61563         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61564         * sysdeps/x86/bits/huge_vall.h: This.
61565
61566         * sysdeps/i386/bits/select.h: Removed.
61567         * sysdeps/x86_64/bits/select.h: Renamed to ...
61568         * sysdeps/x86/bits/select.h: This.
61569
61570         * sysdeps/i386/bits/setjmp.h: Removed.
61571         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61572         * sysdeps/x86/bits/setjmp.h: This.
61573
61574         * sysdeps/i386/bits/mathdef.h: Removed.
61575         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61576         * sysdeps/x86/bits/mathdef.h: This.
61577
61578 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61579
61580         [BZ #14132]
61581         * include/sys/socket.h (__connect_internal)
61582         (__libc_sa_len_internal): Remove declaration.
61583         (__connect, __libc_sa_len): Declare hidden_proto.
61584         (SA_LEN): Remove use of INTUSE.
61585         * socket/connect.c: Add libc_hidden_def.
61586         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61587         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61588         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61589         alias.
61590         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61591         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61592         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61593         of adding _internal alias.
61594
61595 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61596
61597         [BZ #14117]
61598         * sysdeps/i386/bits/link.h: Removed.
61599         * sysdeps/i386/bits/linkmap.h: Likewise.
61600         * sysdeps/x86_64/bits/link.h: Renamed to ...
61601         * sysdeps/x86/bits/link.h: This.
61602         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61603         * sysdeps/x86/bits/linkmap.h: This.
61604
61605         * sysdeps/i386/bits/endian.h: Removed.
61606         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61607         * sysdeps/x86/bits/endian.h: This.
61608
61609         * sysdeps/i386/bits/byteswap.h: Removed.
61610         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61611         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61612         * sysdeps/x86/bits/byteswap.h: This.
61613         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61614         * sysdeps/x86/bits/byteswap-16.h: This.
61615         * sysdeps/i386/Implies: Add x86.
61616         * sysdeps/x86_64/Implies: Likewise.
61617
61618 2012-05-30  David S. Miller  <davem@davemloft.net>
61619
61620         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61621         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61622         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61623         (FP_TRAPPING_EXCEPTIONS): Define.
61624         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61625         (FP_TRAPPING_EXCEPTIONS): Define.
61626         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61627         subnormals only when inexact has been signalled or underflow
61628         exceptions are enabled.
61629         (_FP_PACK_CANONICAL): Likewise.
61630
61631 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61632
61633         [BZ #14183]
61634         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61635         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61636
61637 2012-05-30  Richard Henderson  <rth@twiddle.net>
61638
61639         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61640         with #ifndef NOT_IN_libc.
61641
61642         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61643         marked to avoid plt entry.
61644
61645 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61646
61647         [BZ #14112]
61648         * Makeconfig (default-abi): New macro.
61649         (abi-includes): Likewise.
61650         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61651         $(abi-$(default-abi)-lib-soname) for soname if defined.
61652         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61653         abi-variants.
61654         * Makefile (installed-stubs): Likewise.
61655         * include/stubs-biarch.h: Removed.
61656         * scripts/lib-names.awk: Only handle one library at a time.
61657         * scripts/soversions.awk: Remove WORDSIZE support.
61658         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61659         entries.
61660         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61661         Removed.
61662         (syscall-list-default-condition): Likewise.
61663         (syscall-list-default-condition): Likewise.
61664         (syscall-list-includes): Likewise.
61665         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61666         syscall-list-* with abi-*.  Handle undefined abi-variants.
61667         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61668         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61669         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61670         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61671         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61672         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61673         Removed.
61674         (syscall-list-32-options): Likewise.
61675         (syscall-list-32-condition): Likewise.
61676         (syscall-list-64-options): Likewise.
61677         (syscall-list-64-condition): Likewise.
61678         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61679         macro.
61680         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61681         Renamed to ...
61682         (abi-*): This.
61683         (abi-64-ld-soname): New macro.
61684         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61685         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61686         Renamed to ...
61687         (abi-*): This.
61688         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61689         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61690
61691 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61692
61693         * sysdeps/unix/sysv/linux/kernel-features.h
61694         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61695         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61696         include <kernel-features.h>.
61697         [!__NR_ftruncate64]: Remove conditional code.
61698         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61699         [__NR_ftruncate64]: Make code unconditional.
61700         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61701         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61702         include <kernel-features.h>.
61703         [!__NR_ftruncate64]: Remove conditional code.
61704         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61705         [__NR_ftruncate64]: Make code unconditional.
61706         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61708         include <kernel-features.h>.
61709         [!__NR_ftruncate64]: Remove conditional code.
61710         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61711         [__NR_ftruncate64]: Make code unconditional.
61712         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61714         include <kernel-features.h>.
61715         [!__NR_ftruncate64]: Remove conditional code.
61716         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61717         [__NR_ftruncate64]: Make code unconditional.
61718         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61719
61720         * configure.in (libc_cv_fpie): Weaken to a compile test using
61721         LIBC_TRY_CC_OPTION.
61722         * configure: Regenerated.
61723
61724 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61725
61726         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61727         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61728         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61730         Refreshed.
61731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61732         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61733         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61734         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61735         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61736         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61737         Refreshed.
61738
61739 2012-05-27  David S. Miller  <davem@davemloft.net>
61740
61741         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61742         (___Q_zero): New.
61743         (__Q_simulate_exceptions): Return void.  Change to simulate
61744         exceptions by writing into the %fsr.
61745         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61746         (__Qp_handle_exceptions): Likewise.
61747         (numbers): Delete.
61748         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61749         __Qp_handle_exceptions.
61750         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61751         __Qp_handle_exceptions.
61752         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61753         as unused and give dummy FP_RND_NEAREST initializer.
61754         (FP_INHIBIT_RESULTS): Define.
61755         (___Q_simulate_exceptions): Update declaration.
61756         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61757         formatting.
61758         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61759         as unused and give dummy FP_RND_NEAREST initializer.
61760         (__Qp_handle_exceptions): Update declaration.
61761         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61762         formatting.
61763
61764 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61765
61766         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61767         the temporary FPU control word.
61768         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61769         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61770         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61771         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61772         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61773         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61774         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61775         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61776         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61777         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61778         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61779
61780 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61781
61782         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61783         fields.
61784
61785 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61786
61787         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61788         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61789         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61790         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61791         Likewise.
61792         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61793         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61794         Likewise.
61795
61796 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61797
61798         * po/h.po: Update from translation team.
61799
61800 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61801
61802         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61803
61804         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61805         handling of denormals.
61806         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61807         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61808         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61809         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61810         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61811         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61812         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61813         Likewise.
61814
61815 2012-05-26  Marek Polacek  <polacek@redhat.com>
61816
61817         [BZ #14152]
61818         * math/libm-test.inc (fma_test): Don't always expect underflow
61819         exception.
61820
61821 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61822
61823         [BZ #12416]
61824         * elf/tst-execstack.c: Include stackinfo.h.
61825         (do_test): Adjust test case to ensure that pthread_getattr_np
61826         behaviour remains the same after marking stack executable.
61827
61828 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61829
61830         * sysdeps/unix/sysv/linux/kernel-features.h
61831         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61832         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61833         kernel-features.h.
61834         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61835         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61836         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61837         kernel-features.h.
61838         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61839         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61840
61841 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61842
61843         * configure.in: Define the default includes to being none.
61844         * configure: Regenerated.
61845
61846 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61847
61848         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61849         * sysdeps/x86_64/setjmp.S: Likewise.
61850         * sysdeps/i386/bsd-setjmp.S: Likewise.
61851         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61852         * sysdeps/i386/setjmp.S: Likewise.
61853         * sysdeps/i386/__longjmp.S: Likewise.
61854         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61855         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61856
61857         * include/stap-probe.h: New file.
61858         * configure.in: Handle --enable-systemtap.
61859         * configure: Regenerated.
61860         * config.h.in (USE_STAP_PROBE): New #undef.
61861         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61862         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61863         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61864
61865 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61866
61867         [BZ #13717]
61868         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61869         to 2.4.0 where earlier.
61870         * sysdeps/unix/sysv/linux/configure: Regenerated.
61871         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61872         <kernel-features.h>.
61873         [__ASSUME_32BITUIDS]: Make code unconditional.
61874         [!__ASSUME_32BITUIDS]: Remove conditional code.
61875         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61876         <kernel-features.h>.
61877         [__ASSUME_32BITUIDS]: Make code unconditional.
61878         [!__ASSUME_32BITUIDS]: Remove conditional code.
61879         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61880         [__ASSUME_32BITUIDS]: Make code unconditional.
61881         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61882         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61883         <kernel-features.h>.
61884         [__ASSUME_32BITUIDS]: Make code unconditional.
61885         [!__ASSUME_32BITUIDS]: Remove conditional code.
61886         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61887         <kernel-features.h>.
61888         [__ASSUME_32BITUIDS]: Make code unconditional.
61889         [!__ASSUME_32BITUIDS]: Remove conditional code.
61890         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61891         <kernel-features.h>.
61892         [__ASSUME_32BITUIDS]: Make code unconditional.
61893         [!__ASSUME_32BITUIDS]: Remove conditional code.
61894         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61895         <kernel-features.h>.
61896         [__ASSUME_32BITUIDS]: Make code unconditional.
61897         [!__ASSUME_32BITUIDS]: Remove conditional code.
61898         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61899         <kernel-features.h>.
61900         [__ASSUME_32BITUIDS]: Make code unconditional.
61901         [!__ASSUME_32BITUIDS]: Remove conditional code.
61902         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61903         <kernel-features.h>.
61904         [__ASSUME_32BITUIDS]: Make code unconditional.
61905         [!__ASSUME_32BITUIDS]: Remove conditional code.
61906         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61907         <kernel-features.h>.
61908         [__ASSUME_32BITUIDS]: Make code unconditional.
61909         [!__ASSUME_32BITUIDS]: Remove conditional code.
61910         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61911         <kernel-features.h>.
61912         [__ASSUME_32BITUIDS]: Make code unconditional.
61913         [!__ASSUME_32BITUIDS]: Remove conditional code.
61914         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61915         <kernel-features.h>.
61916         [__ASSUME_32BITUIDS]: Make code unconditional.
61917         [!__ASSUME_32BITUIDS]: Remove conditional code.
61918         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61919         <kernel-features.h>.
61920         [__ASSUME_32BITUIDS]: Make code unconditional.
61921         [!__ASSUME_32BITUIDS]: Remove conditional code.
61922         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61923         <kernel-features.h>.
61924         [__NR_setresgid] (__setresgid): Do not declare.
61925         [__ASSUME_32BITUIDS]: Make code unconditional.
61926         [!__ASSUME_32BITUIDS]: Remove conditional code.
61927         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61928         <kernel-features.h>.
61929         [__NR_setresuid] (__setresuid): Do not declare.
61930         [__ASSUME_32BITUIDS]: Make code unconditional.
61931         [!__ASSUME_32BITUIDS]: Remove conditional code.
61932         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61933         <kernel-features.h>.
61934         [__ASSUME_32BITUIDS]: Make code unconditional.
61935         [!__ASSUME_32BITUIDS]: Remove conditional code.
61936         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61937         <kernel-features.h>.
61938         [__ASSUME_32BITUIDS]: Make code unconditional.
61939         [!__ASSUME_32BITUIDS]: Remove conditional code.
61940         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61941         <kernel-features.h>.
61942         [__ASSUME_32BITUIDS]: Make code unconditional.
61943         [!__ASSUME_32BITUIDS]: Remove conditional code.
61944         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61945         <kernel-features.h>.
61946         [__ASSUME_32BITUIDS]: Make code unconditional.
61947         [!__ASSUME_32BITUIDS]: Remove conditional code.
61948         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61949         <kernel-features.h>.
61950         [__ASSUME_32BITUIDS]: Make code unconditional.
61951         [!__ASSUME_32BITUIDS]: Remove conditional code.
61952         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61953         <kernel-features.h>.
61954         [__ASSUME_32BITUIDS]: Make code unconditional.
61955         [!__ASSUME_32BITUIDS]: Remove conditional code.
61956         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61957         <kernel-features.h>.
61958         [__ASSUME_32BITUIDS]: Make code unconditional.
61959         [!__ASSUME_32BITUIDS]: Remove conditional code.
61960         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61961         <kernel-features.h>.
61962         [__ASSUME_32BITUIDS]: Make code unconditional.
61963         [!__ASSUME_32BITUIDS]: Remove conditional code.
61964         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61965         <kernel-features.h>.
61966         [__ASSUME_32BITUIDS]: Make code unconditional.
61967         [!__ASSUME_32BITUIDS]: Remove conditional code.
61968         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61969         <kernel-features.h>.
61970         [__ASSUME_32BITUIDS]: Make code unconditional.
61971         [!__ASSUME_32BITUIDS]: Remove conditional code.
61972         * sysdeps/unix/sysv/linux/kernel-features.h
61973         (__ASSUME_SETRESUID_SYSCALL): Remove.
61974         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61975         (__ASSUME_32BITUIDS): Likewise.
61976         (__ASSUME_LDT_WORKS): Likewise.
61977         (__ASSUME_O_DIRECTORY): Likewise.
61978         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61979         architecture but not kernel version.
61980         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61981         (__ASSUME_MMAP2_SYSCALL): Likewise.
61982         (__ASSUME_STAT64_SYSCALL): Likewise.
61983         (__ASSUME_IPC64): Likewise.
61984         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61985         <kernel-features.h>.
61986         [__ASSUME_32BITUIDS]: Make code unconditional.
61987         [!__ASSUME_32BITUIDS]: Remove conditional code.
61988         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61989         <kernel-features.h>.
61990         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61991         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61992         132096]: Remove conditional code.
61993         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61994         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61995         <kernel-features.h>.
61996         [__ASSUME_32BITUIDS]: Make code unconditional.
61997         [!__ASSUME_32BITUIDS]: Remove conditional code.
61998         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61999         <kernel-features.h>.
62000         [__ASSUME_32BITUIDS]: Make code unconditional.
62001         [!__ASSUME_32BITUIDS]: Remove conditional code.
62002         * sysdeps/unix/sysv/linux/setegid.c: Do not include
62003         <kernel-features.h>.
62004         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
62005         unconditional.
62006         (__setresgid): Do not declare.
62007         [__ASSUME_32BITUIDS]: Make code unconditional.
62008         [!__ASSUME_32BITUIDS]: Remove conditional code.
62009         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
62010         <kernel-features.h>.
62011         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
62012         unconditional.
62013         (__setresuid): Do not declare.
62014         [__ASSUME_32BITUIDS]: Make code unconditional.
62015         [!__ASSUME_32BITUIDS]: Remove conditional code.
62016         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
62017         <kernel-features.h>.
62018         [__ASSUME_32BITUIDS]: Make code unconditional.
62019         [!__ASSUME_32BITUIDS]: Remove conditional code.
62020         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
62021         <kernel-features.h>.
62022         [__ASSUME_32BITUIDS]: Make code unconditional.
62023         [!__ASSUME_32BITUIDS]: Remove conditional code.
62024
62025 2012-05-25  Richard Henderson  <rth@twiddle.net>
62026
62027         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
62028         dl_hwcap to ifunc resolver.
62029         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
62030         elf_ifunc_invoke.
62031         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
62032         dl_hwcap to ifunc resolver.
62033         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
62034
62035 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62036
62037         [BZ #14153]
62038         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
62039         for |x| <= 2**-26, not 2**-57.
62040         * math/libm-test.inc (acos_test): Do not allow spurious underflow
62041         exception.
62042
62043 2012-05-24  Jeff Law  <law@redhat.com>
62044
62045         * stdio-common/Makefile (tests): Add bug25.
62046         * stdio-common/bug25.c: New test.
62047
62048 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62049
62050         [BZ #13576]
62051         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
62052         multiple of MALLOC_ALIGNMENT in size.
62053         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
62054
62055 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62056
62057         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
62058         Require >= 256.
62059         (FILENAME_MAX): Use macro-int-constant.
62060         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
62061         (_IOFBF): Use macro-int-constant.
62062         (_IOLBF): Likewise.
62063         (_IONBF): Likewise.
62064         (SEEK_CUR): Likewise.
62065         (SEEK_END): Likewise.
62066         (SEEK_SET): Likewise.
62067         (TMP_MAX): Likewise.
62068         (EOF): Use macro-int-constant.  Require < 0.
62069         (NULL): Use macro-constant.  Require == 0.
62070         (stdin): Require type to be FILE *.
62071         (stdout): Likewise.
62072         (stderr): Likewise.
62073         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
62074         macro-int-constant.
62075         (EXIT_SUCCESS): Likewise.
62076         (NULL): Use macro-constant.  Require == 0.
62077         (RAND_MAX): Use macro-int-constant.
62078         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
62079         [C99-based standards] (strtof): Require function.
62080         [C99-based standards] (strtold): Likewise.
62081         [C99-based standards] (strtoll): Likewise.
62082         [C99-based standards] (strtoull): Likewise.
62083         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
62084         [ISO || ISO99 || ISO11] (limits.h): Likewise.
62085         [ISO || ISO99 || ISO11] (math.h): Likewise.
62086         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
62087         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
62088         [ISO || ISO99 || ISO11] (*_t): Do not allow.
62089
62090 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
62091
62092         [BZ #14132]
62093         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
62094         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
62095         * intl/dgettext.c (DCGETTEXT): Likewise.
62096         * intl/gettext.c (DCGETTEXT): Likewise.
62097         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
62098         * posix/regex_internal.h (gettext): Likewise.
62099         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
62100         Remove declaration.
62101         * include/argz.h (__argz_count_internal)
62102         (__argz_stringify_internal): Remove declaration.
62103         (__argz_count, __argz_stringify): Declare hidden proto.
62104         * intl/dcgettext.c: Remove use of INTDEF.
62105         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
62106         * string/argz-stringify.c: Likewise.
62107         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
62108         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
62109         Declare hidden proto.
62110         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
62111         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
62112         Declare hidden proto.
62113         * include/stdio.h (__asprintf_internal): Don't declare.
62114         (__asprintf): Don't define as macro.  Declare hidden proto.
62115         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
62116         (__fsetlocking): Declare hidden proto.
62117         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
62118         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
62119         hidden proto.
62120         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
62121         (_IO_setlinebuf): Remove use of INTUSE.
62122         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
62123         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
62124         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
62125         Remove declaration.
62126         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
62127         (_IO_do_flush): Remove use of INTUSE.
62128         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
62129         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
62130         (_IO_adjust_column, _IO_least_wmarker)
62131         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
62132         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
62133         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
62134         (_IO_default_doallocate, _IO_wdefault_doallocate)
62135         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
62136         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
62137         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
62138         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
62139         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
62140         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
62141         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
62142         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
62143         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
62144         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
62145         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
62146         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
62147         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
62148         proto.
62149         (_IO_flush_all_internal, _IO_adjust_column_internal)
62150         (_IO_default_uflow_internal, _IO_default_finish_internal)
62151         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
62152         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
62153         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
62154         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
62155         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
62156         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
62157         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
62158         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
62159         (_IO_file_close_internal, _IO_file_close_it_internal)
62160         (_IO_file_underflow_internal, _IO_file_overflow_internal)
62161         (_IO_file_init_internal, _IO_file_attach_internal)
62162         (_IO_file_fopen_internal, _IO_file_read_internal)
62163         (_IO_file_sync_internal, _IO_file_seek_internal)
62164         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
62165         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
62166         (_IO_str_underflow_internal, _IO_str_overflow_internal)
62167         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
62168         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
62169         (_IO_list_all_internal, _IO_link_in_internal)
62170         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
62171         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
62172         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
62173         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
62174         (_IO_do_write_internal, _IO_padn_internal)
62175         (_IO_getline_info_internal, _IO_getline_internal)
62176         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
62177         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
62178         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
62179         (_IO_vfscanf_internal, _IO_vfprintf_internal)
62180         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
62181         (_IO_init_internal, _IO_un_link_internal): Don't declare.
62182         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
62183         with libc_hidden_ver, remove use of INTUSE.
62184         * libio/genops.c: Likewise.
62185         * libio/freopen.c: Likewise.
62186         * libio/freopen64.c: Likewise.
62187         * libio/iofclose.c: Likewise.
62188         * libio/iofdopen.c: Likewise.
62189         * libio/iofflush.c: Likewise.
62190         * libio/iofflush_u.c: Likewise.
62191         * libio/iofgets.c: Likewise.
62192         * libio/iofgets_u.c: Likewise.
62193         * libio/iofopen.c: Likewise.
62194         * libio/iofopncook.c: Likewise.
62195         * libio/iofread.c: Likewise.
62196         * libio/iofread_u.c: Likewise.
62197         * libio/ioftell.c: Likewise.
62198         * libio/iofwrite.c: Likewise.
62199         * libio/iogetline.c: Likewise.
62200         * libio/iogets.c: Likewise.
62201         * libio/iogetwline.c: Likewise.
62202         * libio/iopadn.c: Likewise.
62203         * libio/iopopen.c: Likewise.
62204         * libio/ioseekoff.c: Likewise.
62205         * libio/ioseekpos.c: Likewise.
62206         * libio/iosetbuffer.c: Likewise.
62207         * libio/iosetvbuf.c: Likewise.
62208         * libio/ioungetc.c: Likewise.
62209         * libio/ioungetwc.c: Likewise.
62210         * libio/iovdprintf.c: Likewise.
62211         * libio/iovsprintf.c: Likewise.
62212         * libio/iovsscanf.c: Likewise.
62213         * libio/memstream.c: Likewise.
62214         * libio/obprintf.c: Likewise.
62215         * libio/oldfileops.c: Likewise.
62216         * libio/oldiofclose.c: Likewise.
62217         * libio/oldiofdopen.c: Likewise.
62218         * libio/oldiofopen.c: Likewise.
62219         * libio/oldiopopen.c: Likewise.
62220         * libio/oldstdfiles.c: Likewise.
62221         * libio/putc.c: Likewise.
62222         * libio/setbuf.c: Likewise.
62223         * libio/setlinebuf.c: Likewise.
62224         * libio/stdfiles.c: Likewise.
62225         * libio/strops.c: Likewise.
62226         * libio/vasprintf.c: Likewise.
62227         * libio/vscanf.c: Likewise.
62228         * libio/vsnprintf.c: Likewise.
62229         * libio/vswprintf.c: Likewise.
62230         * libio/wfiledoalloc.c: Likewise.
62231         * libio/wfileops.c: Likewise.
62232         * libio/wgenops.c: Likewise.
62233         * libio/wmemstream.c: Likewise.
62234         * libio/wstrops.c: Likewise.
62235         * libio/__fpurge.c: Likewise.
62236         * libio/__fsetlocking.c: Likewise.
62237         * assert/assert.c: Likewise.
62238         * debug/fgets_chk.c: Likewise.
62239         * debug/fgets_u_chk.c: Likewise.
62240         * debug/fread_chk.c: Likewise.
62241         * debug/fread_u_chk.c: Likewise.
62242         * debug/gets_chk.c: Likewise.
62243         * debug/obprintf_chk.c: Likewise.
62244         * debug/vasprintf_chk.c: Likewise.
62245         * debug/vdprintf_chk.c: Likewise.
62246         * debug/vsnprintf_chk.c: Likewise.
62247         * debug/vsprintf_chk.c: Likewise.
62248         * malloc/mtrace.c: Likewise.
62249         * misc/error.c: Likewise.
62250         * misc/syslog.c: Likewise.
62251         * stdio-common/asprintf.c: Likewise.
62252         * stdio-common/fxprintf.c: Likewise.
62253         * stdio-common/getw.c: Likewise.
62254         * stdio-common/isoc99_fscanf.c: Likewise.
62255         * stdio-common/isoc99_scanf.c: Likewise.
62256         * stdio-common/isoc99_vfscanf.c: Likewise.
62257         * stdio-common/isoc99_vscanf.c: Likewise.
62258         * stdio-common/isoc99_vsscanf.c: Likewise.
62259         * stdio-common/printf-prs.c: Likewise.
62260         * stdio-common/printf_fp.c: Likewise.
62261         * stdio-common/printf_fphex.c: Likewise.
62262         * stdio-common/printf_size.c: Likewise.
62263         * stdio-common/putw.c: Likewise.
62264         * stdio-common/scanf.c: Likewise.
62265         * stdio-common/sprintf.c: Likewise.
62266         * stdio-common/tmpfile.c: Likewise.
62267         * stdio-common/vfprintf.c: Likewise.
62268         * stdio-common/vfscanf.c: Likewise.
62269         * stdlib/strfmon_l.c: Likewise.
62270         * sunrpc/openchild.c: Likewise.
62271         * sunrpc/xdr_stdio.c: Likewise.
62272         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62273         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62274
62275 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62276
62277         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62278
62279         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62280         in the third column, to generate for the shared library an IFUNC
62281         that uses _dl_vdso_vsym.
62282         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62283         * Makeconfig (object-suffixes-noshared): New variable.
62284
62285         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62286         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62287         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62288         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62289
62290         [BZ #14132]
62291         * include/sys/time.h (__gettimeofday): Remove macro.
62292         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62293         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62294         Remove INTDEF.
62295         (__gettimeofday): Add libc_hidden_def.
62296         (gettimeofday): Add libc_hidden_weak.
62297         * sysdeps/mach/gettimeofday.c: Likewise.
62298         * sysdeps/posix/gettimeofday.c: Likewise.
62299         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62300         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62301         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62302         (__gettimeofday_internal): Remove strong_alias.
62303         (__gettimeofday): Add libc_hidden_def.
62304         (gettimeofday): Add libc_hidden_weak.
62305         * sysdeps/unix/syscalls.list (gettimeofday):
62306         Remove __gettimeofday_internal alias.
62307
62308 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62309             H.J. Lu  <hongjiu.lu@intel.com>
62310
62311         [BZ #12495]
62312         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62313         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62314         (largebin_index_32_big): New.
62315         (largebin_index): Use it for 16-byte alignment.
62316         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62317         correction with front_misalign.
62318
62319 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62320
62321         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62322         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62323         Likewise.
62324         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62325         Likewise.
62326         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62327         Likewise.
62328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62329         Likewise.
62330         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62331         Likewise.
62332         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62333         Likewise.
62334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62335         Likewise.
62336         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62337         Likewise.
62338         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62339         Likewise.
62340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62341         Likewise.
62342         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62343         Likewise.
62344         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62345         Likewise.
62346
62347         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62348         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62349
62350 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62351
62352         [BZ #10846]
62353         [BZ #14036]
62354         * math/libm-test.inc (exp_test): Add test from bug 14036.
62355         (pow_test): Add test from bug 10846.
62356
62357         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62358         and other flags.
62359         (special_function): Do not include flags in test name.
62360         (parse_args): Likewise.
62361         * sysdeps/i386/fpu/libm-test-ulps: Update.
62362         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62363         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62364         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62366
62367         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62368         exceptions.
62369         * math/libm-test.inc ("Philosophy"): Update comment about
62370         exception testing.
62371         (UNDERFLOW_EXCEPTION): New macro.
62372         (UNDERFLOW_EXCEPTION_OK): Likewise.
62373         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62374         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62375         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62376         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62377         (INVALID_EXCEPTION_OK): Update value.
62378         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62379         (OVERFLOW_EXCEPTION_OK): Likewise.
62380         (IGNORE_ZERO_INF_SIGN): Likewise.
62381         (test_exceptions): Handle underflow exceptions.
62382         (acos_test): Update for underflow exception expectations.
62383         (cexp_test): Likewise.
62384         (clog_test): Likewise.
62385         (clog10_test): Likewise.
62386         (csqrt_test): Likewise.
62387         (ctan_test): Likewise.
62388         (ctanh_test): Likewise.
62389         (exp_test): Likewise.
62390         (exp10_test): Likewise.
62391         (exp2_test): Likewise.
62392         (expm1_test): Likewise.
62393         (fma_test): Likewise.
62394         (j0_test): Likewise.
62395         (jn_test): Likewise.
62396         (nexttoward_test): Likewise.
62397         (pow_test): Likewise.
62398         (scalbn_test): Likewise.
62399         (scalbln_test): Likewise.
62400         (tan_test): Likewise.
62401         (y1_test): Likewise.
62402         * sysdeps/i386/fpu/libm-test-ulps: Update.
62403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62404
62405 2012-05-23  David S. Miller  <davem@davemloft.net>
62406
62407         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62408         (__libc_sigaction): Remove unused local variables.
62409
62410 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62411
62412         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62413
62414 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         mktime: avoid signed integer overflow
62417         * time/mktime.c (__mktime_internal): Do not mishandle the case
62418         where diff == INT_MIN.
62419
62420         mktime: simplify computation of average
62421         * time/mktime.c (ranged_convert): Use new time_t_avg function
62422         instead of rolling our own (probably-slower) code.
62423
62424         mktime: do not assume signed right shift propagates sign bit
62425         * time/mktime.c (isdst_differ): New static function.
62426         (__mktime_internal): No need to normalize tm_isdst now.
62427         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62428         tm_isdst values.
62429
62430         mktime: merge another wrapv change from gnulib
62431         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62432         from some compilers.
62433
62434         mktime: remove incorrect attempt at unusual arithmetics
62435         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62436         The code didn't really work on such machines anyway.
62437         (TYPE_MINIMUM): Assume two's complement.
62438         (twos_complement_arithmetic): Verify that long_int and time_t
62439         are two's complement (or unsigned, in the latter case).
62440
62441         mktime: check signed shifts on long_int and time_t, too
62442         * time/mktime.c (SHR): Check that shifts work as desired
62443         on the types long_int and time_t too, as SHR is used on
62444         such types.
62445
62446         mktime: do not assume 'long' is wide enough
62447         * time/mktime.c (verify): Move decl up.
62448         (long_int): New type.
62449         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62450         to remove assumption in the code that 'long' is wide enough to
62451         store year values.  This assumption is not true on x32 and on
62452         some non-glibc platforms.
62453
62454         mktime: merge wrapv change from gnulib
62455         * time/mktime.c (WRAPV): New macro.
62456         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62457         (guess_time_tm, __mktime_internal): Do not assume that signed
62458         integer overflow wraps around; modern compilers generate code
62459         where this assumption is no longer valid.
62460
62461 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62462
62463         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62464         Replace "jmp L(pseudo_end)" with "ret".
62465         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62466         Likewise.
62467
62468 2012-05-23  Andreas Jaeger  <aj@suse.de>
62469
62470         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62471         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62472
62473 2012-05-23  Andreas Jaeger  <aj@suse.de>
62474             Maximilian Attems  <max@stro.at>
62475
62476         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62477         New macros.
62478
62479 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62480
62481         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62482         code so that pseudo_end is just ret and the stack pointer is
62483         correct also for static library in error case.
62484
62485 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62486
62487         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62488         move to syscalls.list.
62489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62493
62494         * manual/install.texi (Running make install): Do not mention Linux
62495         kernel version for which pt_chown is not needed.
62496         (Linux): Do not mention problems with nscd with 2.0 kernels.
62497         * INSTALL: Regenerated.
62498
62499 2012-05-23  Andreas Jaeger  <aj@suse.de>
62500
62501         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62502         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62503         macro.
62504         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62505         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62506         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62507         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62508         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62509         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62510         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62511         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62512         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62513         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62514         * sysdeps/unix/sysv/linux/bits/in.h
62515         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62516
62517 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62518
62519         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62520         (PREPARE_VERSION): Just use assert instead, it will be elided
62521         under [NDEBUG] anyway.
62522
62523 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62524
62525         * sysdeps/unix/sysv/linux/Makefile: Include
62526         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62527         (sysdep_routines): Remove sysctl.
62528         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62529         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62530         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62531         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62532         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62533
62534 2012-05-22  Andreas Jaeger  <aj@suse.de>
62535
62536         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62537         that pseudo_end is just ret and the stack pointer is correct also
62538         for static library in error case.
62539
62540 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62541
62542         [BZ #14122]
62543         * nss/nsswitch.c (defconfig_entries): New variable.
62544         (__nss_database_lookup): Don't leak defconfig entries.
62545         (nss_parse_service_list): Don't leak on error paths.
62546         (free_database_entries): New function.
62547         (free_defconfig): New function.
62548         (free_mem): Move common code to free_database_entries.
62549
62550 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62551
62552         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62553         Add arch_prctl.
62554         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62555
62556         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62557         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62558         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62559         New macro.
62560         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62561         (INTERNAL_SYSCALL_TYPES): Likewise.
62562         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62563         (LOAD_REGS_TYPES_[1-6]): Likewise.
62564         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62565         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62566
62567 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62568
62569         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62570         copysignl for GLIBC_2_0.
62571         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62572         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62573         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62574         logbl for GLIBC_2_0.
62575         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62576         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62577
62578 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62579
62580         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62581         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62582
62583         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62584         Use "neg %eax".
62585
62586         * time/mktime.c: Update copyright years.
62587
62588 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         mktime: merge comment-quoting-style change from gnulib
62591         * time/mktime.c: Quote 'like this' in comments.
62592         The GNU coding standards suggest that we no longer quote `like this',
62593         as "`" and "'" are typically rendered asymmetrically nowadays.
62594         The typical gnulib style is to quote 'like this' when quoting
62595         code, and "like this" when quoting English.
62596
62597         * time/mktime.c (compile-command): Add "-I.".
62598
62599         mktime: merge mktime-internal.h change from gnulib
62600         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62601
62602         mktime: merge time_r change from gnulib
62603         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62604
62605         mktime: merge DEBUG change from gnulib
62606         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62607         case system <time.h> has a #define.
62608
62609         mktime: merge <sys/types.h> change from gnulib
62610         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62611         since <time.t> is now guaranteed to define time_t.
62612
62613         mktime: merge HAVE_CONFIG_H change from gnulib
62614         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62615
62616 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62617
62618         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62619         Use "neg %eax".
62620
62621         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62622         __rlim_t cast.
62623         (struct rusage): Use anonymous union to pad each field to
62624         __syscall_slong_t.
62625
62626 2012-05-21  David S. Miller  <davem@davemloft.net>
62627
62628         * Makefules (o-iterator): Remove .s cases.
62629         (compile-command.s): Delete.
62630         (COMPILE.s): Delete.
62631         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62632
62633 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62634
62635         * configure.in (libc_cv_predef_stack_protector): Only consider
62636         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62637         * configure: Regenerated.
62638
62639 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62640
62641         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62642         New macro.  Use R*LP on int and pointer.
62643         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62644         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62645         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62646         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62647
62648         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62649         [__WORDSIZE_TIME64_COMPAT32] instead of
62650         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62651         (struct utmp): Likewise.
62652         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62653         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62654         Renamed to ...
62655         (__WORDSIZE_TIME64_COMPAT32): This.
62656         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62657         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62658         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62659         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62660         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62661         (__WORDSIZE_TIME64_COMPAT32): New macro.
62662
62663 2012-05-21  Andreas Jaeger  <aj@suse.de>
62664
62665         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62666         only if [SHARED]. Add prototype for __wcschr_ia32.
62667
62668 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62669
62670         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62671         of %rbp unmolested in the jmp_buf while mangling the low bits.
62672         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62673         unmolested high bits of %rbp while demangling the low bits.
62674         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62675
62676 2012-05-21  Andreas Jaeger  <aj@suse.de>
62677
62678         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62679         * sunrpc/svc_simple.c: Use it for registerrpc.
62680         * sunrpc/xcrypt.c: Use it for passwd2des.
62681
62682         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62683
62684 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62685
62686         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62687         Don't define if [__SYSCALL_WORDSIZE != 32].
62688         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62689         New macro.
62690
62691 2012-05-21  Bruno Haible  <bruno@clisp.org>
62692             Andreas Jaeger  <aj@suse.de>
62693
62694         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62695         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62696         inptr and inend for must_buffer_ch.
62697         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62698         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62699         * stdio-common/Makefile (tests): Remove bug15.
62700         (bug15-ENV): Remove macro.
62701         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62702         anymore.
62703
62704 2012-05-19  Andreas Jaeger  <aj@suse.de>
62705             Roland McGrath  <roland@hack.frob.com>
62706
62707         * manual/contrib.texi: Completely rewritten. It contains now an
62708         alphabetical list of contributors and their contributions.
62709
62710 2012-05-21  Richard Henderson  <rth@twiddle.net>
62711
62712         * misc/getauxval.c (__getauxval): Use unsigned long int.
62713         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62714         (getauxval): Use unsigned long int.
62715
62716 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62717
62718         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62719
62720 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62721
62722         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62723         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62724         __alignof__ (long double).
62725
62726 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62727
62728         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62729
62730 2012-05-20  Richard Henderson  <rth@twiddle.net>
62731
62732         * misc/getauxval.c: New file.
62733         * misc/sys/auxv.h: New file.
62734         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62735         (routines): Add getauxval.
62736         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62737         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62738         * elf/dl-sysdep.c (_dl_auxv): Remove.
62739         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62740         * elf/dl-support.c (_dl_auxv): New variable.
62741         (_dl_aux_init): Initialize it.
62742         * manual/startup.texi (Auxiliary Vector): New node.
62743         * sysdeps/generic/bits/hwcap.h: New file.
62744         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62745         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62746         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62747         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62748         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62749         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62751         Update.
62752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62753         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62755         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62756         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62758         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62759         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62760
62761 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62762
62763         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62764
62765 2012-05-19  David S. Miller  <davem@davemloft.net>
62766
62767         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62768
62769 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62770
62771         [BZ #14123]
62772         * math/s_ccosh.c: Include <float.h>
62773         (__ccosh): Avoid internal overflow calculating sinh and cosh
62774         values before multiplying by sin and cos values.
62775         * math/s_ccoshf.c: Likewise.
62776         * math/s_ccoshl.c: Likewise.
62777         * math/s_csin.c: Likewise.
62778         * math/s_csinf.c: Likewise.
62779         * math/s_csinl.c: Likewise.
62780         * math/s_csinh.c: Likewise.
62781         * math/s_csinhf.c: Likewise.
62782         * math/s_csinhl.c: Likewise.
62783         * math/libm-test.inc (ccos_test): Add more tests.
62784         (ccosh_test): Likewise.
62785         (csin_test): Likewise.
62786         (csinh_test): Likewise.
62787         * sysdeps/i386/fpu/libm-test-ulps: Update.
62788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62789
62790 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62791
62792         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62793         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62794
62795         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62796
62797 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62798
62799         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62800         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62801         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62802         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62803         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62804         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62805         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62806         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62807         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62808         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62809         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62810         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62811         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62812         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62813         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62814         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62815         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62816         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62817         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62818         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62819         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62820         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62821         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62822         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62823         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62824         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62825         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62826         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62827         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62828         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62829         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62830
62831 2012-05-18  Andreas Jaeger  <aj@suse.de>
62832
62833         * csu/.gitignore: Delete.
62834
62835 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62836
62837         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62838         (timex): Use __syscall_slong_t.
62839
62840 2012-05-18  Andreas Jaeger  <aj@suse.de>
62841             Carlos O'Donell  <carlos_odonell@mentor.com>
62842
62843         * manual/install.texi (Configuring and compiling): Update
62844         description about files modified in the source directory.
62845         * INSTALL: Regenerated.
62846
62847 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62848
62849         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62850         value.  Use "or" to set return value to -1.
62851         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62852         negate return value.
62853
62854 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62855
62856         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62857         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62858         failure if the compiler has Graphite support disabled.
62859         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62860         Likewise.
62861         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62862         (CFLAGS-memmove.c): Likewise.
62863         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62864         Likewise.
62865
62866 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62867
62868         * sysdeps/x86_64/x32/_itoa.h: New file.
62869
62870         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62871         getdents system call only if kernel and user dirents have the
62872         same d_ino and d_off.
62873
62874         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62875         LLONG_MAX != LONG_MAX.
62876         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62877         (_fitoa_word): Likewise.
62878
62879         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62880         years.
62881         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62882         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62883         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62884
62885         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62886         include <bits/wordsize.h>.  Check __x86_64__ instead of
62887         __WORDSIZE.
62888         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62889         if __x86_64__ is defined.  Use anonymous union on fpstate.
62890
62891         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62892         anonymous union.
62893
62894 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62895
62896         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62897         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62898         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62899         Refer to _rtld_local_ro instead of _rtld_global_ro.
62900         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62901         Likewise.
62902         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62903         Likewise.
62904         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62905         Likewise.
62906         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62907         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62908         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62909
62910         [BZ #10882]
62911         * sysdeps/powerpc/powerpc32/dl-machine.c
62912         (__elf_machine_runtime_setup) [PROF]: Don't reference
62913         _dl_prof_resolve.
62914
62915 2012-05-18  Andreas Jaeger  <aj@suse.de>
62916
62917         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62918         function only available for GCCs before 3.4 since GCC 3.4
62919         introduced a builtin.
62920         (lrint): Likewise.
62921         (llrintf): Likewise.
62922         (llrint): Likewise.
62923         (fmaxf): Likewise.
62924         (fmax): Likewise.
62925         (fminf): Likewise.
62926         (fmin): Likewise.
62927         (rint): Likewise.
62928         (rintf): Likewise.
62929         (nearbyint): Likewise.
62930         (nearbyintf): Likewise.
62931         (ceil): Likewise.
62932         (ceilf): Likewise.
62933         (floor): Likewise.
62934         (floorf): Likewise.
62935
62936 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62937
62938         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62939         on both fields and cast pointer to __syscall_ulong_t.
62940
62941         * bits/types.h (__fsword_t): New type.
62942         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62943         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62944         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62945         (__FSWORD_T_TYPE): Likewise.
62946         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62947         (__FSWORD_T_TYPE): Likewise.
62948         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62949         (__FSWORD_T_TYPE): Likewise.
62950         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62951         (__FSWORD_T_TYPE): Likewise.
62952         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62953         __SWORD_TYPE with __fsword_t.
62954         (statfs64): Likewise.
62955
62956 2012-05-17  David S. Miller  <davem@davemloft.net>
62957
62958         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62959
62960 2012-05-17  Andreas Jaeger  <aj@suse.de>
62961
62962         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62963         warning.
62964
62965 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62966
62967         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62968
62969 2012-05-17  Andreas Jaeger  <aj@suse.de>
62970
62971         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62972         when it is used.
62973
62974 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62975
62976         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62977
62978 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62979
62980         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62981         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62982
62983 2012-05-17  Andreas Jaeger  <aj@suse.de>
62984             Carlos O'Donell  <carlos_odonell@mentor.com>
62985
62986         [BZ #14059]
62987         * sysdeps/x86_64/multiarch/init-arch.h
62988         (bit_YMM_Usable): Rename to...
62989         (bit_AVX_Usable): ... this.
62990         (bit_FMA4_Usable): New macro.
62991         (bit_XMM_state): New macro.
62992         (bit_YMM_state): New macro.
62993         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62994         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62995         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62996         (CPUID_OSXSAVE): New macro.
62997         (CPUID_AVX): New macro.
62998         (CPUID_FMA4): New macro.
62999         (index_YMM_Usable): Rename to...
63000         (index_AVX_Usable): ... this.
63001         (HAS_AVX): Use HAS_ARCH_FEATURE.
63002         (HAS_FMA4): Likewise.
63003         (HAS_YMM_USABLE): Remove.
63004         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63005         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
63006         are present.
63007         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
63008         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
63009         * sysdeps/x86_64/multiarch/Makefile: Likewise.
63010         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
63011         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
63012
63013 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
63014
63015         * math/libm-test.c: Support platforms without multiple rounding modes.
63016         * math/bug-nextafter.c: Support platforms without FP exceptions.
63017         * math/bug-nexttoward.c: Likewise.
63018         * math/test-fenv.c: Likewise.
63019         * math/test-misc.c: Likewise.
63020         * stdlib/bug-getcontext.c: Likewise.
63021
63022 2012-05-17  Andreas Jaeger  <aj@suse.de>
63023
63024         * manual/examples/search.c (critter_cmp): Change signature to
63025         avoid warnings.
63026         * manual/string.texi (Collation Functions): Likewise.
63027
63028 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63029
63030         * bits/types.h: Fold copyright years.
63031         * bits/typesizes.h: Likewise.
63032         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
63033         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
63034         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
63035         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
63036         * time/time.h: Likewise.
63037
63038 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
63039
63040         [BZ #208]
63041         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
63042         in instead of returning them.  Return void.
63043         (__libc_mallinfo): Accumulate over all arenas.
63044         (__malloc_stats): Adjust for change in int_mallinfo interface.
63045
63046 2012-05-16  Roland McGrath  <roland@hack.frob.com>
63047
63048         [BZ #10375]
63049         * configure.in (NM): Add AC_CHECK_TOOL for it.
63050         (libc_extra_cflags): New substituted variable.
63051         Check for -fstack-protector being used implicitly.
63052         * configure: Regenerated.
63053         * config.make.in (config-extra-cflags): New variable,
63054         gets @libc_extra_cflags@.
63055         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
63056
63057         [BZ #10375]
63058         * configure.in: Check for _FORTIFY_SOURCE being predefined.
63059         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
63060         * configure: Regenerated.
63061         * config.make.in (CPPUNDEFS): New substituted variable.
63062         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
63063         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
63064         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
63065
63066 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63067
63068         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
63069         (mq_attr): Use __syscall_slong_t.
63070
63071 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63072
63073         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
63074         Check __x86_64__ instead of __WORDSIZE.
63075         (_STAT_VER_LINUX): Likewise.
63076         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
63077         __syscall_ulong_t and __syscall_slong_t.
63078         (stat64): Likewise.
63079
63080 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63081
63082         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
63083
63084 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63085
63086         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
63087
63088 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63089
63090         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
63091         __syscall_ulong_t.
63092
63093         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
63094         include <bits/wordsize.h>.  Check __x86_64__ instead of
63095         __WORDSIZE.
63096         (greg_t): Use "__extension__ long long int" if __x86_64__ is
63097         defined.
63098         (mcontext_t): Replace "unsigned long" with "unsigned long long".
63099
63100         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
63101         include <bits/wordsize.h>.  Check __x86_64__ instead of
63102         __WORDSIZE.
63103         (user_regs_struct): Use "__extension__ unsigned long long"
63104         instead of "unsigned long" if __x86_64__ is defined.
63105         (user): Likewise.  Pad after pointer field if __ILP32__ is
63106         defined.
63107
63108 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
63109
63110         * configure.in (makeinfo): Require version 4.5 or later.  Allow
63111         versions 5 to 9.
63112         * configure: Regenerated.
63113         * manual/install.texi (texinfo): Increase version requirement to
63114         4.5 or later.
63115         * INSTALL: Regenerated.
63116
63117         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
63118
63119 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
63120
63121         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
63122
63123         * sysdeps/x86_64/x32/ffs.c: New file.
63124
63125         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
63126         __syscall_ulong_t.
63127         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
63128         defined.  Use __syscall_ulong_t.
63129         (shminfo): Use __syscall_ulong_t.
63130         (shm_info): Likewise.
63131
63132         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
63133         __syscall_ulong_t.
63134
63135         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
63136         <bits/wordsize.h>.
63137         (msgqnum_t): Use __syscall_ulong_t.
63138         (msglen_t): Likewise.
63139         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
63140         __syscall_ulong_t.
63141
63142         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
63143         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63144
63145         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
63146
63147         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
63148         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
63149
63150         * sysvipc/sys/msg.h (msgbuf): Replace long int with
63151         __syscall_slong_t.
63152
63153         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
63154         include <bits/wordsize.h>.  Check __x86_64__ instead of
63155         __WORDSIZE.
63156
63157         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
63158         "unsigned long long int" if __x86_64__ is defined.
63159         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
63160
63161         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
63162         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63163         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
63164
63165         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
63166         <stdint.h>.
63167         (GET_PC): Cast to uintptr_t first.
63168         (GET_FRAME): Likewise.
63169         (GET_STACK): Likewise.
63170
63171         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
63172         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
63173         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
63174         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
63175         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
63176         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
63177         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
63178         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
63179         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
63180         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
63181         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
63182         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
63183         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
63184         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
63185         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
63186         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
63187         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
63188         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
63189         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
63190         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
63191         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
63192         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
63193         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
63194         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
63195         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
63196         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
63197         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
63198         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
63199         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
63200
63201 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63202
63203         * Makerules (+depfiles): Also collect depfiles from .oS in
63204         $(extra-objs).
63205         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63206         .oS, $(libnldbl-routines)).
63207
63208         * Makerules (native-compile-mkdep-flags): Define.
63209         * sunrpc/Makefile (extra-objs): Add $(addprefix
63210         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63211         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63212         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63213         calling $(make-target-directory).
63214
63215 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63216
63217         * bits/types.h (__snseconds_t): Removed.
63218         * time/time.h (struct timespec): Replace __snseconds_t with
63219         __syscall_slong_t.
63220         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63221         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63222         Likewise.
63223         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63224         (__SNSECONDS_T_TYPE): Likewise.
63225         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63226         (__SNSECONDS_T_TYPE): Likewise.
63227         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63228         (__SNSECONDS_T_TYPE): Likewise.
63229
63230 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63231
63232         * sysdeps/mach/hurd/bits/typesizes.h
63233         (__SYSCALL_SLONG_TYPE): New macro.
63234         (__SYSCALL_ULONG_TYPE): Likewise.
63235
63236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63237
63238         * bits/types.h (__syscall_slong_t): New type.
63239         (__syscall_ulong_t): Likewise.
63240
63241         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63242         (__SYSCALL_ULONG_TYPE): Likewise.
63243         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63244         (__SYSCALL_SLONG_TYPE): Likewise.
63245         (__SYSCALL_ULONG_TYPE): Likewise.
63246         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63247         (__SYSCALL_SLONG_TYPE): Likewise.
63248         (__SYSCALL_ULONG_TYPE): Likewise.
63249         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63250         (__SYSCALL_SLONG_TYPE): Likewise.
63251         (__SYSCALL_ULONG_TYPE): Likewise.
63252
63253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63254
63255         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63256         Add sigaltstack-offsets.sym.
63257         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63258         <sigaltstack-offsets.h>.
63259         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63260         longjmp_msg pointer.
63261         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63262         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63263         signal stack.
63264         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63265
63266 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63267
63268         * elf/stackguard-macros.h: Remove file.
63269         * sysdeps/generic/stackguard-macros.h: New file.
63270         * sysdeps/i386/stackguard-macros.h: Likewise.
63271         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63272         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63273         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63274         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63275         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63276         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63277         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63278         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63279         <elf/stackguard-macros.h>.
63280
63281         [BZ #14109]
63282         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63283         __aligned__ in attribute.
63284         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63285         (gregset_t): Likewise.
63286
63287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63288
63289         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63290         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63291         * sysdeps/x86_64/x32/Implies-after: New file.
63292
63293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63294
63295         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63296         and access return value for _dl_profile_fixup.  Use R10_LP to
63297         load frame size.
63298
63299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63300
63301         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63302
63303 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63304
63305         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63306         * sysdeps/x86_64/x32/sysdep.h: New file.
63307
63308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63309
63310         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63311         * sysdeps/x86_64/setjmp.S: Likewise.
63312
63313 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63314
63315         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63316         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63317         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63318         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63319         remove unused global constant.
63320
63321 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63322
63323         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63324         include of <not-cancel.h>.
63325
63326 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63327
63328         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63329
63330 2012-05-15  Jeff Law  <law@redhat.com>
63331             Andreas Jaeger  <aj@suse.de>
63332
63333         [BZ #13594]
63334         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63335         out from...
63336         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63337         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63338         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63339         code changing __hst_map_handle.map.
63340
63341 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63342
63343         * configure.in (sysnames): Look for Implies-before and Implies-after
63344         files.
63345         * configure: Regenerated.
63346
63347 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63348
63349         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63350         8-byte data alignment with LP_SIZE alignment.
63351
63352 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63353
63354         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63355         into R10_LP.
63356
63357 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63358
63359         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63360
63361 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63362
63363         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63364         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63365         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63366         Likewise.
63367         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63368
63369 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63370
63371         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63372         (stackinfo_sub_sp): Likewise.
63373
63374 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63375
63376         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63377         RAX_LP.
63378
63379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63380
63381         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63382         into R*_LP.
63383
63384 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63385
63386         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63387         sizes into R*_LP.
63388
63389 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63390
63391         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63392
63393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63394
63395         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63396         into R11_LP and load __x86_64_shared_cache_size_half into
63397         R8_LP.
63398
63399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63400
63401         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63402         R8_LP.
63403
63404 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63405
63406         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63407         logb for POWER7.
63408         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63409         logbf for POWER7.
63410         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63411         logbl for POWER7.
63412         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63413         powerpc32/power7/fpu/s_logb.c via #include.
63414         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63415         powerpc32/power7/fpu/s_logbf.c via #include.
63416         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63417         powerpc32/power7/fpu/s_logbl.c via #include.
63418
63419 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63420
63421         * README.libm: Remove file.
63422
63423 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63424
63425         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63426         count for x32.  Use R*_LP and omit operand-size suffix.
63427
63428 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63429
63430         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63431         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63432         * sysdeps/x86_64/x32/shlib-versions: New file.
63433
63434 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63435
63436         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63437         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63438         Use _dl_fatal_printf instead.
63439
63440 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63441
63442         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63443         set if not set by the user.  Do not allow for being unset.
63444         * sysdeps/unix/sysv/linux/configure: Regenerated.
63445
63446 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63447
63448         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63449         the `q' suffix from lea and replace .quad with ASM_ADDR.
63450
63451 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63452
63453         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63454         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63455         instead of $17.
63456         (PTR_DEMANGLE): Likewise.
63457
63458 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63459
63460         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63461         (LP_OP): Likewise.
63462         (ASM_ADDR): Likewise.
63463         (RAX_LP): Likewise.
63464         (RBP_LP): Likewise.
63465         (RBX_LP): Likewise.
63466         (RCX_LP): Likewise.
63467         (RDI_LP): Likewise.
63468         (RSI_LP): Likewise.
63469         (RSP_LP): Likewise.
63470         (R8_LP): Likewise.
63471         (R9_LP): Likewise.
63472         (R10_LP): Likewise.
63473         (R10_LP): Likewise.
63474         (R11_LP): Likewise.
63475         (R12_LP): Likewise.
63476         (R13_LP): Likewise.
63477         (R14_LP): Likewise.
63478         (R15_LP): Likewise.
63479
63480 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63481
63482         * sysdeps/x86_64/x32/dl-machine.h: New file.
63483
63484 2012-05-14  Andreas Jaeger  <aj@suse.de>
63485
63486         * manual/Makefile (subdir): Remove export of subdir.
63487         (all): Remove target.
63488         (.PHONY): Remove all from list.
63489         (mkinstalldirs): Remove.
63490         (.PHONY): Remove installdirs from list.
63491         ($(inst_infodir)/libc.info): Use make-target-directory.
63492         (installdirs): Remove.
63493         (subdir_%): Remove.
63494         (glibc-targets): Remove.
63495         (lib): Remove.
63496         (stubs): Remove.
63497         ($(objpfx)stubs ../po/manual.pot): Remove.
63498         ($(objpfx)stamp%): Remove.
63499         (make-target-directory): Remove.
63500         (subdir_install): Remove.
63501         (routines): Remove.
63502         (aux): Remove.
63503         (sources): Remove.
63504         (objects): Remove.
63505         (headers): Remove.
63506
63507         [BZ #13750]
63508         * manual/.gitignore: Remove, it's not needed anymore.
63509         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63510         all files in it.
63511         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63512         directory.
63513         (texis): Renamed to $(objpfx)texis.
63514         (texis-path): New, contains path to generated files.
63515         (chapters.%): Use texis-path for complete path, add extra argument
63516         libc-texinfo.sh.
63517         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63518         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63519         (summary,texi, stamp-summary): Use complete path of
63520         files. Generate files in build dir.
63521         (dir-add.texi): Build in build dir.
63522         (libm-err.texi,stamp-libm-err): Likewise.
63523         (version.texi, stamp-version): Likewise.
63524         (.%c.texi): Likewise.
63525         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63526         (mostlyclean): Remove target.
63527         (realclean): Remove target.
63528         (generated): Add new variable with contents from mostlyclean and
63529         realclean, remove entries duplicated in common-mostlyclean, add
63530         stamp-libm-err and stamp-version.
63531         (generated-dirs): Add libc directory.
63532         ($(inst_infodir)/libc.info): Install files from build dir.
63533
63534         * manual/install.texi (Configuring and compiling): Adjust since
63535         the info files are not part of the tar ball anymore.
63536
63537 2012-05-14  Andreas Jaeger  <aj@suse.de>
63538
63539         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63540         variable.
63541
63542 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63543
63544         [BZ #13717]
63545         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63546         to 2.2.0 where earlier.
63547         * sysdeps/unix/sysv/linux/configure: Regenerated.
63548         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63549         Remove conditional code.
63550         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63551         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63552         Remove conditional code.
63553         [!__NR_lchown]: Likewise.
63554         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63555         [__NR_lchown]: Likewise.
63556         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63557         comment referencing __ASSUME_LCHOWN_SYSCALL.
63558         * sysdeps/unix/sysv/linux/i386/sigaction.c
63559         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63560         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63561         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63562         Remove conditional code.
63563         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63564         (__protocol_available): Remove #if 0 code.
63565         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63566         conditional code.
63567         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63568         * sysdeps/unix/sysv/linux/kernel-features.h
63569         (__ASSUME_GETCWD_SYSCALL): Don't define.
63570         (__ASSUME_REALTIME_SIGNALS): Likewise.
63571         (__ASSUME_PREAD_SYSCALL): Likewise.
63572         (__ASSUME_PWRITE_SYSCALL): Likewise.
63573         (__ASSUME_POLL_SYSCALL): Likewise.
63574         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63575         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63576         non-SPARC.
63577         (__ASSUME_SIOCGIFNAME): Don't define.
63578         (__ASSUME_MSG_NOSIGNAL): Likewise.
63579         (__ASSUME_SENDFILE): Define unconditionally.
63580         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63581         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63582         conditional code.
63583         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63584         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63585         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63586         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63587         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63588         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63589         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63591         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63592         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63594         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63595         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63597         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63598         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63600         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63601         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63603         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63604         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63606         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63607         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63609         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63610         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63612         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63613         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63614         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63615         Remove conditional code.
63616         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63617         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63618         Remove conditional code.
63619         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63620         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63621         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63622         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63623         Remove conditional code.
63624         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63625         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63626         Remove conditional code.
63627         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63628         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63629         Remove conditional code.
63630         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63631         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63632         Remove conditional code.
63633         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63634         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63635         Remove conditional code.
63636         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63637         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63638         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63639         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63640         * sysdeps/unix/sysv/linux/sigaction.c
63641         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63642         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63643         * sysdeps/unix/sysv/linux/sigpending.c
63644         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63645         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63646         * sysdeps/unix/sysv/linux/sigprocmask.c
63647         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63648         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63649         * sysdeps/unix/sysv/linux/sigsuspend.c
63650         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63651         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63652         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63653         (__libc_missing_rt_sigs): Remove.
63654         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63655         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63656         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63657         Remove conditional code.
63658         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63659         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63660         return 1.
63661         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63662         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63663         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63664         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63665
63666 2012-05-14  Andreas Jaeger  <aj@suse.de>
63667
63668         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63669         it's not used in glibc.
63670         (__coshm1): Likewise.
63671         (__acosh1p): Likewise.
63672         (__sgn): Likewise.
63673
63674         * manual/string.texi (Copying and Concatenation): Add missing
63675         variable in concat example.
63676         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63677
63678 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63679
63680         [BZ #14103]
63681         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63682         __builtin_clzl with __builtin_clzll.
63683
63684 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63685
63686         [BZ #14104]
63687         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63688         libc_freeres_ptr.
63689
63690 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63691
63692         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63693         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63694         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63695         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63696
63697 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63698
63699         * NEWS: Update ia64 info.
63700
63701 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63702
63703         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63704         used as bcopy.
63705
63706 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63707
63708         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63709         * sysdeps/unix/syscalls.list (dup3): Likewise.
63710         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63711         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63712
63713 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63714
63715         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63716         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63717
63718 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63719
63720         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63721         thread pointer.
63722         (TLS_IE): Use mov/add instead of movq/addq to load thread
63723         pointer.
63724         (TLS_GD_PREFIX): New.
63725         (TLS_GD): Use it.
63726
63727 2012-05-11  David S. Miller  <davem@davemloft.net>
63728
63729         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63730         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63731         (_FPU_SETCW): Likewise.
63732
63733 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63734
63735         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63736         is 32-byte aligned.
63737
63738 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63739
63740         [BZ #11837]
63741         * iconvdata/gb18030.c: Update tables.
63742         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63743         characters specially.
63744         (BODY for TO_LOOP): Add encoding of missing ranges.
63745
63746 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63747
63748         [BZ #13673]
63749         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63750         * sysdeps/mach/hurd/dup3.c: Likewise.
63751         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63752         * sysdeps/powerpc/memmove.c:: Likewise.
63753
63754 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63755
63756         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63757         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63758
63759 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63760
63761         * elf/elf.h (R_X86_64_RELATIVE64): New.
63762         (R_X86_64_NUM): Updated.
63763         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63764         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63765         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63766         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63767         tst-quad1pie tst-quad2pie
63768         (modules-names): Add tst-quadmod1 tst-quadmod2.
63769         ($(objpfx)tst-quad1): New dependency.
63770         ($(objpfx)tst-quad2): Likewise.
63771         ($(objpfx)tst-quad1pie): Likewise.
63772         ($(objpfx)tst-quad2pie): Likewise.
63773         * sysdeps/x86_64/tst-quad1.c: New file.
63774         * sysdeps/x86_64/tst-quad1pie.c: New file.
63775         * sysdeps/x86_64/tst-quad2.c: Likewise.
63776         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63777         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63778         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63779         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63780         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63781
63782 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63783
63784         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63785         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63786         * streams/stropts.h (t_scalar_t): Define type.
63787
63788         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63789         (_PATH_PRESERVE): Set to "/var/lib".
63790         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63791
63792         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63793         instead of int.
63794
63795         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63796         if __dir_mkfile succeeded.
63797
63798         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63799         checking for _hurd_dtablesize.  Unlock it right after having
63800         finished _hurd_dtable allocation.
63801
63802 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63803
63804         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63805         * sysdeps/mach/hurd/configure: Regenerated.
63806         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63807         special-casing to...
63808         * sysdeps/gnu/configure.in: ... this new file.
63809         * sysdeps/unix/sysv/linux/configure: Regenerated.
63810         * sysdeps/gnu/configure: New generated file.
63811
63812         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63813         for Linux: use nsec instead of usec, as well as:
63814         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63815         members of type struct timespec.
63816         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63817         New macros.
63818         (struct stat64): Likewise.
63819         (_STATBUF_ST_NSEC): New macro.
63820         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63821
63822         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63823         __strtoul_internal rather than strtoul.
63824
63825 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63826
63827         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63828         and reject them.
63829
63830 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63831
63832         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63833         which preserves existing values.
63834         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63835
63836 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63837
63838         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63839         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63840         greater than FD_SETSIZE.
63841
63842 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63843
63844         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63845         allocated, call __vm_protect to finish enabling the existing space, and
63846         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63847         allocate the remainder.
63848
63849 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63850
63851         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63852         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63853
63854 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63855
63856         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63857         sysdeps/mach/hurd/readlink.c.
63858
63859         * posix/tst-sysconf.c (posix_options): Only use
63860         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63861         _POSIX_SYNCHRONIZED_IO when they are defined
63862         * sysdeps/mach/hurd/bits/posix_opt.h:
63863         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63864         (_XOPEN_REALTIME): Undefine macro.
63865         (_XOPEN_REALTIME_THREADS): Undefine macro.
63866         (_XOPEN_SHM): Undefine macro.
63867         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63868         macro to -1.
63869         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63870         macro to -1.
63871         (_POSIX_ASYNC_IO): Undefine macro.
63872         (_POSIX_PRIORITIZED_IO): Undefine macro.
63873         (_POSIX_SPIN_LOCKS): Define macro to -1.
63874
63875         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63876         SA_NODEFER, SA_RESETHAND.
63877         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63878         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63879         F_DUPFD_CLOEXEC.
63880
63881 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63882
63883         * elf/Makefile (pldd-modules): Define unconditionally.
63884
63885 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63886
63887         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63888
63889 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63890
63891         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63892         Return ENOENT when name is empty.
63893         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63894
63895 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63896
63897         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63898
63899         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63900
63901 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63902
63903         Fix mlock in all cases except non-readable pages.
63904         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63905         instead of VM_PROT_ALL as parameter to __vm_wire function.
63906
63907         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63908         (__mkdir): When path is `/', just fail with EEXIST.
63909         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63910
63911 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63912
63913         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63914         <sys/uio.h> (for writev).
63915         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63916         and <sys/param.h> (for MIN).
63917
63918 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63919
63920         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63921         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63922         if interrupted.
63923
63924 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63925
63926         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63927         Depend on against $(link-rpcuserlibs).
63928
63929 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63930
63931         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63932         (__libc_stack_end): Do not use attribute_relro.
63933         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63934         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63935         to libthread-provided value.
63936         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63937         attribute_relro.
63938
63939 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63940
63941         [BZ #3748]
63942         * bits/libc-lock.h (__libc_once_get): New macro.
63943         * sysdeps/mach/bits/libc-lock.h: Likewise.
63944         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63945         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63946         instead of using implementation details.
63947
63948         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63949         * libio/freopen.c: Likewise.
63950         * libio/freopen64.c: Likewise.
63951         * misc/syslog.c: Likewise.
63952         * nscd/connections.c: Likewise.
63953         * nscd/netgroupcache.c: Likewise.
63954         * sysdeps/posix/getcwd.c: Likewise.
63955
63956 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63957
63958         * math/w_ilogbf.c: Add #include <limits.h>.
63959
63960 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63961
63962         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63963         path instead of returning without unlocking.
63964
63965         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63966         immediate-write ioctls.
63967         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63968
63969 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63970
63971         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63972         __builtin_frame_address instead of making assumptions about the
63973         location of the return address relative to DATA.  Force early load of
63974         the return address.
63975         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63976         __builtin_frame_address.
63977
63978         dup3 for GNU Hurd.
63979         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63980         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63981         implement dup3 and do some further code clean-ups.
63982         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63983         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63984
63985 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63986
63987         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63988
63989         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63990         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63991         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63992         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63993         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63994         d->port.lock.
63995
63996         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63997         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63998         when handler == SIG_ERR, not when handler != SIG_ERR.
63999
64000 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
64001
64002         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
64003         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
64004         definitions.
64005
64006         accept4 for GNU Hurd.
64007         * include/sys/socket.h (__libc_accept4): New prototype.
64008         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
64009         to implement __libc_accept4.
64010         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
64011         __libc_accept4.
64012         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
64013
64014         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
64015         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
64016         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
64017         signal-defines.sym.
64018
64019 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
64020
64021         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
64022
64023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
64024
64025         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
64026         assertion on O_CLOEXEC flag.
64027         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
64028         * hurd/intern-fd.c: Likewise.
64029         * hurd/port2fd.c: Likewise.
64030
64031 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
64032
64033         [BZ #3906]
64034         * bits/in.h (IPV6_PKTINFO): Define new macro.
64035         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
64036
64037 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64038
64039         [BZ #13954]
64040         [BZ #13955]
64041         [BZ #13956]
64042         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
64043         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
64044         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
64045         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
64046         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
64047         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
64048         * math/libm-test.inc (logb_test) : Additional logb tests.
64049
64050 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
64051             Andreas Jaeger  <aj@suse.de>
64052
64053         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
64054         * configure: Regenerated.
64055         * config.h.in (LINK_OBSOLETE_RPC): New macro.
64056         * config.make.in (link-obsolete-rpc): New substituted variable.
64057         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
64058         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
64059         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
64060         (shared-only-routines): Don't set it under [link-obsolete-rpc],
64061         so that libc.a contains the symbols.
64062         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
64063         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
64064         * sunrpc/auth_none.c: Likewise.
64065         * sunrpc/auth_unix.c: Likewise.
64066         * sunrpc/authdes_prot.c: Likewise.
64067         * sunrpc/authuxprot.c: Likewise.
64068         * sunrpc/clnt_gen.c: Likewise.
64069         * sunrpc/clnt_perr.c: Likewise.
64070         * sunrpc/clnt_raw.c: Likewise.
64071         * sunrpc/clnt_simp.c: Likewise.
64072         * sunrpc/clnt_tcp.c: Likewise.
64073         * sunrpc/clnt_udp.c: Likewise.
64074         * sunrpc/clnt_unix.c: Likewise.
64075         * sunrpc/des_crypt.c: Likewise.
64076         * sunrpc/des_soft.c: Likewise.
64077         * sunrpc/get_myaddr.c: Likewise.
64078         * sunrpc/key_call.c: Likewise.
64079         * sunrpc/key_prot.c: Likewise.
64080         * sunrpc/netname.c: Likewise.
64081         * sunrpc/pm_getmaps.c: Likewise.
64082         * sunrpc/pm_getport.c: Likewise.
64083         * sunrpc/pmap_clnt.c: Likewise.
64084         * sunrpc/pmap_prot.c: Likewise.
64085         * sunrpc/pmap_prot2.c: Likewise.
64086         * sunrpc/pmap_rmt.c: Likewise.
64087         * sunrpc/publickey.c: Likewise.
64088         * sunrpc/rpc_cmsg.c: Likewise.
64089         * sunrpc/rpc_common.c: Likewise.
64090         * sunrpc/rpc_dtable.c: Likewise.
64091         * sunrpc/rpc_prot.c: Likewise.
64092         * sunrpc/rpc_thread.c: Likewise.
64093         * sunrpc/rtime.c: Likewise.
64094         * sunrpc/svc.c: Likewise.
64095         * sunrpc/svc_auth.c: Likewise.
64096         * sunrpc/svc_raw.c: Likewise.
64097         * sunrpc/svc_run.c: Likewise.
64098         * sunrpc/svc_tcp.c: Likewise.
64099         * sunrpc/svc_udp.c: Likewise.
64100         * sunrpc/svc_unix.c: Likewise.
64101         * sunrpc/svcauth_des.c: Likewise.
64102         * sunrpc/xcrypt.c: Likewise.
64103         * sunrpc/xdr.c: Likewise.
64104         * sunrpc/xdr_array.c: Likewise.
64105         * sunrpc/xdr_float.c: Likewise.
64106         * sunrpc/xdr_intXX_t.c: Likewise.
64107         * sunrpc/xdr_mem.c: Likewise.
64108         * sunrpc/xdr_rec.c: Likewise.
64109         * sunrpc/xdr_ref.c: Likewise.
64110         * sunrpc/xdr_sizeof.c: Likewise.
64111         * sunrpc/xdr_stdio.c: Likewise.
64112
64113 2012-05-10  Roland McGrath  <roland@hack.frob.com>
64114
64115         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
64116         change.  Update copyright years.
64117
64118 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
64119
64120         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
64121
64122 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
64123             Joseph Myers  <joseph@codesourcery.com>
64124             Paul Pluzhnikov  <ppluzhnikov@google.com>
64125
64126         [BZ #14012]
64127         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
64128         requiring rpcgen.
64129         [cross-compiling] (extra-libs): Likewise.
64130         [cross-compiling] (extra-libs-others): Likewise.
64131         [cross-compiling] (librpcsvc-routines): Likewise.
64132         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
64133         [cross-compiling] (omit-deps): Likewise.
64134         (sunrpc-CPPFLAGS): New variable.
64135         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
64136         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
64137         (cross-rpcgen-objs): New variable.
64138         (extra-objs): Append $(cross-rpcgen-objs).
64139         ($(cross-rpcgen-objs)): New rule.
64140         ($(objpfx)cross-rpcgen): Likewise.
64141         (rpcgen-cmd): Define to use $(built-program-file).  Expand
64142         comment.
64143         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
64144         ($(objpfx)x%.stmp): Likewise.
64145         * sunrpc/proto.h [IS_IN_build] (_): Define.
64146         [IS_IN_build] (_libc_intl_domainname): Likewise.
64147
64148 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
64149
64150         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
64151         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
64152         and R_X86_64_TPOFF64.
64153
64154 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
64155
64156         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
64157         sysdeps/unix/sysv/syscalls.list.
64158         (stime): Likewise.
64159         (utime): Likewise.
64160         * sysdeps/unix/sysv/syscalls.list: Remove file.
64161
64162 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64163
64164         [BZ #3440]
64165         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
64166         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
64167         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
64168         (__LC_IDENTIFICATION): Make these macros useful in #if
64169         expressions, as required by C99.
64170
64171 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
64172
64173         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
64174         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
64175         after this.
64176
64177 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
64178
64179         * stdlib/longlong.h: Updated from GCC.
64180
64181 2012-05-09  Andreas Jaeger  <aj@suse.de>
64182
64183         * nscd/nscd.c (run_modes): Make named enum, reorder so that
64184         default is first entry.
64185         (run_mode): Set type.
64186         (main): Remove informal message about syslog.
64187         (options): Fix typo.
64188
64189         [BZ #14053]
64190         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
64191         to asm.
64192         (lrint): Likewise.
64193         (llrintf): Likewise.
64194         (llrint): Likewise.
64195         (rint): Likewise.
64196         (rintf): Likewise.
64197         (nearbyint): Likewise.
64198         (nearbyintf): Likewise.
64199
64200 2012-05-09  Andreas Jaeger  <aj@suse.de>
64201             Pedro Alves  <palves@redhat.com>
64202
64203         * nscd/nscd.c (run_mode): Use enum.
64204         (main): Cleanup coding style issue.
64205
64206 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64207             Andreas Jaeger  <aj@suse.de>
64208
64209         * nscd/nscd.c (go_background): Replaced with...
64210         (run_mode): ... this.
64211         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64212         (options): Add -F --foreground.
64213         (main): Implement it.
64214         (parse_opt): Parse it.
64215
64216 2012-05-09  Andreas Jaeger  <aj@suse.de>
64217
64218         [BZ #14083]
64219         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64220         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64221         -Wconversion warning.
64222         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64223         Likewise.
64224
64225 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64226
64227         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64228         == 0.
64229         (LC_ALL): Use macro-int-constant.
64230         (LC_COLLATE): Likewise.
64231         (LC_CTYPE): Likewise.
64232         (LC_MESSAGES): Likewise.
64233         (LC_MONETARY): Likewise.
64234         (LC_NUMERIC): Likewise.
64235         (LC_TIME): Likewise.
64236         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64237         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64238         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64239         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64240         Specify type.
64241         [C99-based standards] (float_t): Expect type.
64242         [C99-based standards] (double_t): Expect type.
64243         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64244         type.
64245         [C99-based standards] (HUGE_VALL): Likewise.
64246         [C99-based standards] (INFINITY): Likewise.
64247         [C99-based standards] (NAN): Likewise.
64248         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64249         [C99-based standards] (FP_NAN): Likewise.
64250         [C99-based standards] (FP_NORMAL): Likewise.
64251         [C99-based standards] (FP_SUBNORMAL): Likewise.
64252         [C99-based standards] (FP_ZERO): Likewise.
64253         [C99-based standards] (FP_FAST_FMA): Use
64254         optional-macro-int-constant.  Specify type.  Require == 1.
64255         [C99-based standards] (FP_FAST_FMAF): Likewise.
64256         [C99-based standards] (FP_FAST_FMAL): Likewise.
64257         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64258         [C99-based standards] (FP_ILOGBNAN): Likewise.
64259         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64260         Specify type.
64261         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64262         [C99-based standards] (math_errhandling): Specify type.
64263         [ISO99 || ISO11] (signgam): Do not allow.
64264         [non-C99-based standards] (copysignf): Do not allow.
64265         [non-C99-based standards] (exp2f): Likewise.
64266         [non-C99-based standards] (log2f): Likewise.
64267         [non-C99-based standards] (modff): Allow.
64268         [non-C99-based standards] (erff): Do not allow.
64269         [non-C99-based standards] (erfcf): Likewise.
64270         [non-C99-based standards] (gammaf): Likewise.
64271         [non-C99-based standards] (hypotf): Likewise.
64272         [non-C99-based standards] (j0f): Likewise.
64273         [non-C99-based standards] (j1f): Likewise.
64274         [non-C99-based standards] (jnf): Likewise.
64275         [non-C99-based standards] (lgammaf): Likewise.
64276         [non-C99-based standards] (tgammaf): Likewise.
64277         [non-C99-based standards] (y0f): Likewise.
64278         [non-C99-based standards] (y1f): Likewise.
64279         [non-C99-based standards] (ynf): Likewise.
64280         [non-C99-based standards] (isnanf): Likewise.
64281         [non-C99-based standards] (acoshf): Likewise.
64282         [non-C99-based standards] (asinhf): Likewise.
64283         [non-C99-based standards] (atanhf): Likewise.
64284         [non-C99-based standards] (cbrtf): Likewise.
64285         [non-C99-based standards] (expm1f): Likewise.
64286         [non-C99-based standards] (ilogbf): Likewise.
64287         [non-C99-based standards] (log1pf): Likewise.
64288         [non-C99-based standards] (logbf): Likewise.
64289         [non-C99-based standards] (nextafterf): Likewise.
64290         [non-C99-based standards] (remainderf): Likewise.
64291         [non-C99-based standards] (rintf): Likewise.
64292         [non-C99-based standards] (scalbf): Likewise.
64293         [non-C99-based standards] (copysignl): Likewise.
64294         [non-C99-based standards] (exp2l): Likewise.
64295         [non-C99-based standards] (log2l): Likewise.
64296         [non-C99-based standards] (modfl): Allow.
64297         [non-C99-based standards] (erfl): Do not allow.
64298         [non-C99-based standards] (erfcl): Likewise.
64299         [non-C99-based standards] (gammal): Likewise.
64300         [non-C99-based standards] (hypotl): Likewise.
64301         [non-C99-based standards] (j0l): Likewise.
64302         [non-C99-based standards] (j1l): Likewise.
64303         [non-C99-based standards] (jnl): Likewise.
64304         [non-C99-based standards] (lgammal): Likewise.
64305         [non-C99-based standards] (tgammal): Likewise.
64306         [non-C99-based standards] (y0l): Likewise.
64307         [non-C99-based standards] (y1l): Likewise.
64308         [non-C99-based standards] (ynl): Likewise.
64309         [non-C99-based standards] (isnanl): Likewise.
64310         [non-C99-based standards] (acoshl): Likewise.
64311         [non-C99-based standards] (asinhl): Likewise.
64312         [non-C99-based standards] (atanhl): Likewise.
64313         [non-C99-based standards] (cbrtl): Likewise.
64314         [non-C99-based standards] (expm1l): Likewise.
64315         [non-C99-based standards] (ilogbl): Likewise.
64316         [non-C99-based standards] (log1pl): Likewise.
64317         [non-C99-based standards] (logbl): Likewise.
64318         [non-C99-based standards] (nextafterl): Likewise.
64319         [non-C99-based standards] (remainderl): Likewise.
64320         [non-C99-based standards] (rintl): Likewise.
64321         [non-C99-based standards] (scalbl): Likewise.
64322         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64323         [non-C99-based standards] (FP_*): Do not allow.
64324         [C99-based standards] (FP_*): Change to
64325         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64326         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64327         allow.
64328         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64329         (SIG_ERR): Likewise.
64330         [X/Open-based standards] (SIG_HOLD): Likewise.
64331         (SIG_IGN): Likewise.
64332         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64333         positive value.
64334         (SIGFPE): Likewise.
64335         (SIGILL): Likewise.
64336         (SIGINT): Likewise.
64337         (SIGSEGV): Likewise.
64338         (SIGTER): Likewise.
64339         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64340         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64341         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64342         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64343         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64344         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64345         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64346         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64347         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64348         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64349         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64350         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64351         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64352         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64353         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64354         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64355         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64356         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64357         [X/Open-based standards] (SIGTRAP): Likewise.
64358         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64359         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64360         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64361         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64362         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64363         allow.
64364
64365 2012-05-08  Ian Wienand  <ianw@vmware.com>
64366
64367         [BZ #14080]
64368         * time/tzset.c (__tzset_parse_tz): Update default rules for
64369         daylight time changes in the Energy Policy Act of 2005.
64370
64371 2012-05-09  Andreas Jaeger  <aj@suse.de>
64372
64373         [BZ #13983]
64374         * elf/ldconfig.c (parse_conf): Change string to make clear that
64375         ldconfig only issued a warning if ld.so.conf does not exist.
64376
64377 2012-05-08  David S. Miller  <davem@davemloft.net>
64378
64379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64380         movxtod instead of popping the value on the stack.
64381
64382         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64383
64384 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64385
64386         * config.h.in: Add HAVE_ARM_PCS_VFP.
64387
64388 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64389
64390         [BZ #13979]
64391         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64392         checking but the checks are disabled for any reason.
64393
64394 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64395
64396         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64397         and ELF64_R_TYPE with ELFW(R_TYPE).
64398
64399 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64400
64401         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64402         (ulimit): Likewise.
64403
64404         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64405         (settimeofday): Likewise.
64406
64407 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64408
64409         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64410         a struct th_u2 inside the union, and move tu_block/tu_code into
64411         a new th_u3 union of tu_block/tu_code inside of that.  Move
64412         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64413         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64414         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64415         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64416         (th_stuff): Change to th_u1.tu_stuff.
64417         (th_data): Define.
64418         (th_msg): Change to th_u1.th_u2.tu_data.
64419
64420 2012-05-07  David S. Miller  <davem@davemloft.net>
64421
64422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64423
64424         [BZ #14074]
64425         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64426         (SETUP_PIC_REG): Use it.
64427         (SETUP_PIC_REG_LEAF): Use it.
64428
64429 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64430
64431         [BZ #13885]
64432         [BZ #13923]
64433         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64434         USE_AS_EXPM1L.
64435         (EXPL_FINITE): Likewise.
64436         (FLDLOG): Likewise.
64437         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64438         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64439         e_expl.S.
64440         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64441         USE_AS_EXPM1L.
64442         (EXPL_FINITE): Likewise.
64443         (FLDLOG): Likewise.
64444         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64445         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64446         e_expl.S.
64447         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64448         test of -max_value argument for long double.
64449         * sysdeps/i386/fpu/libm-test-ulps: Update.
64450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64451
64452 2012-05-06  David S. Miller  <davem@davemloft.net>
64453
64454         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64455         quad soft-float symbols whose references which are compiler
64456         generated.
64457         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64458
64459 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64460
64461         [BZ #13884]
64462         [BZ #13914]
64463         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64464         USE_AS_EXP10L.
64465         (EXPL_FINITE): Likewise.
64466         (FLDLOG): Likewise.
64467         (c0): Likewise.
64468         (c1): Likewise.
64469         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64470         Adjust comments for base varying.
64471         (__expl_finite): Change alias to EXPL_FINITE.
64472         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64473         e_expl.S.
64474         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64475         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64476         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64477         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64478         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64479         USE_AS_EXP10L.
64480         (EXPL_FINITE): Likewise.
64481         (FLDLOG): Likewise.
64482         (c0): Likewise.
64483         (c1): Likewise.
64484         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64485         Adjust comments for base varying.
64486         (__expl_finite): Change alias to EXPL_FINITE.
64487         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64488         tests for bugs.
64489         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64490
64491         [BZ #14064]
64492         * math/libm-test.inc (check_float_internal): Correct ulp
64493         calculation for subnormal expected results.
64494
64495 2012-05-06  Andreas Jaeger  <aj@suse.de>
64496
64497         * Makeconfig (+math-flags): New, set to -frounding-math.
64498         (+cflags): Add +math-flags so that all of glibc gets compiled with
64499         it.
64500
64501         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64502
64503 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64504
64505         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64506         Disable one test.
64507
64508         [BZ #13787]
64509         [BZ #13922]
64510         [BZ #14036]
64511         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64512         (__ieee754_expl): Allow for and saturate large arguments.
64513         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64514         (u_threshold): Likewise.
64515         (__exp): Call __ieee754_exp before checking for overflow and
64516         underflow.
64517         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64518         (u_threshold): Likewise.
64519         (__expf): Call __ieee754_expf before checking for overflow and
64520         underflow.
64521         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64522         (u_threshold): Likewise.
64523         (__expl): Call __ieee754_expl before checking for overflow and
64524         underflow.
64525         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64526         (__ieee754_expl): Allow for and saturate large arguments.
64527         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64528         missing overflow exception on overflow.
64529         (expm1_test): Do not allow missing overflow exception on overflow.
64530
64531         * sysdeps/i386/fpu/e_expl.c: Move to ...
64532         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64533         rather than using inline asm.
64534         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64535         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64536         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64537
64538         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64539         (nice): Likewise.
64540         (poll): Likewise.
64541         (signal): Likewise.
64542         (time): Likewise.
64543         (times): Likewise.
64544
64545 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64546
64547         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64548         sysdeps/unix/common/syscalls.list.
64549         (fchmod): Likewise.
64550         (fchown): Likewise.
64551         (ftruncate): Likewise.
64552         (getrusage): Likewise.
64553         (gettimeofday): Likewise.
64554         (setpgid): Likewise.
64555         (setregid): Likewise.
64556         (setreuid): Likewise.
64557         (sigaction): Likewise.
64558         (truncate): Likewise.
64559         (vhangup): Likewise.
64560         * sysdeps/unix/common/syscalls.list: Remove file.
64561         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64562         * sysdeps/unix/sysv/linux/Implies: Likewise.
64563
64564 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64565
64566         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64567         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64568         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64569         Moved to ...
64570         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64571         Here.
64572         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64573         to ...
64574         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64575         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64576         to ...
64577         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64578         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64579         to ...
64580         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64581         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64582         to ...
64583         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64584         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64585         to ...
64586         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64587         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64588         to ...
64589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64590         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64591         to ...
64592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64593         Here.
64594         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64595         to ...
64596         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64597         Here.
64598         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64599         to ...
64600         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64601         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64602         Moved to ...
64603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64604         Here.
64605         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64606         to ...
64607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64608
64609 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64610
64611         * sysdeps/unix/common/bits/dirent.h: Remove file.
64612         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64613
64614         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64615         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64616         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64617         * sysdeps/unix/bsd/isatty.c: Likewise.
64618         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64619         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64620         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64621
64622 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64623
64624         [BZ #13563]
64625         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64626         long double comparison inaccuracies.
64627         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64628         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64629
64630 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64631
64632         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64633         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64634
64635 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64636
64637         [BZ #14049]
64638         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64639         nonzero digits before rounding a hex value.
64640         * stdlib/tst-strtod.c (tests): Add another test.
64641
64642 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64643
64644         * sysdeps/s390/fpu/libm-test-ulps: Update.
64645
64646 2012-05-03  Andreas Jaeger  <aj@suse.de>
64647
64648         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64649         does not get optimized out.
64650         (malloc_opt_barrier): New.
64651
64652 2012-05-03  Andreas Jaeger  <aj@suse.de>
64653             Roland McGrath  <roland@hack.frob.com>
64654
64655         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64656         intermediate file deletion.
64657         (generated): Add .symlist files.
64658
64659 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64660
64661         [BZ #13775]
64662         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64663         Redirect under this condition.
64664         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64665         [__USE_GNU] (__dprintf_chk): Not under this condition.
64666         [__USE_GNU] (__vdprintf_chk): Likewise.
64667         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64668         under this condition.
64669         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64670         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64671         [__USE_XOPEN2K8] (vdprintf): Likewise.
64672         [__USE_GNU] (__dprintf_chk): Not under this condition.
64673         [__USE_GNU] (__vdprintf_chk): Likewise.
64674         [__USE_GNU] (dprintf): Likewise.
64675         [__USE_GNU] (vdprintf): Likewise.
64676
64677 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64678
64679         * elf/Makefile (common-generated): Set this instead of generated for
64680         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64681         $(all-built-dso)-derived lists.
64682
64683 2012-05-03  Andreas Jaeger  <aj@suse.de>
64684
64685         * sysdeps/i386/fpu/libm-test-ulps: Update.
64686
64687         * FAQ: Removed.
64688         * FAQ.in: Likewise.
64689         * scripts/gen-FAQ.pl: Likewise.
64690         * manual/install.texi (Installation): Point to online location of
64691         FAQ.
64692         * Makefile (files-for-dist): Remove FAQ.
64693         (FAQ): Remove.
64694
64695 2012-05-02  Allan McRae  <allan@archlinux.org>
64696
64697         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64698         (LDFLAGS-reldepmod5.so): Likewise.
64699         (LDFLAGS-reldep6mod1.so): Likewise.
64700         (LDFLAGS-reldep6mod4.so): Likewise.
64701         (LDFLAGS-reldep8mod3.so): Likewise.
64702         (LDFLAGS-unload4mod1.so): Likewise.
64703         (LDFLAGS-unload4mod2.so): Likewise.
64704         (LDFLAGS-tst-initorder): Likewise.
64705         (LDFLAGS-tst-initordera2.so): Likewise.
64706         (LDFLAGS-tst-initordera3.so): Likewise.
64707         (LDFLAGS-tst-initordera4.so): Likewise.
64708         (LDFLAGS-tst-initorderb2.so): Likewise.
64709         (LDFLAGS-noload): Likewise.
64710         (LDFLAGS-next): Likewise.
64711         (LDFLAGS-order2mod1.so): Likewise.
64712         (LDFLAGS-order2mod2.so): Likewise.
64713         (LDFLAGS-tst-initorder2): Likewise.
64714         (LDFLAGS-tst-initorder2a.so): Likewise.
64715         (LDFLAGS-tst-initorder2b.so): Likewise.
64716         (LDFLAGS-tst-initorder2c.so): Likewise.
64717         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64718
64719 2012-05-02  David S. Miller  <davem@davemloft.net>
64720
64721         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64722
64723 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64724
64725         [BZ #14055]
64726         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64727
64728 2012-05-02  Andreas Jaeger  <aj@suse.de>
64729
64730         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64731         since we manipulate rounding mode.
64732         (CPPFLAGS-test-idouble.c): Likewise.
64733         (CPPFLAGS-test-ifloat.c): Likewise.
64734         (CFLAGS-test-ldouble.c): Likewise.
64735         (CFLAGS-test-double.c): Likewise.
64736         (CFLAGS-test-float.c): Likewise.
64737         (CFLAGS-test-misc.c): Likewise.
64738         (CFLAGS-test-test-fenv.c): Likewise.
64739
64740 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64741
64742         [BZ #2550]
64743         [BZ #2570]
64744         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64745         comparisons to determine direction to adjust input.
64746
64747 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64748
64749         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64750         output to the target.
64751
64752         * scripts/localplt.awk: New file.
64753         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64754         (check-localplt-CFLAGS): Variable removed.
64755         ($(all-built-dso:=.jmprel)): New static pattern rule.
64756         (generated): Add those targets.
64757         (localplt-built-dso): New variable.
64758         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64759
64760         * elf/check-localplt.c: File removed.
64761
64762         * scripts/check-execstack.awk: New file.
64763         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64764         (check-execstack-CFLAGS): Variable removed.
64765         ($(objpfx)check-execstack.h): Target removed.
64766         ($(objpfx)execstack-default): New target.
64767         (generated): Add that instead of check-execstack.h.
64768         ($(all-built-dso:=.phdr)): New static pattern rule.
64769         (generated): Add those targets.
64770         * elf/check-execstack.c: File removed.
64771
64772         * scripts/check-textrel.awk: New file.
64773         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64774         (check-textrel-CFLAGS): Variable removed.
64775         (all-built-dso): Use := to define.o
64776         ($(all-built-dso:=.dyn)): New static pattern rule.
64777         (generated): Add those targets.
64778         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64779         * config.make.in (READELF): New substituted variable.
64780         * elf/check-textrel.c: File removed.
64781
64782 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64783
64784         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64785         allow.
64786         * conform/data/ctype.h-data [C99-based standards] (isblank):
64787         Expect function.
64788         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64789         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64790         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64791         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64792         Specify type.  Require positive value.
64793         (EILSEQ): Likewise.
64794         (ERANGE): Likewise.
64795         [ISO || POSIX] (EILSEQ): Do not expect.
64796         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64797         Specify type.  Require positive value.
64798         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64799         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64800         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64801         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64802         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64803         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64804         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64805         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64806         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64807         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64808         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64809         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64810         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64811         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64812         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64813         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64814         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64815         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64816         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64817         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64818         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64819         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64820         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64821         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64822         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64823         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64824         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64825         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64826         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64827         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64828         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64829         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64830         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64831         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64832         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64833         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64834         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64835         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64836         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64837         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64838         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64839         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64840         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64841         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64842         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64843         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64844         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64845         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64846         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64847         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64848         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64849         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64850         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64851         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64852         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64853         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64854         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64855         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64856         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64857         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64858         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64859         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64860         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64861         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64862         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64863         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64864         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64865         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64866         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64867         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64868         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64869         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64870         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64871         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64872         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64873         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64874         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64875         Require >= 2.
64876         (FLT_ROUNDS): Expect as macro, not constant.
64877         (FLT_MANT_DIG): Use macro-int-constant.
64878         (DBL_MANT_DIG): Likewise.
64879         (LDBL_MANT_DIG): Likewise.
64880         (FLT_DIG): Likewise.
64881         (DBL_DIG): Likewise.
64882         (LDBL_DIG): Likewise.
64883         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64884         (DBL_MIN_EXP): Likewise.
64885         (LDBL_MIN_EXP): Likewise.
64886         (FLT_MAX_EXP): Use macro-int-constant.
64887         (DBL_MAX_EXP): Likewise.
64888         (LDBL_MAX_EXP): Likewise.
64889         (FLT_MAX_10_EXP): Likewise.
64890         (DBL_MAX_10_EXP): Likewise.
64891         (LDBL_MAX_10_EXP): Likewise.
64892         (FLT_MAX): Use macro-constant.
64893         (DBL_MAX): Likewise.
64894         (LDBL_MAX): Likewise.
64895         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64896         (DBL_EPSILON): Likewise.
64897         (LDBL_EPSILON): Likewise.
64898         (FLT_MIN): Likewise.
64899         (DBL_MIN): Likewise.
64900         (LDBL_MIN): Likewise.
64901         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64902         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64903         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64904         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64905         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64906         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64907         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64908         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64909         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64910         [ISO11] (FLT_TRUE_MIN): Likewise.
64911         [ISO11] (LDBL_TRUE_MIN): Likewise.
64912         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64913         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64914         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64915         (SCHAR_MAX): Likewise.
64916         (UCHAR_MAX): Likewise.
64917         (CHAR_MIN): Likewise.
64918         (CHAR_MAX): Likewise.
64919         (MB_LEN_MAX): Use macro-int-constant.
64920         (SHRT_MIN): Use macro-int-constant.  Specify type.
64921         (SHRT_MAX): Likewise.
64922         (USHRT_MAX): Likewise.
64923         (INT_MAX): Likewise.
64924         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64925         bound negative.
64926         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64927         bound with "U".
64928         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64929         bound with "L".
64930         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64931         bound negative.  Suffix upper bound with "L".
64932         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64933         bound with "UL".
64934         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64935         Specify type.
64936         [C99-based standards] (LLONG_MAX): Likewise.
64937         [C99-based standards] (ULLONG_MAX): Likewise.
64938         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64939         == 0.
64940         [ISO11] (max_align_t): Require type.
64941         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64942
64943         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64944         from $CFLAGS, without defining away __attribute__ calls.
64945         (checknamespace): Use $CFLAGS_namespace.
64946
64947         * conform/conformtest.pl (@keywords): Only include C99 keywords
64948         for standards based on C99 or C11.
64949
64950         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64951         Disable tests.
64952         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64953         UNIX98]: Likewise.
64954
64955         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64956         usability of symbols in #if.
64957
64958         * conform/conformtest.pl: If macro or constant types start
64959         "promoted:", expect the symbol to be of the following type
64960         promoted by the integer promotions.
64961
64962         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64963         in one place.  Also handle "macro-constant".
64964
64965         * conform/conformtest.pl: Only accept expected macro values with
64966         "==".  Parse all "macro" lines in one place.
64967         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64968
64969         * conform/conformtest.pl: Handle braced types on "constant" lines
64970         instead of handling "typed-constant".
64971         * conform/data/signal.h-data: Use "constant" instead of
64972         "typed-constant".
64973
64974         * conform/conformtest.pl: Handle "optional-" at start of lines in
64975         one place rather than duplicating several cases.  Handle each
64976         format of "macro" line with initial "optional-".
64977
64978         * conform/conformtest.pl: Only accept expected constant or
64979         optional-constant values with "==".  Parse all "constant" lines in
64980         one place.  Parse all "optional-constant" lines in one place.
64981         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64982         * conform/data/fmtmsg.h-data: Likewise.
64983         * conform/data/netinet/in.h-data: Likewise.
64984         * conform/data/tar.h-data: Likewise.
64985         * conform/data/limits.h-data: Use "==" form on "constant" and
64986         "optional-constant" lines.
64987
64988         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64989         Use -std=c99 for XOPEN2K.
64990         (@knownproblems): Remove.
64991         (newtoken): Don't check %isknown.
64992
64993         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64994         Do not expect macro.
64995         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64996         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64997         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64998         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64999         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
65000         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
65001         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
65002         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
65003         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
65004         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
65005         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
65006         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
65007         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
65008         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
65009         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
65010         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
65011         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
65012         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
65013         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
65014         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
65015         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
65016         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
65017         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
65018         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
65019         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
65020         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
65021         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
65022         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
65023         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
65024         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
65025         [XPG3] (acosh): Likewise.
65026         [XPG3] (asinh): Likewise.
65027         [XPG3] (atanh): Likewise.
65028         [XPG3] (cbrt): Likewise.
65029         [XPG3] (expm1): Likewise.
65030         [XPG3] (ilogb): Likewise.
65031         [XPG3] (log1p): Likewise.
65032         [XPG3] (logb): Likewise.
65033         [XPG3] (nextafter): Likewise.
65034         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
65035         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
65036         [XPG3] (remainder): Likewise.
65037         [XPG3] (rint): Likewise.
65038         [XPG3 || XPG4 || UNIX98] (round): Likewise.
65039         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
65040         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
65041         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
65042         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
65043         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
65044         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
65045         [UNIX98 || XOPEN2K] (scalb): Expect.
65046         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
65047         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
65048         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
65049         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
65050         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
65051         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
65052         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
65053         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
65054         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
65055         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
65056         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
65057         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
65058         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
65059         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
65060         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
65061         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
65062         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
65063         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
65064         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
65065         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
65066         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
65067         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
65068         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
65069         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
65070         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
65071         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
65072         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
65073         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
65074         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
65075         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
65076         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
65077         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
65078         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
65079         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
65080         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
65081         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
65082         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
65083         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
65084         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
65085         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
65086         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
65087         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
65088         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
65089         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
65090         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
65091         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
65092         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
65093         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
65094         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
65095         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
65096         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
65097         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
65098         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
65099         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
65100         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
65101         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
65102         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
65103         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
65104         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
65105         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
65106         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
65107         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
65108         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
65109         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
65110         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
65111         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
65112         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
65113         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
65114         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
65115         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
65116         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
65117         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
65118         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
65119         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
65120         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
65121         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
65122         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
65123         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
65124         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
65125         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
65126         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
65127         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
65128         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
65129         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
65130         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
65131         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
65132         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
65133         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
65134         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
65135         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
65136         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
65137         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
65138         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
65139         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
65140         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
65141         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
65142         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
65143         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
65144         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
65145         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
65146         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
65147         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
65148         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
65149         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
65150         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
65151         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
65152         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
65153         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
65154         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
65155         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
65156         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
65157         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
65158         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
65159         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
65160         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
65161         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
65162         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
65163         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
65164         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
65165         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
65166         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
65167         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
65168         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
65169         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
65170         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
65171         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
65172         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
65173         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
65174         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
65175         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
65176         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
65177         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
65178         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
65179         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
65180         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
65181         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
65182         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
65183
65184         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
65185         _XOPEN_SOURCE_EXTENDED for XPG4.
65186
65187         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
65188
65189         * Makeconfig (localtime): Remove variable.
65190         (inst_localtime-file): Likewise.
65191
65192 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65193
65194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
65195         Update.
65196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65197         Update.
65198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
65199         Update.
65200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65201         Update.
65202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65203         Update.
65204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65205         Update.
65206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65207         Update.
65208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65209         Update.
65210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65211         Update.
65212
65213 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65214
65215         [BZ #2550]
65216         [BZ #2570]
65217         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65218         comparisons to determine direction to adjust input.
65219         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65220         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65221         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65222         Likewise.
65223         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65224         Likewise.
65225         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65226         Likewise.
65227         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65228         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65229         Likewise.
65230         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65231         Likewise.
65232         * math/libm-test.inc (nexttoward_test): Add more tests.
65233
65234 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65235
65236         [BZ #14040]
65237         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65238         in version GLIBC_2.1, not GLIBC_2.0.
65239         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65240         Likewise.
65241
65242 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65243
65244         [BZ #13942]
65245         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65246         (1 - x) * (1 + x).
65247         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65248         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65249         * math/libm-test.inc (acos_test): Add more tests.
65250         (asin_test): Likewise.
65251         * sysdeps/i386/fpu/libm-test-ulps: Update.
65252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65253
65254         [BZ #14034]
65255         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65256         of square root.
65257         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65258         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65259         * math/libm-test.inc (acos_test_tonearest): New function.
65260         (acos_test_towardzero): Likewise.
65261         (acos_test_downward): Likewise.
65262         (acos_test_upward): Likewise.
65263         (asin_test_tonearest): Likewise.
65264         (asin_test_towardzero): Likewise.
65265         (asin_test_downward): Likewise.
65266         (asin_test_upward): Likewise.
65267         (main): Call the new functions.
65268         * sysdeps/i386/fpu/libm-test-ulps: Update.
65269         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65270
65271         [BZ #13884]
65272         [BZ #13924]
65273         * math/e_exp10.c: Include <float.h>.
65274         (__ieee754_exp10): Handle underflow here rather than multiplying
65275         large negative argument by M_LN10.
65276         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65277         of __ieee754_expf.
65278         * math/e_exp10l.c: Include <float.h>.
65279         (__ieee754_exp10l): Handle underflow here rather than multiplying
65280         large negative argument by M_LN10l.
65281         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65282         spurious overflow exception on underflow.
65283
65284 2012-04-29  Marek Polacek  <polacek@redhat.com>
65285
65286         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65287         (__fortify_function): New macro.
65288         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65289         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65290         __extern_always_inline.
65291         * libio/bits/stdio2.h: Likewise.
65292         * libio/bits/stdio.h: Likewise.
65293         * string/string.h: Likewise.
65294         * string/bits/string3.h: Likewise.
65295         * include/stdio.h: Likewise.
65296         * stdlib/bits/stdlib.h: Likewise.
65297         * stdlib/stdlib.h: Likewise.
65298         * rt/bits/mqueue2.h: Likewise.
65299         * rt/mqueue.h: Likewise.
65300         * posix/bits/unistd.h: Likewise.
65301         * posix/unistd.h: Likewise.
65302         * io/bits/poll2.h: Likewise.
65303         * io/bits/fcntl2.h: Likewise.
65304         * io/fcntl.h: Likewise.
65305         * io/sys/poll.h: Likewise.
65306         * misc/bits/syslog.h: Likewise.
65307         * misc/bits/syslog-ldbl.h: Likewise.
65308         * misc/sys/syslog.h: Likewise.
65309         * socket/bits/socket2.h: Likewise.
65310         * socket/sys/socket.h: Likewise.
65311         * debug/tst-chk1.c: Likewise.
65312         * wcsmbs/bits/wchar2.h: Likewise.
65313         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65314         * wcsmbs/wchar.h: Likewise.
65315
65316 2012-04-29  Andreas Jaeger  <aj@suse.de>
65317
65318         * Makerules (tests): Remove enable-check-abi protection.
65319         (check-abi-warn): Remove.
65320         (check-abi-%): Remove check-abi-warn usage.
65321
65322         * configure.in: Remove check-abi configure option.
65323         * configure: Regenerated.
65324         * config.make.in (enable-check-abi): Remove.
65325
65326 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65327
65328         [BZ #14033]
65329         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65330         double functions to double *_finite functions.
65331
65332         [BZ #13941]
65333         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65334         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65335         LDBL_MIN_EXP.
65336         * stdio-common/Makefile (tests): Add tst-sprintf3.
65337         * stdio-common/tst-sprintf3.c: New file.
65338
65339         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65340         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65341
65342 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65343
65344         * conform/conformtest.pl: Remove duplicate typed-constant
65345         handling.
65346
65347 2012-04-28  David S. Miller  <davem@davemloft.net>
65348
65349         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65350         (check-abi-%): Remove AWK script prerequisite and explicit
65351         abilist directory.
65352         (check-abi): Rewrite to just diff the symlist with the abilist.
65353         (config-tls, config-abi-config): Delete, no longer used.
65354         (update-abi-%): Remove AWK script and explicit abilist directory.
65355         (update-abi): Rewrite to simply compare and conditionally copy the
65356         symlist and the sysdep abilist file.  Remove update-abi-config
65357         checks.
65358         * abilist/ld.abilist: Remove.
65359         * abilist/libBrokenLocale.abilist: Remove.
65360         * abilist/libanl.abilist: Remove.
65361         * abilist/libcrypt.abilist: Remove.
65362         * abilist/libdl.abilist: Remove.
65363         * abilist/librt.abilist: Remove.
65364         * abilist/libthread_db.abilist: Remove.
65365         * abilist/libutil.abilist: Remove.
65366         * scripts/extract-abilist.awk: Remove.
65367         * scripts/merge-abilist.awk: Remove.
65368         * sysdeps/generic/libcidn.abilist: New file.
65369         * sysdeps/generic/libnss_compat.abilist: New file.
65370         * sysdeps/generic/libnss_db.abilist: New file.
65371         * sysdeps/generic/libnss_dns.abilist: New file.
65372         * sysdeps/generic/libnss_files.abilist: New file.
65373         * sysdeps/generic/libnss_hesiod.abilist: New file.
65374         * sysdeps/generic/libnss_nis.abilist: New file.
65375         * sysdeps/generic/libnss_nisplus.abilist: New file.
65376         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65377         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65378         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65379         file.
65380         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65381         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65382         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65383         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65384         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65385         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65386         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65387         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65388         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65389         file.
65390         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65391         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65392         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65393         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65394         file.
65395         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65396         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65397         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65398         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65399         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65400         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65401         file.
65402         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65403         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65404         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65405         file.
65406         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65407         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65408         New file.
65409         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65410         New file.
65411         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65412         New file.
65413         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65414         New file.
65415         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65416         New file.
65417         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65418         New file.
65419         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65420         New file.
65421         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65422         New file.
65423         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65424         New file.
65425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65426         New file.
65427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65428         New file.
65429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65430         New file.
65431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65432         New file.
65433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65434         file.
65435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65436         New file.
65437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65438         New file.
65439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65440         file.
65441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65442         New file.
65443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65444         New file.
65445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65446         file.
65447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65448         New file.
65449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65450         New file.
65451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65452         New file.
65453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65454         New file.
65455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65456         New file.
65457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65458         New file.
65459         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65461         file.
65462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65463         New file.
65464         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65465         file.
65466         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65467         file.
65468         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65469         file.
65470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65471         file.
65472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65473         file.
65474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65475         New file.
65476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65477         file.
65478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65479         file.
65480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65481         New file.
65482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65483         file.
65484         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65486         file.
65487         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65488         New file.
65489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65490         file.
65491         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65492         file.
65493         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65494         file.
65495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65496         file.
65497         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65498         file.
65499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65500         New file.
65501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65502         file.
65503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65504         file.
65505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65506         New file.
65507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65508         file.
65509         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65510         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65511         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65512         file.
65513         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65514         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65515         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65516         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65517         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65518         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65519         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65520         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65521         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65522         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65523         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65524         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65525         file.
65526         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65527         New file.
65528         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65529         file.
65530         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65531         file.
65532         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65533         file.
65534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65535         file.
65536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65537         file.
65538         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65539         New file.
65540         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65541         New file.
65542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65543         file.
65544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65545         New file.
65546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65547         file.
65548         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65549         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65550         file.
65551         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65552         New file.
65553         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65554         file.
65555         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65556         file.
65557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65558         file.
65559         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65560         file.
65561         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65562         file.
65563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65564         New file.
65565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65566         New file.
65567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65568         file.
65569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65570         New file.
65571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65572         file.
65573
65574 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65575
65576         * conform/conformtest.pl: Fix typo in handling typed-constant from
65577         allow-header.
65578
65579 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65580
65581         * README: Cut down references to pre-2.6 Linux kernels and
65582         Linuxthreads.  Update lists of configurations in libc and ports
65583         and sort alphabetically.  Say "or newer" with Linux kernel version
65584         requirements.
65585
65586         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65587
65588 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65589
65590         [BZ #887]
65591         * math/libm-test.inc (logb_test_downward): New test to expose
65592         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65593         rounding mode.
65594
65595 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65596
65597         [BZ #14027]
65598         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65599         to be done.
65600         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65601         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65602
65603 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65604
65605         * sysdeps/unix/i386/brk.S: Remove file.
65606         * sysdeps/unix/i386/dl-brk.S: Likewise.
65607         * sysdeps/unix/i386/pipe.S: Likewise.
65608         * sysdeps/unix/i386/sigreturn.S: Likewise.
65609         * sysdeps/unix/i386/syscall.S: Likewise.
65610         * sysdeps/unix/i386/vfork.S: Likewise.
65611         * sysdeps/unix/i386/wait.S: Likewise.
65612
65613         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65614         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65615
65616         * configure.in (arm*-none*): Do not allow without
65617         --enable-hacker-mode.
65618         (netbsd*): Remove case setting base_os.
65619         (386bsd*): Likewise.
65620         (freebsd*): Likewise.
65621         (bsdi*): Likewise.
65622         (osf*): Likewise.
65623         (sunos*): Likewise.
65624         (ultrix*): Likewise.
65625         (newsos*): Likewise.
65626         (dynix*): Likewise.
65627         (*bsd*): Likewise.
65628         (sysv*): Likewise.
65629         (isc*): Likewise.
65630         (esix*): Likewise.
65631         (sco*): Likewise.
65632         (minix*): Likewise.
65633         (irix4*): Likewise.
65634         (irix6*): Likewise.
65635         (solaris[2-9]*): Likewise.
65636         (none): Likewise.
65637         * configure: Regenerated.
65638
65639 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65640
65641         [BZ #11521]
65642         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65643         overflow or cancellation in calculating denominator.
65644         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65645         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65646         down expression to avoid unexpected rounding in newer GCCs.
65647         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65648
65649 2012-04-26  David S. Miller  <davem@davemloft.net>
65650
65651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65652         long-double compat symbols.
65653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65658         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65662         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65663         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65666
65667 2012-04-25  David S. Miller  <davem@davemloft.net>
65668
65669         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65670         HWCAP_* values only after the memory barriers have been defined.
65671         (atomic_full_barrier): Define.
65672         (atomic_read_barrier): Define.
65673         (atomic_write_barrier): Define.
65674
65675 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65676
65677         * shlib-versions: Add libgcc_s version information.
65678         * sysdeps/generic/libgcc_s.h: Remove.
65679         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65680         libgcc_s.h.
65681         * sysdeps/gnu/unwind-resume.c: Likewise.
65682         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65683
65684 2012-04-25  David S. Miller  <davem@davemloft.net>
65685
65686         * sysdeps/unix/sparc/brk.S: Delete.
65687         * sysdeps/unix/sparc/dl-brk.S: Delete.
65688         * sysdeps/unix/sparc/pipe.S: Delete.
65689         * sysdeps/unix/sparc/sysdep.S: Delete.
65690         * sysdeps/unix/sparc/sysdep.h: Delete.
65691         * sysdeps/unix/sparc/vfork.S: Delete.
65692         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65693         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65694         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65695         (ret_ERRVAL, r0, r1, MOVE): Define.
65696         (JUMPTARGET): Remove.
65697         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65698         sysdeps/unix/sparc/sysdep.h
65699         (ENTRY, END): Remove.
65700         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65701
65702 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65703
65704         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65705         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65706         -DIS_IN_build.
65707
65708         * timezone/README: Update upstream location and email address for
65709         tzcode and tzdata.
65710         * timezone/zdump.c: Update from tzcode 2012b.
65711         * timezone/zic.c: Likewise.
65712
65713         * configure.in (libc_cv_as_needed): Remove test.
65714         * configure: Regenerated.
65715         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65716         conditional definition.
65717         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65718         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65719         * config.make.in (have-as-needed): Remove variable.
65720
65721 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65722             Paul Pluzhnikov  <ppluzhnikov@google.com>
65723
65724         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65725         strings correctly.
65726
65727 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65728
65729         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65730         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65731         * sysdeps/sh/strlen.S: Likewise.
65732
65733 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65734
65735         * sysdeps/unix/fork.S: Remove file.
65736         * sysdeps/unix/i386/fork.S: Likewise.
65737         * sysdeps/unix/sparc/fork.S: Likewise.
65738
65739         * sysdeps/unix/system.c: Remove file.
65740         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65741
65742         * sysdeps/unix/getegid.S: Remove file.
65743         * sysdeps/unix/geteuid.S: Likewise.
65744
65745 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65746
65747         * scripts/check-localplt.awk: New file.
65748         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65749         of diff.
65750         * scripts/data/localplt-generic.data: Add a comment.
65751
65752         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65753         NODE when __dir_mkfile failed.
65754         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65755         Reported by Ludovic Courtès <ludo@gnu.org>.
65756
65757 2012-04-24  Andreas Jaeger  <aj@suse.de>
65758
65759         * Makerules (common-clean): Also remove gen-as-const-headers
65760         files.
65761
65762 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65763
65764         * Makerules (native-compile): Do not change working directory for
65765         build.  Use $(OUTPUT_OPTION) in command.
65766         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65767
65768 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65769
65770         [BZ #13886]
65771         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65772         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65773         * math/libm-test.inc (floor_test): Add more tests.
65774         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65775
65776 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65777
65778         * sysdeps/unix/getdents.c: Remove file.
65779         * sysdeps/unix/sysv/getdents.c: Likewise.
65780         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65781
65782         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65783         sysdeps/unix/mman/syscalls.list.
65784         (mmap): Likewise.
65785         (mprotect): Likewise.
65786         (msync): Likewise.
65787         (munmap): Likewise.
65788         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65789         * sysdeps/unix/mman/syscalls.list: Remove.
65790         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65791
65792         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65793         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65794         * configure: Regenerated.
65795         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65796         $(libgcc_s_suffix).
65797         * config.make.in (libgcc_s_suffix): Remove variable.
65798
65799 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65800
65801         * sysdeps/unix/sysv/gethostname.c: Move to ...
65802         * sysdeps/posix/gethostname.c: ... here.
65803
65804         * sysdeps/unix/execve.S: Remove file.
65805
65806         * sysdeps/unix/_exit.S: Remove file.
65807
65808 2012-04-23  Andreas Jaeger  <aj@suse.de>
65809
65810         [BZ #13739]
65811         * manual/Makefile: Remove make dist support, there's no
65812         need for a stand-alone documentation tar ball.
65813         (TEXI2DVI): Define always, it's not in Makeconfig.
65814         (dist): Removed.
65815         (tar-it): Removed.
65816         (edition): Removed.
65817         (glibc-doc-$(edition).tar): Removed
65818         (%.Z): Removed.
65819         (%.gz): Removed.
65820         (%.uu): Removed.
65821         (ETAGS): Remove, it's in Makeconfig.
65822         (move-if-change): Remove, it's in Makeconfig.
65823
65824 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         [BZ #13970]
65827         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65828         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65829         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65830         (strtod_l, strtof_l, strtold_l): Remove __wur.
65831         It is not necessarily an error to ignore strtol's return value.
65832         One can reliably look at the stored endptr to decide whether
65833         the number had valid syntax.
65834
65835 2012-04-21  Andreas Jaeger  <aj@suse.de>
65836
65837         [BZ #13739]
65838         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65839
65840 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65841
65842         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65843         * sysdeps/unix/sysv/Versions: Remove file.
65844
65845 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65846
65847         [BZ #13927]
65848         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65849
65850 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65851
65852         [BZ #7064]
65853         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65854         version from __vm86.
65855
65856 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65857
65858         * sysdeps/unix/common/lxstat.c: Remove file.
65859         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65860
65861         * sysdeps/unix/sysv/Makefile: Remove file.
65862
65863         * sysdeps/unix/sysv/direct.h: Remove file.
65864
65865         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65866         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65867         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65868         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65869         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65870         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65871         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65872
65873         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65874
65875         * sysdeps/unix/xmknod.c: Remove file.
65876         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65877
65878         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65879
65880         * sysdeps/unix/sysv/i386/time.S: Remove file.
65881
65882         * sysdeps/unix/fxstat.c: Remove file.
65883         * sysdeps/unix/xstat.c: Likewise.
65884         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65885
65886         * sysdeps/unix/sysv/sigaction.c: Remove file.
65887
65888         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65889         (sysdep_headers): Remove variable.
65890         [termio.h not in sysdep_headers] (generated): Likewise.
65891         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65892         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65893         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65894         * sysdeps/unix/sysv/tcflow.c: Likewise.
65895         * sysdeps/unix/sysv/tcflush.c: Likewise.
65896         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65897         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65898         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65899         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65900         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65901
65902         * sysdeps/unix/siglist.c: Remove file.
65903
65904         * sysdeps/unix/getppid.S: Remove file.
65905
65906         * sysdeps/unix/mkdir.c: Remove file.
65907         * sysdeps/unix/rmdir.c: Likewise.
65908
65909 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65910
65911         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65912         ERR_MAX value.
65913         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65914         errlist-compat value.
65915
65916 2012-04-18  David S. Miller  <davem@davemloft.net>
65917
65918         * sysdeps/generic/memcopy.h (reg_char): Delete.
65919         * debug/strcat_chk.c: Use char, not reg_char.
65920         * debug/strcpy_chk.c: Likewise.
65921         * debug/strncat_chk.c: Likewise.
65922         * debug/strncpy_chk.c: Likewise.
65923         * string/memchr.c: Likewise.
65924         * string/memrchr.c: Likewise.
65925         * string/rawmemchr.c: Likewise.
65926         * string/strcat.c: Likewise.
65927         * string/strchr.c: Likewise.
65928         * string/strchrnul.c: Likewise.
65929         * string/strcmp.c: Likewise.
65930         * string/strcpy.c: Likewise.
65931         * string/strncat.c: Likewise.
65932         * string/strncmp.c: Likewise.
65933         * string/strncpy.c: Likewise.
65934
65935 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65936
65937         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65938         __builtin_memcopy is called when src and dest ranges are known to not
65939         overlap.
65940
65941 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65942
65943         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65944         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65945         fwd_align_merge macro call.
65946         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65947         bwd_align_merge macro call.
65948         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65949
65950 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65951
65952         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65953         bwd_align_merge macros.
65954         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65955         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65956         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65957
65958 2012-04-18  David S. Miller  <davem@davemloft.net>
65959
65960         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65961
65962 2012-04-18  Andreas Jaeger  <aj@suse.de>
65963
65964         [BZ# 6794]
65965         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65966         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65967         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65968
65969         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65970         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65971         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65972
65973         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65974         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65975         Adjust for changed ldbl-128 files.
65976
65977         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65978         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65979         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65980
65981 2012-04-17  David S. Miller  <davem@davemloft.net>
65982
65983         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65984
65985 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65986
65987         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65988         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65989         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65990         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65991         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65992         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65993
65994 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65995
65996         [BZ #6794]
65997         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65998         * math/libm-test.inc: Add ilogb errno and exception tests.
65999         * math/w_ilogb.c: New file: ilogb wrapper.
66000         * math/w_ilogbf.c: New file: ilogbf wrapper.
66001         * math/w_ilogbl.c: New file: ilogbl wrapper.
66002         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
66003         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
66004         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
66005         exception being thrown with 0.0 as argument.
66006         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
66007         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
66008         exception being thrown with 0.0 as argument.
66009         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
66010         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
66011         exception being thrown with 0.0 as argument.
66012         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
66013         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
66014         exception being thrown with 0.0 as argument.
66015         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
66016         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
66017         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
66018         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
66019         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
66020         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
66021         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
66022         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
66023         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
66024
66025 2012-04-17  Petr Baudis  <pasky@ucw.cz>
66026
66027         * include/sys/uio.h: Change __vector to __iovec to avoid clash
66028         with altivec.
66029
66030 2012-04-16  Marek Polacek  <polacek@redhat.com>
66031
66032         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
66033
66034 2012-04-16  Marek Polacek  <polacek@redhat.com>
66035
66036         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
66037         operands of fdivp instruction.
66038
66039 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
66040
66041         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
66042         * elf/tst-auditmod3b.c: Likewise.
66043         * elf/tst-auditmod4b.c: Likewise.
66044         * elf/tst-auditmod5b.c: Likewise.
66045         * elf/tst-auditmod6b.c: Likewise.
66046         * elf/tst-auditmod6c.c: Likewise.
66047         * elf/tst-auditmod7b.c: Likewise.
66048         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
66049         * sysdeps/x86_64/preconfigure.in: Likewise.
66050         * sysdeps/x86_64/preconfigure: Regenerated.
66051
66052 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
66053
66054         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
66055         __ILP32__.
66056
66057 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
66058
66059         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
66060         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
66061
66062 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
66063
66064         [BZ #13973]
66065         * locale/iso-639.def: Fix gl language name. Spotted by
66066         Yaron Shahrabani.
66067
66068 2012-04-12  Roland McGrath  <roland@hack.frob.com>
66069
66070         [BZ #2074]
66071         * libio/libio.h (__io_write_fn): Update comment.
66072
66073 2012-04-12  Petr Baudis  <pasky@ucw.cz>
66074
66075         [BZ #2074]
66076         * stdio.texi (Hook Functions): The user provided writer function
66077         is not allowed to return -1.
66078
66079 2012-04-11  David S. Miller  <davem@davemloft.net>
66080
66081         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66082
66083 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
66084
66085         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
66086         Add a leading slash to rtkaio.
66087
66088 2012-04-11  Jim Meyering  <meyering@redhat.com>
66089
66090         [BZ #11959]
66091         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
66092         It is not necessarily an error to ignore fwrite's return
66093         value.  One can reliably use ferror to test for errors after
66094         the fact.
66095
66096 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
66097
66098         * bits/types.h (__snseconds_t): New type.
66099         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
66100
66101         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
66102         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
66103         (__SNSECONDS_T_TYPE): Likewise.
66104         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
66105         (__SNSECONDS_T_TYPE): Likewise.
66106         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
66107         (__SNSECONDS_T_TYPE): Likewise.
66108
66109 2012-04-10  Andreas Jaeger  <aj@suse.de>
66110
66111         [BZ #2636]
66112         * manual/time.texi (Processor Time): Return type of times is
66113         elapsed real time since an arbitrary point in the past.
66114         (CPU Time): Move CLK_TCK from here...
66115         (Processor Time): ...to here.  Correct description.
66116         * manual/conf.texi (Constants for Sysconf): Correct description of
66117         _SC_CLK_TCK.
66118
66119 2012-04-10  David S. Miller  <davem@davemloft.net>
66120
66121         [BZ #13967]
66122         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
66123         where the is a gap between DT_REL(A) and DT_JMPREL.
66124
66125 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
66126
66127         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
66128         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66129         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66130
66131 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66132
66133         * elf/dl-support.c (_dl_inhibit_cache): New variable.
66134         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
66135         (dl_main): Handle --inhibit-cache.
66136         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
66137         _dl_inhibit_cache.
66138         * elf/dl-load.c (_dl_map_object): Use it.
66139         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
66140
66141 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66142
66143         [BZ #13872]
66144         * sysdeps/i386/fpu/e_powl.S (p78): New object.
66145         (__ieee754_powl): Saturate large exponents rather than testing for
66146         overflow of y*log2(x).
66147         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
66148         * math/libm-test.inc (pow_test): Do not permit spurious overflow
66149         exceptions.
66150
66151         [BZ #11521]
66152         * math/s_ctan.c: Include <float.h>.
66153         (__ctan): Avoid internal overflow or cancellation in calculating
66154         denominator.
66155         * math/s_ctanf.c: Likewise.
66156         * math/s_ctanl.c: Likewise.
66157         * math/s_ctanh.c: Likewise.
66158         * math/s_ctanhf.c: Likewise.
66159         * math/s_ctanhl.c: Likewise.
66160         * math/libm-test.inc (ctan_test): Add more tests.
66161         (ctanh_test): Likewise.
66162         * sysdeps/i386/fpu/libm-test-ulps: Update.
66163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66164
66165 2012-04-09  Andreas Jaeger  <aj@suse.de>
66166
66167         [BZ #6894]
66168         * manual/filesys.texi (Directory Entries): Mention that d_namlen
66169         is an optional BSD extension.
66170
66171         [BZ #10254]
66172         * manual/stdio.texi (Opening Streams): Document additional fopen
66173         parameters.
66174
66175 2012-04-09  Roland McGrath  <roland@hack.frob.com>
66176
66177         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
66178         %eax without telling the compiler.
66179
66180 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
66181
66182         [BZ # 13963]
66183         * manual/install.texi: Use sourceware.org.
66184
66185 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66186
66187         [BZ #13873]
66188         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
66189         (__ieee754_pow): Generate overflow and underflow using huge*huge
66190         and tiny*tiny rather than just returning constant infinity or zero
66191         for large exponents.
66192         * math/libm-test.inc (pow_test): Require overflow exceptions for
66193         applicable cases of large exponents.
66194
66195         [BZ #706]
66196         * sysdeps/i386/fpu/e_pow.S (p10): New object.
66197         (__ieee754_pow): Use iterative multiplication algorithm only for
66198         integer exponents with absolute value below 1024.  Check for odd
66199         integer exponents when using algorithm for real exponents.
66200         * math/libm-test.inc (pow_test): Add more tests.
66201         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66202
66203 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66204
66205         [BZ #13705]
66206         * math/libm-test.inc (exp_test): Do not allow overflow exception
66207         on underflow test.
66208
66209 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66210
66211         [BZ #13705]
66212         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66213         instead of __kernel_standard_f.
66214
66215 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66216
66217         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66218         * sysdeps/x86_64/memset_chk.S: Likewise.
66219
66220 2012-04-08  Andreas Jaeger  <aj@suse.de>
66221
66222         [BZ #10153]
66223         * manual/startup.texi (Environment Access): Describe return value
66224         for putenv and setenv.
66225
66226         [BZ #6895]
66227         * manual/filesys.texi (Directory Entries): Add description for
66228         DT_LNK.
66229
66230         [BZ #6890]
66231         * manual/filesys.texi (Directory Entries): Clarify that it's file
66232         system not operating system in the description of DT_UNKNOWN.
66233
66234         [BZ #6578]
66235         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66236
66237 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66238
66239         [BZ #6649]
66240         * manual/llio.texi (Opening and Closing Files): Add cross
66241         reference to explain mode argument.
66242
66243 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66244
66245         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66246         * sysdeps/x86_64/memset_chk.S: Likewise.
66247
66248 2012-04-07  David S. Miller  <davem@davemloft.net>
66249
66250         * elf/elf.h (R_SPARC_WDISP10): Define.
66251         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66252         R_SPARC_SIZE32.
66253         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66254         R_SPARC_SIZE64 and R_SPARC_H34.
66255
66256 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66257
66258         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66259         conditions and remove no longer applicable assertion.
66260
66261 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66262
66263         * bits/byteswap.h: Include <features.h>.
66264         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66265         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66266
66267 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66268
66269         * bits/byteswap.h (__bswap_16): Removed.
66270         Include <bits/byteswap-16.h> to get __bswap_16.
66271         * sysdeps/i386/bits/byteswap.h: Likewise.
66272         * sysdeps/s390/bits/byteswap.h: Likewise.
66273         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66274         * bits/byteswap-16.h: New file.
66275         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66276         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66277         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66278         * string/Makefile (headers): Add bits/byteswap-16.h.
66279
66280 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66281
66282         [BZ #13895]
66283         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66284         extra indirection.
66285         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66286         * nss/tst-nss-static.c: New.
66287
66288 2012-04-06  Robert Millan  <rmh@gnu.org>
66289
66290         [BZ #6486]
66291         * manual/llio.texi (File Position Primitive): lseek
66292         refers to WHENCE when it really means OFFSET.
66293
66294 2012-04-06  Andreas Jaeger  <aj@suse.de>
66295
66296         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66297         strncmp declarations.
66298
66299         * abilist/libc.abilist: Add __poll and __ppoll.
66300
66301 2012-04-05  David S. Miller  <davem@davemloft.net>
66302
66303         * scripts/check-local-headers.sh: Accept a host triplet in the
66304         path matched by the exclude regexp.
66305
66306         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66307         definition.
66308         * sysdeps/powerpc/powerpc32/dl-machine.h
66309         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66310         * sysdeps/s390/s390-32/dl-machine.h
66311         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66312         * sysdeps/sparc/sparc32/dl-machine.h
66313         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66314         * sysdeps/sparc/sparc64/dl-machine.h
66315         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66316
66317         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66318         lazy binding.
66319         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66320         undefined symbol errors.
66321
66322         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66323         DT_NEEDED entries.
66324
66325 2012-04-05  Michael Matz  <matz@suse.de>
66326
66327         [BZ #13592]
66328         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66329
66330 2012-04-05  Andreas Jaeger  <aj@suse.de>
66331
66332         [BZ #13908]
66333         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66334         comment.
66335
66336 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66337
66338         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66339         which ROUND is no valid rounding mode.
66340
66341 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66342
66343         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66344         read again.
66345         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66346
66347 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66348
66349         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66350         an exception using FPU order intentionally.
66351
66352 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66353
66354         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66355         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66356         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66357         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66358
66359 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66360
66361         [BZ #12340]
66362         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66363         EINVAL when BUFLEN is too smal.
66364
66365 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66366
66367         [BZ #13553]
66368         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66369         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66370
66371 2012-04-03  Andreas Jaeger  <aj@suse.de>
66372
66373         [BZ #13938]
66374         * manual/setjmp.texi (System V contexts): Fix sentence.
66375
66376         [BZ #13926]
66377         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66378         New macro for this case.
66379         [!__GNUC__] (__bswap_64): New inline function for this case.
66380         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66381         * bits/byteswap.h: Likewise.
66382         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66383         ull, guard with __GLIBC_HAVE_LONG_LONG.
66384
66385         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66386         __GLIBC_HAVE_LONG_LONG.
66387
66388         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66389         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66390
66391 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66392
66393         [BZ #13691]
66394         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66395         inptr and inend, rather than using last_ch.
66396
66397 2012-04-02  David S. Miller  <davem@davemloft.net>
66398
66399         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66400         * stdio-common/printf-parse.h (read_int): Change return type to
66401         'int', return -1 on INT_MAX overflow.
66402         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66403         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66404         overflows INT_MAX.  Check for overflow of in-format-string precision
66405         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66406         SIZE_MAX not INT_MAX for integer overflow test.
66407         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66408         skip the construct in the format string but do not record anything.
66409         * stdio-common/bug22.c: Adjust to test both width/prevision
66410         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66411         explicitly for proper errno values.
66412
66413 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66414
66415         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66416         CHAR_MAX.
66417         * string/test-strcmp.c [! WIDE]: Likewise.
66418         * time/tst-mktime2.c: Likewise for INT_MAX.
66419         * string/test-string.h: #include <sys/param.h> for MIN.
66420
66421         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66422         * sysdeps/i386/init-first.c (init): Likewise.
66423         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66424         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66425         * sysdeps/sh/init-first.c (init): Likewise.
66426
66427 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66428
66429         * po/ru.po: Update from translation team.
66430         * po/vi.po: Likewise.
66431
66432 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66433
66434         * resolv/nss_dns/dns-host.c: Merge copyright years.
66435
66436 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66437
66438         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66439         Optimize memcpy with prefetch if
66440         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66441         src, dst pointers have unequal 16 byte alignments.
66442
66443 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66444
66445         [BZ #13928]
66446         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66447         from a CNAME entry and return the minimum ttl for the query.
66448         (gaih_getanswer_slice): Likewise.
66449
66450 2012-03-30  Jeff Law  <law@redhat.com>
66451
66452         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66453         due to long keys.
66454         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66455         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66456
66457         * resolv/nss_dns/dns-host.c: Update copyright year.
66458
66459 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66460
66461         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66462         requests to save a system call.  Fix check that all bytes are sent.
66463
66464         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66465         comments for sendmmsg.
66466
66467 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66468
66469         [BZ #13691]
66470         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66471         with only 1 character between 0x0041 and 0x01b0.
66472         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66473         * wcsmbs/tst-mbsnrtowcs.c: New file.
66474
66475 2012-03-29  David S. Miller  <davem@davemloft.net>
66476
66477         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66478         small copies by hand.
66479
66480 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66481
66482         [BZ #13761]
66483         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66484         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66485         group memberships.
66486
66487 2012-03-28  David S. Miller  <davem@davemloft.net>
66488
66489         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66490         that branches into memcpy.
66491         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66492         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66493         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66494         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66495         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66496         bits.
66497         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66498         implementation too.
66499         * sysdeps/sparc/mempcpy.S: New file.
66500
66501         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66502         the IFUNC routine in the libc case.
66503         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66504
66505         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66506         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66507         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66508         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66509         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66510         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66511         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66512         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66513
66514         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66515         loop to 256 bytes instead of 64 bytes and fix test signedness.
66516
66517         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66518         * sysdeps/sparc/sparc32/Makefile: rather than here...
66519         * sysdeps/sparc/sparc64/Makefile: and here.
66520
66521 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66522
66523         * malloc/mallocbug.c: Avoid warnings about unused variables.
66524
66525 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66526
66527         [BZ #13760]
66528         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66529         in the right place. Discard and retry query if response is
66530         larger than input buffer size.
66531
66532 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66533
66534         [BZ #369]
66535         [BZ #2678]
66536         [BZ #3866]
66537         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66538         x for large integer exponent.
66539         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66540         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66541         sign of result as needed afterwards.
66542         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66543         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66544         result for underflowing pow the same as for overflow.
66545         (__kernel_standard_l): Handle powl overflow and underflow here
66546         rather than calling __kernel_standard.
66547         * math/libm-test.inc (pow_test): Add more tests.
66548
66549         [BZ #3868]
66550         [BZ #13879]
66551         [BZ #13910]
66552         [BZ #13911]
66553         [BZ #13912]
66554         [BZ #13913]
66555         [BZ #13915]
66556         [BZ #13916]
66557         [BZ #13917]
66558         [BZ #13918]
66559         [BZ #13919]
66560         [BZ #13920]
66561         [BZ #13921]
66562         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66563         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66564         (__kernel_standard_l): New function.
66565         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66566         __kernel_standard.
66567         * math/w_acosl.c (__acosl): Likewise.
66568         * math/w_asinl.c (__asinl): Likewise.
66569         * math/w_atan2l.c (__atan2l): Likewise.
66570         * math/w_atanhl.c (__atanhl): Likewise.
66571         * math/w_coshl.c (__coshl): Likewise.
66572         * math/w_exp10l.c (__exp10l): Likewise.
66573         * math/w_exp2l.c (__exp2l): Likewise.
66574         * math/w_fmodl.c (__fmodl): Likewise.
66575         * math/w_hypotl.c (__hypotl): Likewise.
66576         * math/w_j0l.c (__j0l, __y0l): Likewise.
66577         * math/w_j1l.c (__j1l, __y1l): Likewise.
66578         * math/w_jnl.c (__jnl, __ynl): Likewise.
66579         * math/w_lgammal.c (__lgammal): Likewise.
66580         * math/w_log10l.c (__log10l): Likewise.
66581         * math/w_log2l.c (__log2l): Likewise.
66582         * math/w_logl.c (__logl): Likewise.
66583         * math/w_powl.c (__powl): Likewise.
66584         * math/w_remainderl.c (__remainderl): Likewise.
66585         * math/w_scalbl.c (sysv_scalbl): Likewise.
66586         * math/w_sinhl.c (__sinhl): Likewise.
66587         * math/w_sqrtl.c (__sqrtl): Likewise.
66588         * math/w_tgammal.c (__tgammal): Likewise.
66589         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66590         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66591         * math/libm-test.inc (acos_test): Add more tests.
66592         (acosh_test): Likewise.
66593         (asin_test): Likewise.
66594         (atanh_test): Likewise.
66595         (exp_test): Likewise.
66596         (exp10_test): Likewise.
66597         (exp2_test): Likewise.
66598         (expm1_test): Likewise.
66599         (lgamma_test): Likewise.
66600         (log_test): Likewise.
66601         (log10_test): Likewise.
66602         (log1p_test): Likewise.
66603         (log2_test): Likewise.
66604         (pow_test): Do not allow some spurious overflow exceptions.
66605         (sqrt_test): Add more tests.
66606         (tgamma_test): Likewise.
66607         (y0_test): Likewise.
66608         (y1_test): Likewise.
66609         (yn_test): Likewise.
66610
66611 2012-03-27  Anton Blanchard  <anton@samba.org>
66612
66613         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66614         MAP_HUGETLB.
66615         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66616         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66617         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66618
66619 2012-03-27  David S. Miller  <davem@davemloft.net>
66620
66621         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66622
66623         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66624         have-as-vis3 check.
66625
66626 2012-03-27  Andreas Jaeger  <aj@suse.de>
66627
66628         * sysdeps/x86_64/elf/configure.in: Moved to ...
66629         * sysdeps/x86_64/configure.in: ... here.
66630         * sysdeps/x86_64/elf/start.S: Moved to ...
66631         * sysdeps/x86_64/start.S: ... here.
66632         * sysdeps/x86_64/elf/configure: Delete.
66633
66634         * sysdeps/x86_64/configure.in: Merge contents from
66635         sysdeps/i386/configure.in (without i686 check).
66636
66637         * sysdeps/i386/elf/Versions: Merge into ...
66638         * sysdeps/i386/Versions: ... this.
66639         * sysdeps/i386/elf/Versions: Delete file.
66640         * sysdeps/i386/elf/start.S: Moved to ...
66641         * sysdeps/i386/start.S: ...here.
66642         * sysdeps/i386/elf/configure.in: Merge into...
66643         * sysdeps/i386/configure.in: ...here.
66644         * sysdeps/i386/elf/configure.in: Delete file.
66645         * sysdeps/i386/elf/configure: Delete file.
66646
66647         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66648         * debug/backtracesyms.c: ... here.
66649         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66650         * debug/backtracesymsfd.c: ... here.
66651         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66652         * sysdeps/generic/ifunc-sel.h: ... here.
66653
66654         * sysdeps/unix/i386/start.c: Delete file.
66655         * sysdeps/unix/sparc/start.c: Delete file.
66656         * sysdeps/unix/start.c: Delete file.
66657
66658         * sysdeps/sh/elf/configure.in: Moved to ...
66659         * sysdeps/sh/configure.in: ... here.
66660         * sysdeps/sh/elf/start.S: Moved to ...
66661         * sysdeps/sh/start.S: ... here.
66662         * sysdeps/sh/elf/configure: Delete file.
66663
66664         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66665         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66666         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66667         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66668         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66669         * sysdeps/powerpc/powerpc64/start.S: here.
66670         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66671         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66672         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66673         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66674         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66675
66676         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66677         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66678         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66679         * sysdeps/powerpc/powerpc32/start.S: ... here.
66680         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66681         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66682         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66683
66684         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66685         * sysdeps/powerpc/ifunc-sel.h: ... here.
66686         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66687         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66688
66689         * sysdeps/sparc/elf/configure.in: Moved to ...
66690         * sysdeps/sparc/configure.in: ... here.
66691         * sysdeps/sparc/elf/configure: Delete file.
66692         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66693         * sysdeps/sparc/sparc32/start.S: ... here.
66694         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66695         * sysdeps/sparc/sparc64/start.S: ... here.
66696         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66697         * sysdeps/sparc/sparc32/Makefile: ... this.
66698         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66699         * sysdeps/sparc/sparc64/Makefile: ... this.
66700
66701         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66702         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66703         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66704         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66705         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66706         * sysdeps/s390/s390-32/setjmp.S: ... here.
66707         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66708         * sysdeps/s390/s390-32/configure.in: ... here.
66709         * sysdeps/s390/s390-32/elf/configure: Delete file.
66710         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66711         * sysdeps/s390/s390-32/start.S: ... here.
66712
66713         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66714         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66715         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66716         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66717         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66718         * sysdeps/s390/s390-64/setjmp.S: ... here.
66719         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66720         * sysdeps/s390/s390-64/configure.in: ... here
66721         * sysdeps/s390/s390-64/elf/configure: Delete file.
66722         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66723         * sysdeps/s390/s390-64/start.S: ... here.
66724         * sysdeps/s390/s390-64/elf/configure: Delete.
66725
66726         * configure.in: Remove support for elf directories in sysdeps.
66727
66728         * configure: Regenerated.
66729         * sysdeps/i386/configure: Regenerated.
66730         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66731         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66732         * sysdeps/s390/s390-32/configure: Regenerated.
66733         * sysdeps/s390/s390-64/configure: Regenerated.
66734         * sysdeps/sh/configure: Regenerated.
66735         * sysdeps/sparc/configure: Regenerated.
66736         * sysdeps/x86_64/configure: Regenerated.
66737
66738 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66739
66740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66741
66742         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66743         denormal result into account.
66744
66745 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66746
66747         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66748         Reported by Allan McRae <allan@archlinux.org>.
66749
66750 2012-03-23  Jeff Law  <law@redhat.com>
66751
66752         * nss/getnssent.c (__nss_getent): Fix typo.
66753
66754 2012-03-23  David S. Miller  <davem@davemloft.net>
66755
66756         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66757
66758 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66759
66760         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66761         to pad to uint64_t for each field.
66762         (dl_tls_index): Replace unsigned long with uint64_t.
66763
66764 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66765         Paul Pluzhnikov  <ppluzhnikov@google.com>
66766
66767         [BZ #6528]
66768         * grp/Makefile (otherlibs): Don't set it.
66769         * inet/Makefile (otherlibs): Likewise.
66770         * login/Makefile (otherlibs): Likewise.
66771         * nscd/Makefile (otherlibs): Likewise.
66772         * posix/Makefile (otherlibs): Likewise.
66773         * pwd/Makefile (otherlibs): Likewise.
66774         * rt/Makefile (otherlibs): Likewise.
66775         * sunrpc/Makefile (otherlibs): Likewise.
66776         * nss/Makefile (otherlibs): Likewise.
66777         Add libnss_files to routines and static-only-routines.
66778         ($(objpfx)getent): Remove rule.
66779         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66780         static-only-routines.
66781
66782 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66783
66784         [BZ #13892]
66785         * math/s_cexp.c: Include <float.h>.
66786         (__cexp): Handle exp result overflowing not necessarily
66787         overflowing both real and imaginary parts of result.
66788         * math/s_cexpf.c: Likewise.
66789         * math/s_cexpl.c: Likewise.
66790         * math/libm-test.inc (cexp_test): Add more tests.
66791         * sysdeps/i386/fpu/libm-test-ulps: Update.
66792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66793
66794 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66795
66796         * include/link.h (ELFW): New macro.
66797         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66798         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66799
66800 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66801
66802         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66803         with uint64_t.
66804
66805 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66806
66807         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66808         declaration.
66809         (struct La_x32_retval): Likewise.
66810
66811 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66812
66813         * sysdeps/x86_64/preconfigure.in: New file.
66814         * sysdeps/x86_64/preconfigure: New generated file.
66815
66816 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66817
66818         [BZ #13824]
66819         * math/e_exp2l.c: Include <float.h>.
66820         (__ieee754_exp2l): Handle overflow and underflow cases
66821         separately.  Only pass fractional part of argument to
66822         __ieee754_expl.
66823         * math/libm-test.inc (exp2_test): Add more tests.
66824
66825         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66826         negating x to take absolute value.
66827         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66828         Likewise.
66829         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66830         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66831         Likewise.
66832         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66833         computing low part if x was negated.
66834         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66835
66836 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66837
66838         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66839         la_x32_gnu_pltexit.
66840         (pltexit): Cast int_retval to ptrdiff_t.
66841         * elf/tst-auditmod3b.c: Likewise.
66842         * elf/tst-auditmod4b.c: Likewise.
66843         * elf/tst-auditmod5b.c: Likewise.
66844         * elf/tst-auditmod6b.c: Likewise.
66845         * elf/tst-auditmod6c.c: Likewise.
66846         * elf/tst-auditmod7b.c: Likewise.
66847
66848         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66849         and x32_gnu_pltexit.
66850
66851         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66852         __ELF_NATIVE_CLASS.
66853         (La_x32_regs): New macro.
66854         (La_x32_retval): Likewise.
66855         (la_x32_gnu_pltenter): New function prototype.
66856         (la_x32_gnu_pltexit): Likewise.
66857
66858 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66859
66860         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66861         exponent.
66862
66863         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66864
66865         * configure.in (libc_cv_cc_nofma): Check for option to disable
66866         generation of FMA instructions.
66867         * configure: Regenerate.
66868         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66869         * sysdeps/ieee754/dbl-64/Makefile: New file.
66870         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66871         Remove brandred-fma4.
66872         (CFLAGS-brandred-fma4.c): Remove.
66873         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66874         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66875         define.
66876         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66877         define.
66878
66879 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66880
66881         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66882         LLONG_MAX != LONG_MAX.
66883         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66884         (_fitoa_word): Likewise.
66885         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66886         LLONG_MAX != LONG_MAX.
66887         * stdio-common/_itowa.h: Include <_itoa.h>.
66888         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66889         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66890         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66891         only if not defined.
66892         (_ITOA_WORD_TYPE): Likewise.
66893         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66894         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66895
66896 2012-03-21  David S. Miller  <davem@davemloft.net>
66897
66898         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66899
66900 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66901
66902         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66903         of x86_64 when setting libc_cv_slibdir, libdir and
66904         libc_cv_localedir.
66905         * sysdeps/unix/sysv/linux/configure: Regenerated.
66906
66907 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66908
66909         * manual/lang.texi (Old Varargs): Remove section.
66910         (How Variadic): Update menu.
66911         (va_start): Do not mention varargs.h.
66912
66913 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66914             Joseph Myers  <joseph@codesourcery.com>
66915
66916         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66917         link test.
66918         * configure: Regenerated.
66919
66920 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66921
66922         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66923         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66924         conformtest.pl
66925
66926 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66927
66928         * NOTES: Remove.
66929         * Makefile (files-for-dist): Remove NOTES.
66930         (NOTES): Remove rule.
66931         * README: Don't refer to NOTES.
66932         * manual/creature.texi: Don't include macros.texi.
66933         * manual/intro.texi (creature.texi): Remove comment referring to
66934         NOTES.
66935
66936         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66937         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66938         * configure: Regenerated.
66939         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66940         LIBC_TRY_CC_OPTION.
66941         (libc_cv_as_i686): Likewise.
66942         (libc_cv_cc_avx): Likewise.
66943         (libc_cv_cc_sse2avx): Likewise.
66944         (libc_cv_cc_fma4): Likewise.
66945         (libc_cv_cc_novzeroupper): Likewise.
66946         * sysdeps/i386/configure: Regenerated.
66947
66948         [BZ #13883]
66949         * sysdeps/i386/fpu/s_cexp.S: Remove.
66950         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66951         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66952         * math/libm-test.inc (cexp_test): Add more tests.
66953         * sysdeps/i386/fpu/libm-test-ulps: Update.
66954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66955
66956 2012-03-21  Allan McRae  <allan@archlinux.org>
66957
66958         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66959
66960 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66961
66962         [BZ #13871]
66963         * math/w_exp2.c: Do not include <float.h>.
66964         (o_threshold, u_threshold): Remove.
66965         (__exp2): Calculate result before checking finiteness and calling
66966         __kernel_standard.
66967         * math/w_exp2f.c: Likewise.
66968         * math/w_exp2l.c: Likewise.
66969         * math/libm-test.inc (exp2_test): Require overflow exception for
66970         1e6 input.
66971
66972         [BZ #3866]
66973         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66974         range of signed 64-bit integers before using fistpll.  Remove
66975         checks for whether integers fit in mantissa bits.
66976         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66977         the range of signed 32-bit integers before using fistpl.  Remove
66978         checks for whether integers fit in mantissa bits.
66979         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66980         (__ieee754_powl): Test for y outside the range of signed 64-bit
66981         integers before using fistpll.  Reduce 64-bit values to 63-bit
66982         ones as needed.
66983         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66984         divide-by-zero is raised for zero to large negative powers.
66985         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66986         (__ieee754_powl): Test for y outside the range of signed 64-bit
66987         integers before using fistpll.  Reduce 64-bit values to 63-bit
66988         ones as needed.
66989         * math/libm-test.inc (pow_test): Add more tests.
66990
66991 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66992
66993         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66994         <stdio-common/_itoa.h>.
66995         * debug/segfault.c: Likewise.
66996         * elf/dl-cache.c: Likewise.
66997         * elf/dl-minimal.c: Likewise.
66998         * elf/dl-misc.c: Likewise.
66999         * elf/dl-sysdep.c: Likewise.
67000         * elf/dl-version.c: Likewise.
67001         * elf/rtld.c: Likewise.
67002         * hurd/hurdsock.c: Likewise.
67003         * hurd/lookup-retry.c: Likewise.
67004         * malloc/malloc.c: Likewise.
67005         * malloc/mtrace.c: Likewise.
67006         * nscd/nscd_getgr_r.c: Likewise.
67007         * nscd/nscd_getpw_r.c: Likewise.
67008         * nscd/nscd_getserv_r.c: Likewise.
67009         * posix/getopt_init.c: Likewise.
67010         * posix/wordexp.c: Likewise.
67011         * stdio-common/_itoa.c: Likewise.
67012         * stdio-common/printf_fphex.c: Likewise.
67013         * stdio-common/vfprintf.c: Likewise.
67014         * string/_strerror.c: Likewise.
67015         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
67016         * sysdeps/i386/i686/hp-timing.h: Likewise.
67017         * sysdeps/mach/_strerror.c: Likewise.
67018         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
67019         * sysdeps/mach/hurd/sethostid.c: Likewise.
67020         * sysdeps/mach/hurd/xmknodat.c: Likewise.
67021         * sysdeps/mach/xpg-strerror.c: Likewise.
67022         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
67023         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
67024         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
67025         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
67026         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
67027         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
67028         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
67029         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
67030         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
67031         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
67032         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
67033         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
67034         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
67035         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
67036         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
67037         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
67038         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
67039         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
67040         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
67041         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
67042         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
67043
67044         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
67045
67046         * stdio-common/_itoa.h: Moved to ...
67047         * sysdeps/generic/_itoa.h: Here.
67048
67049         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
67050
67051         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
67052         instead of "_itoa.h" and "_itowa.h".
67053         * stdio-common/vfprintf.: Likewise.
67054
67055 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
67056
67057         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
67058         <bits/wordsize.h>.
67059         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
67060         (__signbit): Likwise.
67061         (llrintf): Likwise.
67062         (llrint): Likwise.
67063
67064 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
67065
67066         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
67067         __WORDSIZE != 64.
67068
67069 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
67070
67071         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
67072         OVERFLOW_EXCEPTION_OK.
67073         * math/libm-test.inc ("Philosophy"): Update comment about
67074         exception testing.
67075         (OVERFLOW_EXCEPTION): Define.
67076         (OVERFLOW_EXCEPTION_OK): Likewise.
67077         (INVALID_EXCEPTION_OK): Renumber.
67078         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
67079         (IGNORE_ZERO_INF_SIGN): Likewise.
67080         (test_exceptions): Handle FE_OVERFLOW.
67081         (exp10_test): Expect overflow exceptions.
67082         (exp2_test): Likewise.
67083         (expm1_test): Likewise.
67084         (nextafter_test): Likewise.
67085         (pow_test): Likewise.
67086         (scalbn_test): Likewise.
67087         (scalbln_test): Likewise.
67088
67089 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67090
67091         * sysdeps/x86_64/bits/atomic.h
67092         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
67093         64bit integer.
67094         (atomic_exchange_acq): Likewise.
67095         (__arch_exchange_and_add_body): Likewise.
67096         (__arch_add_body): Likewise.
67097         (atomic_add_negative): Likewise.
67098         (atomic_add_zero): Likewise.
67099
67100 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67101
67102         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
67103         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
67104
67105 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67106
67107         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
67108         Check __x86_64__ instead of __WORDSIZE.
67109
67110 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67111
67112         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
67113
67114 2012-03-19  David S. Miller  <davem@davemloft.net>
67115
67116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67117
67118         * sysdeps/sparc/fpu/fenv_private.h: New file.
67119         * sysdeps/sparc/fpu/math_private.h: Use it.
67120         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
67121         Remove.
67122         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
67123         (libc_feholdexcept_setroundl): Remove.
67124         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
67125         Remove.
67126         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
67127         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
67128
67129 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67130
67131         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
67132         int64_t instead of long int.
67133         (INSERT_WORDS64): Likwise.
67134
67135 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67136
67137         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
67138         _Unwind_GetCFA return to _Unwind_Ptr first.
67139
67140 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
67141
67142         [BZ #13629]
67143         * math/s_clog.c: Include <float.h>.
67144         (__clog): Scale large or subnormal inputs.
67145         * math/s_clogf.c: Likewise.
67146         * math/s_clogl.c: Likewise.
67147         * math/s_clog10.c: Include <float.h>.
67148         (M_LOG10_2): Define.
67149         (__clog10): Scale large or subnormal inputs.
67150         * math/s_clog10f.c: Likewise.
67151         * math/s_clog10l.c: Likewise.
67152         * math/libm-test.inc (clog_test): Add more tests.
67153         (clog10_test): Likewise.
67154         * sysdeps/i386/fpu/libm-test-ulps: Update.
67155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67156
67157         [BZ #11451]
67158         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
67159         x and y.
67160         * math/libm-test.inc (atan2_test): Add another test.
67161
67162         * Makerules (common-objdir-compile): Remove.
67163         * sysdeps/unix/Makefile (config-generated): Do not add
67164         $(unix-generated) to variable.
67165         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
67166         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
67167         Remove rule.
67168         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
67169         Likewise.
67170         [generic bits/local_lim.h] (before-compile): Do not append to
67171         variable.
67172         [generic bits/local_lim.h] (common-generated): Likewise.
67173         [generic sys/param.h] (before-compile): Do not append to variable.
67174         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
67175         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
67176         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
67177         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
67178         include.
67179         [generic sys/param.h] (sys/param.h-includes): Remove variable.
67180         [generic sys/param.h] (sys/param.h-includes): Remove rule.
67181         [generic sys/param.h] ($(addprefix
67182         $(common-objpfx),$(sys/param.h-includes))): Likewise.
67183         [generic sys/param.h] (common-generated): Do not append to
67184         variable.
67185         [generic sys/param.h] (sysdep_headers): Likewise.
67186         [generic bits/errno.h] (before-compile): Do not append to
67187         variable.
67188         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
67189         rule.
67190         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
67191         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
67192         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
67193         [generic bits/errno.h] (common-generated): Do not append to
67194         variable.
67195         [generic bits/ioctls.h] (before-compile): Do not append to
67196         variable.
67197         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
67198         rule.
67199         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
67200         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67201         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67202         rule.
67203         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67204         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67205         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67206         [generic bits/ioctls.h] (common-generated): Do not append to
67207         variable.
67208         [generic sys/syscall.h] (syscall.h): Remove variable.
67209         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67210         rule.
67211         [generic sys/syscall.h] (before-compile): Do not append to
67212         variable.
67213         [generic sys/syscall.h] (common-generated): Likewise.
67214         * sysdeps/unix/errnos-tmpl.c: Remove file.
67215         * sysdeps/unix/errnos.awk: Likewise.
67216         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67217         * sysdeps/unix/ioctls.awk: Likewise.
67218         * sysdeps/unix/mk-local_lim.c: Likewise.
67219         * sysdeps/unix/snarf-ioctls: Likewise.
67220
67221 2012-03-19  Richard Henderson  <rth@twiddle.net>
67222
67223         * sysdeps/i386/fpu/fenv_private.h: New file.
67224         * sysdeps/i386/fpu/math_private.h: Use it.
67225         (math_opt_barrier, math_force_eval): Remove.
67226         (libc_feholdexcept_setround_53bit): Remove.
67227         (libc_feupdateenv_53bit): Remove.
67228         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67229         (math_opt_barrier, math_force_eval): Remove.
67230         (libc_feholdexcept): Remove.
67231         (libc_feholdexcept_setround): Remove.
67232         (libc_fetestexcept, libc_fesetenv): Remove.
67233         (libc_feupdateenv_test): Remove.
67234         (libc_feupdateenv, libc_feholdsetround): Remove.
67235         (libc_feresetround): Remove.
67236
67237         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67238         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67239
67240         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67241         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67242         (libc_feupdateenv_testl): New.
67243         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67244         (libc_feupdateenv_testf): New.
67245         (libc_feupdateenv): Use libc_feupdateenv_test.
67246         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67247         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67248
67249         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67250         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67251         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67252         (libc_feresetround_noex): New.
67253         (libc_feresetround_noexf): New.
67254         (libc_feresetround_noexl): New.
67255         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67256         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67257         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67258         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67259         SET_RESTORE_ROUND.
67260         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67261         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67262         (__cos): Likewise.
67263         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67264         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67265         SET_RESTORE_ROUND_NOEX.
67266         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67267         SET_RESTORE_ROUND_NOEXF.
67268         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67269         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67270         (libc_feholdsetroundf): New.
67271         (libc_feresetround, libc_feresetroundf): New.
67272
67273         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67274         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67275         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67276
67277         * sysdeps/generic/math_private.h: Include <fenv.h>.
67278         (default_libc_feholdexcept): New.
67279         (default_libc_feholdexcept_setround): New.
67280         (default_libc_fesetenv, default_libc_feupdateenv): New.
67281         (libc_feholdexcept): Only define if undefined.
67282         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67283         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67284         (libc_feholdexcept_setroundl): Likewise.
67285         (libc_feholdexcept_setround_53bit): Likewise.
67286         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67287         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67288         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67289         (libc_feupdateenv_53bit): Likewise.
67290         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67291         (libc_feholdexcept): Convert from macro to inline function.
67292         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67293         (libc_fesetenv, libc_feupdateenv): Likewise.
67294
67295         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67296         not previously defined.
67297         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67298         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67299         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67300         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67301         * sysdeps/ieee754/flt-32/math_private.h: New file.
67302         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67303         math_private.h below SET_FLOAT_WORD.
67304         (__isnan, __isinf_ns, __finite): Remove.
67305         (__isnanf, __isinf_nsf, __finitef): Remove.
67306
67307 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67308
67309         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67310
67311 2012-03-17  David S. Miller  <davem@davemloft.net>
67312
67313         [BZ #6471]
67314         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67315         for 2.16.
67316
67317 2012-03-16  David S. Miller  <davem@davemloft.net>
67318
67319         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67320         warnings.
67321
67322         [BZ #6471]
67323         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67324         properly.
67325         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67326         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67327         sysdep_routines when subdir is sysvipc.
67328         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67329         __getshmlba helper.
67330
67331         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67332
67333 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67334
67335         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67336         [__LP64__].
67337
67338 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67339
67340         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67341         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67342         (__lround): Renamed to ...
67343         (__llround): This.  Replace long int with long long int.
67344         Define lround functions as aliases of llround functions.
67345         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67346
67347 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67348
67349         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67350         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67351         adresses to uintptr_t.  Replace "long int" and "unsigned long
67352         int" with "greg_t" on va_arg.
67353
67354 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67355
67356         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67357         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67358
67359         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67360         Move e_machine check before EI_CLASS check.  Handle x32
67361         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67362         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67363         SKIP_EM_IA_64 and include
67364         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67365
67366         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67367         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67368         (add_system_dir): New macro.
67369
67370         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67371         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67372
67373 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67374
67375         [BZ #2551]
67376         [BZ #2552]
67377         [BZ #2553]
67378         [BZ #2554]
67379         [BZ #2562]
67380         [BZ #2563]
67381         [BZ #2565]
67382         [BZ #2566]
67383         [BZ #2576]
67384         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67385         (y0): Likewise.
67386         * math/w_j0f.c (j0f): Likewise.
67387         (y0f): Likewise.
67388         * math/w_j0l.c (__j0l): Likewise.
67389         (__y0l): Likewise.
67390         * math/w_j1.c (j1): Likewise.
67391         (y1): Likewise.
67392         * math/w_j1f.c (j1f): Likewise.
67393         (y1f): Likewise.
67394         * math/w_j1l.c (__j1l): Likewise.
67395         (__y1l): Likewise.
67396         * math/w_jn.c (jn): Likewise.
67397         (yn): Likewise.
67398         * math/w_jnf.c (jnf): Likewise.
67399         (ynf): Likewise.
67400         * math/w_jnl.c (__jnl): Likewise.
67401         (__ynl): Likewise.
67402         * math/libm-test.inc (j0_test): Add more tests.
67403         (j1_test): Likewise.
67404         (jn_test): Likewise.  Add trailing semicolon to existing test.
67405         (y0_test): Likewise.
67406         (y1_test): Likewise.
67407         * sysdeps/i386/fpu/libm-test-ulps: Update.
67408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67409
67410         [BZ #13851]
67411         [BZ #13854]
67412         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67413         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67414         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67415         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67416         (__tanl): Set errno for infinite argument.
67417         * sysdeps/i386/fpu/mptan.c: Remove.
67418         * sysdeps/i386/fpu/s_tan.S: Likewise.
67419         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67420         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67421         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67422         * math/libm-test.inc (tan_test): Add more tests and enable more
67423         tests for double and long double.
67424         * sysdeps/i386/fpu/libm-test-ulps: Update.
67425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67426
67427 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67428
67429         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67430         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67431
67432 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67433
67434         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67435         * configure.in: Use it for both main tree and add-ons.
67436         * configure: Regenerated.
67437
67438 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67439
67440         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67441
67442 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67443
67444         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67445         in comment.
67446
67447         [BZ #13851]
67448         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67449         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67450         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67451         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67452         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67453         infinite argument.
67454         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67455         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67456         != 0 for prec == 2.
67457         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67458         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67459         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67460         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67461         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67462         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67463         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67464         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67465         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67466         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67467         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67468         * math/libm-test.inc (cos_test): Add more tests and enable more
67469         tests for long double.
67470         (sin_test): Likewise.
67471         (sincos_test): Likewise.
67472         * sysdeps/i386/fpu/libm-test-ulps: Update.
67473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67474
67475 2012-03-16  David S. Miller  <davem@davemloft.net>
67476
67477         * sysdeps/sparc/fpu/math_private.h: New file.
67478
67479 2012-03-15  David S. Miller  <davem@davemloft.net>
67480
67481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67482         file.
67483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67485         file.
67486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67487         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67488         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67489         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67490         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67491         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67492         sysdep routines.
67493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67494
67495         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67496         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67497
67498         * sysdeps/sparc/sparc-ifunc.h: New file.
67499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67500         sparc-ifunc.h
67501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67503         Likewise.
67504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67505         Likewise.
67506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67510         Likewise.
67511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67516         Likewise.
67517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67518         Likewise.
67519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67523         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67524         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67525         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67526         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67527         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67528         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67530         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67531         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67532         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67533         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67534         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67535         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67536         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67537         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67538         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67539         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67540         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67541         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67542         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67543
67544 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67545
67546         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67547         scaling.
67548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67549
67550 2012-03-15  Andreas Jaeger  <aj@suse.de>
67551
67552         [BZ #13852]
67553         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67554         ieee754/flt-32 implementation for sin, cos and sincos.
67555         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67556         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67557         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67558         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67559         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67560         ieee754/flt-32 implementation for tan.
67561
67562         * math/libm-test.inc (cos_test): Enable some large input tests for
67563         float as well
67564         (sin_test): Likewise.
67565         (sincos_test): Likewise.
67566         (tan_test): Add tests for large input.
67567
67568         * sysdeps/i386/fpu/libm-test-ulps: Update.
67569
67570 2012-03-15  Andreas Jaeger  <aj@suse.de>
67571
67572         [BZ #13658]
67573         * math/libm-test.inc (cos_test): Add more test cases.
67574         (sin_test): Likewise.
67575         (sincos_test): Likewise.
67576
67577 2012-03-15  Andreas Jaeger  <aj@suse.de>
67578
67579         [BZ #13837]
67580         * math/libm-test.inc (cos_test): Add a test case for large input
67581         value.
67582         (sin_test): Likewise.
67583         (sincos_test): Likewise.
67584
67585 2012-03-15  Andreas Jaeger  <aj@suse.de>
67586             Joseph Myers  <joseph@codesourcery.com>
67587
67588         [BZ #13658]
67589         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67590         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67591         * sysdeps/i386/fpu/branred.c: Likewise.
67592         * sysdeps/i386/fpu/dosincos.c: Likewise.
67593         * sysdeps/i386/fpu/mpa.c: Likewise.
67594         * sysdeps/i386/fpu/s_cos.S: Likewise.
67595         * sysdeps/i386/fpu/s_sin.S: Likewise.
67596         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67597         * sysdeps/i386/fpu/sincos32.c: Likewise.
67598
67599         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67600         Define.
67601         (libc_feupdateenv_53bit): Define.
67602         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67603         Define.
67604         (libc_feupdateenv_53bit): Define.
67605
67606         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67607         53 bit (without extend i386 double precision).
67608
67609         * math/libm-test.inc (sincos_test): Add tests for large input.
67610         (sin): Likewise.
67611         (cos): Likewise.
67612
67613         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67614
67615 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67616
67617         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67618
67619 2012-03-15  David S. Miller  <davem@davemloft.net>
67620
67621         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67622         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67623         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67624         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67629         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67630         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67631         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67632         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67633         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67634         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67637         file.
67638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67640         file.
67641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67643         file.
67644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67646         file.
67647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67648         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67649         fmin/fmax sysdep routines.
67650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67651
67652 2012-03-14  David S. Miller  <davem@davemloft.net>
67653
67654         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67655         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67656         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67657         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67658         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67659         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67660         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67661         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67662         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67663         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67664         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67665         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67666         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67667         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67668         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67669         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67670         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67671         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67672         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67673         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67674         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67675         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67676         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67677         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67678         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67679         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67680         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67681         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67682         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67683         routines.
67684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67685         file.
67686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67688         file.
67689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67691         file.
67692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67694         file.
67695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67697         file.
67698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67700         file.
67701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67702         file.
67703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67704         file.
67705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67706         file.
67707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67708         New file.
67709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67710         file.
67711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67712         file.
67713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67715         file.
67716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67718         file.
67719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67721         file.
67722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67724         VIS3 routines.
67725
67726         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67727         New file.
67728
67729         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67730
67731         * sysdeps/sparc/configure.in: New file.
67732         * sysdeps/sparc/configure: Generate.
67733         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67734         * configure: Regenerate.
67735         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67736         * config.make.in (have-as-vis3): New.
67737         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67738         available use -Av9d instead of -Av9a.
67739         * sysdeps/sparc/sparc64/Makefile: Likewise.
67740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67742         New file.
67743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67744         file.
67745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67746         New file.
67747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67748         file.
67749         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67750         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67751         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67752         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67753         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67754
67755         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67756         fzeros/fnegs to load 0x80000000 into a float register instead of
67757         using the stack.
67758         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67759
67760 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67761
67762         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67763         bits/syscall.h.
67764         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67765         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67766         ($(inst_includedir)/bits/syscall.h): Remove rule.
67767         ($(objpfx)bits/syscall.d): Include instead of
67768         $(objpfx)syscall-list.d.
67769         (generated): Change syscall-list.h and syscall-list.d to
67770         bits/syscall.h and bits/syscall.d.
67771
67772 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67773
67774         [BZ #13846]
67775         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67776
67777 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67778
67779         [BZ #13841]
67780         * math/s_csqrt.c: Include <float.h>.
67781         (__csqrt): Scale large or subnormal inputs.
67782         * math/s_csqrtf.c: Likewise.
67783         * math/s_csqrtl.c: Likewise.
67784         * math/libm-test.inc (csqrt_test): Add more tests.
67785         * sysdeps/i386/fpu/libm-test-ulps: Update.
67786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67787
67788         [BZ #13840]
67789         * math/libm-test.inc (hypot_test): Add more tests.
67790
67791 2012-03-13  David S. Miller  <davem@davemloft.net>
67792
67793         [BZ #13840]
67794         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67795         double-precision for the calculation instead of scaling.
67796
67797 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67798
67799         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67800         manipulate bits before adding and subtracting TWO52[sx].
67801         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67802         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67803         Likewise.
67804         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67805
67806 2012-03-13  David S. Miller  <davem@davemloft.net>
67807
67808         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67809         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67810         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67811         rtld-global-offsets.h
67812         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67813
67814         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67815         large parameters.
67816
67817         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67818
67819         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67820         'err' in the ifdef scope in which it is actually used.
67821
67822         * nss/nss_db/db-init.c: Include string.h
67823
67824 2012-03-12  David S. Miller  <davem@davemloft.net>
67825
67826         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67827         masking out of the most significant byte of random value used.
67828         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67829         Fix coding style in previous change.
67830
67831         * sysdeps/unix/sysv/linux/kernel-features.h
67832         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67833         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67834         expression.
67835         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67836         later.
67837
67838 2012-03-11  David S. Miller  <davem@davemloft.net>
67839
67840         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67841         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67842         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67843         for 'resultvar' otherwise things get truncated on 64-bit.
67844
67845         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67846         Fix masking out of the most significant byte of random value used.
67847
67848         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67849
67850 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67851
67852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67853
67854 2012-03-09  David S. Miller  <davem@davemloft.net>
67855
67856         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67857         variables with appropriate CPP guards.
67858         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67859         from the frame pointer, not the stack pointer.  Correct layout
67860         comments.  Fix test on resulting framesize and the management of
67861         the outregs buffer for pltexit.  Preserve floating point return
67862         values across _dl_call_pltexit call.
67863         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67864         framesize and the management of the outregs buffer for pltexit.
67865         Preserve floating point return values across _dl_call_pltexit
67866         call.
67867         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67868         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67869         (la_sparc64_gnu_pltexit): New functions.
67870         (print_exit): Fix format string for return register value.
67871
67872 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67873
67874         * sunrpc/Makefile (others): Add rpcgen.
67875         ($(objpfx)rpcgen): Remove special build rule and dependency on
67876         libc.
67877         * sunrpc/rpcgen.c: New file.
67878
67879 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         [BZ #13673]
67882         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67883         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67884         * sysdeps/i386/crti.S: Likewise.
67885         * sysdeps/i386/crtn.S: Likewise.
67886         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67887         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67888         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67889         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67890         * sysdeps/sh/crti.S: Likewise.
67891         * sysdeps/sh/crtn.S: Likewise.
67892         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67893
67894         [BZ #13673]
67895         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67896         with URL.
67897         * locale/programs/locfile-kw.gperf: Likewise.
67898         * locale/programs/charmap-kw.h: Regenerated.
67899         * locale/programs/locfile-kw.h: Likewise.
67900
67901         [BZ #13673]
67902         * intl/plural.y: Replace FSF snail mail address with URL.
67903         * intl/plural.c: Regenerated.
67904
67905 2012-03-09  Richard Henderson  <rth@twiddle.net>
67906
67907         * include/math_private.h: Remove file.
67908         * math/math_private.h: Move file ...
67909         * sysdeps/generic/math_private.h: ... here.
67910
67911         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67912         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67913         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67914
67915         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67916         and <math_private.h>.
67917         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67918         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67919         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67920         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67921         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67922         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67923         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67924         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67925         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67926         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67927         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67928         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67929         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67930         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67931         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67932         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67933         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67934         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67935         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67936         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67937         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67938         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67939         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67940         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67941         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67942         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67943         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67944         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67945         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67946         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67947         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67948         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67949         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67950         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67951         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67952         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67953         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67954         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67955         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67956         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67957         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67958         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67959         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67960         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67961         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67962         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67963         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67964         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67965         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67966         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67967         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67968         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67969         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67970         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67971         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67972         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67973         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67974         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67975         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67976         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67977         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67978         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67979         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67980         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67981         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67982         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67983         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67984         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67985         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67986         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67987         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67988         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67989         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67990         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67991         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67992         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67993         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67994         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67995         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67996         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67997         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67998         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67999         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
68000         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
68001         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
68002         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
68003         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
68004         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
68005         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
68006         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
68007         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
68008         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
68009         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68010         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
68011         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
68012         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
68013         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
68014         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
68015         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
68016         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
68017         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
68018         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
68019         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
68020         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
68021         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
68022         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
68023         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
68024         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
68025         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
68026         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
68027         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
68028         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
68029         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
68030         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
68031         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
68032         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
68033         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
68034         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
68035         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
68036         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
68037         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
68038         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
68039         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
68040         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
68041         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
68042         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
68043         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
68044         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
68045         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
68046         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
68047         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
68048         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
68049         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
68050         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
68051         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
68052         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
68053         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
68054         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
68055         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
68056         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
68057         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
68058         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
68059         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
68060         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
68061         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
68062         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
68063         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
68064         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
68065         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
68066         * sysdeps/ieee754/k_standard.c: Likewise.
68067         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
68068         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
68069         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
68070         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
68071         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
68072         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
68073         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
68074         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
68075         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
68076         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
68077         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
68078         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
68079         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
68080         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
68081         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
68082         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
68083         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
68084         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
68085         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
68086         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
68087         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
68088         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
68089         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
68090         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
68091         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
68092         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
68093         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
68094         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
68095         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
68096         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
68097         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
68098         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
68099         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
68100         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
68101         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
68102         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
68103         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
68104         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
68105         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
68106         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
68107         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
68108         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
68109         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
68110         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
68111         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
68112         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
68113         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
68114         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
68115         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
68116         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
68117         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
68118         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
68119         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
68120         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
68121         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
68122         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
68123         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
68124         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
68125         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
68126         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
68127         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
68128         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
68129         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
68130         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
68131         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
68132         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
68133         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
68134         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
68135         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
68136         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
68137         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
68138         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
68139         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
68140         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
68141         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
68142         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
68143         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
68144         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
68145         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68146         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
68147         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
68148         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
68149         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
68150         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
68151         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
68152         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
68153         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
68154         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
68155         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
68156         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
68157         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
68158         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
68159         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
68160         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
68161         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
68162         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
68163         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
68164         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
68165         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
68166         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
68167         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
68168         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
68169         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
68170         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
68171         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
68172         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
68173         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
68174         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
68175         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
68176         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
68177         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
68178         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
68179         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
68180         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
68181         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
68182         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
68183         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
68184         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
68185         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
68186         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
68187         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
68188         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
68189         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
68190         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
68191         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
68192         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
68193         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
68194         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
68195         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
68196         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
68197         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
68198         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
68199         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
68200         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68201         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68202         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68203         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68204         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68205         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68206         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68207         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68208         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68209         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68210         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68211         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68212         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68213         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68214         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68215         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68216         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68217         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68218         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68219         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68220         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68221         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68222         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68223         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68224         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68225         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68226         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68227         * sysdeps/ieee754/s_lib_version.c: Likewise.
68228         * sysdeps/ieee754/s_matherr.c: Likewise.
68229         * sysdeps/ieee754/s_signgam.c: Likewise.
68230         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68231         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68232         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68233         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68234         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68235         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68236         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68237         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68238         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68239         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68240         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68241         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68242         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68243         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68244         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68245         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68246         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68247         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68248         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68249         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68250         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68251
68252 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68253
68254         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68255         * sunrpc/rpc_main.c: Likewise.
68256         * sunrpc/rpc_svcout.c: Likewise.
68257
68258 2012-03-09  David S. Miller  <davem@davemloft.net>
68259
68260         * include/math_private.h: New file.
68261
68262 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68263
68264         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68265         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68266         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68267         from <bits/socket_type.h>.
68268         (enum __socket_type): Don't define here.
68269         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68270         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68271         bits/socket_type.h.
68272
68273         [BZ #13566]
68274         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68275         checking __USE_GNU.
68276
68277         * Makerules ($(inst_includedir)/%.h): New rule.
68278         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68279         (install-others): Remove variable setting.
68280         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68281
68282 2012-03-08  Richard Henderson  <rth@twiddle.net>
68283
68284         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68285         from macro to inline function; merge with the
68286         !__LIBC_INTERNAL_MATH_INLINES version.
68287         (__ieee754_sqrtf): Likewise.
68288
68289         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68290         to inline function.
68291         (__rintf, __floor, __floorf): Likewise.
68292
68293         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68294         macro to inline function.
68295         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68296
68297         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68298         not <math/math_private.h>.
68299
68300 2012-03-08  David S. Miller  <davem@davemloft.net>
68301
68302         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68303         copyright year.
68304         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68305
68306 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68307
68308         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68309         normalization.
68310         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68311         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68312
68313 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68314
68315         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68316         be defined individually, they must be defined as a block.  Define
68317         S for printing a string instead of hidint the different by using a
68318         macro for adding the 'l'.
68319         * stdio-common/tst-fphex-wide.c: Adjust.
68320
68321 2012-03-07  Marek Polacek  <polacek@redhat.com>
68322
68323         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68324
68325 2012-03-08  Marek Polacek  <polacek@redhat.com>
68326
68327         [BZ #13806]
68328         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68329         * stdio-common/tst-fphex.c: Define a few macros to make the
68330         test reusable.  Use them.
68331         * stdio-common/tst-fphex-wide.c: New file.
68332
68333 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68334
68335         [BZ #6911]
68336         * manual/macros.texi (gnusystems): New macro.
68337         (nongnusystems): Likewise.
68338         (gnulinuxhurdsystems): Likewise.
68339         (gnuhurdsystems): Likewise..
68340         (gnulinuxsystems): Likewise.
68341         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68342         variants of the GNU system, not "GNU system".
68343         * manual/conf.texi: Likewise.
68344         * manual/errno.texi: Likewise.  Update example of errno macro
68345         expansion.
68346         * manual/filesys.texi: Likewise.
68347         (getumask): Document as specific to GNU/Hurd.
68348         * manual/install.texi: Likewise.  Reword some references to
68349         GNU/Linux.
68350         * manual/intro.texi: Likewise.
68351         * manual/io.texi: Likewise.
68352         (File Name Portability): Detail which constraints are inapplicable
68353         to all GNU systems and which are only inapplicable to GNU/Hurd.
68354         * manual/job.texi: Likewise.
68355         * manual/llio.texi: Likewise.
68356         (O_NOCTTY): Document as present on GNU/Linux.
68357         * manual/maint.texi: Likewise.
68358         * manual/memory.texi: Likewise.
68359         * manual/pattern.texi: Likewise.
68360         * manual/pipe.texi: Likewise.
68361         * manual/process.texi: Likewise.
68362         * manual/resource.texi: Likewise.
68363         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68364         child on GNU/Hurd.
68365         * manual/setjmp.texi: Likewise.
68366         * manual/signal.texi: Likewise.
68367         * manual/startup.texi: Likewise.
68368         * manual/stdio.texi: Likewise.
68369         * manual/terminal.texi: Likewise.
68370         (ONLCR): Document as POSIX.
68371         (OXTABS): Document availability on GNU/Linux as XTABS.
68372         (ONOEOT): Document availability separately from other bits.
68373         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68374         * manual/time.texi: Likewise.
68375         * manual/users.texi: Likewise.
68376         * INSTALL: Regenerated.
68377         * sysdeps/gnu/errlist.c: Regenerated.
68378
68379         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68380         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68381         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68382         puts.
68383         * configure: Regenerated.
68384
68385 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68386
68387         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68388         default includes instead of AC_HEADER_CHECK.
68389         * sysdeps/i386/configure: Regenerated.
68390
68391         [BZ #10716]
68392         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68393         * math/s_cacoshf.c (__cacoshf): Likewise.
68394         * math/s_cacoshl.c (__cacoshl): Likewise.
68395         * math/s_casinh.c (__casinh): Set signs of result from argument.
68396         * math/s_casinhf.c (__casinhf): Likewise.
68397         * math/s_casinhl.c (__casinhl): Likewise.
68398         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68399         (casinh_test): Add more tests.
68400         * sysdeps/i386/fpu/libm-test-ulps: Update.
68401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68402
68403 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68404
68405         * po/zh_TW.po: Update from translation team.
68406
68407         * login/Makefile (distribute): Remove variable.
68408         * catgets/Makefile: Likewise.
68409         * mach/Makefile: Likewise.
68410         * malloc/Makefile: Likewise.
68411         * misc/Makefile: Likewise.
68412         * iconv/Makefile: Likewise.
68413         * nscd/Makefile: Likewise.
68414         * hurd/Makefile: Likewise.
68415         * manual/Makefile: Likewise.
68416         * locale/Makefile: Likewise.
68417         * intl/Makefile: Likewise.
68418         * conform/Makefile: Likewise.
68419         * nss/Makefile: Likewise.
68420         * time/Makefile: Likewise.
68421         * soft-fp/Makefile: Likewise.
68422         * dirent/Makefile: Likewise.
68423         * gmon/Makefile: Likewise.
68424         * po/Makefile: Likewise.
68425         * rt/Makefile: Likewise.
68426         * socket/Makefile: Likewise.
68427         * math/Makefile: Likewise.
68428         * signal/Makefile: Likewise.
68429         * debug/Makefile: Likewise.
68430         * elf/Makefile: Likewise.
68431         * timezone/Makefile: Likewise.
68432         * stdlib/Makefile: Likewise.
68433         * iconvdata/Makefile: Likewise.
68434         * sunrpc/Makefile: Likewise.
68435         * io/Makefile: Likewise.
68436         * argp/Makefile: Likewise.
68437         * inet/Makefile: Likewise.
68438         * hesiod/Makefile: Likewise.
68439         * grp/Makefile: Likewise.
68440         * csu/Makefile: Likewise.
68441         * wctype/Makefile: Likewise.
68442         * crypt/Makefile: Likewise.
68443         * libio/Makefile: Likewise.
68444         * string/Makefile: Likewise.
68445         * nis/Makefile: Likewise.
68446         * resolv/Makefile: Likewise.
68447         * stdio-common/Makefile: Likewise.
68448         * wcsmbs/Makefile: Likewise.
68449         * dlfcn/Makefile: Likewise.
68450         * posix/Makefile: Likewise.
68451
68452         [BZ #6959]
68453         * timezone/Makefile: Don't install timezone files, just the programs
68454         and scripts.
68455
68456 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68457
68458         * nss/databases.def: Add missing gshadow entry.
68459
68460         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68461
68462 2012-03-06  Marek Polacek  <polacek@redhat.com>
68463
68464         [BZ #13726]
68465         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68466         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68467         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68468         * stdio-common/tst-long-dbl-fphex.c: New file.
68469
68470 2012-03-06  David S. Miller  <davem@davemloft.net>
68471
68472         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68473         (set_obp_int): New function.
68474         (get_obp_int): New function.
68475         (__get_clockfreq_via_dev_openprom): Likewise.
68476         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68477         Avoid unused variable warnings on 'val' and use builtin_expect.
68478         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68479         __builtin_expect.
68480         (INLINE_CLONE_SYSCALL): Likewise.
68481
68482 2012-03-05  David S. Miller  <davem@davemloft.net>
68483
68484         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68485
68486 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68487
68488         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68489
68490         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68491         only for |x| >= 40.
68492         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68493
68494 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68495
68496         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68497         Replace gettimeofday with __vdso_gettimeofday.
68498
68499         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68500         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68501         __vdso_clock_gettime and __vdso_getcpu.
68502
68503         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68504         time with __vdso_time.
68505
68506 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68507
68508         * manual/lang.texi (size_t): Note types to which size_t may be
68509         equivalent with the GNU C Library, but do not describe when
68510         differences between them are significant.
68511
68512 2012-03-05  Andreas Jaeger  <aj@suse.de>
68513
68514         * sysdeps/i386/fpu/libm-test-ulps: Update.
68515
68516 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68517
68518         [BZ #3976]
68519         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68520         (__ieee754_pow): Save and restore rounding mode and use
68521         round-to-nearest for main computations.
68522         * math/libm-test.inc (pow_test_tonearest): New function.
68523         (pow_test_towardzero): Likewise.
68524         (pow_test_downward): Likewise.
68525         (pow_test_upward): Likewise.
68526         (main): Call the new functions.
68527         * sysdeps/i386/fpu/libm-test-ulps: Update.
68528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68529
68530         [BZ #3976]
68531         * math/libm-test.inc (cosh_test_tonearest): New function.
68532         (cosh_test_towardzero): Likewise.
68533         (cosh_test_downward): Likewise.
68534         (cosh_test_upward): Likewise.
68535         (sinh_test_tonearest): Likewise.
68536         (sinh_test_towardzero): Likewise.
68537         (sinh_test_downward): Likewise.
68538         (sinh_test_upward): Likewise.
68539         (main): Call the new functions.
68540         * sysdeps/i386/fpu/libm-test-ulps: Update.
68541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68542
68543 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68544
68545         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68546         default stack guard is set in last bytes.
68547         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68548
68549 2012-03-05  Kees Cook  <keescook@chromium.org>
68550
68551         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68552
68553         [BZ #13656]
68554         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68555         possibly allocate from heap instead of stack.
68556         * stdio-common/bug-vfprintf-nargs.c: New file.
68557         * stdio-common/Makefile (tests): Add nargs overflow test.
68558
68559 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68560
68561         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68562
68563 2012-03-03  Marek Polacek  <polacek@redhat.com>
68564
68565         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68566         * math/math_private.h: Likewise.
68567         * stdlib/tst-strtod.c: Likewise.
68568         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68569         * sysdeps/x86_64/bits/atomic.h: Likewise.
68570
68571 2012-03-02  David S. Miller  <davem@davemloft.net>
68572
68573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68577         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68578         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68579         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68580         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68581
68582 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68583
68584         [BZ #13792]
68585         * manual/examples/README: New file, says the example source files
68586         can be used under GPL>=2.
68587         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68588         line containing just "*/".
68589         * manual/examples/add.c: Add copyright header (GPL>=2).
68590         * manual/examples/argp-ex1.c: Likewise.
68591         * manual/examples/argp-ex2.c: Likewise.
68592         * manual/examples/argp-ex3.c: Likewise.
68593         * manual/examples/argp-ex4.c: Likewise.
68594         * manual/examples/atexit.c: Likewise.
68595         * manual/examples/db.c: Likewise.
68596         * manual/examples/dir.c: Likewise.
68597         * manual/examples/dir2.c: Likewise.
68598         * manual/examples/execinfo.c: Likewise.
68599         * manual/examples/filecli.c: Likewise.
68600         * manual/examples/filesrv.c: Likewise.
68601         * manual/examples/fmtmsgexpl.c: Likewise.
68602         * manual/examples/genpass.c: Likewise.
68603         * manual/examples/inetcli.c: Likewise.
68604         * manual/examples/inetsrv.c: Likewise.
68605         * manual/examples/isockad.c: Likewise.
68606         * manual/examples/longopt.c: Likewise.
68607         * manual/examples/memopen.c: Likewise.
68608         * manual/examples/memstrm.c: Likewise.
68609         * manual/examples/mkfsock.c: Likewise.
68610         * manual/examples/mkisock.c: Likewise.
68611         * manual/examples/mygetpass.c: Likewise.
68612         * manual/examples/pipe.c: Likewise.
68613         * manual/examples/popen.c: Likewise.
68614         * manual/examples/rprintf.c: Likewise.
68615         * manual/examples/search.c: Likewise.
68616         * manual/examples/select.c: Likewise.
68617         * manual/examples/setjmp.c: Likewise.
68618         * manual/examples/sigh1.c: Likewise.
68619         * manual/examples/sigusr.c: Likewise.
68620         * manual/examples/stpcpy.c: Likewise.
68621         * manual/examples/strdupa.c: Likewise.
68622         * manual/examples/strftim.c: Likewise.
68623         * manual/examples/strncat.c: Likewise.
68624         * manual/examples/subopt.c: Likewise.
68625         * manual/examples/swapcontext.c: Likewise.
68626         * manual/examples/termios.c: Likewise.
68627         * manual/examples/testopt.c: Likewise.
68628         * manual/examples/testpass.c: Likewise.
68629         * manual/examples/timeval_subtract.c: Likewise.
68630
68631         [BZ #13792]
68632         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68633         function to ...
68634         * manual/timeval_subtract.c.texi: ... here, new file.
68635
68636 2012-03-02  David S. Miller  <davem@davemloft.net>
68637
68638         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68639
68640 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68641
68642         [BZ #3976]
68643         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68644         (__sin): Save and restore rounding mode and use round-to-nearest
68645         for all computations.
68646         (__cos): Save and restore rounding mode and use round-to-nearest
68647         for all computations.
68648         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68649         <fenv.h>.
68650         (tan): Save and restore rounding mode and use round-to-nearest for
68651         all computations.
68652         * math/libm-test.inc (cos_test_tonearest): New function.
68653         (cos_test_towardzero): Likewise.
68654         (cos_test_downward): Likewise.
68655         (cos_test_upward): Likewise.
68656         (sin_test_tonearest): Likewise.
68657         (sin_test_towardzero): Likewise.
68658         (sin_test_downward): Likewise.
68659         (sin_test_upward): Likewise.
68660         (tan_test_tonearest): Likewise.
68661         (tan_test_towardzero): Likewise.
68662         (tan_test_downward): Likewise.
68663         (tan_test_upward): Likewise.
68664         (main): Call the new functions.
68665         * sysdeps/i386/fpu/libm-test-ulps: Update.
68666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68667
68668         [BZ #10135]
68669         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68670         small n, then large n, before computing and testing k+n.
68671         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68672         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68673         Likewise.
68674         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68675         Likewise.
68676         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68677         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68678         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68679         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68680         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68681         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68682         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68683         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68684         * math/libm-test.inc (scalbn_test): Add more tests.
68685         (scalbln_test): Likewise.
68686
68687         * manual/filesys.texi (mode_t): Describe constraints on size and
68688         signedness, not exact equivalence to a particular type.
68689         (ino_t): Likewise.
68690         (ino64_t): Likewise.
68691         (dev_t): Likewise.
68692         (nlink_t): Likewise.
68693         (blkcnt_t): Likewise.
68694         (blkcnt64_t): Likewise.
68695         * manual/llio.texi (off_t): Likewise.
68696
68697         [BZ #3976]
68698         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68699         (__ieee754_exp): Save and restore rounding mode and use
68700         round-to-nearest for all computations.
68701         * math/libm-test.inc (exp_test_tonearest): New function.
68702         (exp_test_towardzero): Likewise.
68703         (exp_test_downward): Likewise.
68704         (exp_test_upward): Likewise.
68705         (main): Call the new functions.
68706         * sysdeps/i386/fpu/libm-test-ulps: Update.
68707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68708
68709 2012-03-01  Chris Demetriou  <cgd@google.com>
68710
68711         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68712         have predictable order.
68713
68714 2012-03-01  David S. Miller  <davem@davemloft.net>
68715
68716         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68717
68718         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68719         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68720         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68721         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68722
68723         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68724         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68725         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68726         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68727         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68728         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68729         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68730         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68731         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68732
68733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68734
68735         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68736         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68737         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68738
68739         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68740         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68741         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68742         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68743         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68744         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68745         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68746         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68747         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68748         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68749         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68750         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68752         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68753         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68754         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68755         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68756         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68757         * sysdeps/sparc/elf/configure: Regenerated.
68758
68759 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68760
68761         * configure.in (AS, LD): Require binutils 2.20 or later.
68762         * configure: Regenerated.
68763         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68764         as required minimum version.
68765         * INSTALL: Regenerated.
68766
68767         [BZ #2541]
68768         [BZ #4108]
68769         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68770         before squaring exponent.
68771         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68772         bottom long double and 27 bits of top long double before squaring
68773         exponent.
68774         * math/libm-test.inc (erfc_test): Add more tests.
68775         * sysdeps/i386/fpu/libm-test-ulps: Update.
68776         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68778
68779 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68780
68781         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68782         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68783         containing bit-fields.
68784         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68785         * soft-fp/single.h (_FP_UNION_S): Likewise.
68786         * soft-fp/double.h (_FP_UNION_D): Likewise.
68787
68788 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68789
68790         [BZ #13786]
68791         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68792         not include ../strcmp.S.
68793         [USE_AS_STRNCASECMP_L]: Likewise.
68794         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68795         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68796         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68797         (__strncasecmp_l_ia32): Define as alias to
68798         __strncasecmp_l_nonascii.
68799
68800         [BZ #5794]
68801         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68802         * sysdeps/i386/fpu/libm-test-ulps: Update.
68803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68804
68805         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68807
68808 2012-02-29  Jeff Law  <law@redhat.com>
68809
68810         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68811         out of bounds read.
68812
68813 2012-02-29  Marek Polacek  <polacek@redhat.com>
68814
68815         [BZ #13706]
68816         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68817         * elf/Makefile: Add rules to run tst-unused-dep.out.
68818
68819 2012-02-28  David S. Miller  <davem@davemloft.net>
68820
68821         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68822         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68823         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68824         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68825         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68826         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68827
68828 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68829
68830         * math/libm-test.inc (llround_test): Move one test from
68831         lround_test.  Use TEST_f_L in moved test.
68832         (lround_test): Move misplaced test to llround_test.  Add testcase
68833         from bug 2561.
68834
68835 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68836
68837         * sysdeps/x86_64/fpu/e_expf.S: New file.
68838         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68839
68840 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68841
68842         [BZ #13637]
68843         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68844         of remain_len that may cause incomplete multi-byte character and
68845         false match.
68846         * posix/bug-regex33.c: New file.
68847         * posix/Makefile (tests): Add bug-regex33.
68848
68849 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68850
68851         * manual/macros.texi: New file.
68852         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68853         * manual/libc.texinfo: Include macros.texi.
68854         * manual/creatute.texi: Likewise.
68855         * manual/install.texi: Likewise.
68856         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68857         @glibcadj{} in references to the GNU C Library.
68858         * manual/charset.texi: Likewise.
68859         * manual/conf.texi: Likewise.
68860         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68861         when not using those macros.
68862         * manual/creature.texi: Likewise.
68863         * manual/crypt.texi: Likewise.
68864         * manual/errno.texi: Likewise.
68865         * manual/filesys.texi: Likewise.
68866         * manual/header.texi: Likewise.
68867         * manual/install.texi: Likewise.
68868         * manual/intro.texi: Likewise.
68869         * manual/io.texi: Likewise.
68870         * manual/job.texi: Likewise.
68871         * manual/lang.texi: Likewise.
68872         * manual/libc.texiinfo: Likewise.
68873         * manual/llio.texi: Likewise.
68874         * manual/locale.texi: Likewise.
68875         * manual/maint.texi: Likewise.
68876         * manual/math.texi: Likewise.
68877         * manual/memory.texi: Likewise.
68878         * manual/message.texi: Likewise.
68879         * manual/nss.texi: Likewise.
68880         * manual/pattern.texi: Likewise.
68881         * manual/process.texi: Likewise.
68882         * manual/resource.texi: Likewise.
68883         * manual/search.texi: Likewise.
68884         * manual/setjmp.texi: Likewise.
68885         * manual/signal.texi: Likewise.
68886         * manual/socket.texi: Likewise.
68887         * manual/startup.texi: Likewise.
68888         * manual/stdio.texi: Likewise.
68889         * manual/string.texi: Likewise.
68890         * manual/sysinfo.texi: Likewise.
68891         * manual/syslog.texi: Likewise.
68892         * manual/terminal.texi: Likewise.
68893         * manual/time.texi: Likewise.
68894         * manual/users.texi: Likewise.
68895         * INSTALL: Regenerated.
68896         * NOTES: Regenerated.
68897         * sysdeps/gnu/errlist.c: Regenerated.
68898
68899 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68900
68901         * include/dirent.h: Include <dirstream.h> before
68902         <dirent/dirent.h>.
68903
68904 2012-02-28  David S. Miller  <davem@davemloft.net>
68905
68906         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68907         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68908         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68909         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68910
68911 2012-02-27  David S. Miller  <davem@davemloft.net>
68912
68913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68915         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68916         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68917
68918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68919         frame pointer instead of stack pointer relative arg slot.
68920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68921         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68922         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68923
68924 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68925
68926         [BZ #3992]
68927         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68928
68929 2012-02-27  David S. Miller  <davem@davemloft.net>
68930
68931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68935         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68936         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68937         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68938         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68939
68940 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68941
68942         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68943         later.  Allow versions 5-9.
68944         * configure: Regenerated.
68945         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68946         required minimum version and 4.6 as recommended version.  Do not
68947         mention bugs in GCC 2.7 and 2.8.
68948         * INSTALL: Regenerated.
68949
68950 2012-02-27  David S. Miller  <davem@davemloft.net>
68951
68952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68956         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68957         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68958         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68959         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68960
68961         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68962         manipulate bits before adding and subtracting TWO112[sx].
68963         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68964
68965 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68966
68967         [BZ #13775]
68968         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68969         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68970         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68971         being in POSIX, because they are in 1003.1-2008.
68972
68973         * rt/tst-aio.c: Include <fcntl.h>.
68974         * rt/tst-aio7.c: Likewise.
68975         * rt/tst-aio64.c: Likewise.
68976
68977         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68978
68979 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68980
68981         * manual/install.texi (--with-headers): Describe headers as
68982         interface headers, not private headers.
68983         (Specific advice for GNU/Linux systems): Describe use of headers
68984         from "make headers_install", not private headers from older
68985         kernels.
68986         * INSTALL: Regenerated.
68987         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68988         Change to 2.6.19.
68989         * sysdeps/unix/sysv/linux/configure: Regenerated.
68990
68991         * manual/llio.texi (fclean): Remove documentation.
68992
68993         * manual/Makefile (libc-texi-generated): New variable.  Include
68994         version.texi.
68995         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68996         $(libc-texi-generated), not duplicated list of files.
68997         (version.texi, stamp-version): New rules.
68998         (realclean): Remove $(libc-texi-generated), not individual files
68999         from that list.  Do not remove dir-add.texinfo.
69000         * manual/libc.texinfo: Comment out uses of edition numbers and
69001         references to printed manual.  Remove last-updated dates.
69002         (EDITION): Comment out.
69003         (ISBN): Likewise.
69004         (VERSION, UPDATED): Remove.
69005         (version.texi): Include.
69006
69007 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
69008
69009         * sysdeps/posix/spawni.c: Include <signal.h>.
69010         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
69011         * sysdeps/pthread/aio_fsync.c: Likewise.
69012
69013 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
69014
69015         * conform/Makefile (tests): Run only when not cross-compiling and
69016         when fast-check is not defined.
69017
69018         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
69019         * conform/data/limits.h-data: Fixes for POSIX2008.
69020         * conform/run-conformtest.sh: Run all tests.
69021         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
69022         headers.
69023         * include/bits/dlfcn.h: Likewise.
69024         * include/langinfo.h: Likewise.
69025         * include/monetary.h: Likewise.
69026         * include/sys/poll.h: Likewise.
69027
69028         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
69029         for __USE_GNU.
69030         * posix/spawn.h: Define __need_sigset_t.
69031         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
69032         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
69033         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
69034         to get sigevent_t only.
69035         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
69036         only for __USE_GNU.
69037         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69038         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
69039         process_vm_writev only for __USE_GNU.
69040         * termios/termios.h: Declare tcgetsid also for POSIX2008.
69041
69042         * conform/Makefile: For now ignore errors from run-conformtest.
69043         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
69044         POSIX to avoid namespace pollution.  Don't prepend headers.
69045         * conform/data/aio.h-data: Fixes for POSIX testing.
69046         * conform/data/fcntl.h-data: Likewise.
69047         * conform/data/glob.h-data: Likewise.
69048         * conform/data/grp.h-data: Likewise.
69049         * conform/data/pthread.h-data: Likewise.
69050         * conform/data/pwd.h-data: Likewise.
69051         * conform/data/signal.h-data: Likewise.
69052         * conform/data/spawn.h-data: Likewise.
69053         * conform/data/stdio.h-data: Likewise.
69054         * conform/data/stdlib.h-data: Likewise.
69055         * conform/data/stropts.h-data: Likewise.
69056         * conform/data/sys/mman.h-data: Likewise.
69057         * conform/data/sys/stat.h-data: Likewise.
69058         * conform/data/sys/types.h-data: Likewise.
69059         * conform/data/sys/wait.h-data: Likewise.
69060         * conform/data/time.h-data: Likewise.
69061         * conform/data/unistd.h-data: Likewise.
69062         * conform/data/utime.h-data: Likewise.
69063
69064         * io/sys/stat.h: fchmod was always in POSIX.
69065         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
69066         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
69067         * rt/aio.h: Define __need_timespec before including <time.h>.
69068         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
69069         struct.  Add forward declaration of pthread_attr_t and use it in
69070         sigevent.
69071         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
69072         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
69073         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
69074         always remove CLK_TCK definition.
69075
69076 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
69077
69078         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
69079
69080 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
69081
69082         * conform/run-conformtest.sh: New file.
69083         * conform/Makefile: Run run-conformtest for tests.
69084         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
69085         support.
69086
69087         * conform/data/uchar.h-data: New file.
69088         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
69089         * conform/data/arpa/inet.h-data: Likewise.
69090         * conform/data/assert.h-data: Likewise.
69091         * conform/data/complex.h-data: Likewise.
69092         * conform/data/cpio.h-data: Likewise.
69093         * conform/data/ctype.h-data: Likewise.
69094         * conform/data/dirent.h-data: Likewise.
69095         * conform/data/dlfcn.h-data: Likewise.
69096         * conform/data/errno.h-data: Likewise.
69097         * conform/data/fcntl.h-data: Likewise.
69098         * conform/data/float.h-data: Likewise.
69099         * conform/data/fmtmsg.h-data: Likewise.
69100         * conform/data/fnmatch.h-data: Likewise.
69101         * conform/data/ftw.h-data: Likewise.
69102         * conform/data/glob.h-data: Likewise.
69103         * conform/data/grp.h-data: Likewise.
69104         * conform/data/iconv.h-data: Likewise.
69105         * conform/data/inttypes.h-data: Likewise.
69106         * conform/data/langinfo.h-data: Likewise.
69107         * conform/data/libgen.h-data: Likewise.
69108         * conform/data/limits.h-data: Likewise.
69109         * conform/data/locale.h-data: Likewise.
69110         * conform/data/math.h-data: Likewise.
69111         * conform/data/monetary.h-data: Likewise.
69112         * conform/data/mqueue.h-data: Likewise.
69113         * conform/data/ndbm.h-data: Likewise.
69114         * conform/data/net/if.h-data: Likewise.
69115         * conform/data/netdb.h-data: Likewise.
69116         * conform/data/netinet/in.h-data: Likewise.
69117         * conform/data/nl_types.h-data: Likewise.
69118         * conform/data/poll.h-data: Likewise.
69119         * conform/data/pthread.h-data: Likewise.
69120         * conform/data/pwd.h-data: Likewise.
69121         * conform/data/regex.h-data: Likewise.
69122         * conform/data/sched.h-data: Likewise.
69123         * conform/data/search.h-data: Likewise.
69124         * conform/data/semaphore.h-data: Likewise.
69125         * conform/data/setjmp.h-data: Likewise.
69126         * conform/data/signal.h-data: Likewise.
69127         * conform/data/spawn.h-data: Likewise.
69128         * conform/data/stdarg.h-data: Likewise.
69129         * conform/data/stdio.h-data: Likewise.
69130         * conform/data/stdlib.h-data: Likewise.
69131         * conform/data/string.h-data: Likewise.
69132         * conform/data/strings.h-data: Likewise.
69133         * conform/data/stropts.h-data: Likewise.
69134         * conform/data/sys/ipc.h-data: Likewise.
69135         * conform/data/sys/mman.h-data: Likewise.
69136         * conform/data/sys/msg.h-data: Likewise.
69137         * conform/data/sys/resource.h-data: Likewise.
69138         * conform/data/sys/select.h-data: Likewise.
69139         * conform/data/sys/sem.h-data: Likewise.
69140         * conform/data/sys/shm.h-data: Likewise.
69141         * conform/data/sys/socket.h-data: Likewise.
69142         * conform/data/sys/stat.h-data: Likewise.
69143         * conform/data/sys/statvfs.h-data: Likewise.
69144         * conform/data/sys/time.h-data: Likewise.
69145         * conform/data/sys/timeb.h-data: Likewise.
69146         * conform/data/sys/times.h-data: Likewise.
69147         * conform/data/sys/types.h-data: Likewise.
69148         * conform/data/sys/uio.h-data: Likewise.
69149         * conform/data/sys/un.h-data: Likewise.
69150         * conform/data/sys/utsname.h-data: Likewise.
69151         * conform/data/sys/wait.h-data: Likewise.
69152         * conform/data/syslog.h-data: Likewise.
69153         * conform/data/tar.h-data: Likewise.
69154         * conform/data/termios.h-data: Likewise.
69155         * conform/data/utime.h-data: Likewise.
69156         * conform/data/utmpx.h-data: Likewise.
69157         * conform/data/varargs.h-data: Likewise.
69158         * conform/data/wchar.h-data: Likewise.
69159         * conform/data/wctype.h-data: Likewise.
69160         * conform/data/wordexp.h-data: Likewise.
69161
69162         * include/stropts.h: New file.
69163         * include/uchar.h: New file.
69164         * include/aio.h: Changes to allow conformtest.pl to use the headers.
69165         * include/assert.h: Likewise.
69166         * include/ctype.h: Likewise.
69167         * include/dirent.h: Likewise.
69168         * include/dlfcn.h: Likewise.
69169         * include/fcntl.h: Likewise.
69170         * include/fnmatch.h: Likewise.
69171         * include/glob.h: Likewise.
69172         * include/grp.h: Likewise.
69173         * include/libio.h: Likewise.
69174         * include/locale.h: Likewise.
69175         * include/math.h: Likewise.
69176         * include/net/if.h: Likewise.
69177         * include/netdb.h: Likewise.
69178         * include/netinet/in.h: Likewise.
69179         * include/pthread.h: Likewise.
69180         * include/pwd.h: Likewise.
69181         * include/regex.h: Likewise.
69182         * include/sched.h: Likewise.
69183         * include/search.h: Likewise.
69184         * include/setjmp.h: Likewise.
69185         * include/signal.h: Likewise.
69186         * include/stdio.h: Likewise.
69187         * include/stdlib.h: Likewise.
69188         * include/string.h: Likewise.
69189         * include/sys/cdefs.h: Likewise.
69190         * include/sys/mman.h: Likewise.
69191         * include/sys/msg.h: Likewise.
69192         * include/sys/resource.h: Likewise.
69193         * include/sys/select.h: Likewise.
69194         * include/sys/socket.h: Likewise.
69195         * include/sys/stat.h: Likewise.
69196         * include/sys/statvfs.h: Likewise.
69197         * include/sys/time.h: Likewise.
69198         * include/sys/times.h: Likewise.
69199         * include/sys/uio.h: Likewise.
69200         * include/sys/utsname.h: Likewise.
69201         * include/sys/wait.h: Likewise.
69202         * include/termios.h: Likewise.
69203         * include/time.h: Likewise.
69204         * include/ulimit.h: Likewise.
69205         * include/unistd.h: Likewise.
69206         * include/utime.h: Likewise.
69207         * include/wchar.h: Likewise.
69208         * include/wctype.h: Likewise.
69209         * include/wordexp.h: Likewise.
69210
69211         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69212
69213         * time/time.h: TIME_UTC must be a macro.
69214         Make timespec_get available for ISO C11 only as well.
69215
69216 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69217
69218         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69219         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69220
69221 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69222
69223         * configure.in: Use -o not -a in test for unsupported multi-arch.
69224
69225 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69226
69227         * manual/texinfo.tex: Update to version 2012-01-19.16.
69228
69229 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69230
69231         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69232
69233 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69234
69235         [BZ #13738]
69236         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69237         * manual/fdl-1.3.texi: New file.
69238         * manual/fdl-1.1.texi: File removed.
69239
69240         [BZ #13738]
69241         * manual/libc.texinfo (FDL_VERSION): New @set.
69242         Use it for mention of FDL in cover text.
69243         (Documentation License): Use it in @include file name.
69244
69245 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69246             Roland McGrath  <roland@hack.frob.com>
69247
69248         [BZ #5461]
69249         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69250         (not LONG_LONG_MAX and LONG_LONG_MIN.
69251         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69252         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69253         name.
69254         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69255
69256 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69257
69258         [BZ #2547]
69259         [BZ #11365]
69260         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69261         manipulate bits before adding and subtracting TWO23[sx].
69262         * math/libm-test.inc (nearbyint_test): Add more tests.
69263
69264 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69265
69266         [BZ #2548]
69267         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69268         bits before adding and subtracting TWO23[sx].
69269         * math/libm-test.inc (rint_test): Add more tests.
69270         (rint_test_tonearest): Likewise.
69271         (rint_test_towardzero): Likewise.
69272         (rint_test_downward): Likewise.
69273         (rint_test_upward: Likewise.
69274
69275 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69276
69277         [BZ #10110]
69278         * include/stdc-predef.h: New file.  Extracted from features.h.
69279         * include/features.h: Include stdc-predef.h.
69280         * Makefile (headers): Add stdc-predef.h.
69281         * CONFORMANCE (Compiler limitations): Update.
69282
69283 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69284
69285         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69286
69287 2012-02-21  David S. Miller  <davem@davemloft.net>
69288
69289         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69290         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69291
69292 2012-02-20  David S. Miller  <davem@davemloft.net>
69293
69294         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69295         using a normal save/restore sequence, rather than allocating a
69296         dummy stack frame just to store a frame pointer and restore.
69297         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69298
69299 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69300
69301         * manual/install.texi: Fix stray word in line-wrapped comment.
69302
69303 2012-02-20  David S. Miller  <davem@davemloft.net>
69304
69305         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69306         both binutils and gcc support GOTDATA.
69307
69308         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69309         "rd %pc" in the PIC register setup sequences.
69310
69311         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69312         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69313         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69314         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69315         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69316         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69317         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69318         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69319         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69320         (SYSCALL_ERROR_HANDLER): Likewise.
69321         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69322         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69323         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69324         (SYSCALL_ERROR_HANDLER): Likewise.
69325
69326         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69327         (HAVE_GCC_GOTDATA): New.
69328         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69329         relocation support in both binutils and gcc.
69330         * sysdeps/sparc/elf/configure: Regenerate.
69331
69332         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69333         * sysdeps/sparc/sparc32/elf/configure: Delete.
69334         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69335         * sysdeps/sparc/sparc64/elf/configure: Delete.
69336         * sysdeps/sparc/elf/configure.in: New file.
69337         * sysdeps/sparc/elf/configure: Generate.
69338
69339         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69340         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69341         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69342         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69343         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69344
69345 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69346
69347         * manual/install.texi: Do not mention specific glibc version
69348         numbers.
69349         * manual/libc.texinfo (VERSION, UPDATED): Update.
69350         (@copying): Use @copyright{} and range of years.
69351
69352 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69353
69354         [BZ #13695]
69355         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69356         [crti.S not in sysdirs] (generated): Do not append.
69357         [crti.S not in sysdirs] (omit-deps): Likewise.
69358         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69359         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69360         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69361         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69362         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69363         Likewise.
69364         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69365         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69366         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69367         * csu/defs.awk: Remove file.
69368         * sysdeps/generic/initfini.c: Likewise.
69369         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69370         variable.
69371         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69372         Likewise.
69373
69374 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69375
69376         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69377         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69378         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69379         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69380         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69381         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69382         <bits/epoll.h>.
69383         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69384         (__EPOLL_PACKED): Define to empty if not defined by
69385         <bits/epoll.h>.
69386         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69387         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69388         bits/epoll.h.
69389
69390 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69391
69392         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69393         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69394         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69395         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69396         <bits/timerfd.h>.
69397         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69398         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69399         bits/timerfd.h.
69400
69401 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69402
69403         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69404         in C locale.
69405         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69406         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69407         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69409
69410 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69411
69412         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69413         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69414
69415 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69416
69417         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69418         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69419         defined.
69420         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69421         Likewise.
69422         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69423         entry for 2.16.
69424
69425 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69426
69427         * math/w_acos.c: Use non-signaling floating-point comparisons.
69428         * math/w_acosf.c: Likewise.
69429         * math/w_acosh.c: Likewise.
69430         * math/w_acoshf.c: Likewise.
69431         * math/w_acoshl.c: Likewise.
69432         * math/w_acosl.c: Likewise.
69433         * math/w_asin.c: Likewise.
69434         * math/w_asinf.c: Likewise.
69435         * math/w_asinl.c: Likewise.
69436         * math/w_atanh.c: Likewise.
69437         * math/w_atanhf.c: Likewise.
69438         * math/w_atanhl.c: Likewise.
69439         * math/w_exp2.c: Likewise.
69440         * math/w_exp2f.c: Likewise.
69441         * math/w_exp2l.c: Likewise.
69442         * math/w_j0.c: Likewise.
69443         * math/w_j0f.c: Likewise.
69444         * math/w_j0l.c: Likewise.
69445         * math/w_j1.c: Likewise.
69446         * math/w_j1f.c: Likewise.
69447         * math/w_j1l.c: Likewise.
69448         * math/w_jn.c: Likewise.
69449         * math/w_jnf.c: Likewise.
69450         * math/w_log.c: Likewise.
69451         * math/w_log10.c: Likewise.
69452         * math/w_log10f.c: Likewise.
69453         * math/w_log10l.c: Likewise.
69454         * math/w_log2.c: Likewise.
69455         * math/w_log2f.c: Likewise.
69456         * math/w_log2l.c: Likewise.
69457         * math/w_logf.c: Likewise.
69458         * math/w_logl.c: Likewise.
69459         * math/w_sqrt.c: Likewise.
69460         * math/w_sqrtf.c: Likewise.
69461         * math/w_sqrtl.c: Likewise.
69462         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69463         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69464         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69465         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69466         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69467
69468 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69469
69470         [BZ #9739]
69471         * manual/string.texi (strnlen): Use correct parameter name in
69472         equivalent expression.
69473
69474 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69475
69476         [BZ #11174]
69477         * manual/users.texi (seteuid): Consistently use neweuid for
69478         argument name.
69479
69480 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69481
69482         [BZ #13704]
69483         * manual/nss.texi (Services in the NSS configuration): Correct
69484         list of services in example configuration file.
69485
69486 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69487
69488         [BZ #11322]
69489         * manual/arith.texi: Remove statements about negative zero
69490         behaving identically to zero.
69491
69492 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69493
69494         [BZ #5993]
69495         * manual/install.texi: Do not document upgrading from libc5.
69496
69497 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69498
69499         [BZ #4596]
69500         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69501
69502 2012-02-18  David S. Miller  <davem@davemloft.net>
69503
69504         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69505         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69506         %o7 across the call.
69507         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69508         instead.
69509         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69510         SETUP_PIC_REG_LEAF.
69511         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69512         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69513         * sysdeps/sparc/crtn.S: Likewise.
69514
69515 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69516
69517         * aout/Makefile: Remove.
69518
69519 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69520
69521         [BZ #13058]
69522         * manual/examples/argp-ex1.c (main): Format definition in GNU
69523         style.
69524         * manual/examples/argp-ex2.c (main): Likewise.
69525         * manual/examples/argp-ex3.c (main): Likewise.
69526         * manual/examples/argp-ex4.c (main): Likewise.
69527         * manual/examples/longopt.c (main): Use new-style prototype
69528         definition.
69529         * manual/examples/strncat.c (main): Specify return type and use
69530         (void) for arguments.
69531         * manual/examples/subopt.c (main): Use char **argv argument.
69532
69533 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69534
69535         [BZ #5077]
69536         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69537         rounding modes.
69538
69539 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69540
69541         [BZ #6907]
69542         * manual/string.texi (strchr): Change when strchrnul is
69543         recommended.
69544
69545 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69546
69547         [BZ #174]
69548         * manual/locale.texi (setlocale): Document LOCPATH.
69549
69550 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69551
69552         [BZ #10210]
69553         * manual/process.texi (execle): Move @dots{} before last argument.
69554
69555 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69556
69557         [BZ #12047]
69558         * manual/charset.texi (Generic Charset Conversion): Fix typo
69559         (LC_TYPE -> LC_CTYPE).
69560
69561 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69562
69563         [BZ #5805]
69564         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69565         (scalbnf): Likewise.
69566         (scalbnl): Likewise.
69567         (scalbln): Likewise.
69568         (scalblnf): Likewise.
69569         (scalblnl): Likewise.
69570         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69571         (vwarnx): Likewise.
69572         (verr): Likewise.
69573         (verrx): Likewise.
69574         * manual/filesys.texi (telldir): Use braces around return type.
69575         * manual/llio.texi (mmap): Add space after comma.
69576         (mmap64): Likewise.
69577         * manual/math.texi (jn): Use @var{} on parameter names.
69578         (jnf): Likewise.
69579         (jnl): Likewise.
69580         (yn): Likewise.
69581         (ynf): Likewise.
69582         (ynl): Likewise.
69583         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69584         line.
69585         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69586         "...".
69587         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69588         (sched_get_priority_max): Likewise.
69589         * manual/signal.texi (sigvec): Add space after comma.
69590         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69591         names.
69592         (if_indextoname): Likewise.
69593         (if_freenameindex): Likewise.
69594         (sendto): Use ',' instead of '.' in prototype.
69595         * manual/startup.texi (syscall): Use @dots{} instead of literal
69596         "...".
69597         * manual/stdio.texi (__fpending): Separate initial words of
69598         paragraph from @deftypefun line.
69599         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69600         "...".
69601         (vsyslog): Use @var{} on parameter names.
69602         * manual/terminal.texi (stty): Use @var{} on parameter names.
69603         * manual/users.texi (getutmp): Use @var{} on parameter names.
69604         (getutmpx): Likewise.
69605
69606 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69607
69608         [BZ #6884]
69609         * manual/stdio.texi (fopen): Fix typos in description of
69610         ",ccs=STRING".
69611
69612 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69613
69614         [BZ #4026]
69615         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69616         get clock_id definition.
69617
69618 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69619
69620         [BZ #4822]
69621         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69622         (madvise): Cast every argument to void on its own.
69623
69624 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69625
69626         [BZ #9902]
69627         * manual/startup.texi (Exit Status): Fix typo.
69628
69629 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69630
69631         [BZ #10140]
69632         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69633         * manual/examples/argp-ex2.c: Likewise.
69634         * manual/examples/argp-ex3.c: Likewise.
69635
69636 2012-02-16  Richard Henderson  <rth@redhat.com>
69637
69638         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69639         * sysdeps/s390/s390-32/initfini.c: Remove.
69640         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69641         * sysdeps/s390/s390-64/initfini.c: Remove.
69642
69643 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69644
69645         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69646         compiler output for sysdeps/generic/initfini.c.
69647         * sysdeps/sh/elf/initfini.c: Remove file.
69648
69649 2012-02-16  David S. Miller  <davem@davemloft.net>
69650
69651         [BZ #11494]
69652         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69653
69654         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69655         * sysdeps/sparc/crti.S: New file.
69656         * sysdeps/sparc/crtn.S: New file.
69657         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69658         * sysdeps/sparc/sparc64/Makefile: Likewise.
69659
69660 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69661
69662         [BZ #3335]
69663         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69664
69665 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69666
69667         [BZ #4822]
69668         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69669
69670         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69671         (write, read, close): Likewise.
69672         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69673
69674 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69675
69676         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69677         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69678         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69679         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69680         <bits/signalfd.h>.
69681         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69682         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69683         bits/signalfd.h.
69684
69685 2012-02-14  Marek Polacek  <polacek@redhat.com>
69686
69687         * sysdeps/x86_64/crti.S: New file.
69688         * sysdeps/x86_64/crtn.S: New file.
69689         * sysdeps/x86_64/elf/initfini.c: Remove file.
69690
69691 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69692
69693         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69694         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69695         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69696         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69697         <bits/inotify.h>.
69698         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69699         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69700         bits/inotify.h.
69701
69702 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69703
69704         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69705         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69706         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69707         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69708         <bits/eventfd.h>.
69709         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69710         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69711         bits/eventfd.h.
69712
69713 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69714
69715         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69716         __feraiseexcept instead of feraiseexcept.
69717
69718         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69719         nanosleep invocations.
69720         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69721         strings, and add error checking for a nanosleep invocations.
69722
69723 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         Replace FSF snail mail address with URLs, as per GNU coding standards.
69726         Most of the snail mail addresses were wrong anyway, and omitting
69727         them makes the source code easier to maintain.  Almost all of the
69728         changes are to license notices and to locale LC_IDENTIFICATION
69729         addresses, except for this one:
69730         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69731         not its snail mail address.
69732
69733 2012-02-09  Richard Henderson  <rth@twiddle.net>
69734
69735         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69736         of kernel-features.h.
69737
69738         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69739
69740 2012-02-08  Marek Polacek  <polacek@redhat.com>
69741
69742         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69743         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69744         * sysdeps/gnu/_G_config.h: Likewise.
69745         * sysdeps/generic/_G_config.h: Likewise.
69746
69747 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69748
69749         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69750         tests.
69751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69752
69753         * sysdeps/powerpc/powerpc32/crti.S: New file.
69754         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69755         * sysdeps/powerpc/powerpc64/crti.S: New file.
69756         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69757
69758         * Makeconfig (have-initfini): Don't set.
69759         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69760         * configure.in (nopic_initfini): Don't substitute.
69761         * config.h.in (HAVE_INITFINI): Don't #undef.
69762         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69763         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69764
69765 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69766
69767         Support crti.S and crtn.S provided directly by architectures.
69768         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69769         [crti.S in sysdirs] (omit-deps): Likewise.
69770         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69771         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69772         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69773         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69774         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69775         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69776         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69777         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69778         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69779         compiler output for sysdeps/generic/initfini.c.
69780         * sysdeps/i386/elf/Makefile: Remove file.
69781         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69782
69783 2012-02-07  Marek Polacek  <polacek@redhat.com>
69784
69785         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69786         * sysdeps/gnu/_G_config.h: Likewise.
69787         * sysdeps/mach/hurd/_G_config.h: Likewise.
69788
69789 2012-02-07  Marek Polacek  <polacek@redhat.com>
69790
69791         * math/Makefile (tests): Add tst-CMPLX2.
69792         * math/tst-CMPLX2.c: New file.
69793
69794 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69795
69796         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69797
69798         * math/libm-test.inc (jn_test): Add missing L suffix.
69799
69800 2012-02-06  Marek Polacek  <polacek@redhat.com>
69801
69802         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69803         * sysdeps/i386/fpu/e_powf.S: Likewise.
69804         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69805         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69806         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69807         * sysdeps/i386/fpu/e_pow.S: Likewise.
69808         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69809         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69810         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69811         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69812         * sysdeps/i386/fpu/e_log2.S: Likewise.
69813         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69814         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69815         * sysdeps/i386/fpu/e_powl.S: Likewise.
69816         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69817         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69818         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69819         * sysdeps/i386/fpu/e_logl.S: Likewise.
69820         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69821         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69822         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69823         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69824         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69825         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69826         * sysdeps/i386/fpu/e_log.S: Likewise.
69827         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69828         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69829         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69830         * sysdeps/i386/fpu/e_logf.S: Likewise.
69831         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69832         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69833         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69834         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69835         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69836         * sysdeps/i386/fpu/e_log10.S: Likewise.
69837         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69838         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69839         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69840         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69841         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69842         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69843         * sysdeps/i386/asm-syntax.h: Likewise.
69844         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69845         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69846         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69847         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69848         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69849         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69850         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69851         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69852         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69853         * sysdeps/powerpc/sysdep.h: Likewise.
69854         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69855         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69856
69857 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69858
69859         [BZ #411]
69860         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69861
69862 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69863
69864         * sysdeps/i386/sysdep.h: Include <features.h>.
69865         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69866         version.
69867
69868 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69869
69870         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69871         Define.
69872         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69873         LOAD_PIC_REG_STR.
69874
69875 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69876
69877         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69878         (SETUP_PIC_REG): Use GET_PC_THUNK.
69879         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69880         macro.
69881
69882 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69883
69884         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69885         for non-PIC compilation.
69886         (SETUP_PIC_REG): Add .p2align directive.
69887         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69888         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69889         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69890         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69891         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69892         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69893         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69894         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69895         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69896         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69897         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69898         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69899         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69900         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69901         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69902         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69903         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69904         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69905         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69906         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69907         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69908         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69909         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69910         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69911         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69912         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69913         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69914         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69915         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69916         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69917         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69918         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69919         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69920         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69921         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69922         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69923         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69924         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69925         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69926         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69927         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69928
69929 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69930
69931         * math/tst-CMPLX.c: Include <stdio.h>.
69932
69933 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69934
69935         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69936         float.
69937         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69938         * sysdeps/sparc/bits/mathdef.h: Likewise.
69939
69940 2012-01-31  Marek Polacek  <polacek@redhat.com>
69941
69942         * libio/libio.h: Don't define _PARAMS.
69943         * locale/programs/config.h: Don't define PARAMS.
69944         * stdlib/strtol_l.c: Likewise.
69945         (__strtol_l): Remove PARAMS from the prototype.
69946
69947 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69948
69949         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69950         names.  Just use the correct names.  Remove unnecessary wrapper
69951         functions.
69952         * malloc/arena.c: Likewise.
69953         * malloc/hooks.c: Likewise.
69954
69955         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69956         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69957         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69958
69959 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69960
69961         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69962         into tail calls.
69963         (update_get_addr): New function.
69964         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69965         GET_ADDR_MODULE parameter.
69966
69967 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69968
69969         * crypt/cert.c: Remove __STDC__ conditionals.
69970         * crypt/crypt-entry.c: Likewise.
69971         * crypt/crypt_util.c: Likewise.
69972         * libio/filedoalloc.c: Likewise.
69973         * libio/fileops.c: Likewise.
69974         * libio/genops.c: Likewise.
69975         * libio/iofclose.c: Likewise.
69976         * libio/iofdopen.c: Likewise.
69977         * libio/iofopen.c: Likewise.
69978         * libio/iofopen64.c: Likewise.
69979         * libio/iogetdelim.c: Likewise.
69980         * libio/iopopen.c: Likewise.
69981         * libio/obprintf.c: Likewise.
69982         * libio/oldfileops.c: Likewise.
69983         * libio/oldiofclose.c: Likewise.
69984         * libio/oldiofdopen.c: Likewise.
69985         * libio/oldiofopen.c: Likewise.
69986         * libio/oldiopopen.c: Likewise.
69987         * libio/wfiledoalloc.c: Likewise.
69988         * libio/wgenops.c: Likewise.
69989         * locale/programs/xmalloc.c: Likewise.
69990         * misc/syslog.c: Likewise.
69991         * stdio-common/xbug.c: Likewise.
69992         * string/memchr.c: Likewise.
69993         * string/memcmp.c: Likewise.
69994         * string/memrchr.c: Likewise.
69995         * string/rawmemchr.c: Likewise.
69996         * sysdeps/posix/getcwd.c: Likewise.
69997         * time/strftime_l.c: Likewise.
69998
69999 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
70000
70001         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
70002         * config.make.in (config-cflags-sse2avx): Define.
70003         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
70004         Fix typo.
70005
70006 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
70007
70008         * scripts/config.guess: Update from upstream config git repository.
70009         * scripts/config.sub: Likewise.
70010
70011 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
70012
70013         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
70014         (EM_NUM): Update.
70015         (R_TILEPRO_*, R_TILEGX_*): New macros.
70016
70017         * scripts/firstversions.awk: Fix bug in version range handling.
70018
70019         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
70020
70021         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
70022
70023         * include/sys/epoll.h: New file.
70024         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
70025         libc_hidden_def.
70026
70027 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
70028
70029         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
70030         Avoid unnecessary __WORDSIZE == 64 test.
70031         (fmaxf): Use VEX format if possible.
70032         (fmax): Likewise.
70033         (fminf): Likewise.
70034         (fmin): Likewise.
70035
70036         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
70037         * math/math_private.h: Remove libc_fegetround* and
70038         libc_fesetround*.
70039         * sysdeps/i386/configure.in: Check for -msse2avx.
70040         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
70041         also if SSE2AVX is defined.
70042         Remove libc_fegetround* and libc_fesetround*.
70043         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
70044         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
70045         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
70046         of HAS_YMM_USABLE.
70047         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70048         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70049         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70050         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70051         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70052
70053         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
70054
70055 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70056
70057         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
70058         size is not set.
70059         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
70060
70061 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
70062
70063         [BZ #13618]
70064         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
70065         relocation.
70066         * Makeconfig (libm): Define.
70067         * elf/Makefile: Add rules to build and run tst-relsort1.
70068         * elf/tst-relsort1.c: New file.
70069         * elf/tst-relsort1mod1.c: New file.
70070         * elf/tst-relsort1mod2.c: New file.
70071
70072 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
70073
70074         * math/s_ldexp.c: Remove __STDC__ conditionals.
70075         * math/s_ldexpf.c: Likewise.
70076         * math/s_ldexpl.c: Likewise.
70077         * math/s_nextafter.c: Likewise.
70078         * math/s_nexttowardf.c: Likewise.
70079         * math/s_significand.c: Likewise.
70080         * math/s_significandf.c: Likewise.
70081         * math/s_significandl.c: Likewise.
70082         * math/w_jnl.c: Likewise.
70083         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
70084         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
70085         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
70086         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
70087         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
70088         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
70089         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
70090         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
70091         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
70092         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
70093         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
70094         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70095         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
70096         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
70097         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
70098         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
70099         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
70100         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
70101         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
70102         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
70103         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
70104         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
70105         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
70106         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
70107         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
70108         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
70109         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
70110         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
70111         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
70112         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
70113         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
70114         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
70115         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
70116         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
70117         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
70118         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
70119         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
70120         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
70121         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
70122         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
70123         * sysdeps/ieee754/k_standard.c: Likewise.
70124         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
70125         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
70126         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
70127         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
70128         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
70129         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
70130         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
70131         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
70132         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
70133         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
70134         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
70135         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
70136         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
70137         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
70138         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
70139         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
70140         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
70141         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
70142         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
70143         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
70144         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
70145         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
70146         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
70147         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
70148         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
70149         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
70150         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
70151         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
70152         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
70153         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
70154         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
70155         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
70156         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
70157         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
70158         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
70159         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
70160         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
70161         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
70162         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
70163         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
70164         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
70165         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
70166         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
70167         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
70168         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
70169         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
70170         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
70171         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
70172         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
70173         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
70174         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
70175         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
70176         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
70177         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
70178         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
70179         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70180         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
70181         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70182         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70183         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70184         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70185         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70186         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70187         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70188         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70189         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70190         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70191         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70192         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70193         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70194         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70195         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70196         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70197         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70198         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70199         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70200         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70201         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70202         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70203         * sysdeps/ieee754/s_matherr.c: Likewise.
70204         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70205         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70206         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70207         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70208
70209 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70210
70211         * crypt/md5.h: Remove __STDC__ conditionals.
70212         * libio/libioP.h: Likewise.
70213         * locale/programs/config.h: Likewise.
70214         * sysdeps/generic/sysdep.h: Likewise.
70215         * sysdeps/i386/asm-syntax.h: Likewise.
70216         * sysdeps/s390/asm-syntax.h: Likewise.
70217         * sysdeps/unix/sysdep.h: Likewise.
70218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70220
70221 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70222
70223         * libio/libio.h: Remove __STDC__ conditionals.
70224         * malloc/obstack.h: Likewise.
70225         * math/complex.h: Likewise.
70226         * math/math.h: Likewise.
70227         * sysdeps/generic/_G_config.h: Likewise.
70228         * sysdeps/gnu/_G_config.h: Likewise.
70229         * sysdeps/mach/hurd/_G_config.h: Likewise.
70230         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70231         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70232         * sysdeps/sparc/bits/mathdef.h: Likewise.
70233
70234 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70235
70236         [BZ #13583]
70237         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70238         Clean up HAS_* macros.
70239         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70240         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70241         possible.
70242         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70243         HAS_AVX.
70244         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70245         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70246         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70247         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70248         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70249
70250 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70251
70252         * elf/tst-unique3.cc (gets): Remove declaration.
70253         * elf/tst-unique3lib.cc (gets): Likewise.
70254         * elf/tst-unique3lib2.cc (gets): Likewise.
70255         * elf/tst-unique4.cc (gets): Likewise.
70256
70257 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70258
70259         * include/stdio.h: Add C++ protection.  Add gets declarations and
70260         definitions.
70261         * debug/tst-chk1.c: Don't declare gets here.
70262         * stdio-common/tst-gets.c: Likewise.
70263
70264 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70265
70266         * posix/glob: Remove directory.
70267
70268 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70269
70270         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70271
70272 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70273
70274         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70275         of the non-standard EPFNOSUPPORT.
70276
70277 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70278
70279         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70280         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70281         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70282
70283 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70284
70285         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70286
70287 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70288
70289         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70290         transient errors.
70291         * nscd/grpcache.c (cache_addgr): Likewise.
70292         * nscd/hstcache.c (cache_addhst): Likewise.
70293         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70294         * nscd/pwdcache.c (cache_addpw): Likewise.
70295         * nscd/servicescache.c (cache_addserv): Likewise.
70296
70297 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70298
70299         * malloc/malloc.c: Various cleanups.
70300         * malloc/hooks.c: Likewise.
70301
70302         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70303         * stdlib/bug-fmtmsg1.c: New file.
70304
70305         * stdlib/fmtmsg.c (init): Add missing unlock.
70306         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70307
70308 2012-01-12  Marek Polacek  <polacek@redhat.com>
70309
70310         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70311         and _GNU_SOURCE.
70312
70313 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70314
70315         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70316         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70317         macro to ensure uniqueness of label name.
70318         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70319         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70320
70321 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70322
70323         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70324
70325         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70326         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70327         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70328         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70329
70330 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70331
70332         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70333
70334         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70335         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70336         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70337
70338         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70339
70340         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70341         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70342         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70343         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70344
70345         * math/bits/math-finite.h: Add ldexp support.
70346
70347 2012-01-10  Marek Polacek  <polacek@redhat.com>
70348
70349         * locale/programs/localedef.h (show_archive_content): Add noreturn
70350         attribute.
70351
70352 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70353
70354         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70355
70356 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70357
70358         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70359
70360         * io/Makefile (headers): Add bits/poll2.h.
70361
70362 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70363
70364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70365         typo #include statement.
70366
70367 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70368
70369         * include/sys/cdefs.h: Define __attribute_alloc_size.
70370         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70371         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70372         * elf/pldd.c: Likewise.
70373         * iconv/iconv_charmap.c: Likewise.
70374         * iconv/iconvconfig.c: Likewise.
70375         * iconv/strtab.c: Likewise.
70376         * locale/programs/locale.c: Likewise.
70377         * locale/programs/localedef.h: Likewise.
70378         * locale/programs/simple-hash.c: Likewise.
70379         * nscd/nscd.h: Likewise.
70380         * nss/makedb.c: Likewise.
70381         * sysdeps/generic/ldconfig.h: Likewise.
70382         * locale/programs/localedef.c: Remove xmalloc prototype.
70383         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70384
70385 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70386
70387         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70388         appropriate.
70389
70390 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70391
70392         * math/Makefile (tests): Add tst-CMPLX.
70393         * math/tst-CMPLX.c: New file.
70394
70395         * math/complex.h (CMPLXL): Fix typo.
70396
70397         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70398         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70399         GLIBC_2.16.
70400         * debug/tst-chk1.c: Add poll and ppoll tests.
70401         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70402         * include/sys/poll.h: Add hidden proto for ppoll.
70403         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70404         * sysdeps/mach/hurd/ppoll.c: Likewise.
70405         * io/ppoll.c: Likewise.
70406         * debug/poll_chk.c: New file.
70407         * debug/ppoll_chk.c: New file.
70408         * include/bits/poll2.h: New file.
70409         * io/bits/poll2.h: New file.
70410
70411         [BZ #1350]
70412         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70413
70414         * configure.in: static is always set to yes.  Remove.
70415         * config.make.in: Don't set build-static.
70416         * Makeconfig: Remove use of build-static.
70417         * dlfcn/Makefile: Likewise.
70418         * elf/Makefile: Likewise.
70419         * math/Makefile: Likewise.
70420         * misc/Makefile: Likewise.
70421         * nptl/Makefile: Likewise.
70422         * sysdeps/mach/hurd/Makefile: Likewise.
70423
70424         * configure.in: PWD_P is not used anymore.
70425         * config.make.in: Remove PWD_P entry.
70426
70427         * configure.in: Remove last remnants of RANLIB.
70428         No need to check for signed size_t anymore.
70429         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70430         and IA-64.
70431         Remove __builtin_expect test because we require at least gcc 3.4.
70432         * aclocal.m4: Likewise.
70433
70434         * wcsmbs/mbrtoc16.c: Implement using towc function.
70435         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70436         * wcsmbs/wcsmbsload.c: Likewise.
70437         * iconv/gconv_simple.c: Likewise.
70438         * iconv/gconv_int.h: Likewise.
70439         * iconv/gconv_builtin.h: Likewise.
70440         * iconv/iconv_prog.c: Remove CHAR16 handling.
70441
70442         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70443
70444         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70445
70446         * configure.in: Remove --with-elf and --enable-bounded options.
70447         Dont set base_machine for ia64.  More non-ELF conditions removed.
70448         Remove testing and setting of leading underscore information.
70449         * config.make.in (build-bounded): Set to no.
70450         * config.h.in: Remove NO_UNDERSCORES entry.
70451         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70452         them.
70453         * csu/start.c: Remove !NO_UNDERSCORE code.
70454         * locale/localeinfo.h: Likewise.
70455         * sysdeps/generic/machine-gmon.h: Likewise.
70456         * sysdeps/generic/sysdep.h: Likewise.
70457         * sysdeps/i386/sysdep.h: Likewise.
70458         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70459         * sysdeps/mach/sysdep.h: Likewise.
70460         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70461         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70462         * sysdeps/sh/sysdep.h: Likewise.
70463         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70464         * sysdeps/unix/i386/sysdep.S: Likewise.
70465         * sysdeps/unix/sparc/start.c: Likewise.
70466         * sysdeps/unix/sparc/sysdep.S: Likewise.
70467         * sysdeps/unix/sparc/sysdep.h: Likewise.
70468         * sysdeps/unix/start.c: Likewise.
70469         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70470         * sysdeps/x86_64/sysdep.h: Likewise.
70471
70472 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70473
70474         [BZ #13553]
70475         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70476         for non-gcc.
70477         * argp/argp-fmtstream.h: Use const instead __const.
70478         * argp/argp.h: Likewise.
70479         * assert/assert.h: Likewise.
70480         * bits/fenv.h: Likewise.
70481         * bits/sched.h: Likewise.
70482         * bits/sigset.h: Likewise.
70483         * bits/sigthread.h: Likewise.
70484         * catgets/nl_types.h: Likewise.
70485         * conform/data/pthread.h-data: Likewise.
70486         * crypt/crypt-private.h: Likewise.
70487         * crypt/crypt.h: Likewise.
70488         * crypt/crypt_util.c: Likewise.
70489         * ctype/ctype.h: Likewise.
70490         * debug/execinfo.h: Likewise.
70491         * debug/mbsnrtowcs_chk.c: Likewise.
70492         * debug/mbsrtowcs_chk.c: Likewise.
70493         * debug/wcsnrtombs_chk.c: Likewise.
70494         * debug/wcsrtombs_chk.c: Likewise.
70495         * debug/wcstombs_chk.c: Likewise.
70496         * dirent/dirent.h: Likewise.
70497         * dlfcn/dlfcn.h: Likewise.
70498         * elf/neededtest4.c: Likewise.
70499         * grp/grp.h: Likewise.
70500         * gshadow/gshadow.h: Likewise.
70501         * iconv/gconv.h: Likewise.
70502         * iconv/gconv_int.h: Likewise.
70503         * iconv/gconv_simple.c: Likewise.
70504         * iconv/iconv.h: Likewise.
70505         * iconv/loop.c: Likewise.
70506         * iconv/skeleton.c: Likewise.
70507         * include/aio.h: Likewise.
70508         * include/aliases.h: Likewise.
70509         * include/argz.h: Likewise.
70510         * include/arpa/inet.h: Likewise.
70511         * include/assert.h: Likewise.
70512         * include/dirent.h: Likewise.
70513         * include/dlfcn.h: Likewise.
70514         * include/execinfo.h: Likewise.
70515         * include/fcntl.h: Likewise.
70516         * include/fenv.h: Likewise.
70517         * include/glob.h: Likewise.
70518         * include/grp.h: Likewise.
70519         * include/libintl.h: Likewise.
70520         * include/mntent.h: Likewise.
70521         * include/netdb.h: Likewise.
70522         * include/pwd.h: Likewise.
70523         * include/rpc/netdb.h: Likewise.
70524         * include/sched.h: Likewise.
70525         * include/search.h: Likewise.
70526         * include/shadow.h: Likewise.
70527         * include/signal.h: Likewise.
70528         * include/stdio.h: Likewise.
70529         * include/stdlib.h: Likewise.
70530         * include/string.h: Likewise.
70531         * include/sys/socket.h: Likewise.
70532         * include/sys/stat.h: Likewise.
70533         * include/sys/statfs.h: Likewise.
70534         * include/sys/statvfs.h: Likewise.
70535         * include/sys/syslog.h: Likewise.
70536         * include/sys/time.h: Likewise.
70537         * include/sys/uio.h: Likewise.
70538         * include/time.h: Likewise.
70539         * include/unistd.h: Likewise.
70540         * include/utmp.h: Likewise.
70541         * include/wchar.h: Likewise.
70542         * include/wctype.h: Likewise.
70543         * inet/aliases.h: Likewise.
70544         * inet/arpa/inet.h: Likewise.
70545         * inet/netinet/ether.h: Likewise.
70546         * inet/netinet/in.h: Likewise.
70547         * intl/libintl.h: Likewise.
70548         * io/bits/fcntl2.h: Likewise.
70549         * io/fcntl.h: Likewise.
70550         * io/ftw.h: Likewise.
70551         * io/sys/poll.h: Likewise.
70552         * io/sys/stat.h: Likewise.
70553         * io/sys/statfs.h: Likewise.
70554         * io/sys/statvfs.h: Likewise.
70555         * io/utime.h: Likewise.
70556         * libio/bits/stdio.h: Likewise.
70557         * libio/bits/stdio2.h: Likewise.
70558         * libio/libio.h: Likewise.
70559         * libio/libioP.h: Likewise.
70560         * libio/stdio.h: Likewise.
70561         * locale/lc-ctype.c: Likewise.
70562         * locale/locale.h: Likewise.
70563         * login/utmp.h: Likewise.
70564         * malloc/arena.c: Likewise.
70565         * malloc/malloc.c: Likewise.
70566         * malloc/malloc.h: Likewise.
70567         * malloc/mcheck.c: Likewise.
70568         * malloc/mtrace.c: Likewise.
70569         * math/bits/mathcalls.h: Likewise.
70570         * math/fenv.h: Likewise.
70571         * math/math_private.h: Likewise.
70572         * misc/bits/error.h: Likewise.
70573         * misc/bits/syslog.h: Likewise.
70574         * misc/err.h: Likewise.
70575         * misc/error.h: Likewise.
70576         * misc/fstab.h: Likewise.
70577         * misc/mntent.h: Likewise.
70578         * misc/regexp.h: Likewise.
70579         * misc/search.h: Likewise.
70580         * misc/sgtty.h: Likewise.
70581         * misc/sys/mman.h: Likewise.
70582         * misc/sys/syslog.h: Likewise.
70583         * misc/sys/uio.h: Likewise.
70584         * misc/sys/xattr.h: Likewise.
70585         * misc/ttyent.h: Likewise.
70586         * nis/rpcsvc/ypclnt.h: Likewise.
70587         * nss/nss.h: Likewise.
70588         * posix/bits/unistd.h: Likewise.
70589         * posix/fnmatch.h: Likewise.
70590         * posix/glob.h: Likewise.
70591         * posix/sched.h: Likewise.
70592         * posix/spawn.h: Likewise.
70593         * posix/sys/wait.h: Likewise.
70594         * posix/unistd.h: Likewise.
70595         * posix/wordexp.h: Likewise.
70596         * pwd/pwd.h: Likewise.
70597         * resolv/netdb.h: Likewise.
70598         * resource/sys/resource.h: Likewise.
70599         * rt/aio.h: Likewise.
70600         * rt/bits/mqueue2.h: Likewise.
70601         * rt/mqueue.h: Likewise.
70602         * shadow/shadow.h: Likewise.
70603         * signal/signal.h: Likewise.
70604         * socket/send.c: Likewise.
70605         * socket/sendto.c: Likewise.
70606         * socket/sys/socket.h: Likewise.
70607         * stdio-common/printf.h: Likewise.
70608         * stdlib/bits/stdlib.h: Likewise.
70609         * stdlib/fmtmsg.h: Likewise.
70610         * stdlib/monetary.h: Likewise.
70611         * stdlib/stdlib.h: Likewise.
70612         * stdlib/ucontext.h: Likewise.
70613         * streams/stropts.h: Likewise.
70614         * string/argz.h: Likewise.
70615         * string/bits/string2.h: Likewise.
70616         * string/string.h: Likewise.
70617         * string/strings.h: Likewise.
70618         * sunrpc/rpc/auth.h: Likewise.
70619         * sunrpc/rpc/auth_des.h: Likewise.
70620         * sunrpc/rpc/clnt.h: Likewise.
70621         * sunrpc/rpc/netdb.h: Likewise.
70622         * sunrpc/rpc/pmap_clnt.h: Likewise.
70623         * sunrpc/rpc/xdr.h: Likewise.
70624         * sysdeps/generic/inttypes.h: Likewise.
70625         * sysdeps/generic/net/if.h: Likewise.
70626         * sysdeps/generic/sys/swap.h: Likewise.
70627         * sysdeps/gnu/net/if.h: Likewise.
70628         * sysdeps/gnu/utmpx.h: Likewise.
70629         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70630         * sysdeps/i386/i486/bits/string.h: Likewise.
70631         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70632         * sysdeps/s390/bits/string.h: Likewise.
70633         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70634         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70635         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70636         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70637         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70638         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70639         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70640         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70641         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70642         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70643         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70644         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70645         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70646         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70647         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70648         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70649         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70650         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70651         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70652         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70653         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70654         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70655         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70656         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70657         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70658         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70659         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70660         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70661         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70662         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70663         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70664         * sysvipc/sys/ipc.h: Likewise.
70665         * sysvipc/sys/msg.h: Likewise.
70666         * sysvipc/sys/sem.h: Likewise.
70667         * sysvipc/sys/shm.h: Likewise.
70668         * termios/termios.h: Likewise.
70669         * time/sys/time.h: Likewise.
70670         * time/time.h: Likewise.
70671         * wcsmbs/bits/wchar2.h: Likewise.
70672         * wcsmbs/uchar.h: Likewise.
70673         * wcsmbs/wchar.h: Likewise.
70674         * wctype/wctype.h: Likewise.
70675
70676         [BZ #13551]
70677         * Makeconfig: Remove all but ELF support including AIX support.
70678         * Makerules: Likewise.
70679         * config.h.in: Likewise.
70680         * config.make.in: Likewise.
70681         * configure: Likewise.
70682         * configure.in: Likewise.
70683         * csu/Makefile: Likewise.
70684         * csu/version.c: Likewise.
70685         * debug/Makefile: Likewise.
70686         * dlfcn/Makefile: Likewise.
70687         * elf/Makefile: Likewise.
70688         * extra-lib.mk: Likewise.
70689         * iconv/Makefile: Likewise.
70690         * include/libc-symbols.h: Likewise.
70691         * include/shlib-compat.h: Likewise.
70692         * resolv/Makefile: Likewise.
70693         * resolv/res_libc.c: Likewise.
70694         * rt/Makefile: Likewise.
70695         * sysdeps/i386/asm-syntax.h: Likewise.
70696         * sysdeps/i386/sysdep.h: Likewise.
70697         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70698         * sysdeps/mach/sysdep.h: Likewise.
70699         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70700         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70701         * sysdeps/s390/asm-syntax.h: Likewise.
70702         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70703         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70704         * sysdeps/sh/sysdep.h: Likewise.
70705         * sysdeps/unix/sparc/sysdep.h: Likewise.
70706         * sysdeps/wordsize-32/divdi3.c: Likewise.
70707         * sysdeps/x86_64/sysdep.h: Likewise.
70708
70709         * argp/Versions: Remove _argp_unlock_xxx.
70710
70711         [BZ #13559]
70712         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70713         * abilist/libBrokenLocale.abilist: Likewise.
70714         * abilist/libanl.abilist: Likewise.
70715         * abilist/libc.abilist: Likewise.
70716         * abilist/libcrypt.abilist: Likewise.
70717         * abilist/libdl.abilist: Likewise.
70718         * abilist/libm.abilist: Likewise.
70719         * abilist/libnsl.abilist: Likewise.
70720         * abilist/libpthread.abilist: Likewise.
70721         * abilist/libresolv.abilist: Likewise.
70722         * abilist/librt.abilist: Likewise.
70723         * abilist/libthread_db.abilist: Likewise.
70724         * abilist/libutil.abilist: Likewise.
70725         * abilist/libnss_db.abilist: New file.
70726
70727         * scripts/abilist.awk: Add support for indirect functions.
70728
70729         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70730
70731         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70732
70733         * shlib-versions: Remove entries for ports architectures.
70734
70735         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70736         files in ports.
70737         * elf/stackguard-macros.h: Remove support for IA-64.
70738         * elf/tst-auditmod1.c: Likewise.
70739         * sysdeps/generic/ldsodefs.h: Likewise.
70740
70741         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70742         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70743         configure files.
70744
70745         [BZ #13552]
70746         * configure.in: Remove --enable-omitfp support.
70747         * FAQ.in: Adjust.
70748         * config.make.in: Likewise.
70749         * Makeconfig: Likewise.
70750         * manual/install.texi: Likewise.
70751
70752         In case anyone cares, the IA-64 architecture could move to ports.
70753         * sysdeps/ia64/*: Removed.
70754         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70755         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70756
70757         [BZ #13555]
70758         * configure.in: Remove entries for unsupported architectures.
70759
70760         [BZ #13533]
70761         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70762         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70763         routines.
70764         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70765         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70766         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70767         fall back to using wcrtomb.
70768         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70769         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70770         renaming.
70771         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70772         * wcsmbs/tst-c16c32-1.c: New file.
70773
70774         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70775         local variable.
70776
70777         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70778
70779         * elf/tst-unique3.cc: Add explicit declaration of gets.
70780         * elf/tst-unique3lib.cc: Likewise.
70781         * elf/tst-unique3lib2.cc: Likewise.
70782         * elf/tst-unique4.cc: Likewise.
70783
70784         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70785
70786 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70787
70788         [BZ #13566]
70789         * assert/assert.h (static_assert): Don't define for C++.
70790         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70791         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70792
70793 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70794
70795         * iconv/loop.c (single loop): Fix assertion in storing of
70796         remaining bytes.
70797
70798         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70799
70800 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70801
70802         * posix/getconf.c: Update copyright year.
70803         * nss/getent.c: Likewise.
70804         * nss/makedb.c: Likewise.
70805         * iconv/iconvconfig.c: Likewise.
70806         * iconv/iconv_prog.c: Likewise.
70807         * elf/ldconfig.c: Likewise.
70808         * elf/pldd.c: Likewise.
70809         * elf/sotruss.ksh: Likewise.
70810         * catgets/gencat.c: Likewise.
70811         * csu/version.c: Likewise.
70812         * elf/ldd.bash.in: Likewise.
70813         * elf/sprof.c (print_version): Likewise.
70814         * locale/programs/locale.c: Likewise.
70815         * locale/programs/localedef.c: Likewise.
70816         * login/programs/pt_chown.c: Likewise.
70817         * nscd/nscd.c (print_version): Likewise.
70818         * debug/xtrace.sh: Likewise.
70819         * malloc/memusage.sh: Likewise.
70820         * malloc/mtrace.pl: Likewise.
70821         * debug/catchsegv.sh: Likewise.
70822
70823 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70824
70825         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70826         pure attribute.
70827
70828 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70829
70830         [BZ #13533]
70831         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70832         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70833         transformations.
70834         * iconv/gconv_int.h: Likewise.
70835         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70836         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70837         from libc for GLIBC_2.16.
70838         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70839         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70840         * wcsmbs/uchar.h: Really define mbstate_t.
70841         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70842         * wcsmbs/c16rtomb.c: New file.
70843         * wcsmbs/mbrtoc16.c: New file.
70844         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70845         for C/POSIX locale.
70846         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70847         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70848
70849         * wcsmbs/wchar.h: Add missing __restrict.
70850
70851 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70852
70853         [BZ #13532]
70854         * time/Makefile (routines): Add timespec_get.
70855         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70856         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70857         timespec for ISO C11.
70858         * time/timespec_get.c: New file.
70859         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70860         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70861
70862         [BZ #13531]
70863         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70864         * stdlib/stdlib.h: Declare aligned_alloc.
70865         * Versions.def: Add GLIBC_2.16 for libc.
70866         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70867
70868         [BZ 13527]
70869         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70870         ISO C11.
70871
70872         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70873         code.
70874
70875         [BZ #13528]
70876         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70877
70878         [BZ #13529]
70879         * assert/assert.h (static_assert): Define.
70880
70881         * version.h: Update for 2.16 development version.
70882
70883         [BZ #13526]
70884         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70885         _ISOC11_SOURCE.
70886
70887         * version.h (RELEASE): Bump for 2.15 release.
70888         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70889
70890         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70891         Patch by Marek Polacek <mpolacek@redhat.com>.
70892
70893         * bits/byteswap.h: Protect long long constants with __extension__.
70894         * sysdeps/i386/bits/byteswap.h: Likewise.
70895         * sysdeps/ia64/bits/byteswap.h: Likewise.
70896         * sysdeps/s390/bits/byteswap.h: Likewise.
70897         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70898
70899 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70900
70901         [BZ #13540]
70902         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70903         destination buffer.
70904         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70905
70906 2011-12-23  Marek Polacek  <polacek@redhat.com>
70907
70908         * elf/dl-addr.c (determine_info): Add inline keyword.
70909         * elf/tst-auditmod4b.c (check_avx): Likewise.
70910         * elf/tst-auditmod6b.c (check_avx): Likewise.
70911         * elf/tst-auditmod6c.c (check_avx): Likewise.
70912         * elf/tst-auditmod7b.c (check_avx): Likewise.
70913
70914 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70915
70916         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70917         !__SSE_MATH__.
70918
70919 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70920
70921         [BZ #13540]
70922         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70923         processing for last bytes.
70924
70925 2011-08-06  Bruno Haible  <bruno@clisp.org>
70926
70927         [BZ #13061]
70928         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70929         U+0385, not to U+1FEE.
70930
70931         [BZ #13062]
70932         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70933         entry for U+00A5 U+0301.
70934
70935 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70936
70937         [BZ #13166]
70938         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70939         buffer for the output is too small.
70940
70941         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70942         optimization.
70943
70944         [BZ #13185]
70945         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70946         SSE flags if possible.
70947
70948 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70949
70950         [BZ #13540]
70951         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70952         processing for last bytes.
70953
70954 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70955
70956         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70957         (syscall-list-default-options, syscall-list-default-condition)
70958         (syscall-list-includes): Define.
70959         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70960         list of ABIs and options and #if conditions for each ABI.  Do not
70961         handle common syscalls between ABIs specially.
70962         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70963         Remove.
70964         (syscall-list-variants, syscall-list-32bit-options)
70965         (syscall-list-32bit-condition, syscall-list-64bit-options)
70966         (syscall-list-64bit-condition): Define.
70967         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70968         (syscall-list-variants, syscall-list-32bit-options)
70969         (syscall-list-32bit-condition, syscall-list-64bit-options)
70970         (syscall-list-64bit-condition): Define.
70971         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70972         Remove.
70973         (syscall-list-variants, syscall-list-32bit-options)
70974         (syscall-list-32bit-condition, syscall-list-64bit-options)
70975         (syscall-list-64bit-condition): Define.
70976         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70977         Remove.
70978         (syscall-list-variants, syscall-list-32bit-options)
70979         (syscall-list-32bit-condition, syscall-list-64bit-options)
70980         (syscall-list-64bit-condition): Define.
70981
70982 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70983
70984         * locale/iso-639.def: Add brx entry.
70985
70986         [BZ #13328]
70987         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70988         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70989
70990         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70991         __feraiseexcept_renamed.
70992
70993 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70994
70995         [BZ #13538]
70996         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70997         EPOLLET with unsigned values.
70998         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70999         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
71000
71001         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
71002         to large cancellation.
71003         * math/s_cacoshf.c: Likewise.
71004         * math/s_cacoshl.c: Likewise.
71005
71006 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
71007
71008         [BZ #13305]
71009         [BZ #12786]
71010         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
71011         * math/s_cacoshf.c: Likewise.
71012         * math/s_cacoshl.c: Likewise.
71013
71014 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
71015
71016         [BZ #13439]
71017         * iconv/gconv.h: Define __GCONV_SWAP.
71018         * iconvdata/unicode.c: The swap bit must be stored in __flags.
71019         * iconvdata/utf-16.c: Likewise.
71020         * iconvdata/utf-32.c: Likewise.
71021
71022 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
71023
71024         [BZ #13524]
71025         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
71026         numerator after shifting it by one limb.
71027
71028 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
71029
71030         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
71031         under [__USE_EXTERN_INLINES].
71032
71033 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
71034
71035         [BZ #13446]
71036         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
71037
71038 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71039
71040         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
71041         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
71042         optimized code.
71043         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
71044         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
71045         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
71046         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
71047         for strncasecmp/strncasecmp_l compilation.
71048         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
71049         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
71050
71051 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
71052
71053         [BZ #13484]
71054         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
71055         of __asm__.
71056
71057 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
71058
71059         [BZ #13506]
71060         * time/tzfile.c (__tzfile_read): Check values from file header.
71061
71062 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
71063
71064         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
71065         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
71066         * powerpc/powerpc32/dl-start.S: Likewise.
71067         * powerpc/powerpc32/elf/start.S: Likewise.
71068         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
71069         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
71070         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
71071         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
71072         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
71073         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
71074         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
71075         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
71076         * powerpc/powerpc32/fpu/s_round.S: Likewise.
71077         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
71078         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
71079         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
71080         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
71081         * powerpc/powerpc32/memset.S: Likewise.
71082         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
71083         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
71084         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
71085         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
71086         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
71087         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
71088         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
71089         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
71090         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
71091         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
71092         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
71093         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
71094         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
71095
71096 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71097
71098         * math/libm-test.inc: Added more nearbyint tests.
71099         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
71100         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
71101         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
71102         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
71103
71104 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
71105
71106         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
71107         FD_CLOEXEC.
71108
71109 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71110
71111         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
71112         Add wcscpy-ssse3 wcscpy-c.
71113         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
71114         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
71115         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
71116         * sysdeps/x86_64/wcschr.S: New file.
71117         * sysdeps/x86_64/wcsrchr.S: New file.
71118         * string/test-strcmp.c: Remove checking of wcscmp function for
71119         wrong alignments.
71120         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
71121         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
71122         wcsrchr-sse2 wcsrchr-c.
71123         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
71124         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
71125         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
71126         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
71127         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
71128         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
71129         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
71130         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
71131         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
71132         * wcsmbc/wcschr.c (WCSCHR): New macro.
71133
71134 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71135
71136         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
71137         * wcsmbs/test-wcsrchr.c: New file.
71138         * string/test-strrchr.c: Add wcsrchr support.
71139         (WIDE): New macro.
71140         * wcsmbs/test-wcscpy.c: New file.
71141         * string/test-strcpy.c: Add wcscpy support.
71142         (WIDE): New macro.
71143
71144 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
71145
71146         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
71147         the inner loop.
71148
71149 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
71150
71151         [BZ #13472]
71152         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
71153
71154 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
71155
71156         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
71157         Minor optimizations.
71158
71159         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
71160         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
71161         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
71162
71163 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
71164
71165         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
71166         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
71167         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
71168         for gcc to avoid warnings.
71169         * inet/Makefile (tests): Add tst-checks.
71170         * inet/tst-checks.c: New file.
71171
71172         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
71173         warning.
71174
71175         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
71176         __wmemcmp_sse2.
71177
71178         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
71179         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
71180
71181         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
71182
71183 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
71184
71185         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
71186         problem.
71187
71188         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
71189
71190 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
71191
71192         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
71193         conditional on GCC version.
71194         (__arch_compare_and_exchange_val_8_acq)
71195         (__arch_compare_and_exchange_val_16_acq)
71196         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
71197         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
71198         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
71199
71200 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71201
71202         * sysdeps/sh/backtrace.c: New file.
71203
71204 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71205
71206         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71207         parenthesis.
71208
71209 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71210
71211         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71212         falling back to utime.
71213
71214 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71215
71216         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71217         expectations for float.
71218
71219 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71220
71221         * locale/weight.h (findidx): Add parameter len.
71222         * locale/weightwc.h (findidx): Likewise.
71223         * posix/fnmatch_loop.c (FCT): Adjust caller.
71224         * posix/regcomp.c (build_equiv_class): Likewise.
71225         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71226         * posix/regexec.c (check_node_accept_bytes): Likewise.
71227         * string/strcoll_l.c (STRCOLL): Likewise.
71228         * string/strxfrm_l.c (STRXFRM): Likewise.
71229
71230 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71231
71232         * Makefile.in: Remove CVSOPT handling.
71233         * configure.in: Remove use of AC_REVISION.
71234         * iconvdata/Makefile (distribute): No need to filter out CVS.
71235         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71236         handling.
71237
71238 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71239
71240         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71241         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71242         [USE_AS_STRNCASECMP_L]: Likewise.
71243         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71244         NO_TLS_DIRECT_SEG_REFS.
71245         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71246         Fix argument offsets for non-PIC.
71247         [USE_AS_STRNCASECMP_L]: Likewise.
71248         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71249         NO_TLS_DIRECT_SEG_REFS.
71250
71251 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71252
71253         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71254         O_CLOEXEC.
71255         * locale/loadlocale.c (_nl_load_locale): Likewise.
71256
71257 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71258
71259         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71260         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71261         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71262         (SYSCALL_GETTIME): Set errno on error.
71263
71264         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71265         count references to noai6ai_cached.
71266
71267 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71268
71269         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71270
71271         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71272         FD_CLOEXEC for /proc/self/maps.
71273
71274         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71275         FD_CLOEXEC for /proc/meminfo.
71276
71277         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71278         gai.conf.
71279
71280         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71281         FD_CLOEXEC for given file.
71282
71283         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71284
71285         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71286         FD_CLOEXEC for /etc/hosts.
71287         (_gethtent): Likewise.
71288
71289         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71290
71291         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71292         cancellation and set FD_CLOEXEC for /etc/netgroup.
71293
71294         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71295         reading /etc/publickey.
71296
71297         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71298         allow cancellation when reading /etc/group.
71299
71300         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71301         cancellation.
71302         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71303
71304         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71305         when using data file.
71306
71307         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71308
71309         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71310         (write_nis_obj): Use "c" and "e" in fopen.
71311
71312         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71313
71314         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71315
71316         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71317
71318         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71319
71320         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71321         locale.alias.
71322
71323         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71324
71325         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71326
71327         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71328
71329         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71330         file parsing and set FD_CLOEXEC.
71331
71332 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71333
71334         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71335
71336 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71337
71338         * malloc/arena.c (arena_get2): Don't call reused_arena when
71339         _int_new_arena failed.
71340
71341 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71342
71343         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71344         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71345         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71346         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71347         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71348         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71349         to compile strcasecmp and strncasecmp.
71350         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71351         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71352
71353         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71354
71355 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71356
71357         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71358         locale-defines.sym to gen-as-const-headers.
71359         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71360         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71361         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71362         to compile strcasecmp and strncasecmp.
71363         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71364         strcasecmp_l and strncasecmp_l.
71365         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71366         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71367         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71368         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71369         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71370         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71371         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71372         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71373         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71374         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71375         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71376
71377 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71378
71379         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71380         result of SYSDEP_GETTIME_CPU to retval.
71381         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71382         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71383
71384         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71385         variable.
71386
71387         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71388         mantissa words.
71389         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71390
71391         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71392         from unused variable.
71393
71394         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71395         DWARF definitions.
71396         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71397         for assembling.
71398
71399         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71400         over namespaces.
71401
71402         * sunrpc/rpc_prot.c (rejected): Fix case value.
71403
71404         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71405         unsigned long long int to avoid warnings in shift.
71406
71407         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71408         of use of trans.
71409         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71410         variable tmp.
71411
71412         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71413         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71414         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71415
71416         * nis/nis_table.c (nis_list): Use variable of correct type for
71417         result of __follow_path call.
71418
71419 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71420
71421         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71422         of math functions ceil, trunc, floor, round, and sqrt, when
71423         avaliable on the platform.
71424         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71425         name clash.
71426         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71427         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71428         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71429
71430 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71431
71432         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71433         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71434
71435 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71436
71437         * include/unistd.h: Fix __readlink return type.
71438         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71439
71440 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71441
71442         * stdlib/ucontext.h: Undo last change for makecontext.
71443
71444 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71445
71446         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71447
71448         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71449         * setjmp/setjmp.h: Mark functions as non-leaf.
71450         * setjmp/bits/setjmp2.h: Likewise.
71451         * stdlib/ucontext.h: Likewise.
71452
71453 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71454
71455         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71456         (reused_arena): Don't check arena limit.
71457         (arena_get2): Atomically check arena limit.
71458
71459 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71460
71461         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71462         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71463
71464         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71465         instructions.
71466
71467 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71468
71469         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71470         handler when locking.
71471
71472         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71473         Fix size of allocated buffer.
71474
71475 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71476
71477         [BZ #10103]
71478         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71479         declarations for long double functions.
71480         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71481
71482         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71483
71484 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71485
71486         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71487         installed.
71488
71489         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71490         is disabled.
71491
71492 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71493
71494         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71495
71496 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71497
71498         * include/alloca.h (stackinfo_alloca_round): Define.
71499         (extend_alloca): Use it.
71500         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71501         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71502         here.
71503
71504         * scripts/check-local-headers.sh: Ignore libaudit.h.
71505
71506         * nscd/Makefile (extra-objs): Make recursively expanded.
71507
71508 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71509
71510         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71511         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71512
71513         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71514         * posix/tst-rfc3484-2.c: Likewise.
71515         * posix/tst-rfc3484-3.c: Likewise.
71516
71517         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71518         process_vm_writev.
71519         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71520         process_vm_writev.
71521         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71522         process_vm_writev from libc using GLIBC_2.15 version.
71523
71524         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71525
71526 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71527
71528         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71529         stack usage.
71530
71531 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71532
71533         [BZ #13367]
71534         * nss/getent.c (initgroups_keys): Show error message in case no group
71535         names are given.
71536
71537         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71538         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71539         __bump_nl_timestamp.
71540         * nscd/connections (nscd_init): When host database is served open
71541         netlink socket and request notification about configuration changes.
71542         (main_loop_poll): Track netlink file descriptor and bump timestamp
71543         in case data becomes available.
71544         (main_loop_epoll): Likewise.
71545         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71546         (database_pers_head): Add extra_data fileds.
71547         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71548         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71549         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71550         Adjust caller.
71551         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71552         in6ai data, call __free_in6ai.
71553         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71554         Add -DHAVE_NETLINK.
71555         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71556         interface information.  Reuse previous data if netlink timestamp
71557         is not changed.
71558         (__bump_nl_timestamp): New function.
71559         (__free_in6ai): New function.
71560
71561 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71562
71563         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71564         close_not_cancel_no_status here.
71565         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71566
71567 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71568
71569         [BZ #13276]
71570         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71571         return value.
71572
71573         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71574         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71575         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71576
71577 2011-07-03  Andreas Jaeger  <aj@suse.de>
71578
71579         [BZ #10709]
71580         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71581         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71582         * math/libm-test.inc (sin_test): Add test case.
71583
71584 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71585
71586         [BZ #13337]
71587         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71588         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71589
71590         * elf/chroot_canon.c (chroot_canon): Cleanups.
71591
71592         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71593
71594         [BZ #13335]
71595         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71596         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71597
71598         * string/test-strchr.c: Make usable for strchrnul testing.
71599         * string/test-strchrnul.c: New file.
71600         * string/Makefile (strop-tests): Add strchrnul.
71601
71602         * po/it.po: Update from translation team.
71603         * po/es.po: Likewise.
71604
71605 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71606
71607         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71608         the three constants needed as parameters.  Drop the others.
71609         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71610         __m128i_strloadu_tolower.
71611         Create and initialize variable zero and use it in all the places
71612         where _mm_setzero_si128 was used.
71613
71614         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71615         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71616         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71617         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71618         anymore.
71619         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71620         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71621         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71622         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71623         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71624         __mpranred, __mptan.
71625         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71626         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71627         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71628         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71629         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71630         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71631         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71632         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71633         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71634
71635 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71636
71637         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71638         redefine if SHARED.
71639         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71640
71641         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71642         wide char related routines to wcsmbs subdir.
71643
71644 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71645
71646         [BZ #13344]
71647         * misc/sys/cdefs.h (__THROWNL): Define.
71648         * posix/unistd.h: Use __THREADNL instead of __THREAD
71649         for memory synchronization functions.
71650
71651 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71652
71653         [BZ #13349]
71654         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71655         doesn't exist.
71656         * manual/stdio.texi (Obstack Streams): Node removed.
71657
71658 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71659
71660         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71661         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71662         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71663
71664         * math/math_private.h (math_force_eval): Allow non-addressable
71665         arguments.
71666         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71667
71668 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71669
71670         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71671         file is not needed.
71672
71673         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71674         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71675         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71676         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71677         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71678         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71679         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71680         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71681         Add AVX variants.
71682         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71683         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71684         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71685         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71686         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71687         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71688         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71689         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71690         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71691         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71692         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71693         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71694         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71695         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71696         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71697         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71698         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71699         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71700         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71701
71702         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71703         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71704
71705         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71706         place.  Use VEX encoding when compiling for AVX.
71707
71708 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71709
71710         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71711         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71712
71713         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71714
71715 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71716
71717         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71718         useless if() expression.
71719         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71720         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71721         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71722         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71723         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71724         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71725         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71726         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71727         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71728         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71729         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71730         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71731         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71732         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71733         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71734         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71735         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71736         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71737         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71738
71739         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71740
71741 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71742
71743         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71744         condition.
71745         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71746
71747 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71748
71749         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71750         .text section.  Avoid duplicate constants.
71751         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71752         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71753         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71754         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71755         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71756         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71758         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71759         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71760         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71761         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71762         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71763         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71764         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71765         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71766         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71767         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71768         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71769         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71770         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71771         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71772         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71773         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71774         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71775         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71776         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71777         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71778         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71779         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71780         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71781         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71782         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71783         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71784         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71785         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71786         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71787         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71788         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71789         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71790         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71791         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71792         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71793         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71794         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71795         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71796
71797 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71798
71799         * sysdeps/x86_64/dla.h: Move to ...
71800         * sysdeps/x86_64/fpu/dla.h: ...here.
71801         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71802         situations.  Use __builtin_fma only for gcc 4.6 and up.
71803
71804         * config.make.in: Add have-mfma4 entry.
71805         * configure.in: Substitute libc_cv_cc_fma4.
71806         * math/Makefile (dbl-only-routines): Add sincostab.
71807         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71808         Use __sincostab not sincos.
71809         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71810         name is a macro.
71811         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71812         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71813         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71814         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71815         using __copysign.
71816         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71817         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71818         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71819         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71820         and __inv.
71821         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71822         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71823         __copysign.
71824         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71825         define aliases when function name is a macro.
71826         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71827         sysdeps/ieee754/dbl-64/sincos.tbl.
71828         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71829         fma4-enabled routines.
71830         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71831         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71832         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71833         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71834         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71835         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71836         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71837         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71838         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71839         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71840         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71841         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71842         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71843         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71844         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71845         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71846         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71847         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71848         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71849         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71850         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71851         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71852         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71853         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71854         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71855         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71856         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71857         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71858         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71859         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71860
71861         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71862         rename.
71863         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71864         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71865         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71866         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71867         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71868         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71869         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71870         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71871
71872 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71873
71874         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71875
71876 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71877
71878         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71879
71880         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71881         prediction.
71882         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71883
71884         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71885         Remove unused variable magic_bits.
71886         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71887
71888         * string/strnlen.c: Define and use STRNLEN macro.
71889         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71890         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71891         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71892         * wcsmbs/wcslen.c: Define and use WCSLEN.
71893         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71894         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71895         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71896         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71897         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71898         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71899         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71900
71901 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71902
71903         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71904         strnlen-sse2-no-bsf.
71905         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71906         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71907         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71908         Add strnlen support.
71909         (USE_AS_STRNLEN): New macro.
71910         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71911         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71912         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71913         * sysdeps/x86_64/wcslen.S: New file.
71914
71915 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71916
71917         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71918         XMM-moves are used for copying on small sizes.
71919
71920 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71921
71922         * wcsmbs/Makefile (strop-tests): Add wcschr.
71923         * wcsmbs/test-wcschr.c: New file.
71924         * string/test-strchr.c: Update.
71925         Add wcschr support.
71926         (WIDE): New macro.
71927
71928 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71929
71930         * wcsmbs/Makefile (strop-tests): Add wcslen.
71931         * wcsmbs/test-wcslen.c: New file.
71932         * string/test-strlen.c: Update.
71933         Add wcslen support.
71934         (WIDE): New macro.
71935
71936 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71937
71938         * po/it.po: Update from translation team.
71939
71940 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71941
71942         * sysdeps/x86_64/wcscmp.S: Update.
71943         Fix wrong comparison semantics.
71944         wcscmp shall use signed comparison not unsigned.
71945         Don't use substraction to avoid overflow bug.
71946         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71947         * wcsmbc/wcscmp.c: Likewise.
71948         * string/test-strcmp.c: Likewise.
71949         Add new tests to check cases with negative values.
71950
71951 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71952
71953         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71954         * sysdeps/x86_64/dla.h: ...here.  New file.
71955         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71956         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71957         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71958         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71959         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71960         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71961         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71962         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71963         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71964
71965 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71966
71967         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71968         __ynl_finite aliases.
71969
71970 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71971
71972         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71973
71974         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71975         define DLA_FMA.
71976         [DLA_FMA] (EMULV): Use DLA_FMA.
71977         [DLA_FMA] (MUL12): Use EMULV.
71978         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71979         that are not needed.
71980         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71981         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71982         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71983         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71984         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71985         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71986         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71987
71988 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71989
71990         * math/s_nan.c: Undef __nan.
71991         * math/s_nanf.c: Undef __nanf.
71992         * math/s_nanl.c: Undef __nanl.
71993         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71994         "math_private.h".
71995
71996 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71997
71998         * math/s_catan.c: Add branch predictions.
71999         * math/s_catanf.c: Likewise.
72000         * math/s_catanh.c: Likewise.
72001         * math/s_catanhf.c: Likewise.
72002         * math/s_catanhl.c: Likewise.
72003         * math/s_catanl.c: Likewise.
72004         * math/s_cexp.c: Likewise.
72005         * math/s_cexpf.c: Likewise.
72006         * math/s_cexpl.c: Likewise.
72007         * math/s_clog.c: Likewise.
72008         * math/s_clog10.c: Likewise.
72009         * math/s_clog10f.c: Likewise.
72010         * math/s_clog10l.c: Likewise.
72011         * math/s_clogf.c: Likewise.
72012         * math/s_clogl.c: Likewise.
72013         * math/s_csqrt.c: Likewise.
72014         * math/s_csqrtf.c: Likewise.
72015         * math/s_csqrtl.c: Likewise.
72016         * math/s_ctanf.c: Likewise.
72017         * math/s_ctanh.c: Likewise.
72018         * math/s_ctanhf.c: Likewise.
72019         * math/s_ctanhl.c: Likewise.
72020         * math/s_ctanl.c: Likewise.
72021
72022         * math/math_private.h: Define __nan, __nanf, __nanl.
72023         * math/s_cacosh.c: Include <math_private.h>.
72024         * math/s_cacoshl.c: Likewise.
72025         * math/s_casinh.c: Likewise.
72026         * math/s_casinhf.c: Likewise.
72027         * math/s_casinhl.c: Likewise.
72028         * math/s_ccos.c: Rely entire on ccosh.
72029         * math/s_ccosf.c: Rely entire on ccoshf.
72030         * math/s_ccosl.c: Rely entirely on ccoshl.
72031         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
72032         Remove tests for FE_INVALID.
72033         * math/s_ccoshf.c: Likewise.
72034         * math/s_ccoshl.c: Likewise.
72035         * math/s_csin.c: Likewise.
72036         * math/s_csinf.c: Likewise.
72037         * math/s_csinh.c Likewise.
72038         * math/s_csinhf.c: Likewise.
72039         * math/s_csinhl.c: Likewise.
72040         * math/s_csinl.c: Likewise.
72041         * math/s_ctan.c: Likewise.
72042         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
72043         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
72044         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
72045
72046 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
72047
72048         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
72049         compilation problems.
72050
72051         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
72052         __builtin_expect.
72053
72054 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
72055
72056         * sysdeps/i386/configure.in: Test for -mfma4 option.
72057         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
72058         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
72059         COMMON_CPUID_INDEX_80000001.
72060         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
72061         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
72062         use it if FMA3 is not supported.
72063         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
72064
72065         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
72066         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
72067
72068 2011-10-20  Andreas Schwab  <schwab@redhat.com>
72069
72070         [BZ #12892]
72071         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
72072         it would create a cycle with a link time dependency.
72073
72074 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
72075
72076         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
72077         instruction.
72078         * string/Makefile (strop-tests): Add rawmemchr.
72079         * string/test-rawmemchr.c: New file.
72080
72081         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
72082         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
72083         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
72084         when compiling str{,n}casecmp and when AVX is available.  Hook up
72085         new optimized code in initializers.
72086
72087 2011-10-19  Andreas Schwab  <schwab@redhat.com>
72088
72089         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
72090         __feraiseexcept instead of feraiseexcept.
72091
72092 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
72093
72094         * math/math_private.h: Define defaults for libc_fetestexcept and
72095         libc_feupdateenv.
72096         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
72097         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
72098         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72099         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72100         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
72101         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
72102         libc_fetestexcept and libc_feupdateenv.
72103
72104         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
72105         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
72106         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
72107         * sysdeps/x86_64/fpu/math_private.h: Define special version of
72108         libc_feholdexcept_setround.
72109
72110         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
72111         Add s_nearbyint-c and s_nearbyintf-c.
72112         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
72113         nearbyintf inlines.
72114         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
72115         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
72116         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
72117         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
72118
72119         * math/math_private.h: Define defaults for libc_fegetround,
72120         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
72121         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
72122         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
72123         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
72124         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
72125         standard functions.
72126         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72127         Remove comments and hacks for old compiler versions.
72128         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
72129         libc_fegetround, libc_fesetround, libc_feholdexcept, and
72130         libc_feholdexceptl.
72131
72132 2011-10-18  Andreas Schwab  <schwab@redhat.com>
72133
72134         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
72135         (__feraiseexcept_renamed): Add __NTH.
72136         (feraiseexcept): Add __NTH.  Rename local variables to fix
72137         namespace violations.
72138
72139 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
72140
72141         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
72142
72143         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
72144
72145         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
72146         recently added interfaces.
72147         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
72148
72149         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
72150         about macro parameter expansion.
72151
72152         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
72153         __NO_MATH_INLINES is defined.  Cleanups.
72154
72155         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
72156         and __floorf is target has SSE4.1.
72157         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
72158         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
72159         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
72160         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
72161
72162         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
72163         name.
72164         (floorf): Likewise.
72165
72166         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
72167
72168 2011-10-17  Andreas Schwab  <schwab@redhat.com>
72169
72170         * misc/sys/cdefs.h: Fix last change.
72171
72172         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
72173         database lookup.
72174
72175 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
72176
72177         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
72178
72179         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
72180         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72181         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
72182         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
72183         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
72184         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
72185         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
72186         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
72187         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
72188         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
72189         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
72190         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
72191         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
72192         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
72193         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
72194         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
72195         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
72196         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
72197         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
72198         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
72199         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
72200         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72201
72202         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72203         ceil, ceilf, floor, floorf.
72204
72205         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72206         Perform IRELATIVE relocations last.
72207
72208         * elf/do-rel.h: Add another parameter nrelative, replacing the
72209         local variable with the same name.  Change name of the function
72210         to end in Rel or Rela (uppercase).
72211         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72212         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72213         elf_dynamic_do_##reloc function.
72214
72215 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72216
72217         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72218         is sufficient, at least on modern CPUs.
72219
72220         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72221
72222         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72223         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72224
72225         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72226         __expl_finite.
72227         * math/bits/math-finite.h: Add entries for exp.
72228         * math/e_expl.c: Add __*_finite alias.
72229         * sysdeps/i386/fpu/e_exp.S: Likewise.
72230         * sysdeps/i386/fpu/e_expf.S: Likewise.
72231         * sysdeps/i386/fpu/e_expl.c: Likewise.
72232         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72233         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72234         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72235         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72236         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72237         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72238         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72239
72240         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72241         is sufficient, at least on modern CPUs.
72242
72243         * ctype/ctype-info.c (__ctype_init): Define.
72244         * include/ctype.h (__ctype_init): Declare.
72245         (__ctype_b_loc): The variable is always initialized.
72246         (__ctype_toupper_loc): Likewise.
72247         (__ctype_tolower_loc): Likewise.
72248         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72249         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72250
72251 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72252
72253         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72254
72255         * configure.in: Also look in $cxxmachine/include for C++ system
72256         headers.
72257
72258 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72259
72260         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72261         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72262         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72263         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72264         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72265         (USE_AS_WMEMCMP): New macro.
72266         Fixing indents.
72267         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72268         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72269         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72270         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72271         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72272         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72273         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72274         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72275         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72276         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72277         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72278         (USE_AS_WMEMCMP): New macro.
72279         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72280         * sysdeps/string/test-memcmp.c: Update.
72281         Fix simple_wmemcmp.
72282         Add new tests.
72283         * wcsmbs/wmemcmp.c: Update.
72284         (WMEMCMP): New macro.
72285         Fix overflow bug.
72286
72287 2011-10-12  Andreas Jaeger  <aj@suse.de>
72288
72289         [BZ #13268]
72290         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72291
72292 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72293
72294         * libio/iofwide.c (do_length): Avoid warning.
72295
72296         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72297
72298 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72299
72300         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72301
72302         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72303         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72304         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72305         * sysdeps/i386/i686/fpu/e_log.S: New file.
72306         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72307         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72308
72309         * ctype/ctype.h: Add support for inlined isXXX functions when
72310         compiling C++ code.
72311
72312 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72313
72314         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72315
72316         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72317
72318 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72319
72320         [BZ #13291]
72321         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72322
72323 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72324
72325         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72326         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72327         feraiseexcept.
72328
72329         * sysdeps/x86_64/memrchr.S: Check for zero size.
72330
72331         * string/stratcliff.c: Add memrchr tests.
72332
72333 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72334
72335         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72336         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72337         rawmemchr-sse2 rawmemchr-sse2-bsf.
72338         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72339         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72340         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72341         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72342         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72343         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72344         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72345         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72346         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72347         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72348         * string/memrchr.c (MEMRCHR): New macro.
72349
72350 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72351
72352         Add integration with gcc's -ffinite-math-only and optimize wrapper
72353         functions in libm.
72354         * Versions.def: Define GLIBC_2.15 version for libm.
72355         * math/Makefile (headers): Add bits/math-finite.h.
72356         * math/bits/math-finite.h: New file.
72357         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72358         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72359         * math/e_acoshl.c: Add __*_finite alias.
72360         * math/e_acosl.c: Likewise.
72361         * math/e_asinl.c: Likewise.
72362         * math/e_atan2l.c: Likewise.
72363         * math/e_atanhl.c: Likewise.
72364         * math/e_coshl.c: Likewise.
72365         * math/e_exp10.c: Likewise.
72366         * math/e_exp10f.c: Likewise.
72367         * math/e_exp10l.c: Likewise.
72368         * math/e_exp2l.c: Likewise.
72369         * math/e_fmodl.c: Likewise.
72370         * math/e_gammal_r.c: Likewise.
72371         * math/e_hypotl.c: Likewise.
72372         * math/e_j0l.c: Likewise.
72373         * math/e_j1l.c: Likewise.
72374         * math/e_jnl.c: Likewise.
72375         * math/e_lgammal_r.c: Likewise.
72376         * math/e_log10l.c: Likewise.
72377         * math/e_log2l.c: Likewise.
72378         * math/e_logl.c: Likewise.
72379         * math/e_powl.c: Likewise.
72380         * math/e_sinhl.c: Likewise.
72381         * math/e_sqrtl.c: Likewise.
72382         * math/e_scalb.c: Completely rewritten and optimized.
72383         * math/e_scalbf.c: Likewise.
72384         * math/e_scalbl.c: Likewise.
72385         * math/w_acos.c: Likewise.
72386         * math/w_acosf.c: Likewise.
72387         * math/w_acosl.c: Likewise.
72388         * math/w_acosh.c: Likewise.
72389         * math/w_acoshf.c: Likewise.
72390         * math/w_acoshl.c: Likewise.
72391         * math/w_asin.c: Likewise.
72392         * math/w_asinf.c: Likewise.
72393         * math/w_asinl.c: Likewise.
72394         * math/w_atan2.c: Likewise.
72395         * math/w_atan2f.c: Likewise.
72396         * math/w_atan2l.c: Likewise.
72397         * math/w_atanh.c: Likewise.
72398         * math/w_atanhf.c: Likewise.
72399         * math/w_atanhl.c: Likewise.
72400         * math/w_exp10.c: Likewise.
72401         * math/w_exp10f.c: Likewise.
72402         * math/w_exp10l.c: Likewise.
72403         * math/w_fmod.c: Likewise.
72404         * math/w_fmodf.c: Likewise.
72405         * math/w_fmodl.c: Likewise.
72406         * math/w_j0.c: Likewise.
72407         * math/w_j0f.c: Likewise.
72408         * math/w_j0l.c: Likewise.
72409         * math/w_j1.c: Likewise.
72410         * math/w_j1f.c: Likewise.
72411         * math/w_j1l.c: Likewise.
72412         * math/w_jn.c: Likewise.
72413         * math/w_jnf.c: Likewise.
72414         * math/w_log.c: Likewise.
72415         * math/w_logf.c: Likewise.
72416         * math/w_logl.c: Likewise.
72417         * math/w_log10.c: Likewise.
72418         * math/w_log10f.c: Likewise.
72419         * math/w_log10l.c: Likewise.
72420         * math/w_log2.c: Likewise.
72421         * math/w_log2f.c: Likewise.
72422         * math/w_log2l.c: Likewise.
72423         * math/w_pow.c: Likewise.
72424         * math/w_powf.c: Likewise.
72425         * math/w_powl.c: Likewise.
72426         * math/w_remainder.c: Likewise.
72427         * math/w_remainderf.c: Likewise.
72428         * math/w_remainderl.c: Likewise.
72429         * math/w_scalb.c: Likewise.
72430         * math/w_scalbf.c: Likewise.
72431         * math/w_scalbl.c: Likewise.
72432         * math/w_sqrt.c: Likewise.
72433         * math/w_sqrtf.c: Likewise.
72434         * math/w_sqrtl.c: Likewise.
72435         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72436         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72437         used.
72438         * math/math_private.h: Declare __kernel_standard_f.
72439         * math/w_cosh.c: Remove cruft and optimize a bit.
72440         * math/w_coshf.c: Likewise.
72441         * math/w_coshl.c: Likewise.
72442         * math/w_exp2.c: Likewise.
72443         * math/w_exp2f.c: Likewise.
72444         * math/w_exp2l.c: Likewise.
72445         * math/w_hypot.c: Likewise.
72446         * math/w_hypotf.c: Likewise.
72447         * math/w_hypotl.c: Likewise.
72448         * math/w_lgamma.c: Likewise.
72449         * math/w_lgamma_r.c: Likewise.
72450         * math/w_lgammaf.c: Likewise.
72451         * math/w_lgammaf_r.c: Likewise.
72452         * math/w_lgammal.c: Likewise.
72453         * math/w_lgammal_r.c: Likewise.
72454         * math/w_sinh.c: Likewise.
72455         * math/w_sinhf.c: Likewise.
72456         * math/w_sinhl.c: Likewise.
72457         * math/w_tgamma.c: Likewise.
72458         * math/w_tgammaf.c: Likewise.
72459         * math/w_tgammal.c: Likewise.
72460         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72461         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72462         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72463         Minor optimizations.  Pretty printing.  Remove cruft.
72464         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72465         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72466         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72467         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72468         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72469         * sysdeps/i386/fpu/e_asin.S: Likewise.
72470         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72471         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72472         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72473         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72474         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72475         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72476         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72477         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72478         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72479         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72480         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72481         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72482         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72483         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72484         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72485         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72486         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72487         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72488         * sysdeps/i386/fpu/e_log.S: Likewise.
72489         * sysdeps/i386/fpu/e_log10.S: Likewise.
72490         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72491         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72492         * sysdeps/i386/fpu/e_log2.S: Likewise.
72493         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72494         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72495         * sysdeps/i386/fpu/e_logf.S: Likewise.
72496         * sysdeps/i386/fpu/e_logl.S: Likewise.
72497         * sysdeps/i386/fpu/e_pow.S: Likewise.
72498         * sysdeps/i386/fpu/e_powf.S: Likewise.
72499         * sysdeps/i386/fpu/e_powl.S: Likewise.
72500         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72501         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72502         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72503         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72504         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72505         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72506         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72507         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72508         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72509         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72510         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72511         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72512         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72513         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72514         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72515         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72516         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72517         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72518         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72519         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72520         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72521         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72522         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72523         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72524         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72525         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72526         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72527         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72528         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72529         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72530         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72531         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72532         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72533         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72534         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72535         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72536         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72537         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72538         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72539         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72540         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72541         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72542         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72543         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72544         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72545         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72546         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72547         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72548         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72549         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72550         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72551         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72552         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72553         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72554         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72555         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72556         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72557         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72558         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72559         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72560         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72561         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72562         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72563         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72564         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72565         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72566         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72567         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72568         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72569         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72570         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72571         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72572         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72573         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72574         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72575         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72576         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72577         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72578         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72579         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72580         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72581         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72582         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72583         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72584         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72585         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72586         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72587         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72588         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72589         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72590         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72591         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72592         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72593         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72594         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72595         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72596         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72597         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72598         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72599         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72600         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72601         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72602         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72603         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72604         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72605         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72606         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72607         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72608         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72609         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72610         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72611         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72612         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72613         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72614         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72615         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72616         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72617         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72618         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72619         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72620         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72621         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72622         (__isnanf): Likewise.
72623         (__isinf_ns): Likewise.
72624         (__isinf_nsf): Likewise.
72625         (__finite): Likewise.
72626         (__finitef): Likewise.
72627         (__ieee754_sqrt): Define as macro.
72628         (__ieee754_sqrtf): Define as macro.
72629         (__ieee754_sqrtl): Define as macro.
72630         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72631         inlined copy.
72632         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72633         __FINITE_MATH_ONLY__ consistent.
72634         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72635
72636 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72637
72638         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72639         of rawmemchr.
72640
72641         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72642
72643 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72644
72645         * po/ja.po: Update from translation team.
72646
72647 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72648
72649         * locale/programs/locarchive.c (prepare_address_space): New function.
72650         (create_archive, enlarge_archive, open_archive): Use it.
72651
72652         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72653         inside [SHARED], where it is used.
72654
72655         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72656
72657         * nss/getent.c (netgroup_keys): Remove unused variable.
72658         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72659
72660 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72661
72662         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72663         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72664         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72665         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72666         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72667         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72668         * math/Makefile (libm-calls): Add s_isinf_ns.
72669         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72670         * math/multc3.c: Likewise.
72671         * math/s_casin.c: Likewise.
72672         * math/s_casinf.c: Likewise.
72673         * math/s_casinl.c: Likewise.
72674         * math/s_ccos.c: Likewise.
72675         * math/s_ccosf.c: Likewise.
72676         * math/s_ccosl.c: Likewise.
72677         * math/s_ctan.c: Likewise.
72678         * math/s_ctanf.c: Likewise.
72679         * math/s_ctanh.c: Likewise.
72680         * math/s_ctanhf.c: Likewise.
72681         * math/s_ctanhl.c: Likewise.
72682         * math/s_ctanl.c: Likewise.
72683         * math/w_fmod.c: Likewise.
72684         * math/w_fmodf.c: Likewise.
72685         * math/w_fmodl.c: Likewise.
72686         * math/w_remainder.c: Likewise.
72687         * math/w_remainderf.c: Likewise.
72688         * math/w_remainderl.c: Likewise.
72689         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72690         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72691         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72692         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72693         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72694         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72695         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72696         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72697
72698         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72699         of the number.
72700         * stdio-common/printf_fphex.c: Likewise.
72701         * stdio-common/printf_size.c: Likewise.
72702
72703         * math/e_exp10.c: Include math_private.h using <...> not "...".
72704         * math/e_exp10f.c: Likewise.
72705         * math/e_exp10l.c: Likewise.
72706         * math/e_exp2l.c: Likewise.
72707         * math/e_j0l.c: Likewise.
72708         * math/e_j1l.c: Likewise.
72709         * math/e_jnl.c: Likewise.
72710         * math/e_lgammal_r.c: Likewise.
72711         * math/e_rem_pio2l.c: Likewise.
72712         * math/e_scalb.c: Likewise.
72713         * math/e_scalbf.c: Likewise.
72714         * math/e_scalbl.c: Likewise.
72715         * math/k_cosl.c: Likewise.
72716         * math/k_sinl.c: Likewise.
72717         * math/k_tanl.c: Likewise.
72718         * math/s_cacoshf.c: Likewise.
72719         * math/s_catan.c: Likewise.
72720         * math/s_catanf.c: Likewise.
72721         * math/s_catanh.c: Likewise.
72722         * math/s_catanhf.c: Likewise.
72723         * math/s_catanhl.c: Likewise.
72724         * math/s_catanl.c: Likewise.
72725         * math/s_ccosh.c: Likewise.
72726         * math/s_ccoshf.c: Likewise.
72727         * math/s_ccoshl.c: Likewise.
72728         * math/s_cexp.c: Likewise.
72729         * math/s_cexpf.c: Likewise.
72730         * math/s_cexpl.c: Likewise.
72731         * math/s_clog.c: Likewise.
72732         * math/s_clog10.c: Likewise.
72733         * math/s_clog10f.c: Likewise.
72734         * math/s_clog10l.c: Likewise.
72735         * math/s_clogf.c: Likewise.
72736         * math/s_clogl.c: Likewise.
72737         * math/s_csin.c: Likewise.
72738         * math/s_csinf.c: Likewise.
72739         * math/s_csinh.c: Likewise.
72740         * math/s_csinhf.c: Likewise.
72741         * math/s_csinhl.c: Likewise.
72742         * math/s_csinl.c: Likewise.
72743         * math/s_csqrt.c: Likewise.
72744         * math/s_csqrtf.c: Likewise.
72745         * math/s_csqrtl.c: Likewise.
72746         * math/s_ctan.c: Likewise.
72747         * math/s_ctanf.c: Likewise.
72748         * math/s_ctanh.c: Likewise.
72749         * math/s_ctanhf.c: Likewise.
72750         * math/s_ctanhl.c: Likewise.
72751         * math/s_ctanl.c: Likewise.
72752         * math/s_ldexp.c: Likewise.
72753         * math/s_ldexpf.c: Likewise.
72754         * math/s_ldexpl.c: Likewise.
72755         * math/s_significand.c: Likewise.
72756         * math/s_significandf.c: Likewise.
72757         * math/s_significandl.c: Likewise.
72758         * math/w_acos.c: Likewise.
72759         * math/w_acosf.c: Likewise.
72760         * math/w_acosh.c: Likewise.
72761         * math/w_acoshf.c: Likewise.
72762         * math/w_acoshl.c: Likewise.
72763         * math/w_acosl.c: Likewise.
72764         * math/w_asin.c: Likewise.
72765         * math/w_asinf.c: Likewise.
72766         * math/w_asinl.c: Likewise.
72767         * math/w_atan2.c: Likewise.
72768         * math/w_atan2f.c: Likewise.
72769         * math/w_atan2l.c: Likewise.
72770         * math/w_atanh.c: Likewise.
72771         * math/w_atanhf.c: Likewise.
72772         * math/w_atanhl.c: Likewise.
72773         * math/w_cosh.c: Likewise.
72774         * math/w_coshf.c: Likewise.
72775         * math/w_coshl.c: Likewise.
72776         * math/w_dremf.c: Likewise.
72777         * math/w_exp10.c: Likewise.
72778         * math/w_exp10f.c: Likewise.
72779         * math/w_exp10l.c: Likewise.
72780         * math/w_exp2.c: Likewise.
72781         * math/w_exp2f.c: Likewise.
72782         * math/w_fmod.c: Likewise.
72783         * math/w_fmodf.c: Likewise.
72784         * math/w_fmodl.c: Likewise.
72785         * math/w_hypot.c: Likewise.
72786         * math/w_hypotf.c: Likewise.
72787         * math/w_hypotl.c: Likewise.
72788         * math/w_j0.c: Likewise.
72789         * math/w_j0f.c: Likewise.
72790         * math/w_j0l.c: Likewise.
72791         * math/w_j1.c: Likewise.
72792         * math/w_j1f.c: Likewise.
72793         * math/w_j1l.c: Likewise.
72794         * math/w_jn.c: Likewise.
72795         * math/w_jnf.c: Likewise.
72796         * math/w_jnl.c: Likewise.
72797         * math/w_lgamma.c: Likewise.
72798         * math/w_lgamma_r.c: Likewise.
72799         * math/w_lgammaf.c: Likewise.
72800         * math/w_lgammaf_r.c: Likewise.
72801         * math/w_lgammal.c: Likewise.
72802         * math/w_lgammal_r.c: Likewise.
72803         * math/w_log.c: Likewise.
72804         * math/w_log10.c: Likewise.
72805         * math/w_log10f.c: Likewise.
72806         * math/w_log10l.c: Likewise.
72807         * math/w_log2.c: Likewise.
72808         * math/w_log2f.c: Likewise.
72809         * math/w_log2l.c: Likewise.
72810         * math/w_logf.c: Likewise.
72811         * math/w_logl.c: Likewise.
72812         * math/w_pow.c: Likewise.
72813         * math/w_powf.c: Likewise.
72814         * math/w_powl.c: Likewise.
72815         * math/w_remainder.c: Likewise.
72816         * math/w_remainderf.c: Likewise.
72817         * math/w_remainderl.c: Likewise.
72818         * math/w_scalb.c: Likewise.
72819         * math/w_scalbf.c: Likewise.
72820         * math/w_scalbl.c: Likewise.
72821         * math/w_sinh.c: Likewise.
72822         * math/w_sinhf.c: Likewise.
72823         * math/w_sinhl.c: Likewise.
72824         * math/w_sqrt.c: Likewise.
72825         * math/w_sqrtf.c: Likewise.
72826         * math/w_sqrtl.c: Likewise.
72827         * math/w_tgamma.c: Likewise.
72828         * math/w_tgammaf.c: Likewise.
72829         * math/w_tgammal.c: Likewise.
72830
72831         * po/ja.po: Update from translation team.
72832
72833 2011-09-29  Andreas Jaeger  <aj@suse.de>
72834
72835         [BZ #13179]
72836         * sunrpc/netname.c (netname2host): Fix logic.
72837
72838         [BZ #6779]
72839         [BZ #6783]
72840         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72841         correctly.
72842         * math/w_remainder.c (__remainder): Likewise.
72843         * math/w_remainderf.c (__remainderf): Likewise.
72844         * math/libm-test.inc (remainder_test): Add test cases.
72845
72846 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72847
72848         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72849         sdiv_qrnnd.
72850
72851 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72852
72853         * string/test-memcmp.c: Avoid unncessary #defines.
72854         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72855
72856 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72857
72858         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72859         Use new sse2 version for core i3 - i7 as it's faster
72860         than sse42 version.
72861         (bit_Prefer_PMINUB_for_stringop): New.
72862         * sysdeps/x86_64/rawmemchr.S: Update.
72863         Replace with faster SSE2 version.
72864         * sysdeps/x86_64/memrchr.S: New file.
72865         * sysdeps/x86_64/memchr.S: Update.
72866         Replace with faster SSE2 version.
72867
72868 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72869
72870         * elf/dl-load.c (lose): Add cast to avoid warning.
72871
72872 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72873
72874         * po/ca.po: Update from translation team.
72875
72876         * inet/getnetgrent_r.c: Hook up nscd.
72877         * nscd/Makefile (routines): Add nscd_netgroup.
72878         (nscd-modules): Add netgroupcache.
72879         (CFLAGS-netgroupcache.c): Define.
72880         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72881         (cache_search): Add const to second parameter.
72882         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72883         INNETGR.
72884         (dbs): Add netgrdb entry.
72885         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72886         (verify_persistent_db): Handle netgrdb.
72887         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72888         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72889         GETFDNETGR.
72890         (netgroup_response_header): Define.
72891         (innetgroup_response_header): Define.
72892         (datahead): Add netgroup_response_header and innetgroup_response_header
72893         elements.
72894         * nscd/nscd.conf: Add entries for netgroup cache.
72895         * nscd/nscd.h (dbtype): Add netgrdb.
72896         (_PATH_NSCD_NETGROUP_DB): Define.
72897         (netgroup_iov_disabled): Declare.
72898         (xmalloc, xcalloc, xrealloc): Move declarations here.
72899         (cache_search): Adjust prototype.
72900         Add netgroup-related prototypes.
72901         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72902         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72903         (__nscd_innetgr): Declare.
72904         * nscd/selinux.c (perms): Use access_vector_t as element type and
72905         add netgroup-related initializers.
72906         * nscd/netgroupcache.c: New file.
72907         * nscd/nscd_netgroup.c: New file.
72908         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72909         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72910         For four parameters use innetgr.
72911         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72912         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72913         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72914         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72915
72916         * nscd/connections.c (register_traced_file): Don't register file
72917         for disabled databases.
72918
72919 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72920
72921         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72922
72923         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72924         from tree and freeing node.
72925
72926 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72927
72928         * nss/nsswitch.c (__nss_database_lookup): Handle
72929         nss_parse_service_list out of memory case.
72930
72931 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72932
72933         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72934         out of memory case.
72935
72936 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72937
72938         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72939         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72940         pass it down.
72941         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72942         elf_machine_rela, elf_machine_lazy_rel.
72943         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72944         (ELF_DYNAMIC_DO_REL): Likewise.
72945         (ELF_DYNAMIC_DO_RELA): Likewise.
72946         (ELF_DYNAMIC_RELOCATE): Likewise.
72947         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72948         to ELF_DYNAMIC_DO_REL.
72949         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72950         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72951         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72952         elf_machine_rela.
72953         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72954         skip_ifunc, don't call ifunc function if non-zero.
72955         (elf_machine_rela): Likewise.
72956         (elf_machine_lazy_rel): Likewise.
72957         (elf_machine_lazy_rela): Likewise.
72958         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72959         (elf_machine_lazy_rel): Likewise.
72960         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72961         Likewise.
72962         (elf_machine_lazy_rel): Likewise.
72963         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72964         Likewise.
72965         (elf_machine_lazy_rel): Likewise.
72966         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72967         (elf_machine_lazy_rel): Likewise.
72968         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72969         (elf_machine_lazy_rel): Likewise.
72970         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72971         (elf_machine_lazy_rel): Likewise.
72972         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72973         (elf_machine_lazy_rel): Likewise.
72974         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72975         (elf_machine_lazy_rel): Likewise.
72976         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72977         (elf_machine_lazy_rel): Likewise.
72978
72979 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72980
72981         * nss/nss_files/files-init.c (_nss_files_init): Use static
72982         initialization for all the *_traced_file variables.
72983
72984 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72985
72986         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72987
72988 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72989
72990         [BZ #13226]
72991         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72992
72993 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72994
72995         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72996         Reread the line before reparsing it.
72997
72998 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72999
73000         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
73001
73002 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
73003             Maxim Kuvyrkov  <maxim@codesourcery.com>
73004             Joseph Myers  <joseph@codesourcery.com>
73005
73006         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
73007         if needed for __stack_chk_guard.
73008
73009 2011-09-19  Roland McGrath  <roland@hack.frob.com>
73010
73011         * sysdeps/posix/spawni.c (script_execute): Always define it.
73012         It will be optimized away if unused.
73013         (maybe_script_execute): New function.
73014         (__spawni): Call it.
73015
73016         * Makerules: Don't include tls.make.
73017         (config-tls): Always set to thread.
73018         * tls.make.c: File removed.
73019
73020 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
73021
73022         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
73023         * config.make.in (CPPFLAGS-config): New substituted variable.
73024
73025 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
73026
73027         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
73028
73029         [BZ #13192]
73030         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
73031         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
73032
73033 2011-09-15  Roland McGrath  <roland@hack.frob.com>
73034
73035         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
73036         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
73037         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
73038         (CALL_FAIL): Likewise.
73039         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
73040         (CALL_FAIL): Macro removed.
73041         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
73042
73043 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
73044
73045         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
73046         for __FINITE_MATH_ONLY__ == 1.
73047
73048 2011-09-15  Andreas Schwab  <schwab@redhat.com>
73049
73050         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
73051         __ieee754_sqrt instead of sqrt.
73052         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
73053         __ieee754_sqrtf instead of sqrtf.
73054         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
73055         __floorf instead of floorf.
73056         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
73057         __floorf, __truncf instead of floorf, truncf.
73058
73059 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
73060
73061         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
73062
73063         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
73064         __extern_always_inline.
73065         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
73066         32-bit.
73067
73068 2011-09-14  Andreas Schwab  <schwab@redhat.com>
73069
73070         * elf/rtld.c (dl_main): Also relocate in dependency order when
73071         doing symbol dependency testing.
73072
73073 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
73074
73075         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
73076         Always define `refsym'.
73077
73078 2011-09-13  Andreas Schwab  <schwab@redhat.com>
73079
73080         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
73081         (__FD_ELT): Renamed from __FDELT.
73082         * misc/bits/select2.h (__FD_ELT): Likewise.
73083         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
73084         __FD_MASK instead of __FDELT, __FDMASK.
73085         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
73086         Likewise.
73087         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
73088         Likewise.
73089
73090         * elf/Makefile (gen-ldd): Fix pattern.
73091
73092         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
73093         (init_tls): Likewise.
73094
73095 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
73096
73097         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
73098
73099 2011-09-12  Andreas Schwab  <schwab@redhat.com>
73100
73101         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
73102         `struct cmsghdr *' instead of `void *'.
73103         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
73104         Likewise.
73105
73106 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
73107
73108         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
73109         if non-absolute.
73110         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
73111         ldd_rewrite_script.
73112
73113 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
73114
73115         * configure.in: Remove --with-tls option.
73116         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
73117         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
73118         out in case it is missing.
73119         * sysdeps/ia64/elf/configure.in: Likewise.
73120         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
73121         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
73122         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
73123         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
73124         * sysdeps/sh/elf/configure.in: Likewise.
73125         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
73126         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
73127         * sysdeps/x86_64/elf/configure.in: Likewise.
73128         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
73129         * sysdeps/mach/hurd/tls.h: Likewise.
73130
73131         [BZ #13067]
73132         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
73133
73134         [BZ #13090]
73135         * configure.in: Fix use of AC_INIT.
73136
73137         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
73138
73139 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
73140
73141         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
73142         __set_errno.
73143         * malloc/hooks.c: Likewise.
73144
73145         [BZ #11929]
73146         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
73147         variables statically.
73148         (narenas): Initialize.
73149         (list_lock): Initialize.
73150         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
73151         initializtion of main_arena and list_lock.  Small cleanups.
73152         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
73153         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
73154         Add initializers to main_arena and mp_.
73155         (malloc_state): Remove pagesize member.  Change all users to use
73156         GLRO(dl_pagesize).
73157
73158         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
73159         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
73160         is always initialized.
73161
73162         * malloc/malloc.c: Removed unused configurations and dead code.
73163         * malloc/arena.c: Likewise.
73164         * malloc/hooks.c: Likewise.
73165         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
73166
73167         * include/tls.h: Removed.  USE___THREAD must always be defined.
73168         * bits/libc-tsd.h: Don't handle !USE___THREAD.
73169         * elf/dl-libc.c: Likewise.
73170         * elf/dl-tsd.c: Likewise.
73171         * include/errno.h: Likewise.
73172         * include/netdb.h: Likewise.
73173         * include/resolv.h: Likewise.
73174         * inet/herrno-loc.c: Likewise.
73175         * inet/herrno.c: Likewise.
73176         * malloc/arena.c: Likewise.
73177         * malloc/hooks.c: Likewise.
73178         * malloc/malloc.c: Likewise.
73179         * resolv/res-state.c: Likewise.
73180         * resolv/res_libc.c: Likewise.
73181         * sysdeps/i386/dl-machine.h: Likewise.
73182         * sysdeps/ia64/dl-machine.h: Likewise.
73183         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
73184         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
73185         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
73186         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
73187         * sysdeps/sh/dl-machine.h: Likewise.
73188         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
73189         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
73190         * sysdeps/unix/i386/sysdep.S: Likewise.
73191         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
73192         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
73193         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
73194         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
73195         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
73196         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
73197         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
73198         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
73199         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
73200         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73201         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73202         * sysdeps/x86_64/dl-machine.h: Likewise.
73203         * tls.make.c: Likewise.
73204
73205         * configure.in: Remove --with-__thread option.  Make tests for
73206         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73207         tls_model attribute fail if no support is available.  Remove
73208         USE_IN_LIBIO.
73209         * Makeconfig: Adjust for dropped configure option.  All features are
73210         now mandatory.
73211         * Makerules: Likewise.
73212         * Versions.def: Likewise.
73213         * argp/argp-fmtstream.c: Likewise.
73214         * argp/argp-fmtstream.h: Likewise.
73215         * argp/argp-help.c: Likewise.
73216         * assert/assert.c: Likewise.
73217         * config.h.in: Likewise.
73218         * config.make.in: Likewise.
73219         * configure: Likewise.
73220         * configure.in: Likewise.
73221         * csu/Versions: Likewise.
73222         * csu/init.c: Likewise.
73223         * elf/tst-audit2.c: Likewise.
73224         * elf/tst-tls10.c: Likewise.
73225         * elf/tst-tls10.h: Likewise.
73226         * elf/tst-tls11.c: Likewise.
73227         * elf/tst-tls12.c: Likewise.
73228         * elf/tst-tls14.c: Likewise.
73229         * elf/tst-tlsmod11.c: Likewise.
73230         * elf/tst-tlsmod12.c: Likewise.
73231         * elf/tst-tlsmod13.c: Likewise.
73232         * elf/tst-tlsmod13a.c: Likewise.
73233         * elf/tst-tlsmod14a.c: Likewise.
73234         * elf/tst-tlsmod15b.c: Likewise.
73235         * elf/tst-tlsmod16a.c: Likewise.
73236         * elf/tst-tlsmod16b.c: Likewise.
73237         * elf/tst-tlsmod7.c: Likewise.
73238         * elf/tst-tlsmod8.c: Likewise.
73239         * elf/tst-tlsmod9.c: Likewise.
73240         * gmon/gmon.c: Likewise.
73241         * grp/fgetgrent_r.c: Likewise.
73242         * grp/putgrent.c: Likewise.
73243         * hurd/fopenport.c: Likewise.
73244         * include/libc-symbols.h: Likewise.
73245         * include/tls.h: Likewise.
73246         * intl/gettextP.h: Likewise.
73247         * intl/loadinfo.h: Likewise.
73248         * locale/global-locale.c: Likewise.
73249         * locale/localeinfo.h: Likewise.
73250         * mach/devstream.c: Likewise.
73251         * malloc/arena.c: Likewise.
73252         * malloc/set-freeres.c: Likewise.
73253         * misc/err.c: Likewise.
73254         * misc/getttyent.c: Likewise.
73255         * misc/mntent_r.c: Likewise.
73256         * posix/getopt.c: Likewise.
73257         * posix/wordexp.c: Likewise.
73258         * pwd/fgetpwent_r.c: Likewise.
73259         * resolv/Versions: Likewise.
73260         * resolv/res_hconf.c: Likewise.
73261         * shadow/fgetspent_r.c: Likewise.
73262         * shadow/putspent.c: Likewise.
73263         * stdio-common/printf_fphex.c: Likewise.
73264         * stdio-common/tmpfile.c: Likewise.
73265         * stdlib/abort.c: Likewise.
73266         * stdlib/fmtmsg.c: Likewise.
73267         * sunrpc/auth_unix.c: Likewise.
73268         * sunrpc/clnt_perr.c: Likewise.
73269         * sunrpc/clnt_tcp.c: Likewise.
73270         * sunrpc/clnt_udp.c: Likewise.
73271         * sunrpc/clnt_unix.c: Likewise.
73272         * sunrpc/openchild.c: Likewise.
73273         * sunrpc/svc_simple.c: Likewise.
73274         * sunrpc/svc_tcp.c: Likewise.
73275         * sunrpc/svc_udp.c: Likewise.
73276         * sunrpc/svc_unix.c: Likewise.
73277         * sunrpc/xdr.c: Likewise.
73278         * sunrpc/xdr_array.c: Likewise.
73279         * sunrpc/xdr_rec.c: Likewise.
73280         * sunrpc/xdr_ref.c: Likewise.
73281         * sunrpc/xdr_stdio.c: Likewise.
73282
73283 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73284
73285         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73286
73287 2011-07-03  Andreas Jaeger  <aj@suse.de>
73288
73289         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73290         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73291         regenerate with gen-libm-tests.pl.
73292
73293 2010-05-12  Petr Baudis  <pasky@suse.cz>
73294
73295         [BZ #11589]
73296         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73297         around j0() zero points by switching to j1().
73298         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73299         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73300         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73301         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73302
73303 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73304
73305         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73306         instead of 0.
73307         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73308         instead of 0.
73309         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73310         Patch in part by Pavel Roskin <proski@gnu.org>.
73311
73312         [BZ #13138]
73313         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73314         realloc.
73315         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73316         Free memory block if necessary.
73317
73318         [BZ #12847]
73319         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73320         be NULL.  Don't lock in this case.
73321
73322 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73323
73324         * elf/elf.h (ELFOSABI_GNU): New macro.
73325         (ELFOSABI_LINUX): Define to that.
73326
73327 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73328
73329         * string/strncat.c (strncat): Undef the symbol in case it has been
73330         defined in bits/string.h.
73331
73332 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73333
73334         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73335
73336         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73337         link map.
73338
73339 2011-08-17  Andreas Jaeger  <aj@suse.de>
73340
73341         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73342
73343 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73344             Ian Lance Taylor  <iant@google.com>
73345
73346         * math/libm-test.inc (lround_test): New testcase.
73347         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73348
73349 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73350
73351         * Makefile: Remove support for automatic cvs check-ins.
73352         * Makerules: Likewise.
73353         * config.make.in: Likewise.
73354         * configure.in: Likewise.
73355         * intl/Makefile: Likewise.
73356         * locale/Makefile: Likewise.
73357         * po/Makefile: Likewise.
73358         * posix/Makefile: Likewise.
73359         * sysdeps/gnu/Makefile: Likewise.
73360         * sysdeps/mach/hurd/Makefile: Likewise.
73361         * sysdeps/sparc/sparc32/Makefile: Likewise.
73362
73363         [BZ #13118]
73364         * posix/Makefile (bug-regex32-ENV): Define.
73365         Patch by John Stanley <jpsinthemix@verizon.net>.
73366
73367         * misc/Makefile (headers): Add bits/select2.h.
73368         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73369         * misc/bits/select2.h: New file.
73370         * include/bits/select2.h: New file.
73371         * debug/Makefile (routines): Add fdelt_chk.
73372         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73373         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73374         FD_ISSET.
73375         * debug/fdelt_chk.c: New file.
73376
73377         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73378         * wcsmbs/test-wmemcmp.c: Likewise.
73379         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73380         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73381
73382 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73383
73384         * string/Makefile (strop-tests): Add memcmp.
73385         * string/test-wmemcmp.c: New file.
73386         * string/test-memcmp.c: Add wmemcmp support.
73387
73388 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73389
73390         [BZ #13153]
73391         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73392         2011-07-19 change.
73393
73394         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73395         garbage value in a __mach_port_mod_refs call in the cases of the
73396         task-self and thread-self ports.
73397
73398 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73399
73400         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73401
73402 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73403
73404         * elf/dl-load.c (lose): Check for non-null L.
73405
73406 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73407
73408         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73409
73410         * elf/dl-libc.c (dlerror_run): Pass back error code from
73411         dl_catch_error.
73412
73413         [BZ #13123]
73414         * elf/dl-load.c (lose): Free l_origin if it is valid.
73415
73416         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73417         names.
73418         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73419         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73420         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73421         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73422         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73423         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73424
73425 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73426
73427         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73428         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73429         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73430         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73431         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73432         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73433         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73434         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73435         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73436         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73437
73438 2011-08-15  Alan Modra  <amodra@gmail.com>
73439
73440         [BZ #13092]
73441         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73442         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73443         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73444         ppc_mcount to static-only-routines.
73445         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73446         __mcount_internal.
73447         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73448         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73449
73450 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73451
73452         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73453         for finite and infinity parameters.
73454
73455 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73456
73457         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73458         and add nop instructions for throughput optimization.
73459         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73460
73461 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73462
73463         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73464         aligned copy for power7 with vector-scalar instructions.
73465         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73466
73467 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73468
73469         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73470         AVX check.
73471
73472 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73473
73474         [BZ #13144]
73475         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73476         last change.
73477
73478 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73479
73480         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73481         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73482         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73483         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73484         clock_gettime.
73485
73486 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73487
73488         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73489         Forgot to demangle the pointer.
73490
73491         * sysdeps/i386/sysdep.h: Define atom_text_section.
73492         * sysdeps/x86_64/sysdep.h: Likewise.
73493         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73494         section with atom_text_section.
73495         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73496         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73497         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73498         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73499         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73500
73501         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73502         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73503         already be defined.  Change to take two parameters and don't assign
73504         result to variable.  Adjust all users.
73505         Define INTERNAL_GETTIME if not already defined.
73506         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73507         call.
73508         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73509         HAVE_CLOCK_GETTIME_VSYSCALL.
73510         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73511
73512         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73513         gettimeofday vsyscall, just use time.
73514
73515 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73516
73517         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73518         <errno.h>.
73519
73520 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73521
73522         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73523         syscall on x86-64.
73524         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73525         syscall.
73526         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73527         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73528         syscall if possible.
73529
73530 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73531
73532         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73533         e_ident.  Don't pass to find_mapsXX.
73534         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73535
73536 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73537
73538         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73539         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73540         * sysdeps/x86_64/multiarch/strchr.S: Update.
73541         Check bit_slow_BSF bit.
73542         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73543         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73544         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73545
73546 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73547
73548         [BZ #13134]
73549         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73550         before glibc 2.15.
73551         (tryshell): Define.
73552         (__spawni): Change last parameter to be flag.  Test
73553         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73554         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73555         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73556         * posix/spawni.c: Likewise.
73557         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73558         * posix/spawnp.c: Likewise.  Change normal version to use
73559         SPAWN_XFLAGS_USE_PATH.
73560         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73561         SPAWN_XFLAGS_TRY_SHELL.
73562
73563         [BZ #13150]
73564         * posix/glob.h: Remove gcc 1.x support.
73565
73566         [BZ #13068]
73567         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73568
73569 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73570
73571         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73572         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73573         strrchr-sse2-bsf
73574         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73575         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73576         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73577         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73578         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73579         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73580
73581 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73582
73583         * sysdeps/x86_64/wcscmp.S: New file.
73584
73585         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73586         wcscmp-c wcscmp-sse2
73587         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73588         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73589         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73590         * wcsmbs/wcscmp.c: Allow renaming.
73591
73592 2011-09-05  David S. Miller  <davem@davemloft.net>
73593
73594         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73595         stack slot, rather than the struct return pointer slot.
73596         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73597         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73598         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73599         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73600
73601 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73602
73603         * po/ja.po: Update from translation team.
73604
73605         [BZ #13144]
73606         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73607         kernel in 64-bit binaries.
73608
73609 2011-09-01  David S. Miller  <davem@davemloft.net>
73610
73611         * elf/elf.h (HWCAP_SPARC_*): Move to..
73612         * sysdeps/sparc/sysdep.h: this new file and add new values.
73613         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73614         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73615         _DL_HWCAP_COUNT to 24.
73616         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73617         entries.
73618         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73619         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73620         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73621         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73622         instead of magic constants.
73623         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73624
73625 2011-08-31  David S. Miller  <davem@davemloft.net>
73626
73627         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73628         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73629         Reimplement to do errno handling inline.
73630         (SYSCALL_ERROR_HANDLER): New macro.
73631         (__SYSCALL_STRING): Do not do errno handling in asm.
73632         (__CLONE_SYSCALL_STRING): Delete.
73633         (__INTERNAL_SYSCALL_STRING): Delete.
73634         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73635         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73636         (PSEUDO): Reimplement to do errno handling inline.
73637         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73638         (SYSCALL_ERROR_HANDLER): New macro.
73639         (__SYSCALL_STRING): Do not do errno handling in asm.
73640         (__CLONE_SYSCALL_STRING): Delete.
73641         (__INTERNAL_SYSCALL_STRING): Delete.
73642         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73643         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73644         i386.
73645         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73646         (inline_syscall*): Add 'err' argument.
73647         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73648         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73649         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73650         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73651
73652         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73653         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73654
73655 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73656
73657         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73658
73659 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73660
73661         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73662         directive.
73663
73664 2011-08-24  David S. Miller  <davem@davemloft.net>
73665
73666         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73667
73668 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73669
73670         * elf/Makefile: Add rules to build and run unload8 test.
73671         * elf/unload8.c: New file.
73672         * elf/unload8mod1.c: New file.
73673         * elf/unload8mod1x.c: New file.
73674         * elf/unload8mod2.c: New file.
73675         * elf/unload8mod3.c: New file.
73676
73677         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73678         it wasn't used.
73679
73680 2011-08-23  David S. Miller  <davem@davemloft.net>
73681
73682         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73683         subtract stack bias.
73684         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73685         %sp not %fp in calculations.
73686         (_JMPBUF_UNWINDS_ADJ): Likewise.
73687
73688         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73689         (aio_suspend): Call it to force an exception region around the
73690         AIO_MISC_WAIT() invocation.
73691
73692 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73693
73694         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73695         backslash.
73696
73697 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73698
73699         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73700         protection macro.
73701         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73702         and <dl-machine.h>.
73703         (Elf64_FuncDesc): Remove.
73704
73705 2011-08-22  David S. Miller  <davem@davemloft.net>
73706
73707         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73708         sigaltstack check, add missing cfi directives.
73709         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73710         missing cfi directives, and sigaltstack handling.
73711
73712 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73713
73714         [BZ #11724]
73715         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73716         object is seen twice.
73717         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73718
73719         * elf/Makefile (distribute): Add tst-initorder2.c.
73720         (tests): Add tst-initorder2.
73721         (modules-names): Add tst-initorder2a tst-initorder2b
73722         tst-initorder2c tst-initorder2d.  Add rules to build them.
73723         ($(objpfx)tst-initorder2.out): New rule.
73724         * elf/tst-initorder2.c: New file.
73725         * elf/tst-initorder2.exp: New file.
73726
73727 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73728
73729         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73730
73731         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73732         dependencies back to end of function.
73733
73734         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73735         $(elfobjdir)/ld.so.
73736
73737 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73738
73739         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73740         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73741         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73742         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73743         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73744         of __vdso_gettimeofday.
73745         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73746         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73747         attribute_hidden.
73748         (_libc_vdso_platform_setup): Remove initialization of
73749         __vdso_gettimeofday and __vdso_time.
73750
73751 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73752
73753         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73754         and fgetc_unlocked.
73755         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73756         getc_unlocked.
73757
73758         * elf/dl-open.c (add_to_global): Report additions to the global scope
73759         for LD_DEBUG=scopes.
73760         (dl_open_worker): Also print scope of newly loaded dependencies.
73761         (_dl_show_scope): Indicate if there is no scope.
73762
73763         [BZ #13114]
73764         * stdio-common/Makefile (tests): Add bug24.
73765         * stdio-common/bug24.c: New file.
73766
73767 2011-08-19  Andreas Jaeger  <aj@suse.de>
73768
73769         [BZ #13114]
73770         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73771         non-existant file when using close-on-exec mode.
73772
73773 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73774
73775         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73776         the very first instruction.
73777
73778         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73779         the CFI state in the end.
73780         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73781         inclusion of dl-trampoline.h.
73782         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73783
73784 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73785
73786         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73787         expectations for long double.
73788
73789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73790         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73791
73792 2011-08-14  David S. Miller  <davem@davemloft.net>
73793
73794         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73795         artificual limit depends upon the system page size.
73796
73797 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73798
73799         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73800         * resolv/Makefile: Define CFLAGS-libresolv.
73801
73802 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73803
73804         * nss/makedb.c (compute_tables): Make variables used in nested
73805         function static.
73806
73807 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73808
73809         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73810         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73811         if buffer was too small.
73812
73813         * elf/pldd.c (main): Attach to all threads in the process.
73814         Rewrite /proc handling to use *at functions.
73815
73816 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73817
73818         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73819         specifies first scope to show.
73820         (dl_open_worker): Update callers.  Move printing scope of new
73821         object to before the relocation.
73822         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73823         * sysdeps/generic/ldsodefs.h: Update declaration.
73824
73825         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73826         string for the scope number.
73827
73828 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73829
73830         * nscd/servicescache.c (cache_addserv): Make sure written is always
73831         initialized.
73832
73833 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73834
73835         * sysdeps/i386/i486/bits/atomic.h
73836         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73837         statement expression, so as to suppress "set but not used" warning.
73838         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73839
73840         * string/strncat.c (STRNCAT): Use prototype definition.
73841
73842         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73843         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73844         -Iprograms here.
73845         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73846         (localedef-modules): Add localedef.
73847         (locale-modules): Add locale.
73848
73849         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73850         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73851         to avoid a warning.
73852
73853 2011-08-14  David S. Miller  <davem@davemloft.net>
73854
73855         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73856         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73857
73858 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73859
73860         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73861         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73862         * elf/rtld.c (dl_main): Set l_name of vDSO.
73863         Call _dl_show_scope when DL_DEBUG_SCOPES.
73864         (process_dl_debug): Recognize scopes flag and also set it for all.
73865         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73866         Declare _dl_show_scope.
73867
73868         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73869         (do_dlopen): Pass caller_dlopen to dl_open.
73870         (__libc_dlopen_mode): Initialize caller_dlopen.
73871
73872         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73873         of libc.  Make tolower call locale-independent.  Optimize a bit by
73874         using isdigit instead of isalnum.
73875         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73876
73877 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73878
73879         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73880         was a dependency or dynamically loaded.
73881
73882 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73883
73884         * intl/l10nflist.c: Allow architecture-specific pop function.
73885         * sysdeps/x86_64/l10nflist.c: New file.
73886
73887         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73888         classification.
73889
73890 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73891
73892         * include/dirent.h: Add libc_hidden_proto for scandirat and
73893         scandirat64.  Don't declare __scandirat64.
73894         * dirent/scandirat.c: Add libc_hidden_def.
73895         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73896         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73897
73898 2011-08-10  David S. Miller  <davem@davemloft.net>
73899
73900         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73901         enum.
73902         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73903         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73904         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73905
73906 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73907
73908         * Versions.def [libc]: Add GLIBC_2.15.
73909         * dirent/Makefile (routines): Add scandirat and scandirat64.
73910         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73911         GLIBC_2.15.
73912         * dirent/dirent.h: Declare scandirat and scandirat64.
73913         * dirent/scandirat.c: New file.
73914         * dirent/scandirat64.c: New file.
73915         * sysdeps/wordsize-64/scandirat.c: New file.
73916         * sysdeps/wordsize-64/scandirat64.c: New file.
73917         * dirent/opendir.c: Define opendirat.
73918         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73919         using scandirat.
73920         * dirent/scandir64.c: Adjust for scandir.c change.
73921         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73922         __scandirat64, and __scandir_cancel_handler.
73923         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73924         additional parameter and use openat instead of open (outside of ld.so).
73925         Add new __opendir as wrapper around __opendirat.
73926         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73927         here without requiring old scandirat implementation.
73928
73929 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73930
73931         * dirent/scandir.c (cancel_handler): Renamed to
73932         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73933         defined.  Adjust users.
73934         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73935         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73936
73937 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73938
73939         * string/test-string.h (IMPL): Use __STRING to expand name and then
73940         stringify it.
73941
73942         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73943         of cleanups.
73944
73945 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73946
73947         * string/Makefile: Update.
73948         (strop-tests): Append strncat.
73949         * string/test-wcscmp.c: New file.
73950         New comprehensive test for wcscmp.
73951         * string/test-strcmp.c: Update.
73952         (WIDE): New define.
73953
73954 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73955
73956         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73957         line.
73958
73959 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73960
73961         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73962         encoding to ACE if AI_IDN.
73963
73964 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73965
73966         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73967         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73968
73969 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73970
73971         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73972         Fix overflow bug in strncat.
73973         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73974
73975         * string/test-strncat.c: Update.
73976         Add new tests for checking overflow bugs.
73977
73978 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73979
73980         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73981         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73982         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73983         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73984         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73985         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73986         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73987         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73988         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73989
73990         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73991         (USE_AS_STRCAT): Define.
73992         Add strcat and strncat support.
73993         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73994
73995 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73996
73997         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73998         __n bigger than INT_MAX+1.
73999         (__strncmp_g): Likewise.
74000
74001 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
74002
74003         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
74004         * libio/stido.h: Likewise.
74005
74006         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
74007         (AF_NFC): Define.
74008         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
74009         (AF_NFC): Define.
74010
74011         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
74012         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
74013         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
74014         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
74015         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
74016
74017         [BZ #13021]
74018         * scripts/test-installation.pl: Don't expect libnss_test1 to be
74019         installed.
74020
74021         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
74022         typo.
74023         (_dl_x86_64_save_sse): Likewise.
74024
74025 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
74026
74027         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
74028         OSXSAVE.
74029         (_dl_x86_64_save_sse): Likewise.
74030
74031         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
74032
74033         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
74034
74035 2011-07-21  Andreas Schwab  <schwab@redhat.com>
74036
74037         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
74038         change.
74039         (_dl_x86_64_save_sse): Use correct AVX check.
74040
74041 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74042
74043         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
74044         bug in strncpy/strncat.
74045         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
74046
74047 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
74048
74049         * string/tester.c (test_strcat): Add tests for different alignments
74050         of source and destination.
74051         (test_strncat): Likewise.
74052
74053 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
74054
74055         [BZ #12852]
74056         * posix/glob.c (glob): Check passed in values before using them in
74057         expressions to avoid some overflows.
74058         (glob_in_dir): Likewise.
74059
74060         [BZ #13007]
74061         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
74062         check for AVX enablement so that we don't crash with old kernels and
74063         new hardware.
74064         * elf/tst-audit4.c: Add same checks here.
74065         * elf/tst-audit6.c: Likewise.
74066
74067         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
74068
74069 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
74070
74071         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
74072
74073 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
74074
74075         * po/cs.po: Update from translation team.
74076         * po/bg.po: Likewise.
74077
74078 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
74079
74080         * misc/sys/cdefs.h: Add support for const attribute.
74081         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
74082         to gnu_dev_{major,minor,makedev} functions.
74083
74084 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
74085
74086         * intl/dcigettext.c (get_output_charset): Add missing bracket.
74087
74088 2011-07-20  Andreas Schwab  <schwab@redhat.com>
74089
74090         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
74091         strlen results.
74092
74093 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74094
74095         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
74096         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
74097         register in order to avoid conflicts with the soft frame pointer
74098         being held in r11 when necessary.
74099         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
74100         (INTERNAL_VSYSCALL_NCS): Likewise.
74101
74102 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
74103
74104         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
74105         * elf/dl-fini.c (_dl_fini): Adjust caller.
74106         * elf/dl-close.c (_dl_close_worker): Likewise.
74107         * sysdeps/generic/ldsodefs.h: Adjust declaration.
74108
74109 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
74110
74111         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
74112         "aux_cache->nlibs < 0".
74113
74114         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
74115         in the reload-count case.
74116
74117 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
74118
74119         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74120         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
74121         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
74122         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
74123         * sysdeps/x86_64/multiarch/strcat.S: New file.
74124         * sysdeps/x86_64/multiarch/strncat.S: New file.
74125         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
74126         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
74127         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
74128         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
74129         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
74130         (USE_AS_STRCAT): Define.
74131         Add strcat and strncat support.
74132         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
74133         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
74134         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
74135         * string/strncat.c: Update.
74136         (USE_AS_STRNCAT): Define.
74137         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74138         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
74139         and i7.
74140         * sysdeps/x86_64/multiarch/init-arch.h
74141         (bit_Prefer_PMINUB_for_stringop): New.
74142         (index_Prefer_PMINUB_for_stringop): Likewise.
74143         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
74144         bit_Prefer_PMINUB_for_stringop.
74145
74146 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74147
74148         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
74149         buffer64.
74150         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
74151         of casting of buffer.
74152         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
74153         buffer32 and buffer64.
74154         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
74155         writes instead of casting of buffer.
74156         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
74157         buffer32.
74158         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
74159         casting of buffer.
74160
74161 2011-07-19  Andreas Schwab  <schwab@redhat.com>
74162
74163         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
74164
74165 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74166
74167         * nscd/nscd.c (termination_handler): Don't do anything for a database
74168         if it has not yet been initialized.
74169
74170 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74171
74172         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74173
74174 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
74175
74176         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74177
74178 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74179
74180         * po/nl.po: Update from translation team.
74181         * po/sv.po: Likewise.
74182
74183 2011-07-16  Roland McGrath  <roland@hack.frob.com>
74184
74185         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
74186         now disallowed by GCC.
74187
74188         * configure.in (use-default-link): Default to yes if a test -shared
74189         link meets our qualifications.
74190         * configure: Regenerated.
74191
74192         * config.make.in (output-format): New variable.
74193         * configure.in: Check for ld --print-output-format support.
74194         * configure: Regenerated.
74195         * Makerules ($(common-objpfx)format.lds)
74196         [$(output-format) != unknown]: Just use $(output-format),
74197         instead of the linker-script munging.
74198
74199 2011-07-14  Roland McGrath  <roland@hack.frob.com>
74200
74201         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74202         of $(common-objpfx)shlib.lds.
74203         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74204
74205         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74206         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74207
74208         * configure.in (-z relro check): Adjust test code to add a large
74209         writable data section after it.
74210         * configure: Regenerated.
74211
74212 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74213
74214         * configure.in (-z relro check): Fix test code to make the variable
74215         truly const.
74216         * configure: Regenerated.
74217
74218 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74219
74220         * nscd/nscd.h (struct traced_file): Define.
74221         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74222         elements.  Add traced_files.
74223         (inotify_fd): Declare.
74224         (register_traced_file): Declare.
74225         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74226         (inotify_fd): Export.
74227         (resolv_conf_descr): Remove.
74228         (nscd_init): Move inotify descriptor creation to main.
74229         Don't register files for notification here.
74230         (register_traced_file): New function.
74231         (invalidate_cache): Don't use reset_res to determine whether to call
74232         res_init, go through the list of registered files.
74233         (main_loop_poll): The inotify descriptors are now stored in the
74234         structures for the traced files.
74235         (main_loop_epoll): Likewise.
74236         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74237         to __nss_disable_nscd.
74238         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74239         for a database anymore.  Check the records for all the registered
74240         files instead.
74241         * nss/Makefile (libnss_files-routines): Add files-init.
74242         (libnss_db-routines): Add db-init.
74243         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74244         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74245         * nss/nss_db/db-init.c: New file.
74246         * nss/nss_files/files-init.c: New file.
74247         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74248         __nss_lookup_function.
74249         (__nss_lookup_function): Call nss_load_library.
74250         (nss_load_all_libraries): New function.
74251         (__nss_disable_nscd): Take parameter with callback function for files
74252         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74253         used for the cached services.
74254         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74255         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74256         options for features to all the files in nscd.
74257
74258         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74259
74260 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74261
74262         * csu/elf-init.c (__libc_csu_init): Comment typo.
74263
74264 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74265
74266         * po/pl.po: Update from translation team.
74267         * po/ja.po: Likewise.
74268         * po/ru.po: Likewise.
74269         * po/ko.po: Likewise.
74270         * po/fr.po: Likewise.
74271
74272 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74273
74274         * configure.in (.ctors/.dtors header and trailer check):
74275         Use an empirical test on a built program.
74276         * configure: Regenerated.
74277
74278         * configure.in (-z relro check): Use an empirical test on a built DSO.
74279         Detect, but do not require, on ia64.
74280         * configure: Regenerated.
74281
74282         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74283         Update tests that use readelf to use $READELF instead.
74284         * configure: Regenerated.
74285
74286 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74287
74288         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74289         if the result is not used.
74290
74291 2011-07-05  Andreas Jaeger  <aj@suse.de>
74292
74293         [BZ#9696]
74294         * stdlib/tst-strtod.c: Add testcase.
74295
74296 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74297
74298         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74299         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74300         The latter has a higher limit.  Take additional parameter to pass to
74301         the new function.
74302         (__pathconf): Pass file to __statfs_link_max.
74303         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74304         __statfs_link_max.
74305         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74306         __statfs_link_max.
74307
74308         [BZ #12868]
74309         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74310         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74311         Handle Lustre.
74312         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74313         (__statfs_filesize_max): Likewise.
74314         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74315
74316 2011-07-05  Andreas Jaeger  <aj@suse.de>
74317
74318         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74319
74320 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74321
74322         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74323         `status' variable.
74324         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74325         Likewise.
74326
74327 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74328
74329         * Makefile (strop-tests): Add strncat.
74330         * string/test-strncat.c: New file.
74331
74332 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74333
74334         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74335
74336 2011-06-21  Andreas Jaeger  <aj@suse.de>
74337
74338         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74339         Copy rule from iconvdata/Makefile.
74340
74341 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74342
74343         [BZ #12922]
74344         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74345         but no long options are defined, just return 'W'.
74346
74347 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74348
74349         [BZ #9696]
74350         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74351
74352 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74353
74354         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74355         netgroups to read.
74356         (innetgr): Likewise.
74357
74358 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74359
74360         * config.make.in (install_root): Default to $(DESTDIR).
74361
74362 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74363
74364         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74365
74366 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74367
74368         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74369
74370         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74371         containing directory rather than embedding absolute directory names.
74372
74373         * scripts/check-local-headers.sh: Rewritten using awk.
74374         Match by word, not by line.  Print error messages for matches.
74375         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74376
74377         * Makerules [shlib-lds-flags empty]:
74378         ($(common-objpfx)libc_pic.opts): New target.
74379         ($(common-objpfx)libc_pic.os.clean): New target.
74380         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74381
74382         * config.make.in (OBJCOPY): New variable.
74383         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74384         * configure: Regenerated.
74385
74386         * config.make.in (use-default-link): New variable.
74387         * configure.in (use_default_link): Grok --with-default-link to set it.
74388         * configure: Regenerated.
74389         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74390         (shlib-lds, shlib-lds-flags): Define to empty.
74391
74392         * Makerules (shlib-lds): New variable.
74393         (shlib-lds-flags): New variable.
74394         (build-shlib, build-moduile, build-module-asneeded): Use it.
74395         ($(common-objpfx)libc.so): Use $(shlib-lds).
74396         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74397         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74398
74399         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74400         DT_FLAGS/DT_FLAGS_1 with zero flags.
74401
74402         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74403         linker script munging.
74404
74405 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74406
74407         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74408         as 128-bit value.
74409         * crypt/sha512.c (sha512_process_block): Perform total addition using
74410         128-bit if possible.
74411         (__sha512_finish_ctx): Likewise.
74412         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74413         as 64-bit value.
74414         * crypt/sha256.c (SWAP64): Define.
74415         (sha256_process_block): Perform total addition using 64-bit if
74416         possible.
74417         (__sha256_finish_ctx): Likewise.
74418
74419 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74420
74421         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74422         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74423         * nscd/hstcache.c (cache_addhst): Likewise.
74424         * nscd/grpcache.c (cache_addgr): Likewise.
74425         * nscd/aicache.c (addhstaiX): Likewise.
74426         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74427
74428 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74429
74430         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74431         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74432         * nscd/hstcache.c (cache_addhst): Likewise.
74433         * nscd/grpcache.c (cache_addgr): Likewise.
74434         * nscd/aicache.c (addhstaiX): Likewise.
74435
74436 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74437
74438         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74439         domain only when needed.
74440
74441 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74442
74443         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74444         is always restored.
74445
74446 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74447
74448         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74449         are re-adding the entry.
74450         * nscd/servicescache.c (cache_addserv): Likewise.
74451
74452 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74453
74454         * sysdeps/generic/dl-irel.h: fix protection against multiple
74455         inclusions.
74456         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74457
74458 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74459
74460         [BZ #12935]
74461         * malloc/memusage.sh: Fix quoting in message.
74462         * debug/xtrace.sh: Likewise.
74463
74464         * configure.in: Remove support for --experimental-malloc option, make
74465         it the default.
74466         * config.make.in: Likewise.
74467         * malloc/Makefile: Likewise.
74468
74469 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74470
74471         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74472         two-byte characters.
74473
74474 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74475
74476         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74477         AC_CACHE_CHECK invocation.
74478         * configure: Regenerated.
74479
74480         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74481
74482 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74483
74484         [BZ #12350]
74485         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74486         bit from old_res_options.
74487
74488         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74489
74490         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74491         value type for setfct.
74492
74493 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74494
74495         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74496         __gettimeofday instead of gettimeofday.
74497
74498 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74499
74500         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74501
74502 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74503
74504         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74505
74506         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74507         info.
74508
74509 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74510
74511         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74512         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74513         strcpy-sse2-unaligned strncpy-sse2-unaligned
74514         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74515         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74516         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74517         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74518         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74519         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74520         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74521         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74522         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74523         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74524         (STRCPY): Support SSE2 and SSSE3 versions.
74525
74526 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74527
74528         [BZ #12874]
74529         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74530         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74531         kernels which artificially limit size of requests.
74532
74533 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74534
74535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74536         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74537         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74538         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74539         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74540         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74541         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74542         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74543         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74544         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74545         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74546         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74547         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74548         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74549         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74550         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74551         Enable unaligned load optimization for Intel Core i3, i5 and i7
74552         processors.
74553         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74554         Define.
74555         (index_Fast_Unaligned_Load): Define.
74556         (HAS_FAST_UNALIGNED_LOAD): Define.
74557
74558 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74559
74560         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74561
74562 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74563
74564         [BZ #12907]
74565         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74566         until it is clear that the information is realy needed.
74567         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74568
74569 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74570
74571         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74572
74573 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74574
74575         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74576         /sys/devices/system/cpu/online if it is usable.
74577
74578         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74579         reading the information from the /proc filesystem to once a second.
74580
74581 2011-06-21  Andreas Jaeger  <aj@suse.de>
74582
74583         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74584         NULL after inclusion of kernel headers.
74585
74586 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74587
74588         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74589         calls to internal_setent.
74590
74591         [BZ #12885]
74592         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74593         addresses using gethostbyname4_r ignore IPv4 addresses.
74594
74595         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74596         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74597
74598         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74599
74600 2011-06-20  David S. Miller  <davem@davemloft.net>
74601
74602         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74603         inclusions.
74604         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74605
74606         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74607         (elf_irel): Use it.
74608         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74609         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74610         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74611         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74612         * sysdeps/x86_64/dl-irel.h: Likewise.
74613
74614         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74615         * elf/dl-sym.c: Likewise.
74616
74617 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74618
74619         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74620         need to dereference resplen2.
74621
74622 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74623
74624         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74625
74626 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74627
74628         * Makeconfig: Define vardbdir and inst_vardbdir.
74629         * nss/Makefile: Add rules to install db-Makefile.
74630
74631         * nss/nss_db/db-XXX.c: Cleanup.
74632
74633         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74634         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74635         GLIBC_PRIVATE.
74636         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74637         * nss/makedb.c: Implement -g option to specify that value strings
74638         are generated and should not be added to table iterated over for
74639         get*ent calls.
74640         * nss/nss_db/db-initgroups.c: New file.
74641
74642         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74643         interface.
74644
74645         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74646         (internal_getgrouplist): Adjust to name change.
74647         Update use_initgroups_entry if this is not the first call.
74648         * nss/databases.def: Add initgroups entry.
74649
74650         * nss/makedb.c (compute_tables): Check result of multiple hash table
74651         sizes to minimize maximum chain length.
74652
74653 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74654
74655         * Versions.def: Add entry for libnss_db.
74656         * shlib-versions: Likewise.
74657         * nss/Makefile: Add rules to build libnss_db.
74658         * nss/Versions: Add libnss_db information.  Organize libnss_files
74659         entries better.
74660         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74661         makedb progra.  Some minor improvements to generate smaller files.
74662         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74663         here from...
74664         * nss/makedb.c: ...here.
74665         Improve database format to be smaller and require less memory at
74666         runtime.
74667         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74668         db anymore.
74669         * nss/nss_db/db-netgrp.c: Likewise.
74670         * nss/nss_db/db-open.c: Likewise.
74671         * nss/nss_files/flies-XXX.x: Adjust comments.
74672         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74673         * nss/nss_files/files-grp.c: Likewise.
74674         * nss/nss_files/files-hosts.c: Likewise.
74675         * nss/nss_files/files-network.c: Likewise.
74676         * nss/nss_files/files-proto.c: Likewise.
74677         * nss/nss_files/files-pwd.c: Likewise.
74678         * nss/nss_files/files-rpc.c: Likewise.
74679         * nss/nss_files/files-service.c: Likewise.
74680         * nss/nss_files/files-sgrp.c: Likewise.
74681         * nss/nss_files/files-spwd.c: Likewise.
74682         * nss/nss_db/db-alias.c: Removed.
74683         * nss/nss_db/dummy-db.h: Removed.
74684
74685 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74686
74687         * nss/makedb.c: Rewritten to not use database library.
74688         * nss/Makefile: Update to build new makedb program.
74689
74690 2011-06-14  Andreas Jaeger  <aj@suse.de>
74691
74692         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74693         memset declaration.
74694
74695 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74696
74697         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74698         tmpbuf.
74699
74700 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74701
74702         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74703         * elf/Makefile ($(objpfx)ld.so): Likewise.
74704
74705         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74706         Don't list ld.so twice in dependencies.
74707
74708         * posix/bug-regex31.c: Include <stdlib.h>.
74709
74710         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74711
74712         * nis/nss_compat/compat-spwd.c
74713         (getspent_next_nss_netgr): Remove unused variable.
74714         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74715
74716         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74717         nonmembers" output to use the right array.
74718
74719         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74720
74721         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74722
74723         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74724         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74725         * catgets/gencat.c (read_input_file): Likewise.
74726         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74727
74728         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74729         variable definition inside #if's controlling its use.
74730
74731         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74732
74733         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74734
74735         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74736
74737         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74738         unreachable code.
74739
74740         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74741
74742         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74743         * configure: Regenerated.
74744
74745         * Makerules: Revert last change.
74746         * elf/Makefile: Likewise.
74747
74748 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74749
74750         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74751         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74752         (reloc-link): Likewise.
74753
74754 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74755
74756         * elf/Makefile: Add rules to build pldd.
74757         * elf/pldd.c: New file.
74758         * elf/pldd-xx.c: New file.
74759
74760 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74761
74762         * version.h: Update for 2.15 development version.
74763
74764 2011-06-07  David S. Miller  <davem@davemloft.net>
74765
74766         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74767         ifuncs.
74768         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74769         elf_machine_lazy_rel): Likewise.
74770         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74771         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74772         elf_machine_lazy_rel): Likewise.
74773         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74774         dl_hwcap via passed in argument.
74775         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74776         Likewise.
74777
74778 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74779
74780         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74781
74782 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74783
74784         [BZ #12849]
74785         * manual/fdl-1.1.texi: New file, verbatim from:
74786         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74787         * manual/lgpl-2.1.texi: New file, verbatim from:
74788         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74789         * manual/Makefile (licenses): New variable, list those new file names.
74790         (texis): Use it.
74791         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74792
74793         * manual/fdl.texi: File removed.
74794         * manual/lesser.texi: File removed.
74795         * manual/libc.texinfo (Copying, Documentation License):
74796         Use new @include file names, put @appendix directive before @include.
74797
74798 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74799
74800         [BZ #12841]
74801         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74802         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74803         (mq_open): Add __NTH.
74804
74805 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74806
74807         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74808         Assume Intel Core i3/i5/i7 processor if AVX is available.
74809
74810 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74811
74812         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74813         typo.
74814
74815 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74816
74817         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74818         memory.  Use alloca_account.  Fix memory leak when retrying.
74819
74820 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74821
74822         * version.h (RELEASE): Bump for 2.14 release.
74823         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74824
74825         * config.make.in (RANLIB): Remove entry.
74826
74827 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74828
74829         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74830         (libc.pot): Work around missing support for .ksh extension in xgettext.
74831
74832         [BZ #12684]
74833         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74834         if both request failed.
74835         (send_dg): In case of server errors clear resplen or *resplen2.
74836
74837         [BZ #12454]
74838         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74839         when there are multiple maps.
74840         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74841         (_dl_fini): Remove test here.
74842
74843         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74844
74845 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74846
74847         [BZ #12350]
74848         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74849         bit from old_res_options.
74850         (gaih_inet): Likewise.
74851
74852         [BZ #11099]
74853         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74854         as signed.
74855
74856         * resolv/res_init.c (res_setoptions): Make the code more compact.
74857
74858         [BZ #11558]
74859         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74860         set RES_USEVC.
74861
74862         [BZ #11634]
74863         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74864
74865         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74866
74867         [BZ #11781]
74868         * malloc/malloc.h: Declare malloc hook variables as volatile.
74869
74870         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74871         in last patch.
74872
74873         [BZ #11799]
74874         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74875         raise in the comment.
74876         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74877         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74878         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74879
74880 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74881
74882         [BZ #12811]
74883         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74884         grow the buffers more if it already has to be sufficient.
74885         (build_wcs_upper_buffer): Likewise.
74886         * posix/regexec.c (check_matching): Likewise.
74887         (clean_state_log_if_needed): Likewise.
74888         (extend_buffers): Don't enlarge buffers beyond size of the input
74889         buffer.
74890         Patches mostly by Emil Wojak <emil@wojak.eu>.
74891         * posix/bug-regex32.c: New file.
74892         * posix/Makefile (tests): Add bug-regex32.
74893
74894         * locale/findlocale.c (_nl_find_locale): Return right away if
74895         _nl_explode_name failed.
74896         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74897
74898         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74899
74900         * debug/xtrace.sh: Unify messages.
74901         * malloc/memusage.sh: Likewise.
74902
74903         [BZ #12813]
74904         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74905         time symbol from vDSO.  Substitute with vsyscall if not available.
74906         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74907         __vdso_time.
74908
74909         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74910         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74911         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74912         Add sendmmsg and internal_sendmmsg.
74913         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74914         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74915         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74916
74917         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74918         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74919         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74920
74921 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74922
74923         [BZ #12813]
74924         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74925         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74926         available.
74927         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74928         __vdso_getcpu.
74929
74930         [BZ #12814]
74931         * iconvdata/Makefile (tests): Add bug-iconv9.
74932         * iconvdata/bug-iconv9.c: New file.
74933
74934 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74935
74936         [BZ #12814]
74937         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74938
74939 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74940
74941         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74942         (struct user_regs_struct): Change intcs field back to cs.
74943
74944 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74945
74946         * po/ja.po: Update from translation team.
74947
74948 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74949
74950         [BZ #12795]
74951         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74952         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74953
74954 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74955
74956         * stdlib/longlong.h: Update from GCC.
74957
74958 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74959
74960         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74961         parameter name.
74962         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74963         Add parameter name.
74964         (__sysconf): Pass it down.
74965
74966 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74967
74968         [BZ #12671]
74969         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74970         some situations.
74971         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74972         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74973         add in in __libc_use_alloca calls.  Adjust callers.
74974         (glob): Use malloc in some situations.
74975
74976         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74977         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74978         pltexit.
74979
74980 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74981
74982         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74983         and CLOCK_BOOTTIME_ALARM.
74984
74985         [BZ #12782]
74986         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74987         is returned.
74988
74989         * string/_strerror.c (__strerror_r): Print negative errors as signed
74990         numbers.
74991
74992         [BZ #12777]
74993         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74994         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74995         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74996
74997         * configure.in: Fix typo in redirection and correct removal of test
74998         files in two cases.
74999
75000         [BZ #12788]
75001         * locale/setlocale.c (new_composite_name): Fix test to check for
75002         identical name of all categories.
75003
75004         [BZ #12792]
75005         * libio/filedoalloc.c (local_isatty): New function.
75006         (_IO_file_doallocate): Use local_isatty.
75007         * stdio-common/perror.c (perror): In case a new stream is used
75008         forward the stream error.
75009         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
75010         error flag.
75011
75012 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
75013
75014         [BZ #11884]
75015         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
75016         alloca.
75017         * include/alloca.h (extend_alloca_account): Define.
75018
75019         [BZ #11857]
75020         * posix/regex.h: Fix comments with documentation of user-accessible
75021         fields after compilation and describe correct free'ing of pattern
75022         after re_compile_pattern.
75023         Patch by Reuben Thomas <rrt@sc3d.org>.
75024
75025 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
75026
75027         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
75028         and -mno-altivec to prevent the compiler from using Altivec and/or
75029         VSX instructions when the corresponding registers are not available.
75030
75031 2011-05-19  Andreas Schwab  <schwab@redhat.com>
75032
75033         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
75034
75035 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
75036
75037         * libio/freopen.c (freopen): Use __dup2, not dup2.
75038         * libio/freopen64.c (freopen64): Likewise.
75039
75040 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75041
75042         [BZ #12775]
75043         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
75044         * math/Makefile (tests): Add test-powl.
75045         (CFLAGS-test-powl.c): Define.
75046         * math/test-powl.c: New file.
75047
75048 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75049
75050         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
75051
75052 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
75053
75054         [BZ #11837]
75055         * iconvdata/gb18030.c: Update to GB18020-2005.
75056
75057 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
75058
75059         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
75060         RE_SYNTAX_POSIX_AWK): Update to match recent development.
75061         Patch by Aharon Robbins <arnold@skeeve.com>.
75062
75063         [BZ #11892]
75064         * stdlib/putenv.c (putenv): Don't always create copy of the variable
75065         on the stack.
75066
75067         [BZ #11895]
75068         * misc/pselect.c (__pselect): Handle timeout value errors hidden
75069         through underflows.
75070
75071         [BZ #12766]
75072         * misc/error.c (error_at_line): Ensure file_name and old_file_name
75073         point to strings before performing equality test for error_one_per_line
75074         mode.
75075
75076         [BZ #11697]
75077         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
75078
75079         [BZ #11820]
75080         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
75081         (struct user_fpregs_struct): Avoid __uint*_t types.
75082
75083         [BZ #6420]
75084         * malloc/mtrace.c (tr_where): Add additional parameter to point to
75085         symbol info.  Use it instead of calling _dl_addr locally.
75086         (lock_and_info): New function.
75087         (tr_freehook): Call lock_and_info and pass symbol info as additional
75088         parameter to tr_where.
75089         (tr_mallochook): Likewise.
75090         (tr_reallochook): Likewise.
75091         (tr_memalignhook): Likewise.
75092
75093         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
75094         used and couldn't be at all thread-safe.
75095
75096 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
75097
75098         * libio/freopen.c (freopen): Don't close old file descriptor
75099         before the new one is opened.  Instead dup the new file descriptor
75100         to the old one after the new stream is created.
75101         * libio/freopen64.c (freopen64): Likewise.
75102         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
75103         * libio/fileops.c (_IO_new_file_close_it): Handle new
75104         _IO_FLAGS2_NOCLOSE flag.
75105         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
75106         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
75107         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
75108         _IO_FLAGS2_NOCLOSE flag.
75109         * include/unistd.h: Add hidden_proto for dup3.
75110         Define __have_dup3.
75111         * io/dup3.c: Define hidden symbol.
75112         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
75113
75114         [BZ #7101]
75115         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
75116         when an incomplete long option is used.
75117         * posix/tst-getopt_long1.c: New file.
75118         * posix/Makefile (tests): Add tst-getopt_long1.
75119
75120         [BZ #10138]
75121         * scripts/config.guess: Update from autoconf-2.68.
75122         * scripts/config.sub: Likewise.
75123
75124         [BZ #10157]
75125         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
75126         tests into ...
75127         (has_cpuclock): ...this.  New function.
75128         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
75129         macro here based on has_cpuclock code.
75130
75131         [BZ #10149]
75132         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
75133         First byte (not low byte) is now always NUL.
75134         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
75135
75136         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
75137         Use non-cancelable interfaces.
75138
75139         [BZ #9809]
75140         * locale/iso-639.def: Add entry for Sorani.
75141
75142         [BZ #11901]
75143         * include/stdlib.h: Move include protection to the right place.
75144         Define abort_msg_s.  Declare __abort_msg with it.
75145         * stdlib/abort.c (__abort_msg): Adjust type.
75146         * assert/assert.c (__assert_fail_base): New function.  Majority
75147         of code from __assert_fail.  Allocate memory for __abort_msg with
75148         mmap.
75149         (__assert_fail): Now call __assert_fail_base.
75150         * assert/assert-perr.c: Remove bulk of implementation.  Use
75151         __assert_fail_base.
75152         * include/assert.hL Declare __assert_fail_base.
75153         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
75154         mmap.
75155         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
75156
75157 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
75158
75159         [BZ #11952]
75160         [BZ #12453]
75161         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
75162         until all modules are registered in the DTV.
75163         * elf/Makefile: Add rules to build and run tst-tls19.
75164         * elf/tst-tls19.c: New file.
75165         * elf/tst-tls19mod1.c: New file.
75166         * elf/tst-tls19mod2.c: New file.
75167         * elf/tst-tls19mod3.c: New file.
75168         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
75169
75170         [BZ #12083]
75171         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
75172         correctly.
75173
75174         [BZ #12601]
75175         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
75176         two-byte sequence errors.
75177         * iconvdata/Makefile (tests): Add bug-iconv8.
75178         * iconvdata/bug-iconv8.c: New file.
75179
75180         [BZ #12626]
75181         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
75182         buf2 definition.
75183
75184         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
75185
75186         [BZ #12432]
75187         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
75188         (dummy_getcfa): New function.
75189         (init): Get _Unwind_GetCFA address, use dummy if not found.
75190         (backtrace_helper): In recursion check, also check whether CFA changes.
75191         (__backtrace): Completely initialize arg.
75192
75193         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
75194         storing incomplete byte sequence in state object.  Avoid testing for
75195         guaranteed too small input if we know there is enough data available.
75196
75197 2011-05-11  Andreas Schwab  <schwab@redhat.com>
75198
75199         * Makeconfig (+link-pie): Indent.
75200         * Rules (binaries-pie): Define if $(have-fpie) and
75201         $(build-shared).
75202         (binaries-shared): Also filter out $(binaries-pie).
75203         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75204         * nscd/Makefile (others-pie): Add nscd.
75205         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75206         ($(objpfx)nscd): Remove command override.
75207         * login/Makefile (others-pie): Add pt_chown.
75208         ($(objpfx)pt_chown): Remove command override.
75209         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75210         remove command overrides.
75211
75212 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75213
75214         * libio/tst_putwc.c: Fix error messages.
75215
75216         [BZ #12724]
75217         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75218         currently writing and seek to current position when not.
75219         * libio/Makefile (tests): Add bug-fclose1.
75220         * libio/bug-fclose1.c: New file.
75221
75222 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75223
75224         [BZ #12511]
75225         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75226         don't set DF_1_NODELETE here.
75227         (do_lookup_x): When entering new entry test for copy relocation
75228         and if necessary set DF_1_NODELETE flag.
75229         * elf/tst-unique4.cc: New file.
75230         * elf/tst-unique4.h: New file.
75231         * elf/tst-unique4lib.cc: New file.
75232         * elf/Makefile: Add rules to build and run tst-unique4.
75233         Patch by Piotr Bury <pbury@goahead.com>.
75234
75235 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75236
75237         [BZ #12052]
75238         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75239
75240         [BZ #12625]
75241         * misc/mntent_r.c (addmntent): Flush the stream after the output
75242
75243         [BZ #12393]
75244         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75245         (is_trusted_path_normalize): Skip initial colon.  Append slash
75246         to empty buffer.  Duplicate is_trusted_path code but allow
75247         constructed patch to be prefix.
75248         (is_dst): Allow $ORIGIN followed by /.
75249         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75250         Correct testing of result of is_trusted_path_normalize
75251         (decompose_rpath): Fix warning.
75252
75253 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75254
75255         [BZ #11257]
75256         * grp/initgroups.c (internal_getgrouplist): When we found the service
75257         list through the initgroups entry in nsswitch.conf do not always
75258         continue on a successful lookup.  Don't always use the
75259         __nss_group_database value if it is set.
75260         * nss/nsswitch.conf (initgroups): Change action for successful db
75261         lookup to continue for compatibility.
75262
75263 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75264
75265         [BZ #11532]
75266         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75267         and CP774 modules.
75268         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75269         and CP774 modules.
75270         * iconvdata/tst-tables.sh: Likewise.
75271         * iconvdata/cp770.c: New file.
75272         * iconvdata/cp771.c: New file.
75273         * iconvdata/cp772.c: New file.
75274         * iconvdata/cp773.c: New file.
75275         * iconvdata/cp774.c: New file.
75276         * iconvdata/testdata/CP770: New file.
75277         * iconvdata/testdata/CP770..UTF8: New file.
75278         * iconvdata/testdata/CP771: New file.
75279         * iconvdata/testdata/CP771..UTF8: New file.
75280         * iconvdata/testdata/CP772: New file.
75281         * iconvdata/testdata/CP772..UTF8: New file.
75282         * iconvdata/testdata/CP773: New file.
75283         * iconvdata/testdata/CP773..UTF8: New file.
75284         * iconvdata/testdata/CP774: New file.
75285         * iconvdata/testdata/CP774..UTF8: New file.
75286
75287         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75288         END CHARMAP line.
75289         * iconvdata/gen-8bit-gap.sh: Likewise.
75290         * iconvdata/gen-8bit.sh: Likewise.
75291
75292         * locale/iso-639.def: Add ary entry.
75293
75294         [BZ #11258]
75295         * locale/C-translit.h.in: Add U20A1 transliteration.
75296
75297         [BZ #12178]
75298         * locale/iso-639.def: Add wae entry.
75299         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75300
75301         [BZ #12545]
75302         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75303         for n.
75304
75305         [BZ #12711]
75306         * locale/C-translit.h.in: Add entry for U20B9.
75307         Patch by pravin.d.s@gmail.com.
75308
75309 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75310
75311         [BZ #12713]
75312         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75313         ENAMETOOLONG use generic getcwd.
75314         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75315         in rtld.  Use *stat64.
75316         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75317         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75318         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75319         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75320         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75321         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75322         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75323         __fstatat64 macros.
75324         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75325         * dirent/rewinddir.c: Add libc_hidden_def.
75326         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75327         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75328
75329         * include/dirent.h (__alloc_dir): Add flags parameter.
75330         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75331         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75332         __alloc_dir.
75333         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75334         from fdopendir if O_CLOEXEC is already set.
75335
75336 2011-03-15  Alan Modra  <amodra@gmail.com>
75337
75338         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75339         l_tls_firstbyte_offset non-zero.  Save padding offset in
75340         l_tls_firstbyte_offset for later use.
75341         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75342         freeing static tls block.
75343
75344 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75345
75346         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75347         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75348         being defined by the kernel headers.
75349
75350 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75351
75352         [BZ #12734]
75353         * resolv/resolv.h: Define RES_NOTLDQUERY.
75354         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75355         no-tld-query and set RES_NOTLDQUERY.
75356         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75357         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75358         modern BIND to search name as TLD unless forbidden.
75359
75360 2011-05-07  Petr Baudis  <pasky@suse.cz>
75361             Ulrich Drepper  <drepper@gmail.com>
75362
75363         [BZ #12393]
75364         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75365         (is_trusted_path): ...to here.
75366         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75367         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75368         using is_trusted_path_normalize() in setuid scripts.
75369
75370 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75371
75372         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75373         __BEGIN/__END_DECLS.
75374
75375 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75376
75377         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75378         NSS_STATUS_NOTFOUND if no record was found.
75379
75380 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75381
75382         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75383         (headers-not-in-tirpc): Remove rpc/netdb.h
75384         * resolv/netdb.h: Revert last change.
75385
75386 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75387
75388         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75389         circular dependency between libgcc.a and libc.a.
75390
75391 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75392
75393         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75394         * nis/Makefile: Don't install rpcsvc/*.
75395         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75396         instead of <rpc/types.h>.
75397         (MAXHOSTNAMELEN): Define.
75398
75399 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75400
75401         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75402
75403 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75404
75405         [BZ #12714]
75406         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75407         gethostbyname4_r when IPv6 results are possible.
75408
75409 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75410
75411         [BZ #12723]
75412         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75413         _PC_PIPE_BUF handling.
75414
75415 2011-04-30  Bruno Haible  <bruno@clisp.org>
75416
75417         [BZ #12717]
75418         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75419         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75420         to 'int'.
75421         * inet/getnameinfo.c (getnameinfo): Likewise.
75422
75423 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75424
75425         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75426         to groups setting in database lookup.
75427         * nss/nsswitch.conf: Add initgroups entry.
75428
75429 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75430
75431         [BZ #12685]
75432         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75433         mode string.
75434         Patch by Eric Blake <eblake@redhat.com>.
75435
75436 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75437
75438         * sunrpc/Makefile (need-export-routines): Add svc_run.
75439         (routines): Remove svc_run.
75440         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75441         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75442         * sunrpc/svc_run.c (svc_run): Likewise.
75443         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75444
75445 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75446
75447         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75448         problem in reallocation in last patch.
75449
75450 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75451
75452         * sunrpc/Makefile: Move inclusion of Rules.
75453
75454 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75455
75456         * nss/nss_files/files-initgroups.c: New file.
75457         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75458         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75459         _nss_files_initgroups_dyn.
75460
75461 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75462
75463         * elf/elf.h (R_ARM_IRELATIVE): Define.
75464
75465 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75466
75467         * po/ru.po: Update from translation team.
75468
75469 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75470
75471         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75472         dependencies.
75473
75474 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75475
75476         [BZ #12653]
75477         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75478         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75479         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75480         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75481         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75482
75483 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75484
75485         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75486         differing bytes.
75487         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75488         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75489         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75490
75491 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75492
75493         [BZ #12420]
75494         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75495         storing it.
75496         * stdlib/bug-getcontext.c: New file.
75497         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75498
75499 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75500
75501         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75502         instructions into .machine "z9-109".
75503         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75504         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75505
75506 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75507
75508         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75509         between environment variables and auxiliary vector.
75510
75511 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75512
75513         * Makefile: Add rules to build linkobj/libc.so.
75514         * include/libc-symbols.h: Define libc_hidden_nolink.
75515         * include/rpc/auth.h: Mark functions which are to be hidden.
75516         * include/rpc/auth_des.h: Likewise.
75517         * include/rpc/auth_unix.h: Likewise.
75518         * include/rpc/clnt.h: Likewise.
75519         * include/rpc/des_crypt.h: Likewise.
75520         * include/rpc/key_prot.h: Likewise.
75521         * include/rpc/pmap_clnt.h: Likewise.
75522         * include/rpc/pmap_prot.h: Likewise.
75523         * include/rpc/pmap_rmt.h: Likewise.
75524         * include/rpc/rpc_msg.h: Likewise.
75525         * include/rpc/svc.h: Likewise.
75526         * include/rpc/svc_auth.h: Likewise.
75527         * include/rpc/xdr.h: Likewise.
75528         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75529         * nss/Makefile: Likewise.
75530         * sunrpc/Makefile: Don't install headers.  Build library with normal
75531         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75532         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75533         for the compat linking library.  Remove use of INTDEF/INTUSE.
75534         * sunrpc/auth_none.c: Likewise.
75535         * sunrpc/auth_unix.c: Likewise.
75536         * sunrpc/authdes_prot.c: Likewise.
75537         * sunrpc/authuxprot.c: Likewise.
75538         * sunrpc/clnt_gen.c: Likewise.
75539         * sunrpc/clnt_perr.c: Likewise.
75540         * sunrpc/clnt_raw.c: Likewise.
75541         * sunrpc/clnt_simp.c: Likewise.
75542         * sunrpc/clnt_tcp.c: Likewise.
75543         * sunrpc/clnt_udp.c: Likewise.
75544         * sunrpc/clnt_unix.c: Likewise.
75545         * sunrpc/des_crypt.c: Likewise.
75546         * sunrpc/des_soft.c: Likewise.
75547         * sunrpc/get_myaddr.c: Likewise.
75548         * sunrpc/key_call.c: Likewise.
75549         * sunrpc/key_prot.c: Likewise.
75550         * sunrpc/netname.c: Likewise.
75551         * sunrpc/pm_getmaps.c: Likewise.
75552         * sunrpc/pm_getport.c: Likewise.
75553         * sunrpc/pmap_clnt.c: Likewise.
75554         * sunrpc/pmap_prot.c: Likewise.
75555         * sunrpc/pmap_prot2.c: Likewise.
75556         * sunrpc/pmap_rmt.c: Likewise.
75557         * sunrpc/publickey.c: Likewise.
75558         * sunrpc/rpc_cmsg.c: Likewise.
75559         * sunrpc/rpc_common.c: Likewise.
75560         * sunrpc/rpc_dtable.c: Likewise.
75561         * sunrpc/rpc_prot.c: Likewise.
75562         * sunrpc/rpc_thread.c: Likewise.
75563         * sunrpc/rtime.c: Likewise.
75564         * sunrpc/svc.c: Likewise.
75565         * sunrpc/svc_auth.c: Likewise.
75566         * sunrpc/svc_authux.c: Likewise.
75567         * sunrpc/svc_raw.c: Likewise.
75568         * sunrpc/svc_run.c: Likewise.
75569         * sunrpc/svc_simple.c: Likewise.
75570         * sunrpc/svc_tcp.c: Likewise.
75571         * sunrpc/svc_udp.c: Likewise.
75572         * sunrpc/svc_unix.c: Likewise.
75573         * sunrpc/svcauth_des.c: Likewise.
75574         * sunrpc/xcrypt.c: Likewise.
75575         * sunrpc/xdr.c: Likewise.
75576         * sunrpc/xdr_array.c: Likewise.
75577         * sunrpc/xdr_float.c: Likewise.
75578         * sunrpc/xdr_intXX_t.c: Likewise.
75579         * sunrpc/xdr_mem.c: Likewise.
75580         * sunrpc/xdr_rec.c: Likewise.
75581         * sunrpc/xdr_ref.c: Likewise.
75582         * sunrpc/xdr_sizeof.c: Likewise.
75583         * sunrpc/xdr_stdio.c: Likewise.
75584
75585 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75586
75587         [BZ #12650]
75588         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75589         * sysdeps/ia64/dl-tls.h: Likewise.
75590         * sysdeps/powerpc/dl-tls.h: Likewise.
75591         * sysdeps/s390/dl-tls.h: Likewise.
75592         * sysdeps/sh/dl-tls.h: Likewise.
75593         * sysdeps/sparc/dl-tls.h: Likewise.
75594         * sysdeps/x86_64/dl-tls.h: Likewise.
75595         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75596
75597 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75598
75599         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75600         rpath element also skip the following colon.
75601         (expand_dynamic_string_token): Add is_path parameter and pass
75602         down to DL_DST_REQUIRED and _dl_dst_substitute.
75603         (decompose_rpath): Call expand_dynamic_string_token with
75604         non-zero is_path.  Ignore empty rpaths.
75605         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75606         with zero is_path.
75607
75608 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75609
75610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75611         Make cancelable.
75612
75613 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75614
75615         [BZ #12655]
75616         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75617         Patch by Filipe David Manana <fdmanana@apache.org>.
75618
75619 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75620
75621         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75622         Maintain aligned stack.
75623         (CHECK_RSP): Remove unused macro.
75624
75625 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75626
75627         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75628         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75629
75630 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75631
75632         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75633
75634         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75635
75636 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75637
75638         [BZ #12518]
75639         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75640         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75641         * sysdeps/x86_64/memmove.c: New file.
75642         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75643         (memcpy): Renamed to ...
75644         (__new_memcpy): This.
75645         (memcpy): Provide GLIBC_2_14 memcpy.
75646         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75647         (memcpy): Provide GLIBC_2_2_5 memcpy.
75648
75649 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75650
75651         [BZ #12631]
75652         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75653
75654 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75655
75656         * misc/syncfs.c: New file.
75657         * misc/Makefile (routines): Add syncfs.
75658         * posix/unistd.h: Declare syncfs.
75659         * sysdeps/unix/syscalls.list: Add syncfs.
75660
75661 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75662
75663         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75664         open_by_handle_at.
75665         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75666         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75667         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75668         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75669         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75670         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75671         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75672
75673 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75674
75675         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75676         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75677         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75678         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75679         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75680         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75681         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75682
75683         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75684         sync_file_range.c with -fexceptions.
75685         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75686         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75687         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75688         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75689         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75690         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75691         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75692         sync_file_range as cancellation point
75693         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75694         now a wrapper around __call_sync_file_range with cancellation handling.
75695         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75696         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75697         function name to __call_sync_file_range.
75698         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75699         Add call_sync_file_range.
75700
75701 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75702
75703         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75704         bits/timex.h.
75705
75706 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75707
75708         * iconv/iconv.h: Fix typo in comment.
75709         * io/fcntl.h: Likewise.
75710         * libio/stdio.h: Likewise.
75711         * posix/spawn.h: Likewise.
75712         * posix/unistd.h: Likewise.
75713         * stdlib/stdlib.h: Likewise.
75714         * time/time.h: Likewise.
75715         * wcsmbs/wchar.h: Likewise.
75716
75717         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75718         open_by_handle): Add.
75719         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75720         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75721         Augment a few comments.
75722         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75726         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75727         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75728         open_by_handle.
75729
75730         * io/fcntl.h (AT_EMPTY_PATH): Define.
75731
75732 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75733
75734         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75735         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75736         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75737         to...
75738         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75739         * Versions.def: Add GLIBC_2.14.
75740         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75741         Export.
75742
75743 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75744
75745         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75746         round counter.
75747         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75748
75749 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75750
75751         [BZ #12597]
75752         * string/test-strncmp.c (do_page_test): New function.
75753         (check2): Likewise.
75754         (test_main): Call check2.
75755         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75756
75757 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75758
75759         [BZ #12587]
75760         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75761         Handle cache information in CPU leaf 4.
75762         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75763
75764 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75765
75766         [BZ #12583]
75767         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75768         character representation.
75769         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75770
75771 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75772
75773         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75774         END(__isnan) to END(__isnanf) to match function entry point/label
75775         EALIGN(__isnanf,...).
75776
75777 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75778
75779         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75780
75781 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75782
75783         [BZ #12510]
75784         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75785         copy from the symbol referenced in the relocation to initialize the
75786         used variable.
75787         Patch by Piotr Bury <pbury@goahead.com>.
75788         * elf/Makefile: Add rules to build and tst-unique3.
75789         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75790         * elf/tst-unique3.cc: New file.
75791         * elf/tst-unique3.h: New file.
75792         * elf/tst-unique3lib.cc: New file.
75793         * elf/tst-unique3lib2.cc: New file.
75794
75795         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75796
75797 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75798
75799         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75800         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75801         to _start.
75802
75803 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75804
75805         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75806         to-be-loaded object along a path to loader is ld.so.
75807
75808 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75809             Ulrich Drepper  <drepper@gmail.com>
75810
75811         * sysdeps/x86_64/memset.S: After aligning destination, code
75812         branches to different locations depending on the value of
75813         misalignment, when multiarch is enabled. Fix this.
75814
75815 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75816
75817         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75818         Set _x86_64_preferred_memory_instruction for AMD processsors.
75819         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75820         Set bit_Prefer_SSE_for_memop for AMD processors.
75821
75822 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75823
75824         * libio/fmemopen.c (fmemopen): Optimize a bit.
75825
75826 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75827
75828         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75829
75830 2011-03-03  Roland McGrath  <roland@redhat.com>
75831
75832         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75833
75834 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75835
75836         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75837         __bzero_ultra1 instead of __memset_ultra1.
75838
75839 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75840             Ulrich Drepper  <drepper@gmail.com>
75841
75842         [BZ #12509]
75843         * include/link.h (struct link_map): Add l_orig_initfini.
75844         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75845         returning unsuccessfully.
75846         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75847         close of a file loaded at startup, restore the original l_initfini
75848         list.
75849         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75850         list, store the pointer.
75851         * elf/Makefile ($(objpfx)noload-mem): New rule.
75852         (noload-ENV): Define.
75853         (tests): Add $(objpfx)noload-mem.
75854         * elf/noload.c: Include <memcheck.h>.
75855         (main): Call mtrace.  Close all opened handles.
75856
75857 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75858
75859         [BZ #12454]
75860         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75861         dependencies are missing.
75862
75863 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75864
75865         Fix __if_freereq crash: Unlike the generic version which uses free,
75866         Hurd needs munmap.
75867         * sysdeps/mach/hurd/ifreq.h: New file.
75868
75869 2011-01-27  Petr Baudis  <pasky@suse.cz>
75870             Ulrich Drepper  <drepper@gmail.com>
75871
75872         [BZ 12445]#
75873         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75874         to extend_alloca().
75875         * stdio-common/bug23.c: New file.
75876         * stdio-common/Makefile (tests): Add bug23.
75877
75878 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75879             Ulrich Drepper  <drepper@gmail.com>
75880
75881         [BZ #12489]
75882         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75883         before performing relro protection.  At old place add assertion
75884         to make sure nothing changed.
75885
75886 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75887             Glauber de Oliveira Costa  <glommer@gmail.com>
75888
75889         * elf/elf.h: Add new ARM TLS relocs.
75890
75891 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75892
75893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75894         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75895         cast from r3.
75896         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75897         'tests' variable.
75898         * sysdeps/wordsize-64/tst-writev.c: New file.
75899
75900 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75901
75902         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75903         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75904         insns in _dl_start to prevent a TOC reference before relocs are
75905         resolved.
75906
75907 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75908
75909         [BZ #12469]
75910         * Makeconfig: Remove RANLIB definition.
75911         * Makerules: Don't use RANLIB.
75912         * aclocal.m4: Remove ranlib test.
75913         * configure.in: No need to check for ranlib.
75914         * elf/rtld-Rules: Don't use RANLIB.
75915
75916 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75917
75918         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75919         protection macro.
75920         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75921         inclusion protection macro.
75922
75923         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75924         SIGRTMIN and SIGRTMAX and print information in that case only when
75925         SIGRTMIN is defined.
75926
75927 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75928
75929         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75930         arginfo fn returning -1.
75931
75932         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75933         and thousands string is zero terminated.
75934
75935 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75936
75937         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75938         sysdeps/unix/sysv/linux/bits/socket.h.
75939
75940 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75941
75942         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75943         (__CPU_COUNT): Remove old macros.
75944         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75945         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75946         (__CPU_ALLOC, __CPU_FREE): Add macros.
75947         (__sched_cpualloc, __sched_cpufree): Add declarations.
75948
75949 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75950
75951         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75952         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75953         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75954         (readdhstai): Return value of addhstaiX call.
75955         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75956         (addgrbyX): Return value returned by cache_addgr.
75957         (readdgrbyname): Return value returned by addgrbyX.
75958         (readdgrbygid): Likewise.
75959         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75960         (addpwbyX): Return value returned by cache_addpw.
75961         (readdpwbyname): Return value returned by addhstbyX.
75962         (readdpwbyuid): Likewise.
75963         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75964         (addservbyX): Return value returned by cache_addserv.
75965         (readdservbyname): Return value returned by addservbyX:
75966         (readdservbyport): Likewise.
75967         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75968         (addhstbyX): Return value returned by cache_addhst.
75969         (readdhstbyname): Return value returned by addhstbyX.
75970         (readdhstbyaddr): Likewise.
75971         (readdhstbynamev6): Likewise.
75972         (readdhstbyaddrv6): Likewise.
75973         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75974         (readdinitgroups): Return value returned by addinitgroupsX.
75975         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75976         (prune_cache): Keep track of timeout value of re-added entries.
75977         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75978         * nscd/nscd.h: Adjust prototypes of readd* functions.
75979
75980 2011-02-04  Roland McGrath  <roland@redhat.com>
75981
75982         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75983         (nis_stats): Likewise.
75984         * nis/nis_modify.c (nis_modify): Likewise.
75985         * nis/nis_remove.c (nis_remove): Likewise.
75986         * nis/nis_add.c (nis_add): Likewise.
75987
75988         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75989
75990         * posix/fnmatch_loop.c: Add some consts.
75991
75992         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75993
75994 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75995
75996         [BZ #12460]
75997         * config.make.in (config-cflags-novzeroupper): Define.
75998         * configure.in: Substitute libc_cv_cc_novzeroupper.
75999         * elf/Makefile (AVX-CFLAGS): Define.
76000         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
76001         (CFLAGS-tst-auditmod4a.c): Likewise.
76002         (CFLAGS-tst-auditmod4b.c): Likewise.
76003         (CFLAGS-tst-auditmod6b.c): Likewise.
76004         (CFLAGS-tst-auditmod6c.c): Likewise.
76005         (CFLAGS-tst-auditmod7b.c): Likewise.
76006         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
76007
76008 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
76009
76010         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
76011         function to the callback.
76012         Patch partly by Jiri Olsa <jolsa@redhat.com>.
76013
76014 2011-02-02  Andreas Schwab  <schwab@redhat.com>
76015
76016         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
76017         of errno.
76018
76019 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
76020
76021         [BZ #11724]
76022         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
76023         of constructors.
76024         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
76025         of destructors.
76026         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
76027
76028         [BZ #11724]
76029         * elf/Makefile: Add rules to build and run new test.
76030         * elf/tst-initorder.c: New file.
76031         * elf/tst-initorder.exp: New file.
76032         * elf/tst-initordera1.c: New file.
76033         * elf/tst-initordera2.c: New file.
76034         * elf/tst-initordera3.c: New file.
76035         * elf/tst-initordera4.c: New file.
76036         * elf/tst-initorderb1.c: New file.
76037         * elf/tst-initorderb2.c: New file.
76038         * elf/tst-order-a1.c: New file.
76039         * elf/tst-order-a2.c: New file.
76040         * elf/tst-order-a3.c: New file.
76041         * elf/tst-order-a4.c: New file.
76042         * elf/tst-order-b1.c: New file.
76043         * elf/tst-order-b2.c: New file.
76044         * elf/tst-order-main.c: New file.
76045         New test case by George Gensure <werkt0@gmail.com>.
76046
76047 2010-10-01  Andreas Schwab  <schwab@redhat.com>
76048
76049         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
76050         decoding ACE if AI_CANONIDN.
76051
76052 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
76053
76054         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
76055
76056 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
76057
76058         * version.h (RELEASE): Bump for 2.13 release.
76059         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
76060
76061         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
76062
76063         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
76064         MADV_NOHUGEPAGE.
76065         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
76066         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
76067         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
76068         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
76069         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
76070         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76071
76072         * posix/getconf.c: Update copyright year.
76073         * catgets/gencat.c: Likewise.
76074         * csu/version.c: Likewise.
76075         * debug/catchsegv.sh: Likewise.
76076         * debug/xtrace.sh: Likewise.
76077         * elf/ldconfig.c: Likewise.
76078         * elf/ldd.bash.in: Likewise.
76079         * elf/sprof.c (print_version): Likewise.
76080         * iconv/iconv_prog.c: Likewise.
76081         * iconv/iconvconfig.c: Likewise.
76082         * locale/programs/locale.c: Likewise.
76083         * locale/programs/localedef.c: Likewise.
76084         * malloc/memusage.sh: Likewise.
76085         * malloc/mtrace.pl: Likewise.
76086         * nscd/nscd.c (print_version): Likewise.
76087         * nss/getent.c: Likewise.
76088
76089         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
76090         PF_CAIF, and PF_ALG.
76091         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76092
76093 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
76094
76095         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
76096         (modules-names): Use them.
76097         (ifunc-test-modules, ifunc-pie-tests): Define.
76098         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
76099         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
76100         (test-extras): Likewise.
76101         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
76102         $(compile-command.c).
76103         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
76104         (all-built-dso): Define.
76105         (check-textrel.out, check-execstack.out): Depend on it.
76106
76107         * configure.in: Don't override --enable-multi-arch.
76108
76109 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
76110
76111         [BZ #6812]
76112         * nscd/hstcache.c (tryagain): Define.
76113         (cache_addhst): Return tryagain not notfound for temporary errors.
76114         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
76115         failed.
76116
76117 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
76118
76119         [BZ #10563]
76120         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
76121         to make the syscall.
76122         * sysdeps/unix/sysv/linux/setgroups.c: New file.
76123
76124         [BZ #12378]
76125         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
76126         and fall back to matching as normal character if the string ends before
76127         the matching ']' is found.  This is what POSIX requires.
76128         * posix/testfnm.c: Adjust test result.
76129         * posix/globtest.sh: Adjust test result.  Add new test.
76130         * posix/tst-fnmatch.input: Likewise.
76131         * posix/tst-fnmatch2.c: Add new test.
76132
76133 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
76134
76135         * elf/Makefile (check-execstack): Revert last change.  Depend on
76136         check-execstack.h.
76137         (check-execstack.h): New target.
76138         (generated): Add check-execstack.h.
76139         * elf/check-execstack.c: Include "check-execstack.h".
76140         (main): Revert last change.
76141         (handle_file): Return zero if GNU_STACK is absent and
76142         DEFAULT_STACK_PERMS doesn't include PF_X.
76143
76144 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
76145
76146         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
76147         in child fails because the descriptor is already closed.
76148         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
76149         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
76150         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
76151
76152         [BZ #12397]
76153         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
76154         syscall.
76155
76156         [BZ #10484]
76157         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
76158         temporary buffer used to handle multi lookups locally.
76159         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
76160
76161 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76162
76163         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
76164         loader is ld.so.
76165
76166 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
76167
76168         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
76169         alignment for SSE2.
76170
76171 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76172
76173         [BZ #12394]
76174         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
76175         characters.  When rounding increased number of integer digits recompute
76176         number of groups.
76177         * stdio-common/tst-grouping.c: New file.
76178         * stdio-common/Makefile: Add rules to build and run tst-grouping.
76179
76180 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
76181
76182         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
76183         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
76184
76185         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
76186         void.
76187         * bits/select.h: Likewise.
76188
76189 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
76190
76191         * po/ja.po: Update from translation team.
76192
76193 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
76194
76195         [BZ #11155]
76196         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
76197         implementation just like for lxstat, fxstatat, et al.
76198
76199 2010-12-27  Jim Meyering  <meyering@redhat.com>
76200
76201         [BZ #12348]
76202         * posix/regexec.c (build_trtable): Return failure indication upon
76203         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76204
76205 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76206
76207         [BZ #12201]
76208         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76209         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76210         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76211         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76212
76213         [BZ #12207]
76214         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76215
76216         [BZ #12204]
76217         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76218         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76219
76220 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76221
76222         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76223         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76224         script has SORT_BY_INIT_PRIORITY.
76225         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76226         NO_CTORS_DTORS_SECTIONS is defined.
76227         * elf/soinit.c: Likewise.
76228         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76229         NO_CTORS_DTORS_SECTIONS is defined.
76230         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76231         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76232         * sysdeps/sh/init-first.c: Likewise.
76233         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76234
76235 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76236
76237         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76238         always use the slow path.
76239
76240 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76241
76242         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76243         similar rule which adds the sysdep directories to the header search in
76244         order to pick up the correct platform stackinfo.h.
76245         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76246         perform test if it is, otherwise return successfully without testing.
76247         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76248         DEFAULT_STACK_PERMS define in stackinfo.h.
76249         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76250         defined in stackinfo.h.
76251         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76252         DEFAULT_STACK_PERMS defined in stackinfo.h.
76253         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76254         * sysdeps/ia64/stackinfo.h: Likewise.
76255         * sysdeps/s390/stackinfo.h: Likewise.
76256         * sysdeps/sh/stackinfo.h: Likewise.
76257         * sysdeps/sparc/stackinfo.h: Likewise.
76258         * sysdeps/x86_64/stackinfo.h: Likewise.
76259         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76260         PF_X for powerpc64.  Retain PF_X for powerpc32.
76261
76262 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76263
76264         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76265         accurately.
76266         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76267         GETDENTS_64BIT_ALIGNED.
76268
76269 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76270
76271         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76272
76273 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76274
76275         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76276         _GNU_SOURCE.
76277
76278         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76279         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76280         Remove __restrict.
76281         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76282         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76283
76284 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76285
76286         [BZ #11655]
76287         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76288         are initialized.
76289
76290 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76291
76292         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76293
76294 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76295
76296         * po/it.po: Update from translation team.
76297
76298 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76299
76300         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76301         unused codes.
76302
76303 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76304
76305         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76306
76307 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76308
76309         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76310         specially.
76311         (gaih_getanswer_slice): Likewise.
76312
76313 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76314
76315         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76316
76317 2010-05-31  Petr Baudis  <pasky@suse.cz>
76318
76319         [BZ #11149]
76320         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76321         silently even in the chroot mode.
76322
76323 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76324
76325         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76326         last patch a bit.  Pretty printing
76327
76328 2010-05-31  Petr Baudis <pasky@suse.cz>
76329
76330         [BZ #10085]
76331         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76332         initialization of skip_initgroups_dyn.
76333
76334 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76335
76336         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76337         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76338
76339 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76340
76341         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76342
76343 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76344
76345         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76346         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76347         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76348         ($(objpfx)tst-fnmatch-mem): New rule.
76349         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76350         * posix/tst-fnmatch.c (main): Call mtrace.
76351
76352 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76353
76354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76355         Support Intel processor model 6 and model 0x2c.
76356
76357 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76358
76359         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76360           signed comparison.
76361
76362 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76363
76364         [BZ #12205]
76365         * string/test-strncasecmp.c (check_result): New function.
76366         (do_one_test): Use it.
76367         (check1): New function.
76368         (test_main): Use it.
76369         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76370         Support strcasecmp and strncasecmp.
76371
76372 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76373
76374         [BZ #12194]
76375         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76376         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76377
76378 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76379
76380         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76381         IFUNC support.
76382         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76383         memset-x86-64.
76384         * sysdeps/x86_64/multiarch/bzero.S: New file.
76385         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76386         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76387         * sysdeps/x86_64/multiarch/memset.S: New file.
76388         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76389         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76390         Set bit_Prefer_SSE_for_memop for Intel processors.
76391         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76392         Define.
76393         (index_Prefer_SSE_for_memop): Define.
76394         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76395
76396 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76397
76398         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76399         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76400
76401 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76402
76403         [BZ #12191]
76404         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76405         (__x86_64_raw_data_cache_size_half): Likewise.
76406         (__x86_64_raw_shared_cache_size): Likewise.
76407         (__x86_64_raw_shared_cache_size_half): Likewise.
76408
76409         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76410         (__x86_64_raw_data_cache_size_half): Likewise.
76411         (__x86_64_raw_shared_cache_size): Likewise.
76412         (__x86_64_raw_shared_cache_size_half): Likewise.
76413         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76414         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76415         and __x86_64_raw_shared_cache_size_half.  Round
76416         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76417         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76418         to multiple of 256 bytes.
76419
76420 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76421
76422         [BZ #12167]
76423         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76424         of inacessible symlinks.  Verify result of symlink before returning it.
76425         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76426         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76427
76428 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76429
76430         * math/math.h (isinf): Fix typo in comment.
76431
76432 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76433
76434         * po/da.po: Update from translation team.
76435
76436 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76437
76438         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76439         is added to the list.
76440
76441 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76442             Ulrich Drepper  <drepper@gmail.com>
76443
76444         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76445         the global list here.  Move code to...
76446         (_dl_add_to_namespace_list): ...here.  New function.
76447         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76448         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76449         * elf/dl-load.c (lose): Don't remove the element from the list.
76450         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76451         (_dl_map_object): Likewise.
76452
76453 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76454
76455         [BZ #12159]
76456         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76457         into all bytes of SSE register.
76458         Patch by Richard Li <richardpku@gmail.com>.
76459
76460 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76461
76462         [BZ #12140]
76463         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76464         perturbing.
76465
76466 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76467
76468         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76469         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76470         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76471         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76473         submachine.
76474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76475
76476 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76477
76478         * include/dlfcn.h (__RTLD_SECURE): Define.
76479         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76480         mode & __RTLD_SECURE instead.
76481         (open_path): Rename preloaded parameter to secure.
76482         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76483         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76484         * elf/dl-deps.c (openaux): Likewise.
76485         * elf/rtld.c (struct map_args): Remove is_preloaded.
76486         (map_doit): Don't use it.
76487         (dl_main): Likewise.
76488         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76489         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76490
76491 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76492
76493         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76494         (sysd-rules-targets): Remove duplicates.
76495         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76496         rtld-%.$o dependency.
76497
76498 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76499
76500         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76501         _dl_map_object do it.
76502
76503 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76504
76505         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76506         fast fma builtins, define the macros in the C99 standard.
76507         (FP_FAST_FMAF): Likewise.
76508         (FP_FAST_FMAL): Likewise.
76509         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76510
76511         * bits/mathdef.h: Update copyright year.
76512         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76513
76514 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76515
76516         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76517         builtins, define the macros in the C99 standard.
76518         (FP_FAST_FMAF): Likewise.
76519         (FP_FAST_FMAL): Likewise.
76520         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76521         multiply/add.
76522         (FP_FAST_FMAF): Likewise.
76523
76524 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76525
76526         [BZ #3268]
76527         * math/libm-test.inc (fma_test): Some new testcases.
76528         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76529         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76530         y and infinite z.  Do multiplication by C already in long double.
76531         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76532         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76533         y and infinite z.  Do bitwise or of inexact bit into u.d.
76534         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76535         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76536         * sysdeps/i386/fpu/s_fma.S: Removed.
76537         * sysdeps/i386/fpu/s_fmal.S: Removed.
76538
76539 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76540
76541         [BZ #3268]
76542         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76543         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76544         computation is not scheduled after fetestexcept.  Fix value
76545         of minimum denormal long double.
76546
76547 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76548
76549         [BZ #3268]
76550         * math/libm-test.inc (fma_test): Add some more tests.
76551         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76552         correctly.
76553
76554 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76555
76556         * scripts/data/localplt-s390-linux-gnu.data: New file.
76557         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76558
76559 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76560
76561         [BZ #3268]
76562         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76563         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76564         instead of dbl-64.
76565         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76566         inlines.
76567         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76568         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76569         if one of x and y is very large and the other is subnormal.
76570         * sysdeps/s390/fpu/s_fmaf.c: New file.
76571         * sysdeps/s390/fpu/s_fma.c: New file.
76572         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76573         * sysdeps/powerpc/fpu/s_fma.S: New file.
76574         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76575         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76576         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76577
76578 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76579
76580         [BZ #3268]
76581         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76582         fma tests.
76583         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76584         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76585         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76586         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76587         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76588         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76589         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76590
76591 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76592
76593         [BZ #12078]
76594         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76595         * posix/bug-regex31.input: Add test case.
76596
76597 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76598
76599         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76600         * posix/bug-regex31.input: New file.
76601
76602         [BZ #12078]
76603         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76604         (parse_sub_exp): Fix last change, use postorder.
76605
76606         * posix/bug-regex31.c: New file.
76607         * posix/Makefile: Add rules to build and run bug-regex31.
76608
76609         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76610
76611         [BZ #12078]
76612         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76613
76614         [BZ #12108]
76615         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76616         to have entries in sys_siglist.
76617
76618         [BZ #12093]
76619         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76620         be NULL.
76621
76622 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76623
76624         [BZ #3268]
76625         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76626         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76627         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76628         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76629         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76630         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76631         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76632         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76633         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76634         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76635         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76636         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76637         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76638         * math/ftestexcept.c (fetestexcept): Likewise.
76639         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76640         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76641         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76642         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76643         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76644         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76645         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76646
76647 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76648
76649         [BZ #12107]
76650         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76651         newline.
76652
76653 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76654
76655         * string/bug-strstr1.c: New file.
76656         * string/Makefile: Add rules to build and run bug-strstr1.
76657
76658 2010-10-05  Eric Blake  <eblake@redhat.com>
76659
76660         [BZ #12092]
76661         * string/str-two-way.h (two_way_long_needle): Always clear memory
76662         when skipping input due to the shift table.
76663
76664 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76665
76666         [BZ #12005]
76667         * malloc/mcheck.c: Handle large requests.
76668
76669         [BZ #12077]
76670         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76671         for strncmp and strncasecmp.
76672         * string/stratcliff.c: Add tests for strcmp and strncmp.
76673         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76674
76675 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76676
76677         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76678         __set_fpscr.
76679
76680 2010-09-30  Andreas Jaeger  <aj@suse.de>
76681
76682         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76683         (CGROUP_SUPER_MAGIC): Define.
76684         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76685         Handle btrfs and cgroup file systems.
76686         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76687         Likewise.
76688
76689 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76690
76691         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76692         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76693
76694 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76695
76696         [BZ #12067]
76697         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76698         trying to locate the ELF header.
76699
76700 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76701
76702         [BZ #11611]
76703         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76704         Mask out sign-bit copies when constructing f_fsid.
76705
76706 2010-09-24  Petr Baudis <pasky@suse.cz>
76707
76708         * debug/stack_chk_fail_local.c: Add missing licence exception.
76709         * debug/warning-nop.c: Likewise.
76710
76711 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76712
76713         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76714         implementing getdents64 using getdents syscall, set d_type if
76715         __ASSUME_GETDENTS32_D_TYPE.
76716
76717 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76718
76719         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76720         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76721
76722 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76723
76724         [BZ #12037]
76725         * posix/unistd.h: Undo change of feature selection for ftruncate from
76726         2010-01-11.
76727
76728 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76729
76730         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76731         detection.
76732
76733 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76734
76735         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76736         fanotify_mark.
76737         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76738
76739 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76740
76741         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76742         variables after CHECK_SP call.
76743         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76744
76745 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76746             Ulrich Drepper  <drepper@redhat.com>
76747
76748         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76749         re-relocationg ld.so.
76750         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76751         _dl_init_paths call.
76752         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76753         here anymore.
76754
76755 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76756
76757         * resolv/res_init.c (__res_vinit): Count the default server we added.
76758
76759 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76760             Ulrich Drepper  <drepper@redhat.com>
76761
76762         [BZ #11968]
76763         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76764         (____longjmp_chk): Use %ebx for saving value across system call.
76765         Add unwind info.
76766
76767 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76768
76769         * manual/Makefile: Don't mix pattern rules with normal rules.
76770
76771 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76772
76773         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76774         operation.
76775         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76776         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76777         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76778         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76779         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76780         Likewise.
76781
76782 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76783
76784         [BZ #11979]
76785         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76786         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76787
76788 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76789
76790         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76791         * sysdeps/x86_64/addmul_1.S: Likewise.
76792         * sysdeps/x86_64/lshift.S: Likewise.
76793         * sysdeps/x86_64/mul_1.S: Likewise.
76794         * sysdeps/x86_64/rshift.S: Likewise.
76795         * sysdeps/x86_64/sub_n.S: Likewise.
76796         * sysdeps/x86_64/submul_1.S: Likewise.
76797
76798 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76799
76800         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76801         Define __sched_param instead of SCHED_* and sched_param when
76802         <bits/sched.h> is included with __need_schedparam defined.
76803         * bits/sched.h [__need_schedparam]
76804         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76805         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76806         (__defined_schedparam): Define to 1.
76807         (__sched_param): New structure, identical to sched_param.
76808         (__need_schedparam): Undefine.
76809
76810 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76811
76812         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76813         (epoll_create1): Declare.
76814
76815         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76816
76817 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76818
76819         [BZ #7066]
76820         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76821         shifting retval into place.
76822
76823 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76824
76825         * nis/rpcsvc/nis.h: Update copyright notice.
76826         * nis/rpcsvc/nis.x: Likewise.
76827         * nis/rpcsvc/nis_callback.h: Likewise.
76828         * nis/rpcsvc/nis_callback.x: Likewise.
76829         * nis/rpcsvc/nis_object.x: Likewise.
76830         * nis/rpcsvc/nis_tags.h: Likewise.
76831         * nis/rpcsvc/yp.h: Likewise.
76832         * nis/rpcsvc/yp.x: Likewise.
76833         * nis/rpcsvc/ypupd.h: Likewise.
76834         * nis/yp_xdr.c: Likewise.
76835         * nis/ypupdate_xdr.c: Likewise.
76836
76837         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76838         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76839         (pmap_getport): Use __libc_rpc_getport.
76840         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76841         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76842         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76843
76844 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76845
76846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76847         fanotify_mark.
76848
76849 2010-08-27  Roland McGrath  <roland@redhat.com>
76850
76851         * sysdeps/i386/i686/multiarch/Makefile
76852         (CFLAGS-varshift.c): New variable.
76853
76854 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76855
76856         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76857         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76858
76859         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76860
76861         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76862
76863 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76864
76865         * sysdeps/x86_64/strlen.S: Unroll the loop.
76866         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76867         strlen-sse2 strlen-sse2-bsf.
76868         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76869         __strlen_no_bsf if bit_Slow_BSF is set.
76870         (__strlen_sse42): Removed.
76871         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76872         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76873
76874 2010-08-25  Roland McGrath  <roland@redhat.com>
76875
76876         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76877         * sysdeps/x86_64/multiarch/varshift.c: New file.
76878         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76879         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76880         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76881         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76882
76883 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76884
76885         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76886         strlen-sse2 strlen-sse2-bsf.
76887         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76888         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76889         (__strlen_sse2): Removed.
76890         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76891         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76892         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76893         bit_Slow_BSF for Atom.
76894         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76895         (index_Slow_BSF): Define.
76896         (HAS_SLOW_BSF): Define.
76897
76898 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76899
76900         [BZ #10851]
76901         * resolv/res_init.c (__res_vinit): When no server address at all
76902         is given default to loopback.
76903
76904 2010-08-24  Roland McGrath  <roland@redhat.com>
76905
76906         * configure.in: Remove config-name.h generation.
76907         * configure: Regenerated.
76908         * config-name.in: File removed.
76909         * scripts/config-uname.sh: New file.
76910         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76911         ($(objdir)config-name.h): New target.
76912
76913         * sunrpc/rpc_parse.h: Avoid nested comment.
76914
76915 2010-08-24  Richard Henderson  <rth@redhat.com>
76916             Ulrich Drepper  <drepper@redhat.com>
76917             H.J. Lu  <hongjiu.lu@intel.com>
76918
76919         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76920         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76921         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76922         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76923         _mm_alignr_epi8 with _mm_loadu_si128.
76924         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76925         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76926         (__m128i_shift_right): Removed.
76927         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76928         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76929         * sysdeps/x86_64/multiarch/varshift.h: New file.
76930         * sysdeps/x86_64/multiarch/varshift.S: New file.
76931
76932 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76933
76934         * configure.in: Move assembler checks to before sysdep dir checking.
76935
76936 2010-08-20  Petr Baudis  <pasky@suse.cz>
76937
76938         * LICENSES: Sync the sunrpc license.
76939
76940 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76941
76942         * sunrpc/auth_des.c: Update copyright notice once again.
76943         * sunrpc/auth_none.c: Likewise.
76944         * sunrpc/auth_unix.c: Likewise.
76945         * sunrpc/authdes_prot.c: Likewise.
76946         * sunrpc/authuxprot.c: Likewise.
76947         * sunrpc/bindrsvprt.c: Likewise.
76948         * sunrpc/clnt_gen.c: Likewise.
76949         * sunrpc/clnt_perr.c: Likewise.
76950         * sunrpc/clnt_raw.c: Likewise.
76951         * sunrpc/clnt_simp.c: Likewise.
76952         * sunrpc/clnt_tcp.c: Likewise.
76953         * sunrpc/clnt_udp.c: Likewise.
76954         * sunrpc/clnt_unix.c: Likewise.
76955         * sunrpc/des_crypt.c: Likewise.
76956         * sunrpc/des_soft.c: Likewise.
76957         * sunrpc/get_myaddr.c: Likewise.
76958         * sunrpc/getrpcport.c: Likewise.
76959         * sunrpc/key_call.c: Likewise.
76960         * sunrpc/key_prot.c: Likewise.
76961         * sunrpc/openchild.c: Likewise.
76962         * sunrpc/pm_getmaps.c: Likewise.
76963         * sunrpc/pm_getport.c: Likewise.
76964         * sunrpc/pmap_clnt.c: Likewise.
76965         * sunrpc/pmap_prot.c: Likewise.
76966         * sunrpc/pmap_prot2.c: Likewise.
76967         * sunrpc/pmap_rmt.c: Likewise.
76968         * sunrpc/rpc/auth.h: Likewise.
76969         * sunrpc/rpc/auth_unix.h: Likewise.
76970         * sunrpc/rpc/clnt.h: Likewise.
76971         * sunrpc/rpc/des_crypt.h: Likewise.
76972         * sunrpc/rpc/key_prot.h: Likewise.
76973         * sunrpc/rpc/netdb.h: Likewise.
76974         * sunrpc/rpc/pmap_clnt.h: Likewise.
76975         * sunrpc/rpc/pmap_prot.h: Likewise.
76976         * sunrpc/rpc/pmap_rmt.h: Likewise.
76977         * sunrpc/rpc/rpc.h: Likewise.
76978         * sunrpc/rpc/rpc_des.h: Likewise.
76979         * sunrpc/rpc/rpc_msg.h: Likewise.
76980         * sunrpc/rpc/svc.h: Likewise.
76981         * sunrpc/rpc/svc_auth.h: Likewise.
76982         * sunrpc/rpc/types.h: Likewise.
76983         * sunrpc/rpc/xdr.h: Likewise.
76984         * sunrpc/rpc_clntout.c: Likewise.
76985         * sunrpc/rpc_cmsg.c: Likewise.
76986         * sunrpc/rpc_common.c: Likewise.
76987         * sunrpc/rpc_cout.c: Likewise.
76988         * sunrpc/rpc_dtable.c: Likewise.
76989         * sunrpc/rpc_hout.c: Likewise.
76990         * sunrpc/rpc_main.c: Likewise.
76991         * sunrpc/rpc_parse.c: Likewise.
76992         * sunrpc/rpc_parse.h: Likewise.
76993         * sunrpc/rpc_prot.c: Likewise.
76994         * sunrpc/rpc_sample.c: Likewise.
76995         * sunrpc/rpc_scan.c: Likewise.
76996         * sunrpc/rpc_scan.h: Likewise.
76997         * sunrpc/rpc_svcout.c: Likewise.
76998         * sunrpc/rpc_tblout.c: Likewise.
76999         * sunrpc/rpc_util.c: Likewise.
77000         * sunrpc/rpc_util.h: Likewise.
77001         * sunrpc/rpcinfo.c: Likewise.
77002         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
77003         * sunrpc/rpcsvc/key_prot.x: Likewise.
77004         * sunrpc/rpcsvc/klm_prot.x: Likewise.
77005         * sunrpc/rpcsvc/mount.x: Likewise.
77006         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
77007         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
77008         * sunrpc/rpcsvc/rex.x: Likewise.
77009         * sunrpc/rpcsvc/rstat.x: Likewise.
77010         * sunrpc/rpcsvc/rusers.x: Likewise.
77011         * sunrpc/rpcsvc/sm_inter.x: Likewise.
77012         * sunrpc/rpcsvc/spray.x: Likewise.
77013         * sunrpc/rpcsvc/yppasswd.x: Likewise.
77014         * sunrpc/rtime.c: Likewise.
77015         * sunrpc/svc.c: Likewise.
77016         * sunrpc/svc_auth.c: Likewise.
77017         * sunrpc/svc_authux.c: Likewise.
77018         * sunrpc/svc_raw.c: Likewise.
77019         * sunrpc/svc_run.c: Likewise.
77020         * sunrpc/svc_simple.c: Likewise.
77021         * sunrpc/svc_tcp.c: Likewise.
77022         * sunrpc/svc_udp.c: Likewise.
77023         * sunrpc/svc_unix.c: Likewise.
77024         * sunrpc/svcauth_des.c: Likewise.
77025         * sunrpc/xcrypt.c: Likewise.
77026         * sunrpc/xdr.c: Likewise.
77027         * sunrpc/xdr_array.c: Likewise.
77028         * sunrpc/xdr_float.c: Likewise.
77029         * sunrpc/xdr_mem.c: Likewise.
77030         * sunrpc/xdr_rec.c: Likewise.
77031         * sunrpc/xdr_ref.c: Likewise.
77032         * sunrpc/xdr_sizeof.c: Likewise.
77033         * sunrpc/xdr_stdio.c: Likewise.
77034
77035         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
77036         handling.
77037
77038 2010-08-19  Andreas Schwab  <schwab@redhat.com>
77039
77040         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
77041
77042 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
77043
77044         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
77045         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
77046         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
77047         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
77048         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
77049         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
77050         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
77051         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
77052         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
77053         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
77054         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
77055         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
77056         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
77057         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
77058
77059 2010-07-26  Anton Blanchard  <anton@samba.org>
77060
77061         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
77062         * malloc/arena.c (heap_trim): Likewise.
77063
77064 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
77065
77066         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
77067         here.  Not...
77068         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
77069         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
77070
77071 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
77072
77073         * sysdeps/i386/elf/Makefile: New file.
77074
77075 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
77076
77077         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
77078         from fanotify_init.
77079         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
77080         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77081
77082 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
77083
77084         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
77085         of strncasecmp_l.
77086         * sysdeps/multiarch/strcmp.S: Likewise.
77087
77088 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
77089
77090         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77091         strncase_l-nonascii.
77092         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77093         Add strncase_l-ssse3.
77094         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
77095         * sysdeps/x86_64/strcmp.S: Likewise.
77096         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
77097         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
77098         * sysdeps/x86_64/strncase.S: New file.
77099         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
77100         * sysdeps/x86_64/strncase_l.S: New file.
77101         * string/Makefile (strop-tests): Add strncasecmp.
77102         * string/test-strncasecmp.c: New file.
77103
77104         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
77105         warning.
77106
77107         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
77108         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
77109
77110 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
77111
77112         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
77113
77114 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
77115
77116         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
77117         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
77118         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
77119
77120 2010-05-01  Alan Modra  <amodra@gmail.com>
77121
77122         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
77123         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
77124         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
77125         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
77126         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
77127         tidying.  Don't tail-call __sigjmp_save for static lib.
77128         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
77129         save location.
77130         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
77131         (CALL_MCOUNT): Add eh info, and nop after bl.
77132         (TAIL_CALL_SYSCALL_ERROR): New macro.
77133         (PSEUDO_RET): Use it.
77134         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
77135         Correct save location of integer regs and cr.
77136         (_dl_profile_resolve): Correct cr save location.  Delete nops
77137         after bl when SHARED.  Reduce cfi size a little by better
77138         placement of cfi directives.
77139         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
77140         make a stack frame.  Instead use parm save area as a temp.
77141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
77142         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
77143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
77144         Don't make a stack frame for parent, use parm save area.
77145         Increase child stack frame to 112 bytes.  Don't save unused reg,
77146         and adjust reg usage.  Set up cfi on error recovery and
77147         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
77148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
77149         (__makecontext): Add dummy nop after jump to exit.
77150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
77151         Use correct parm save area and cr save, reduce stack frame.
77152         Correct cfi for possible PSEUDO_RET frame setup.
77153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
77154         Branch to local label emitted by PSEUDO_RET rather than
77155         __syscall_error.
77156
77157 2010-08-12  Andreas Schwab  <schwab@redhat.com>
77158
77159         [BZ #11904]
77160         * locale/programs/locale.c (print_assignment): New function.
77161         (show_locale_vars): Use it.
77162
77163 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
77164
77165         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
77166         field.
77167         (struct statfs64): Likewise.
77168         (_STATFS_F_FLAGS): Define.
77169         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
77170         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77171         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
77172         (ST_VALID): Define locally.
77173         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
77174         __statvfs_getflags, use the provided value.
77175         * sysdeps/unix/sysv/linux/kernel-features.h: Define
77176         __ASSUME_STATFS_F_FLAGS.
77177
77178         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
77179
77180         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
77181         Add sys/fanotify.h.
77182         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
77183         fanotify_mask for GLIBC_2.13.
77184         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
77185         fanotify_init and fanotify_mark.
77186         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77187         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
77188
77189         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
77190         Add prlimit.
77191         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
77192         prlimit64 for GLIBC_2.13.
77193         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
77194         prlimit64.
77195         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
77196         syscall.
77197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
77198         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
77199         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
77200         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77201         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77202         add prlimit alias.
77203         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77204
77205         [BZ #11903]
77206         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77207         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77208
77209         * nss/Makefile: Add rules to build and run tst-nss-test1.
77210         * shlib-versions: Add entry for libnss_test1.
77211         * nss/nss_test1.c: New file.
77212         * nss/tst-nss-test1.c: New file.
77213
77214         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77215         (__nss_configure_lookup): Set appropriate entry in
77216         __nss_configure_lookup to true.
77217         * nss/nsswitch.h: Define enum with indeces of databases in
77218         databases and __nss_database_custom arrays.  Declare
77219         __nss_database_custom.
77220         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77221         to avoid using nscd when custom rules are installed.
77222         * nss/getXXbyYY_r.c: Likewise.
77223         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77224
77225         * nss/nss_files/files-parse.c: Whitespace fixes.
77226
77227 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77228
77229         [BZ #11883]
77230         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77231         * posix/fnmatch_loop.c: Likewise.
77232
77233 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77234
77235         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77236         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77237         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77238         * Versions.def [GLIBC_2.13]: Add.
77239
77240 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77241
77242         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77243         Also fail if tpwd after pwuid call is NULL.
77244
77245 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77246
77247         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77248         when converting to ms.
77249
77250 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77251
77252         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77253         EOPNOTSUPP errors with ENOTTY.
77254         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77255         EOPNOTSUPP errors with ENOTTY.
77256
77257 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77258
77259         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77260         Add strcasecmp_l-ssse3.
77261         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77262         strcasecmp.
77263         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77264         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77265         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77266
77267 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77268
77269         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77270
77271         * string/Makefile (strop-tests): Add strcasecmp.
77272         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77273         strcasecmp_l-nonascii.
77274         (gen-as-const-headers): Add locale-defines.sym.
77275         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77276         * sysdeps/x86_64/strcasecmp.S: New file.
77277         * sysdeps/x86_64/strcasecmp_l.S: New file.
77278         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77279         * sysdeps/x86_64/locale-defines.sym: New file.
77280         * string/test-strcasecmp.c: New file.
77281
77282         * string/test-strcasestr.c: Test both ends of the range of characters.
77283         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77284
77285 2010-07-29  Roland McGrath  <roland@redhat.com>
77286
77287         [BZ #11856]
77288         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77289
77290 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77291
77292         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77293         for ld.so.
77294
77295 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77296
77297         * manual/memory.texi (Malloc Tunable Parameters): Document
77298         M_PERTURB.
77299
77300 2010-07-26  Roland McGrath  <roland@redhat.com>
77301
77302         [BZ #11840]
77303         * configure.in (-fgnu89-inline check): Set and substitute
77304         gnu89_inline, not libc_cv_gnu89_inline.
77305         * configure: Regenerated.
77306         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77307
77308 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77309
77310         * string/test-strnlen.c: New file.
77311         * string/Makefile (strop-tests): Add strnlen.
77312         * string/tester.c (test_strnlen): Add a few more test cases.
77313         * string/tst-strlen.c: Better error reporting.
77314
77315         * sysdeps/x86_64/strnlen.S: New file.
77316
77317 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77318
77319         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77320         lower-latency instructions.
77321
77322 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77323
77324         * string/test-strcasestr.c: New file.
77325         * string/test-strstr.c: New file.
77326         * string/Makefile (strop-tests): Add strstr and strcasestr.
77327         * string/str-two-way.h: Don't undefine MAX.
77328         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77329
77330 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77331
77332         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77333         strcasestr-nonascii.
77334         (CFLAGS-strcasestr-nonascii.c): Define.
77335         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77336         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77337         Remove unused attribute.
77338
77339 2010-07-20  Roland McGrath  <roland@redhat.com>
77340
77341         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77342         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77343         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77344         like LD_HWCAP_MASK can disable hwcaps.
77345
77346 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77347
77348         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77349
77350 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77351
77352         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77353         call in strcasestr.
77354         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77355         __strcasestr_sse42_nonascii.
77356         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77357         strcasestr-nonascii.c.
77358         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77359
77360 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77361
77362         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77363         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77364         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77365         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77366
77367 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77368
77369         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77370         fcntl.
77371
77372 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77373
77374         [BZ #11577]
77375         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77376         dl_signal_cerror.
77377
77378 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77379
77380         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77381         _PC_PIPE_BUF using F_GETPIPE_SZ.
77382
77383 2010-07-05  Roland McGrath  <roland@redhat.com>
77384
77385         * manual/arith.texi (Rounding Functions): Fix rint description
77386         implicit in round description.
77387
77388 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77389
77390         * elf/Makefile: Fix linking for a few tests to make recent linker
77391         happy.
77392
77393 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77394
77395         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77396         $(common-objpfx)libc_nonshared.a.
77397
77398 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77399
77400         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77401         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77402         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77403         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77404         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77405         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77406         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77407         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77422         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77423         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77424         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77425         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77426         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77427         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77428         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77429         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77430         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77431         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77432         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77433         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77448
77449 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77450
77451         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77452         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77453         * string/memmove.c (memmove): Renamed to ...
77454         (MEMMOVE): ...this.  Default to memmove.
77455         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77456         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77457         (END_CHK): Define.
77458         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77459         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77460         mempcpy-ssse3-back memmove-ssse3-back.
77461         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77462         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77463         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77464         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77465         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77466         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77467         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77468         * sysdeps/x86_64/multiarch/memmove.c: New file.
77469         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77470         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77471         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77472         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77473         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77474         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77475         Define.
77476         (index_Fast_Copy_Backward): Define.
77477         (HAS_ARCH_FEATURE): Define.
77478         (HAS_FAST_REP_STRING): Define.
77479         (HAS_FAST_COPY_BACKWARD): Define.
77480
77481 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77482
77483         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77484         Restore proper fallback handling.
77485
77486 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77487
77488         [BZ #11701]
77489         * posix/group_member.c (__group_member): Correct checking loop.
77490
77491         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77492         OOM in getpwuid_r correctly.  Return error number when the caller
77493         should return, otherwise -1.
77494         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77495         call returning > 0 value.
77496         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77497
77498 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77499
77500         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77501         libc_nonshared.a from targets in modules-names.
77502
77503 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77504
77505         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77506         requires it.
77507
77508 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77509
77510         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77511         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77512         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77513         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77514
77515 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77516
77517         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77518
77519 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77520
77521         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77522         and F_GETPIPE_SZ.
77523         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77524         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77525         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77526         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77527         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77528         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77529
77530 2010-06-14  Roland McGrath  <roland@redhat.com>
77531
77532         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77533
77534 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77535
77536         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77537         __REDIRECT followed by __THROW.
77538         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77539         * posix/getopt.h (getopt): Likewise.
77540
77541 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77542
77543         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77544         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77545         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77546         in AT_FLAGS.
77547         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77548         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77549
77550 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77551
77552         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77553
77554 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77555
77556         [BZ #11640]
77557         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77558         Properly check family and model.
77559
77560 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77561
77562         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77563
77564 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77565
77566         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77567
77568 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77569
77570         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77571         symbol reference.
77572
77573 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77574
77575         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77576         symbol reference.
77577
77578 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77579
77580         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77581         and internal_recvmmsg.
77582         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77583         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77584         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77585         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77586
77587         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77588         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77589         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77590
77591 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77592
77593         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77594
77595 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77596
77597         POWER7 optimizations.
77598         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77599         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77600
77601 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77602
77603         * version.h: Update for 2.13 development version.
77604
77605 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77606
77607         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77608         exceptions.  Return 0.
77609
77610 2010-05-07  Roland McGrath  <roland@redhat.com>
77611
77612         * elf/ldconfig.c (main): Add a const.
77613
77614 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77615
77616         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77617         (args_options): Add no-idn option.
77618         (ahosts_keys_int): Add idn_flags to ai_flags.
77619         (parse_option): Handle 'i' option to clear idn_flags.
77620
77621         * malloc/malloc.c (_int_free): Possible race in the most recently
77622         added check.  Only act on the data if no current modification
77623         happened.
77624
77625 See ChangeLog.17 for earlier changes.