Add ChangeLog for previous commit
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
2
3         * Rules (python-flags, python-invoke): New.
4         ($(test-printers-out)): Use $(python-flags).
5
6 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7
8         * manual/arith.texi (Math Error Reporting): Document that sNaN
9         arguments are not considered domain errors.
10
11 2016-12-16  Zack Weinberg <zackw@panix.com>
12             Florian Weimer <fweimer@redhat.com>
13             Nick Mathewson <nickm@torproject.org>
14
15         * string/explicit_bzero.c: New routine.
16         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
17         * string/Makefile (routines, strop-tests, tests): Add them.
18         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
19         * string/string.h [__USE_MISC]: Declare explicit_bzero.
20
21         * debug/explicit_bzero_chk.c: New routine.
22         * debug/Makefile (routines): Add it.
23         * debug/tst-chk1.c: Test fortification of explicit_bzero.
24         * string/bits/string3.h: Fortify explicit_bzero.
25
26         * manual/string.texi: Document explicit_bzero.
27         * NEWS: Mention addition of explicit_bzero.
28
29         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
30         data before returning, using explicit_bzero.
31         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
32         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
33         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
34
35         * include/string.h: Redirect internal uses of explicit_bzero
36         to __explicit_bzero_chk[_internal].
37         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
38         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
39         * sysdeps/arm/nacl/libc.abilist
40         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
41         * sysdeps/unix/sysv/linux/alpha/libc.abilist
42         * sysdeps/unix/sysv/linux/arm/libc.abilist
43         * sysdeps/unix/sysv/linux/hppa/libc.abilist
44         * sysdeps/unix/sysv/linux/i386/libc.abilist
45         * sysdeps/unix/sysv/linux/ia64/libc.abilist
46         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
47         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
48         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
49         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
50         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
51         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
52         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
53         * sysdeps/unix/sysv/linux/nios2/libc.abilist
54         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
55         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
56         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
57         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
58         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
59         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
60         * sysdeps/unix/sysv/linux/sh/libc.abilist
61         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
62         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
63         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
64         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
65         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
66         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
67         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
68         Add entries for explicit_bzero and __explicit_bzero_chk.
69
70 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
71
72         * math/fenv.h
73         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
74         (FE_SNANS_ALWAYS_SIGNAL): New macro.
75         * math/test-fe-snans-always-signal.c: New file.
76         * math/Makefile (tests): Add test-fe-snans-always-signal.
77         (CFLAGS-test-fe-snans-always-signal.c): New variable.
78         * manual/arith.texi (Infinity and NaN): Document
79         FE_SNANS_ALWAYS_SIGNAL.
80
81 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
82
83         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
84         bracket.
85
86 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
87
88         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
89         before calling execv.
90
91 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
92
93         [BZ# 20971]
94         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
95         overflow in pointer addition.
96         * string/test-memchr.c (do_test): Add an argument to pass as
97         the size on memchr.
98         (test_main): Add check for SIZE_MAX.
99
100 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
101
102         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
103         (libm-calls): Add w_scalblnF.
104         * math/w_scalbln.c: Remove.
105         * math/w_scalblnf.c: Likewise.
106         * math/w_scalblnl.c: Likewise.
107         * math/w_scalbln_template.c: New file with type-generic
108         implementation based on math/w_scalbln.c.
109         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
110         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
111
112 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
113
114         [BZ #20947]
115         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
116         either is a signaling NaN.
117         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
118         follow fmaxl more closely.
119         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
120         when either is a signaling NaN.
121         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
122         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
123         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
124         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
125         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
126         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
127         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
128         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
129         (fmin_test_data): Likewise.
130
131 2016-12-15  Andreas Schwab  <schwab@suse.de>
132
133         * support/support_test_main.c (support_test_main): Don't shadow
134         file-local variable test_pid.
135
136 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
137
138         [BZ #20947]
139         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
140         either is a signaling NaN.
141         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
142
143 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
144
145         [BZ #20947]
146         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
147         when either is a signaling NaN.
148         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
149
150         * bits/long-double.h: New file.
151         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
152         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
153         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
154         * sysdeps/mips/bits/long-double.h: Likewise.
155         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
156         * math/Makefile (headers): Add bits/long-double.h.
157         * misc/sys/cdefs.h: Include <bits/long-double.h>.
158         * stdlib/strtold.c: Include <bits/long-double.h> instead of
159         <bits/wordsize.h>.
160         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
161         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
162         * math/math.h: Do not include <bits/mathdef.h>.
163         * sysdeps/aarch64/bits/mathdef.h: Remove file.
164         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
165         inclusion.
166         * sysdeps/ia64/bits/mathdef.h: Remove file.
167         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
168         * sysdeps/mips/bits/mathdef.h: Likewise.
169         * sysdeps/powerpc/bits/mathdef.h: Likewise.
170         * sysdeps/s390/bits/mathdef.h: Likewise.
171         * sysdeps/sparc/bits/mathdef.h: Likewise.
172         * sysdeps/x86/bits/mathdef.h: Likewise.
173         * sysdeps/s390/s390-32/bits/wordsize.h
174         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
175         conditional code.
176         * sysdeps/s390/s390-64/bits/wordsize.h
177         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
178         Likewise.
179         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
180         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
181         Likewise.
182         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
183         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
184         Likewise.
185         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
186         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
187         Likewise.
188
189         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
190         <linux/falloc.h>.
191         (FALLOC_FL_KEEP_SIZE): Remove.
192         (FALLOC_FL_PUNCH_HOLE): Likewise.
193         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
194         (FALLOC_FL_ZERO_RANGE): Likewise.
195
196 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
197
198         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
199
200 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
201
202         * sysdeps/unix/sysv/linux/renameat.c: New file.
203         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
204
205         * sysdeps/unix/sysv/linux/rename.c: New file.
206         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
207
208 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
209
210         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
211         * string/strtok.c (strtok): Change to tailcall __strtok_r.
212         * string/strtok_r.c (__strtok_r): Optimize for performance.
213         * string/string-inlines.c (__old_strtok_r_1c): New function.
214         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
215
216 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
217
218         * math/Makefile (gen-libm-calls): Add w_log1pF.
219         (libm-calls): Remove w_log1pF.
220         * math/w_log1p.c: Remove.
221         * math/w_log1pf.c: Likewise.
222         * math/w_log1pl.c: Likewise.
223         * math/w_log1p_template.c: New file with type-generic
224         implementation based on math/w_log1p.c.
225         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
226         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
227
228 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
229
230         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
231
232 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
233
234         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
235         kernel version to 4.9.
236
237 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
238
239         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
240         ($(inst_libdir)/libm.a): Fix rule to create the target only.
241
242 2016-12-13  Andreas Schwab  <schwab@suse.de>
243
244         * sysdeps/powerpc/dl-procinfo.c: Don't define
245         _dl_powerpc_platforms.
246         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
247         constants instead of referencing _dl_powerpc_platforms.
248         (_dl_platform_string): Remove.
249
250 2016-12-13  Florian Weimer  <fweimer@redhat.com>
251
252         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
253
254 2016-12-13  Florian Weimer  <fweimer@redhat.com>
255
256         * Rules (binaries-shared-tests, binaries-pie-tests)
257         (binaries-static-tests): Link with $(link-extra-libs-tests).
258         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
259         Remove $(link-extra-libs-tests).
260
261 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
262
263         * sysdeps/powerpc/powerpc64/multiarch/Makefile
264         (sysdep_routines): Add strncmp_power9.
265         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
266         (strncmp): Add __strncmp_power9 to list of strncmp functions.
267         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
268         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
269         (strncmp): Add __strncmp_power9 to ifunc list.
270         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
271
272 2016-12-12  Florian Weimer  <fweimer@redhat.com>
273
274         [BZ #17252]
275         Add getentropy, getrandom.
276         * stdlib/sys/random.h: New file.
277         (headers): Add it.
278         * stdlib/Makefile (routines): Add getentropy, getrandom.
279         (tests): Add tst-getrandom.
280         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
281         * stdlib/getentropy.c: New file.
282         * stdlib/getrandom.c: Likewise.
283         * stdlib/tst-getrandom.c: Likewise.
284         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
285         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
286         * manual/crypt.texi (Unpredictable Bytes): New section.
287         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
288         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
289         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
290         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
291         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
292         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
293         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
294         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
295         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
296         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
297         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
298         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
299         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
300         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
301         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
302         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
304         Likewise.
305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
306         Likewise.
307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
309         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
310         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
311         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
312         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
313         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
315         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
316         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
317         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
318         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
319
320 2016-12-10  Florian Weimer  <fweimer@redhat.com>
321
322         [BZ #20956]
323         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
324         as additional compiler barriers.
325         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
326         (fn2, do_test): Declare with external linkage.
327         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
328         (do_test): Declare with external linkage.
329         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
330         (do_test): Declare with external linkage.
331         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
332         (do_test): Declare with external linkage.
333
334 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
335
336         * support/support_test_main.c (support_test_main): Use correct
337         timeout.
338
339 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
340             Florian Weimer  <fweimer@redhat.com>
341
342         [BZ #16421]
343         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
344         and __u6_addr32 members.
345         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
346         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
347         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
348         Use __u6_addr32.
349         * inet/tst-checks.c: Use <support/test-driver.c>
350         * inet/tst-checks-posix.c: New file.
351         * inet/Makefile (tests): Add it.
352         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
353
354 2016-12-09  Florian Weimer  <fweimer@redhat.com>
355
356         New subdirectory support for build and test infrastructure.
357         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
358         setting install-lib.
359         * Makeconfig (link-extra-libs-tests): Define.
360         (+link-pie-tests, +link-static-tests, +link-tests): Use
361         link-extra-libs-tests.
362         (rpath-dirs, all-subdirs): Add support.
363         (built-modules): Add libsupport.
364         (libsupport): Define.
365         * support: New directory.
366         * support/Makefile: New file.
367         * support/check.c: Likewise.
368         * support/check.h: Likewise.
369         * support/delayed_exit.c: Likewise.
370         * support/ignore_stderr.c: Likewise.
371         * support/oom_error.c: Likewise.
372         * support/set_fortify_handler.c: Likewise.
373         * support/support.h: Likewise.
374         * support/temp_file-internal.h: Likewise.
375         * support/temp_file.c: Likewise.
376         * support/test-driver.c: Likewise.
377         * support/test-driver.h: Likewise.
378         * support/test_main.c: Likewise.
379         * support/write_message.c: Likewise.
380         * support/xasprintf.c: Likewise.
381         * support/xcalloc.c: Likewise.
382         * support/xmalloc.c: Likewise.
383         * support/xpthread_barrier_destroy.c: Likewise.
384         * support/xpthread_barrier_init.c: Likewise.
385         * support/xpthread_barrier_wait.c: Likewise.
386         * support/xpthread_cancel.c: Likewise.
387         * support/xpthread_check_return.c: Likewise.
388         * support/xpthread_cond_wait.c: Likewise.
389         * support/xpthread_create.c: Likewise.
390         * support/xpthread_detach.c: Likewise.
391         * support/xpthread_join.c: Likewise.
392         * support/xpthread_mutex_lock.c: Likewise.
393         * support/xpthread_mutex_unlock.c: Likewise.
394         * support/xpthread_sigmask.c: Likewise.
395         * support/xpthread_spin_lock.c: Likewise.
396         * support/xpthread_spin_unlock.c: Likewise.
397         * support/xrealloc.c: Likweise.
398         * support/xsignal.h: Likewise.
399         * support/xthread.h: Likewise.
400         * support_tempfile.h: Likewise.
401         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
402         (TEST_DATA_LIMIT): Remove unused macro.
403         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
404         <support/check.h>.
405         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
406         (ignore_stderr, set_fortify_handler): Remove.  Now in
407         <support/support.h>.
408         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
409         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
410         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
411         (xpthread_join): Remove.  Now in <support/xthread.h>.
412         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
413         Introduce legacy wrappers.
414         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
415         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
416         (write_message): Remove.
417         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
418         test-skeleton.c.
419         * io/test-open-tmpfile: Likewise.
420         * io/tst-posix_fallocate-common.c: Likewise.
421         * libio/tst-fseek.c: Likewise.
422         * malloc/tst-malloc-backtrace.c: Likewise.
423         * malloc/tst-malloc-fork-deadlock.c: Likewise.
424         * malloc/tst-malloc-thread-exit.c: Likewise.
425         * nptl/tst-cancel7.c: Likewise.
426         * nptl/tst-cleanup0.c: Likewise.
427         * posix/tst-posix_fadvise-common.c: Likewise.
428         * rt/tst-shm.c: Likewise.
429         * time/bug-getdate1.c: Likewise.
430         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
431         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
432         * elf/Makefile (tst-piemod1.so): Link against libsupport.
433
434 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
435
436         * Rules [$(run-built-tests) != no] (tests-expected): Add
437         $(tests-printers).
438         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
439
440 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
441
442         [BZ #20539]
443         * math/Makefile (install-lib-ldscripts): Add libm.a.
444         (install_subdir): Remove.
445         (install-others): Add.
446         ($(inst_libdir)/libm.a): Add rule for installation as
447         linker script.
448         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
449
450 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
451
452         * INSTALL: Regenerated.
453         * Makeconfig: Add comments and whitespace to make the control flow
454         clearer.
455         (+link-printers-tests, +link-pie-printers-tests,
456         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
457         built-rtld-LDFLAGS, link-libc-rpath,
458         link-libc-tests-after-rpath-link,
459         link-libc-printers-tests): New.
460         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
461         link-libc-tests): Use the new variables as required.
462         * Makerules ($(py-const)): New rule.
463         generated: Add $(py-const).
464         * README.pretty-printers: New file.
465         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
466         (others): Depend on $(py-const).
467         (tests): Depend on $(tests-printers-programs) or
468         $(tests-printers-out),
469         as required.  Pass $(tests-printers) to merge-test-results.sh.
470         * manual/install.texi: Add requirements for testing the pretty
471         printers.
472         * nptl/Makefile (gen-py-const-headers, pretty-printers,
473         tests-printers, CFLAGS-test-mutexattr-printers.c
474         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
475         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
476         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
477         * nptl/nptl-printers.py: New file.
478         * nptl/nptl_lock_constants.pysym: Likewise.
479         * nptl/test-cond-printers.c: Likewise.
480         * nptl/test-cond-printers.py: Likewise.
481         * nptl/test-condattr-printers.c: Likewise.
482         * nptl/test-condattr-printers.py: Likewise.
483         * nptl/test-mutex-printers.c: Likewise.
484         * nptl/test-mutex-printers.py: Likewise.
485         * nptl/test-mutexattr-printers.c: Likewise.
486         * nptl/test-mutexattr-printers.py: Likewise.
487         * nptl/test-rwlock-printers.c: Likewise.
488         * nptl/test-rwlock-printers.py: Likewise.
489         * nptl/test-rwlockattr-printers.c: Likewise.
490         * nptl/test-rwlockattr-printers.py: Likewise.
491         * scripts/gen-py-const.awk: Likewise.
492         * scripts/test_printers_common.py: Likewise.
493         * scripts/test_printers_exceptions.py: Likewise.
494
495 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
496
497         * scripts/build-many-glibcs.py (Context.__init__): Take strip
498         argument.
499         (Glibc.build_glibc): Strip installed shared libraries if
500         requested.
501         (get_parser): Add --strip option.
502         (main): Update Context call.
503
504 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
505             Dominik Vogt  <vogt@linux.vnet.ibm.com>
506
507         [BZ #20847]
508         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
509         array bounds for else branch.
510         (__execvpe): Style fixes.
511         * posix/tst-vfork3.c (run_script): New function.
512         (create_script): Likewise.
513         (do_test): Use run_script internal function.
514         (do_prepare): Use create_script internal function.
515
516 2016-12-07  Andreas Schwab  <schwab@suse.de>
517
518         * sysdeps/unix/sysv/linux/x86/elision-conf.h
519         (__elision_available): Don't declare.
520         * sysdeps/unix/sysv/linux/x86/elision-conf.c
521         (__elision_available): Don't define.
522         (elision_init): Don't set __elision_available.
523
524 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
525
526         [BZ #20940]
527         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
528         return Inf for arguments Inf and sNaN.
529         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
530         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
531         Likewise.
532         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
533         Likewise.
534         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
535         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
536         for arguments Inf and sNaN.  When returning a NaN, compute it by
537         arithmetic on the arguments.
538         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
539         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
540         arguments.
541
542 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
543
544         [BZ #20916]
545         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
546         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
547         to compute result.
548         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
549         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
550
551 2016-12-05  Torvald Riegel  <triegel@redhat.com>
552
553         * include/atomic.h (__atomic_check_size_ls): New.
554         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
555         atomic_store_release): Use it.
556         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
557         (elision_adapt, ELIDE_LOCK): Use atomics.
558         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
559         atomics and improve code comments.
560         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
561         (__lll_trylock_elision): Likewise.
562
563 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
564
565         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
566         programs.
567
568 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
569
570         [BZ #20916]
571         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
572         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
573         arguments to compute result.
574         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
575         1 for arguments (sNaN, 0) or (1, sNaN).
576         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
577         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
578
579         [BZ #20919]
580         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
581         NaN first argument when raised to power 0.
582         * math/w_pow.c (__pow): Do not check for NaN or zero results from
583         raising to power zero.
584         * math/w_powf.c (__powf): Likewise.
585         * math/w_powl.c (__powl): Likewise.
586         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
587         pow (0, 0) or pow (NaN, 0).
588
589 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
590
591         [BZ #20918]
592         * configure.ac: Test for static NSS cryptographic libraries and set
593         libc_cv_static_nss_crypt.
594         * configure: Regenerate.
595         * config.make.in (static-nss-crypt): Define.
596         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
597         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
598         (CFLAGS-tst-linkall-static.c): Define.
599         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
600         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
601         ($(objpfx)tst-linkall-static): Define.
602         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
603         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
604
605 2016-12-02  Florian Weimer  <fweimer@redhat.com>
606
607         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
608         (one-hundred, tst-tls-many-dynamic-modules): Define.
609         (modules-names): Add $(tst-tls-many-dynamic-modules).
610         (tst-tls-manydynamic%mod.os): Build with special preprocessor
611         macros.
612         (tst-tls-manydynamic): Link against libdl, libpthread.
613         (tst-tls-manydynamic.out): The test needs the test modules at run
614         time.
615         * elf/tst-tls-manydynamic.c: New file.
616         * elf/tst-tls-manydynamic.h: Likewise.
617         * elf/tst-tls-manydynamicmod.c: Likewise.
618
619 2016-12-02  Florian Weimer  <fweimer@redhat.com>
620
621         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
622         (TLS_DTV_UNALLOCATED): Add.
623         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
624         offsets.
625
626 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
627
628         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
629
630 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
631
632         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
633         Add -fno-optimize-sibling-calls.
634
635 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
636
637         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
638         New declaration.
639         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
640         macro.
641         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
642         New macro.
643         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
644         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
645         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
646         (llogbf): Likewise.
647         (llogbl): Likewise.
648         * math/Makefile (gen-libm-calls): Add w_llogbF.
649         (tests): Add test-fp-llogb-constants.
650         * math/w_llogb_template.c: New file.  Based on
651         math/w_ilogb_template.c.
652         * math/libm-test.inc (llogb_test_data): New array.
653         (llogb_test): New function.
654         (main): Call llogb_test.
655         * math/test-fp-llogb-constants.c: New file.  Based on
656         math/test-fp-ilogb-constants.c.
657         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
658         (do_test): Call check_return_llogb.
659         * math/test-tgmath.c (NCALLS): Increase to 126.
660         (F(compile_test)): Call llogb.
661         (F(llogb)): New function.
662         * manual/math.texi (Exponents and Logarithms): Document llogb,
663         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
664         * manual/libm-err-tab.pl (@all_functions): Add llogb.
665         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
666         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
667         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
668         (CFLAGS-nldbl-llogb.c): New variable.
669         * sysdeps/nacl/libm.abilist: Update.
670         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
671         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
672         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
673         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
674         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
675         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
676         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
677         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
678         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
679         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
680         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
681         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
683         Likewise.
684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
685         Likewise.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
687         Likewise.
688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
689         Likewise.
690         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
691         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
692         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
693         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
694         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
695         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
696         Likewise.
697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
698         Likewise.
699         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
700         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
701         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
702
703 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
704
705         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
706         _Float128 instead of long double.
707         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
708
709         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
710         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
711         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
712         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
713         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
714         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
715         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
716         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
717         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
718         Likewise.
719
720 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
721
722         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
723         Remove redirection to __strrchr_ppc.
724
725 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
726
727         * sysdeps/powerpc/powerpc64/multiarch/Makefile
728         (sysdep_routines): Add strcmp_power9.
729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
730         (strcmp): Add __strcmp_power9 to list of strcmp functions.
731         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
732         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
733         (strcmp): Add __strcmp_power9 to ifunc list.
734         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
735
736 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
737
738         * bits/fp-logb.h: New file.
739         * sysdeps/ia64/bits/fp-logb.h: Likewise.
740         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
741         * sysdeps/x86/bits/fp-logb.h: Likewise.
742         * math/Makefile (headers): Add bits/fp-logb.h.
743         * math/math.h: Include <bits/fp-logb.h>.
744         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
745         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
746         * bits/mathdef.h (FP_ILOGB0): Remove.
747         (FP_ILOGBNAN): Likewise.
748         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
749         (FP_ILOGBNAN): Likewise.
750         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
751         (FP_ILOGBNAN): Likewise.
752         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
753         (FP_ILOGBNAN): Likewise.
754         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
755         (FP_ILOGBNAN): Likewise.
756         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
757         (FP_ILOGBNAN): Likewise.
758         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
759         (FP_ILOGBNAN): Likewise.
760         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
761         (FP_ILOGBNAN): Likewise.
762         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
763         (FP_ILOGBNAN): Likewise.
764         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
765         (FP_ILOGBNAN): Likewise.
766
767         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
768         time module.
769         (Context.__init__): Initialize self.logsdir_old.
770         (Context.run_builds): Handle bot action.
771         (Context.bot_cycle): Copy logs directory before running builds.
772         (Context.bot_run_self): Take argument for whether to check
773         subprocess result.  Flush stdout before running subprocess.
774         (Context.bot): New function.
775         (get_parser): Allow bot action.
776
777 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
778
779         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
780         Import email.mime.text, email.utils and smtplib modules.
781         (Context.__init__): Initialize self.bot_config_json.
782         (Context.run_builds): Handle bot-cycle action.
783         (Context.load_bot_config_json): New function.
784         (Context.part_build_old): Likewise.
785         (Context.bot_cycle): Likewise.
786         (Context.bot_build_mail): Likewise.
787         (Context.bot_run_self): Likewise.
788         (get_parser): Allow bot-cycle action.
789
790 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
791
792         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
793         Remove redirection to __stpcpy_ppc.
794
795 2016-11-30  Florian Weimer  <fweimer@redhat.com>
796
797         Remove __libc_memalign from ld.so because it is unused.
798         * elf/dl-minimal.c: Update comment on the malloc implementation.
799         (malloc): Renamed from __libc_memalign, replacing the original
800         malloc implementation.  Replace the align parameter with
801         MALLOC_ALIGNMENT.
802         * elf/Versions (ld): Update comment and remove __libc_memalign.
803         * sysdeps/nacl/ld.abilist: Likewise.
804         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
805         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
806         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
807         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
808         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
809         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
810         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
811         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
812         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
813         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
814         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
815         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
816         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
820         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
821         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
822         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
823         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
824         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
827         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
828         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
829         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
830         * sysdeps/generic/localplt.data (ld.so): Likewise.
831         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
832         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
833         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
834         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
835         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
836         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
837         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
838         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
839         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
841         (ld.so): Likewise.
842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
843         (ld.so): Likewise.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
845         Likewise.
846         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
847         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
848         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
849         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
850         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
851
852 2016-11-30  Florian Weimer  <fweimer@redhat.com>
853
854         [BZ #16628]
855         Implement _dl_catch_error, _dl_signal_error in libc.so.
856         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
857         (catch_hook): Define as thread-local or regular variable,
858         depending on DL_ERROR_BOOTSTRAP.
859         (CATCH_HOOK): Remove.
860         (dl_signal_error, _dl_catch_error): Use
861         catch_hook.  Add hidden definition for libc.
862         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
863         for DL_ERROR_BOOTSTRAP only.
864         * elf/dl-error.c: New file.
865         * elf/dl-error-minimal.c: Likewise.
866         * elf/tst-latepthread.c: Likewise.
867         * elf/tst-latepthreadmod.c: Likewise.
868         * elf/Makefile (routines): Add dl-error.
869         (dl-routines): Remove dl-error.
870         (rtld-routines): Add dl-error-minimal.
871         [build-shared] (tests): Add tst-latepthread.
872         (module-names): Add tst-latepthreadmod.
873         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
874         symbol.
875         (tst-latepthreadmod.so): Link against libpthread.
876         (tst-latepthread): Link against libdbl.
877         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
878         _dl_catch_error.
879         [ld] (GLIBC_PRIVATE): Likewise.
880         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
881         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
882         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
883         directly.
884         * elf/dl-tsd.c: Remove file.
885         * elf/rtld.c (_rtld_global_ro): Remove initializers for
886         _dl_catch_error, _dl_signal_error.
887         (_dl_initial_error_catch_tsd): Remove definition.
888         (do_preload): Remove initialization of dl_error_catch_tsd.
889         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
890         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
891         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
892         * dlfcn/dlopen.c (dlopen_doit): Likewise.
893         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
894         set dl_error_catch_tsd.
895         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
896         _dl_error_catch_tsd member.
897         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
898         members.
899         (_dl_initial_error_catch_tsd): Remove declaration.
900         (_dl_dprintf): Provide definition for use outside of ld.so.
901         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
902         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
903         prototype for libc.
904         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
905         _dl_catch_error.
906         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
907         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
908         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
909         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
910         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
911         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
912         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
913         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
914         Likewise.
915         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
917         (ld.so): Likewise.
918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
919         (ld.so): Likewise.
920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
921         Likewise.
922         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
923         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
924         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
925         Likewise.
926         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
927         Likewise.
928         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
929
930 2016-11-30  Florian Weimer  <fweimer@redhat.com>
931
932         [BZ #4099]
933         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
934         _IO_BUFSIZ (8192).
935
936 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
937
938         * PROJECTS: Remove file.
939
940 2016-11-29  Florian Weimer  <fweimer@redhat.com>
941
942         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
943
944 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
945             Steve Ellcey  <sellcey@caviumnetworks.com>
946
947         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
948         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
949         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
950         fxstatat.
951         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
952         lxstat.
953         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
954         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
955         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
956         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
957         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
958         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
959         __xstat.
960
961 2016-11-29  Florian Weimer  <fweimer@redhat.com>
962
963         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
964         Define.
965         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
966         definition.
967
968 2016-11-29  Florian Weimer  <fweimer@redhat.com>
969
970         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
971         version and turn into strong alias.  Remove compat symbol.
972
973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
974         (__longjmp): Remove.
975
976 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
977
978         * bits/fp-fast.h: New file.
979         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
980         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
981         * math/Makefile (headers): Add bits/fp-fast.h.
982         * math/math.h: Include <bits/fp-fast.h>.
983         * bits/mathdef.h (FP_FAST_FMA): Remove.
984         (FP_FAST_FMAF): Likewise.
985         (FP_FAST_FMAL): Likewise.
986         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
987         (FP_FAST_FMAF): Likewise.
988         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
989         (FP_FAST_FMAF): Likewise.
990         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
991         (FP_FAST_FMAF): Likewise.
992         (FP_FAST_FMAL): Likewise.
993         * sysdeps/arm/bits/mathdef.h: Remove file.
994         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
995         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
996         * sysdeps/tile/bits/mathdef.h: Likewise.
997
998 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
999
1000         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
1001         * math/w_ilogb.c: Remove.
1002         * math/w_ilogbf.c: Likewise.
1003         * math/w_ilogbl.c: Likewise.
1004         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
1005         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
1006         * math/Makefile (gen-libm-calls): Add w_ilogbF.
1007         (libm-calls): Remove w_ilogbF.
1008         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
1009         (LDOUBLE_ilogbl_libm_version): New macro.
1010
1011         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
1012
1013         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
1014         [!__STRICT_ANSI__ && !__cplusplus].
1015
1016 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1017
1018         [BZ #20750]
1019         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
1020         of PIC.
1021
1022 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
1023             Yury Norov  <ynorov@caviumnetworks.com>
1024             Steve Ellcey  <sellcey@caviumnetworks.com>
1025
1026         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
1027         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
1028         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
1029         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
1030         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
1031         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
1032         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
1033         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
1034         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
1035         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
1036         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
1037         to get correct reg name for ILP32.
1038         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
1039         (RELA_SIZE): New Macro.
1040         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
1041         to support ILP32.
1042         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
1043         cast for ILP32 mode.
1044         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
1045         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
1046         * sysdeps/aarch64/memset.S (__memset): Ditto.
1047         * sysdeps/aarch64/strchr.S (strchr): Ditto.
1048         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
1049         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
1050         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
1051         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
1052         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
1053         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
1054         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
1055         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
1056         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
1057         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
1058         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
1059         change PTR_MANGLE call to use register numbers instead of names.
1060         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
1061         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
1062         ILP32 mode, change PTR_MANGLE calls to use register numbers.
1063         * sysdeps/aarch64/start.S (_start): Ditto.
1064         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
1065         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
1066         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
1067         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
1068         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
1069         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
1070         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
1071         Make defined values dependent on __ILP32__.
1072         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
1073         (sem_t): Change __align type.
1074         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
1075         PTR_SIZE): New Macros.
1076         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
1077         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
1078         Set when in ILP32 mode.
1079         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
1080         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
1081         Set elf flags for ILP32.
1082         (add_system_dir): Set ILP32 library directories.
1083         * sysdeps/unix/sysv/linux/aarch64/init-first.c
1084         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
1085         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
1086         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
1087         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
1088         New Macros.
1089         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
1090
1091 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1092
1093         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
1094         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
1095         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
1096
1097 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
1098
1099         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
1100         <asm/cachectl.h>.
1101
1102 2016-11-27  Zack Weinberg  <zackw@panix.com>
1103
1104         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
1105         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
1106
1107 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1108
1109         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
1110         error_t to fix usage in C++ programs.
1111
1112 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
1113
1114         * scripts/build-many-glibcs.py: Import datetime module.
1115         (Context.__init__): Load JSON build state.  Initialize list of
1116         status logs.
1117         (Context.run_builds): Update saved build state.
1118         (Context.add_makefile_cmdlist): Update list of status logs.
1119         (Context.load_build_state_json): New function.
1120         (Context.store_build_state_json): Likewise.
1121         (Context.clear_last_build_state): Likewise.
1122         (Context.update_build_state): Likewise.
1123         (CommandList.status_logs): Likewise.
1124
1125 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
1126
1127         * scripts/build-many-glibcs.py (Context.__init__): Save text of
1128         script being executed.
1129         (Context.get_script_text): New function.
1130         (Context.exec_self): Likewise.
1131         (Context.checkout): Re-exec script if changed by checkout process.
1132
1133 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1134
1135         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1136         (setpayloadsig): New declaration.
1137         * math/Versions (setpayloadsig): New libm symbol at version
1138         GLIBC_2.25.
1139         (setpayloadsigf): Likewise.
1140         (setpayloadsigl): Likewise.
1141         * math/Makefile (libm-calls): Add s_setpayloadsigF.
1142         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
1143         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
1144         (setpayloadsig_test_data): New array.
1145         (setpayloadsig_test): New function.
1146         (main): Call setpayloadsig_test.
1147         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
1148         setpayloadsigf and setpayloadsigl.
1149         * manual/libm-err-tab.pl: Update comment on interfaces without
1150         ulps tabulated.
1151         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
1152         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
1153         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
1154         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
1155         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
1156         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
1157         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1158         setpayloadsig.
1159         (CFLAGS-nldbl-setpayloadsig.c): New variable.
1160         * sysdeps/nacl/libm.abilist: Update.
1161         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1162         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1163         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1164         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1165         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1166         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1167         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1168         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1169         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1170         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1171         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1172         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1174         Likewise.
1175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1176         Likewise.
1177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1178         Likewise.
1179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1180         Likewise.
1181         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1182         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1183         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1184         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1185         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1187         Likewise.
1188         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1189         Likewise.
1190         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1191         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1192         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1193
1194         * scripts/build-many-glibcs.py: Import json module.
1195         (Context.__init__): Take replace_sources argument.  Load
1196         versions.json.
1197         (Context.load_versions_json): New function.
1198         (Context.store_json): Likewise.
1199         (Context.store_versions_json): Likewise.
1200         (Context.set_component_version): Likewise.
1201         (Context.checkout): Update versions.json.  Check for and handle
1202         changes of version.  Prefer previously explicitly specified
1203         version to default version.
1204         (Context.checkout_vcs): Return a revision identifier.
1205         (Context.git_checkout): Likewise.
1206         (Context.gcc_checkout): Likewise.
1207         (get_parser): Add --replace-sources option.
1208         (main): Pass replace_sources argument to Context call.
1209
1210 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1211
1212         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
1213         * nptl/allocatestack.c (allocate_stack): Likewise.
1214         (__reclaim_stacks): Likewise.
1215         (setxid_signal_thread): Obtain pid through syscall.
1216         * nptl/nptl-init.c (sigcancel_handler): Likewise.
1217         (sighandle_setxid): Likewise.
1218         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
1219         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
1220         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
1221         Likewise.
1222         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
1223         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
1224         comment.
1225         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
1226         * nptl/descr.h (struct pthread): Change comment about pid value.
1227         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
1228         pid assert.
1229         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
1230         Do not set pid value.
1231         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
1232         pid cache check.
1233         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
1234         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
1235         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
1236         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
1237         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
1238         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
1239         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
1240         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
1241         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
1242         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
1243         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
1244         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
1245         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
1246         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
1247         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
1248         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
1249         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1250         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
1251         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1252         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
1253         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1254         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1255         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
1256         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1257         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
1258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1260         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1261         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1262         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1263         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1264         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1265         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
1266         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1267         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
1268         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1269         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1270         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1271         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1272         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1273         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1274         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1275         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
1276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1278         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1279         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1280         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1281         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
1282         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
1283         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
1284         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1285         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1286         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
1287         struct access.
1288         (clone_test): Remove function.
1289         (do_test): Rewrite to take in consideration pid is not cached anymore.
1290
1291 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1292
1293         * bits/flt-eval-method.h: New file.
1294         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
1295         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
1296         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
1297         * math/Makefile (headers): Add bits/flt-eval-method.h.
1298         * math/math.h: Include <bits/flt-eval-method.h>.
1299         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
1300         [__USE_ISOC99] (double_t): Likewise.
1301         * bits/mathdef.h (float_t): Remove.
1302         (double_t): Likewise.
1303         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
1304         (double_t): Likewise.
1305         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
1306         (double_t): Likewise.
1307         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
1308         (double_t): Likewise.
1309         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
1310         (double_t): Likewise.
1311         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
1312         (double_t): Likewise.
1313         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
1314         (double_t): Likewise.
1315         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
1316         (double_t): Likewise.
1317         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
1318         (double_t): Likewise.
1319         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
1320         (double_t): Likewise.
1321         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
1322         (double_t): Likewise.
1323         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
1324         (double_t): Likewise.
1325         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
1326         (double_t): Likewise.
1327         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
1328         (double_t): Likewise.
1329
1330 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
1331
1332         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
1333         instead of PIC.
1334
1335 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1336
1337         [BZ #20859]
1338         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
1339         (-0x7fffffff) instead of 0x80000001.
1340         * math/test-fp-ilogb-constants.c: New file.
1341         * math/Makefile (tests): Add test-fp-ilogb-constants.
1342
1343 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
1344
1345         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
1346         (_init): Use it in place of hardcoded R_MIPS_JALR.
1347         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
1348         (_init): Use it in place of hardcoded R_MIPS_JALR.
1349         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
1350         (_init): Use it in place of hardcoded R_MIPS_JALR.
1351
1352 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1353
1354         [BZ #20787]
1355         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
1356         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
1357         (double_t): Do not define to double if [__x86_64__] when
1358         __FLT_EVAL_METHOD__ is nonzero.
1359         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
1360         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
1361         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1362         test-flt-eval-method-387 and test-flt-eval-method-sse.
1363         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
1364         variable.
1365         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
1366
1367 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
1368
1369         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
1370         use of -fno-isolate-erroneous-paths options for tilepro.
1371
1372 2016-11-23  Florian Weimer  <fweimer@redhat.com>
1373
1374         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
1375         structure initialization is no longer needed.
1376
1377 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1378
1379         [BZ #20855]
1380         * bits/mathdef.h (float_t): Define to float.
1381         * math/test-flt-eval-method.c: New file.
1382         * math/Makefile (tests): Add test-flt-eval-method.
1383         (CFLAGS-test-flt-eval-method.c): New variable.
1384
1385 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
1386
1387         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
1388         and __fstatfs.  Make them aliases of __fstatfs64 if
1389         STATFS_IS_STATFS64 is set to non-zero.
1390         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
1391         and __statfs64.
1392         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
1393         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
1394         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
1395         for __statfs and statfs.
1396         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
1397         to 0.
1398         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
1399         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
1400         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
1401         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1402         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1403         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
1406         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
1407         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1408         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
1409         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
1410
1411 2016-11-22  Andreas Schwab  <schwab@suse.de>
1412
1413         * misc/mkstemp.c: Include <fcntl.h>.
1414         * misc/mkstemps.c: Likewise.
1415         * misc/mkostemp.c: Likewise.
1416         * misc/mkostemps.c: Likewise.
1417
1418 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
1419
1420         [BZ #20847]
1421         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
1422         array bounds.
1423         (__execvpe): Likewise.
1424
1425 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
1426
1427         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
1428         -fno-isolate-erroneous-paths options for tilepro.
1429
1430 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
1431
1432         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
1433         to 0 when in 32 bit mode.
1434         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
1435         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1436         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1437         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1439         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1440         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
1441         XSTAT_IS_XSTAT64 test.
1442         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
1443         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
1444         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
1445         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
1446         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
1447         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
1448         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
1449         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
1450         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
1451         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
1452         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
1453
1454 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
1455
1456         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1457         (setpayload): New declaration.
1458         * math/Versions (setpayload): New libm symbol at version
1459         GLIBC_2.25.
1460         (setpayloadf): Likewise.
1461         (setpayloadl): Likewise.
1462         * math/Makefile (libm-calls): Add s_setpayloadF.
1463         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
1464         test_Ff_b1_data.
1465         (RUN_TEST_Ff_b1): New macro.
1466         (RUN_TEST_LOOP_Ff_b1): Likewise.
1467         (canonicalize_test_data): Update type.
1468         (setpayload_test_data): New array.
1469         (setpayload_test): New function.
1470         (main): Call setpayload_test.
1471         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
1472         setpayloadf and setpayloadl.
1473         * manual/libm-err-tab.pl: Update comment on interfaces without
1474         ulps tabulated.
1475         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
1476         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
1477         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
1478         Likewise.
1479         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
1480         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
1481         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
1482         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
1483         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
1484         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
1485         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
1486         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
1487         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
1488         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1489         setpayload.
1490         (CFLAGS-nldbl-setpayload.c): New variable.
1491         * sysdeps/nacl/libm.abilist: Update.
1492         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1493         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1494         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1495         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1496         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1497         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1498         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1499         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1500         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1501         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1502         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1503         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1505         Likewise.
1506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1507         Likewise.
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1509         Likewise.
1510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1511         Likewise.
1512         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1513         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1514         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1515         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1516         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1518         Likewise.
1519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1520         Likewise.
1521         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1522         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1523         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1524
1525 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1526
1527         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
1528         * include/unistd.h: Extend comment about __access_noerrno return
1529         semantics.
1530         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
1531         (access_common): Correct typo for EACCES.
1532
1533 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
1534
1535         * sysdeps/tile/math-tests.h: New file.
1536
1537         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
1538         (__old_set_dataplane): Rename from set_dataplane and make a
1539         compatibility symbol.
1540         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
1541         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
1542         sys/dataplane.h.
1543
1544 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
1547         script quote words in command output to log suitably for input to
1548         the shell.
1549
1550 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1551             Maciej W. Rozycki  <macro@imgtec.com>
1552
1553         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1554         `.Lno_weak_fn' label.
1555         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1556         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1557
1558 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1559             Yury Norov  <ynorov@caviumnetworks.com>
1560
1561         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1562         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1563         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1564         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1565         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1566         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1567         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1568         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1569         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1570         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1571         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1572         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1573         (sysdep_routines): Remove oldgetrlimit64.
1574         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1575         (sysdep_routines): Likewise.
1576         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1577         (sysdep_routines): Likewise.
1578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1579         [$(subdir) = resource] (sysdep_routines): Likewise.
1580         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1581         [$(subdir) = resource] (sysdep_routines): Likewise.
1582         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1583         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1584         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1585         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1586         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1587         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1588         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1589         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1590         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1591         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1592         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1593         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1594         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1595         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1596         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1597         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1598         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1599         setrlimit and getrlimit.
1600         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1601         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1602         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1605         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1606         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1607         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1608         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1609         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1610         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1611         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1612         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1613         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1614         (__old_getrlimit64): Add compatibility symbol.
1615         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1616
1617 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1620         newly built gmp, mpfr and mpc.
1621
1622         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1623
1624 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1625
1626         * conform/Makefile (linknamespace-libs): Rename to
1627         linknamespace-libs-thr.
1628         (linknamespace-libs-posix): New variable.
1629         (linknamespace-libs-xsi): Likewise.
1630         (linknamespace-libs-XPG3): Include libcrypt.a.
1631         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1632         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1633         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1634         (linknamespace-libs-XOPEN2K): Likewise.
1635         (linknamespace-libs-XOPEN2K8): Likewise.
1636         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1637
1638         [BZ #20829]
1639         * stdio-common/Versions (__snprintf): Add to version
1640         GLIBC_PRIVATE.
1641         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1642         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1643         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1644         of snprintf.
1645         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1646
1647 2016-11-16  Zack Weinberg  <zackw@panix.com>
1648
1649         * string/string.h: Remove obsolete comment stating that
1650         strcoll_l and strxfrm_l have not yet been standardized.
1651
1652 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1653
1654         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1655         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1656         __access_noerrno.
1657         * io/access.c (__access_noerrno): New function.
1658         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1659         (hurd_fail_seterrno): Likewise.
1660         (access_common): Likewise.
1661         (__access_noerrno): Likewise.
1662         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1663         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1664         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1665         macro.
1666
1667 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1668
1669         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1670         Only declare fpregs if [__SH_FPU_ANY__].
1671
1672 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1673
1674         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1675         Make code unconditional.
1676         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1677
1678 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1679
1680         * manual/sysinfo.texi (S_APPEND): Delete.
1681         (S_IMMUTABLE): Likewise.
1682
1683 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1684             Magnus Granberg  <zorry@gentoo.org>
1685             Mike Frysinger  <vapier@gentoo.org>
1686
1687         [BZ #20662]
1688         * configure.ac (libc_cv_predef_stack_protector): Also check for
1689         __stack_chk_fail_local symbols.
1690         * configure: Regenerated.
1691
1692 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1693
1694         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1695         (libc_hidden_def): Remove redefinition.
1696         (__sigsetjmp): Add hidden definition.
1697         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1698         (libc_hidden_def): Remove redefinition.
1699         (__sigsetjmp): Add hidden definition.
1700
1701 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1702
1703         * scripts/build-many-glibcs.py (os.path): Do not import.
1704         (Context): Inherit explicitly from object.  Remove blank line
1705         between class and docstring.
1706         (Config): Likewise.
1707         (Glibc): Likewise.
1708         (Command): Likewise.
1709         (CommandList): Likewise.
1710         (Context.write_files): Store chmod mode in a variable.
1711
1712         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1713         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1714         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1715
1716 2016-11-14  Zack Weinberg  <zackw@panix.com>
1717
1718         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1719         creating or re-creating it.
1720
1721         * string/bits/string2.h: Fix typo in comment.
1722
1723 2016-11-14  Zack Weinberg  <zackw@panix.com>
1724
1725         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1726         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1727         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1728         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1729         of redirected function names.
1730
1731         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1732         as well.  Document that MESSAGE must be a single string literal.
1733
1734 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1735
1736         * scripts/build-many-glibcs.py: New file.
1737
1738         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1739         (do_test): Disable -Wmaybe-uninitialized around uses of
1740         except_mask.
1741
1742         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1743
1744 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1745
1746         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1747         (atomic_store_release): Provide tilepro-specific implementations.
1748
1749 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1750
1751         * math/math.h (__MATH_TG): New macro.
1752         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1753         [__USE_ISOC99] (signbit): Likewise.
1754         [__USE_ISOC99] (isfinite): Likewise.
1755         [__USE_ISOC99] (isnan): Likewise.
1756         [__USE_ISOC99] (isinf): Likewise.
1757         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1758         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1759         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1760         __MATH_TG and __MATH_EVAL_FMT2.
1761         * sysdeps/generic/math_private.h (fabs_tg): Define using
1762         __MATH_TG.
1763         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1764         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1765         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1766         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1767         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1768         macro.
1769         (__iscanonical): Likewise.
1770         (iscanonical): Define using __MATH_TG.
1771
1772 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1773
1774         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1775         guards.
1776
1777         * sysdeps/unix/sysv/linux/access.c: New file.
1778         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1779
1780 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1781
1782         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1783         and __WORDSIZE32_PTRDIFF_LONG.
1784
1785 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1786
1787         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1788
1789 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1790
1791         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1792         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1793         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1794         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1795         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1797         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1798         * sysdeps/unix/sysv/linux/truncate.c: New file.
1799         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1800         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1801         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1802         Remove.
1803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1804         Likewise.
1805
1806         * posix/tst-truncate-common.c: New file.
1807         * posix/tst-truncate.c: Use tst-truncate-common.c.
1808         * posix/tst-truncate64.c: Likewise and add LFS tests.
1809         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1810         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1811         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1812         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1813         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1815         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1816         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1817         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1818         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1819         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1820         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1821         Remove.
1822         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1823         Likewise.
1824
1825 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1826
1827         [BZ #20790]
1828         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1829         to MAXLINESIZE.
1830         * sunrpc/bug20790.x: New file.
1831         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1832         variable.
1833         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1834         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1835
1836         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1837
1838         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1839
1840         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1841         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1842         calloc, realloc, free, memalign and __libc_memalign rather than
1843         making them optional.
1844
1845         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1846         for libc.so.
1847
1848 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1849
1850         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1851         ptw-lseek64.
1852         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1853         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1854         Likewise.
1855         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1856         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1857         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1858         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1859         * sysdeps/unix/sysv/linux/lseek.c: New file.
1860         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1861         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1862         __libc_lseek64 from auto-generation.
1863         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1864         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1865
1866 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1867
1868         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1869         * nptl/tst-cleanup1.c (do_test): Likewise.
1870         * nptl/tst-cleanup3.c (do_test): Likewise.
1871         * nptl/tst-key1.c (do_test): Likewise.
1872         * nptl/tst-key2.c (tf, do_test): Likewise.
1873         * nptl/tst-key3.c (tf, do_test): Likewise.
1874         * nptl/tst-stdio1.c (do_test): Likewise.
1875         * nptl/tst-stdio2.c (do_test): Likewise.
1876
1877         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1878         * nptl/tst-kill6.c (handler): Likewise.
1879         * nptl/tst-tls2.c (CB): Likewise.
1880         * nptl/tst-tls3.c (CB): Likewise.
1881
1882 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1883
1884         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1885
1886 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1887             Steve Ellcey  <sellcey@caviumnetworks.com>
1888
1889         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1890           __ASSUME_ST_INO_64_BIT as 0
1891         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1892         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1893           over the code where __ASSUME_ST_INO_64_BIT is used.
1894         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1895         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1896         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1897
1898 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1899
1900         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1901         Document ABI exposure of the __kind offset.
1902         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1903         Mention reason for the __kind offset exposure in the ABI.
1904         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1905         Likewise.
1906         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1907         Likewise.
1908         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1909         Likewise.
1910         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1911         (struct __pthread_mutex_s): Likewise.
1912         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1913         Likewise.
1914         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1915         Likewise.
1916         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1917         Likewise.
1918         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1919         Likewise.
1920         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1921         Likewise.
1922         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1923         Likewise.
1924         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1925         (struct __pthread_mutex_s): Likewise.
1926         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1927         (struct __pthread_mutex_s): Likewise.
1928         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1929         Likewise.
1930
1931 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1932
1933         * test-skeleton.c: Document do_test usage.
1934
1935 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1936
1937         * iconv/gconv.h (__gconv_info): Define __data element using a
1938         zero-length array.
1939
1940 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1941
1942         * math/test-tgmath2.c: Split up test function.
1943
1944 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1945
1946         * Rules (tests-expected): New variable, depending on
1947         $(run-built-tests).
1948         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1949         $(tests).
1950
1951         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1952         $(tests-unsupported).
1953
1954 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1955
1956         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1957         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1958
1959 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1960
1961         [BZ #20768]
1962         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1963         __fegetenv instead of fegetenv.
1964
1965         [BZ #14139]
1966         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1967         (find_files): Obtain platform name from libm-test-ulps-name and
1968         store in %pplatforms.
1969         (canonicalize_platform): Remove.
1970         (print_platforms): Use $pplatforms directly.
1971         (by_platforms): Do not allow for platforms missing from
1972         %pplatforms.
1973         * sysdeps/aarch64/libm-test-ulps-name: New file.
1974         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1975         * sysdeps/arm/libm-test-ulps-name: Likewise.
1976         * sysdeps/generic/libm-test-ulps-name: Likewise.
1977         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1978         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1979         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1980         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1981         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1982         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1983         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1984         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1985         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1986         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1987         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1988         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1989         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1990         * sysdeps/sh/libm-test-ulps-name: Likewise.
1991         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1992         * sysdeps/tile/libm-test-ulps-name: Likewise.
1993         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1994
1995         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1996
1997         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1998         (test-xfail-check-execstack): New variable.
1999
2000         * sysdeps/mips/localplt.data: New file.
2001
2002 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
2003             Steve Ellcey  <sellcey@caviumnetworks.com>
2004
2005         * bits/wordsize.h: Add documentation.
2006         * sysdeps/aarch64/bits/wordsize.h : New file
2007         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
2008         definitions.
2009         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
2010         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
2011         with #if instead of #ifdef.
2012         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
2013         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
2014         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
2015         Add or change defines.
2016         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
2017         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2018         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
2019         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
2020         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2021         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2022         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
2023         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
2024         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
2025         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2026         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
2027         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
2028         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
2029         * sysdeps/x86/bits/wordsize.h: Likewise.
2030
2031 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
2032             Kevin Petit  <kevin.petit@arm.com>
2033
2034         * sysdeps/aarch64/memchr.S (__memchr): New file.
2035
2036 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
2037
2038         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
2039
2040 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
2041
2042         [BZ #19398]
2043         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
2044         $(linknamespace-symlists-tests).
2045
2046 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
2047
2048         * time/tst-strptime2.c: Ignore -Wformat-length warning.
2049
2050 2016-11-02  Florian Weimer  <fweimer@redhat.com>
2051             Carlos O'Donell  <carlos@redhat.com>
2052
2053         [Bug #20729]
2054         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
2055         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
2056         for -Os related change.
2057
2058 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
2059
2060         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
2061
2062 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
2063
2064         [BZ #19673]
2065         * manual/math.texi (Exponents and Logarithms): Correct description
2066         of clog10.
2067
2068 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
2069
2070         [Bz #20729]
2071         * locale/weight.h: Include libc-internal.h.
2072         * locale/weightwc.h: Likewise.
2073         * nptl/nptl_dbP.h: Likewise.
2074
2075 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
2076
2077         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
2078         when it is MACH_PORT_NULL.
2079
2080 2016-10-31  Andreas Schwab  <schwab@suse.de>
2081
2082         [BZ #20707]
2083         * posix/glob.c (glob): Initialize pglob before checking for
2084         GLOB_BRACE.  Don't call glob recursively if pattern contains no
2085         valid brace expression despite GLOB_BRACE.
2086         * posix/globtest.sh: Test it.
2087
2088 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
2089
2090         [BZ #20729]
2091         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
2092         Define.
2093         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
2094         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
2095         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
2096         for seq2.back_us and seq1.back_us only for -Os compiles.
2097         * locale/weightwc.h (findix): Likewise.
2098         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
2099         DB_GET_FIELD_ADDRESS only for -Os compiles.
2100         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
2101         for slen only for -Os compiles.
2102         * string/strcoll_l.c (get_next_seq): Ignore
2103         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
2104         for -Os compiles.
2105
2106         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
2107         * include/crypt.h: New file.
2108
2109 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2110
2111         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
2112         from test-skeleton.c.
2113         (statclass): Replace calls to write with calls to write_message.
2114
2115 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
2116
2117         * math/math.h
2118         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
2119         New macro.
2120         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
2121         Likewise.
2122         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
2123         Likewise.
2124         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
2125         SNANL.
2126         * math/test-double.h (snan_value_MACRO): New macro.
2127         * math/test-float.h (snan_value_MACRO): Likewise.
2128         * math/test-ldouble.h (snan_value_MACRO): Likewise.
2129         * math/libm-test.inc (issignaling_test_data): Add tests of
2130         snan_value_MACRO.
2131
2132 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2133
2134         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
2135         behavior when eliding a lock not held by the current thread.
2136         * sysdeps/powerpc/nptl/elide.h: Likewise.
2137
2138 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2139
2140         [BZ #20728]
2141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
2142         branch to _exit() by a function call.
2143
2144 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2145
2146         * malloc/malloc.c: Update chunk layout comments.
2147         (chunk_main_arena): Update comment.
2148
2149 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2150
2151         * crypt/sha256.c, crypt/sha256-block.c,
2152         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
2153         sha256_process_block to __sha256_process_block.
2154         * crypt/sha512.c, crypt/sha512-block.c,
2155         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
2156         sha512_process_block to __sha512_process_block.
2157
2158 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
2159
2160         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
2161
2162         * math/test-nan-overflow.c: Include stdlib.h for malloc.
2163
2164 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
2165
2166         [BZ #20019]
2167         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
2168         definition in unrelocated shared library.
2169         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2170
2171 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2172
2173         [BZ #20729]
2174         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
2175         * sysdeps/unix/sysv/linux/i386/Makefile
2176         (uses-6-syscall-arguments): Define.
2177         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
2178         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
2179         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
2180         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
2181         Likewise.
2182         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
2183         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
2184         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
2185         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
2186         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
2187         (CFLAGS-fallocate64.os): Likewise.
2188         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
2189         (CFLAGS-pthread_rwlock_timedrdlock.os)
2190         (CFLAGS-pthread_rwlock_timedwrlock.o)
2191         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
2192         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
2193         (CFLAGS-sem_timedwait.os): Likewise.
2194
2195 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2196
2197         * elf/tst-linkall-static.c: New file.
2198         * elf/Makefile (tests-static): Add tst-linkall-static.
2199         (tst-linkall-static): Link against static libraries.
2200
2201 2016-10-27  Florian Weimer  <fweimer@redhat.com>
2202
2203         * malloc/malloc.c (sysmalloc): Initialize previous size field of
2204         mmaped chunks.
2205
2206 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2207
2208         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
2209         members to mchunk_prev_size, mchunk_size.
2210         (chunk_main_arena): Reverse sense and rename from
2211         chunk_non_main_arena.
2212         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
2213         mchunk_size instead of size.
2214         (set_non_main_arena): Define.
2215         (chunksize): Use chunksize_nomask instead of direct member access.
2216         (chunksize_nomask): Define.
2217         (next_chunk): Use chunksize instead of direct member access.
2218         (prev_size, set_prev_size): Define.
2219         (prev_chunk): Use prev_size instead of direct member access.
2220         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
2221         (inuse_bit_at_offset, set_inuse_bit_at_offset)
2222         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
2223         (mchunk_prev_size, mchunk_size): Poison tokens.
2224         (unlink): Use chunksize_nomask, prev_size accessors.
2225         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
2226         (do_check_free_chunk): Use prev_size accessor.
2227         (sysmalloc): Use set_prev_size, set_head accessors.
2228         (munmap_chunk, mremap_chunk): Use prev_size accessor.
2229         (__libc_free): Use chunksize_nomask accessor.
2230         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
2231         chunk_main_arena accessors.
2232         (_int_free): Use chunksize_nomask, prev_size accessors.
2233         (malloc_consolidate): Use chunksize, prev_size accessors.
2234         (_int_realloc): Use chunksize_nomask accessor.
2235         (_int_memalign): Use set_prev_size accessor.
2236         (__malloc_info): Use chunksize_nomask accessor.
2237         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
2238         accessors.
2239         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
2240         (heap_trim): Use chunksize_nomask, prev_size accessors.
2241
2242 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
2243
2244         [BZ #19380]
2245         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
2246         for inexact results.
2247         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
2248         of inexact result where mpfr_subnormalize is the only inexact
2249         step.
2250         * stdlib/tst-strtod-round-data.h: Regenerated.
2251         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
2252         Define to 0.
2253         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
2254
2255 2016-10-27  David S. Miller  <davem@davemloft.net>
2256
2257         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
2258
2259 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2260
2261         * malloc/malloc.c (do_set_mallopt_check): New function.
2262         (do_set_mmap_threshold): Likewise.
2263         (do_set_mmaps_max): Likewise.
2264         (do_set_top_pad): Likewise.
2265         (do_set_perturb_byte): Likewise.
2266         (do_set_trim_threshold): Likewise.
2267         (do_set_arena_max): Likewise.
2268         (do_set_arena_test): Likewise.
2269         (__libc_mallopt): Use them.
2270
2271 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
2272
2273         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2274         (canonicalize): New declaration.
2275         * math/Versions (canonicalize): New libm symbol at version
2276         GLIBC_2.25.
2277         (canonicalizef): Likewise.
2278         (canonicalizel): Likewise.
2279         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
2280         * math/s_canonicalize_template.c: New file.
2281         * math/libm-test.inc: Update comment on functions tested and
2282         testing of NaN payloads.
2283         (TEST_NAN_PAYLOAD): New macro.
2284         (NO_TEST_INLINE): Update value.
2285         (XFAIL_TEST): Likewise.
2286         (ERRNO_UNCHANGED): Likewise.
2287         (ERRNO_EDOM): Likewise.
2288         (ERRNO_ERANGE): Likewise.
2289         (IGNORE_RESULT): Likewise.
2290         (NON_FINITE): Likewise.
2291         (TEST_SNAN): Likewise.
2292         (NO_TEST_MATHVEC): Likewise.
2293         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
2294         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
2295         (struct test_Ffp_b1_data): New type.
2296         (RUN_TEST_Ffp_b1): New macro.
2297         (RUN_TEST_LOOP_Ffp_b1): Likewise.
2298         (canonicalize_test_data): New array.
2299         (canonicalize_test): New function.
2300         (main): Call canonicalize_test.
2301         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
2302         canonicalizef and canonicalizel.
2303         * manual/libm-err-tab.pl: Update comment on interfaces without
2304         ulps tabulated.
2305         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
2306         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
2307         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2308         canonicalize.
2309         (CFLAGS-nldbl-canonicalize.c): New variable.
2310         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
2311         to ...
2312         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
2313         ... here.
2314         (do_test): Also test canonicalizel.
2315         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
2316         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
2317         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
2318         file.
2319         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
2320         Use libm_hidden_def.
2321         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
2322         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
2323         (do_test): Also test canonicalizel.
2324         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
2325         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
2326         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
2327         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
2328         libm_hidden_def.
2329         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
2330         macro.
2331         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
2332         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
2333         * sysdeps/nacl/libm.abilist: Update.
2334         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2335         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2336         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2337         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2338         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2339         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2340         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2341         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2342         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2343         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2344         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2345         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2347         Likewise.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2349         Likewise.
2350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2351         Likewise.
2352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2353         Likewise.
2354         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2355         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2356         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2357         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2358         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2359         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2360         Likewise.
2361         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2362         Likewise.
2363         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2364         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2365         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2366
2367         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
2368         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2369         getpayload.
2370         (CFLAGS-nldbl-getpayload.c): New variable.
2371
2372 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2373
2374         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
2375         integer from the format string.
2376
2377 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2378
2379         [BZ #19473]
2380         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
2381         declarations.
2382         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
2383         weak aliases.
2384         * malloc/hooks.c (__malloc_get_state): Remove definition.
2385         (malloc_get_state): New stub implementation as
2386         compatibility symbol.
2387         (malloc_set_state): Rename from __malloc_set_state.  Turn into
2388         compat symbol.
2389         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
2390         malloc_set_state.
2391         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
2392
2393 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2394
2395         * iconvdata/iso646.c (enum variant): Drop illegal_var.
2396         (names): Turn into concatenation of strings.
2397         (gconv_init): Adapt iteration over names.
2398
2399 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2400
2401         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
2402         make const.
2403         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
2404         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
2405         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
2406         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
2407         character in sbconv.
2408         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
2409         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
2410         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
2411
2412 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2413
2414         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
2415
2416         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
2417         (M_TRIM_THRESHOLD): Likewise.
2418
2419         * manual/memory.texi (M_ARENA_TEST): Add documentation.
2420         (M_ARENA_MAX): Likewise.
2421         * malloc/malloc.c: Remove obsolete comment.
2422
2423         * manual/memory.texi: Add environment variable alternatives to
2424         setting mallopt parameters.
2425
2426 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
2427
2428         * include/atomic.h
2429         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
2430         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
2431
2432 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2433
2434         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
2435         * stdlib/tst-strfrom.h: New file.
2436         * stdlib/tst-strfrom.c: New file.
2437         * stdlib/tst-strfrom-locale.c: New file.
2438
2439         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
2440         * stdlib/bug-strtod2.c: Likewise.
2441         * stdlib/tst-strtod-round-skeleton.c: Likewise.
2442         * stdlib/tst-strtod6.c: Likewise.
2443         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
2444
2445 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2446
2447         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
2448         * manual/arith.texi: Document strfromd, strfromf, strfroml.
2449         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
2450         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
2451         * stdlib/stdlib.h (strfromd): New declaration.
2452         (strfromf): Likewise.
2453         (strfroml): Likewise.
2454         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
2455         strfrom.
2456         * stdlib/strfromd.c: New file.
2457         * stdlib/strfromf.c: Likewise.
2458         * stdlib/strfroml.c: Likewise.
2459         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
2460         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
2461         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
2462         * sysdeps/arm/nacl/libc.abilist: Update.
2463         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
2464         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2465         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2466         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2467         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2468         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2469         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2470         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2471         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2472         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2473         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2474         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2475         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2476         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2481         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2482         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2483         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2484         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2485         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2486         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2487         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2488         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2489         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2490         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2491
2492 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
2493
2494         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
2495         instead of cmpli.
2496         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
2497         instead of cmpli.
2498
2499 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
2500
2501         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
2502         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2503         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2504         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2505         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2506         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2507
2508 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2509
2510         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
2511         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
2512         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
2513         SYSCALL_LL64_PRW.
2514         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
2515         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
2516         __ASSUME_PRW_DUMMY_ARG.
2517         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
2518         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
2519         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
2520         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2521         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
2522         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
2523
2524 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2525
2526         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2527
2528 2016-10-22  Florian Weimer  <fweimer@redhat.com>
2529
2530         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
2531         "C++", to override a potential extern "C" directive around the
2532         header file inclusion.
2533
2534 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
2535
2536         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
2537
2538 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2539
2540         * sysdeps/powerpc/fpu/fenv_private.h:
2541         (_FPU_MASK_ALL): Rename to...
2542         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
2543         XE FPSCR bits.
2544
2545         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
2546
2547         (_FPU_MASK_ROUNDING): Rename to...
2548         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
2549         NI bits.
2550
2551         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2552         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2553         bits and rounding bits.
2554
2555         (__libc_feholdbits_ppc): New inline function to mask, set,
2556         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2557         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2558         (libc_feholdexcept_setround_ppc): Likewise.
2559
2560         (__libc_femergeenv_ppc): New function to dynamically mask both
2561         old and new FP environments and merge.
2562         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2563         (libc_feresetround_ppc): Likewise.
2564         (libc_feupdateenv_test_ppc): Likewise.
2565         (libc_feupdateenv_ppc): Likewise.
2566
2567         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2568         of ISA RN bits, and update macro names.
2569         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2570         effectively the same as the previously mentioned function.
2571
2572         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2573         usage with fe_resetround_ppc.
2574
2575         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2576         to be used.
2577         (libc_feholdexcept_setround_ctxf): Likewise.
2578         (libc_feholdexcept_setround_ctxl): Likewise.
2579
2580 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2581
2582         [BZ #20715]
2583         * math/math.h [__cplusplus] (iszero): Define as function template.
2584         * math/Makefile [CXX] (tests): Add test-math-iszero.
2585         (CFLAGS-test-math-iszero.cc): Set.
2586         * math/test-math-iszero.cc: New file.
2587
2588 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2589
2590         [BZ #20660]
2591         * sysdeps/arm/e_sqrt.c: New file.
2592         * sysdeps/arm/e_sqrtf.c: Likewise.
2593
2594 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2595
2596         [BZ #20718]
2597         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2598         not use floating-point comparisons to test sign.
2599         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2600         Likewise.
2601
2602         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2603         (getpayload): New declaration.
2604         * math/Versions (getpayload): New libm symbol at version
2605         GLIBC_2.25.
2606         (getpayloadf): Likewise.
2607         (getpayloadl): Likewise.
2608         * math/Makefile (libm-calls): Add s_getpayloadF.
2609         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2610         (struct test_f_f_data): Add comment.
2611         (RUN_TEST_fp_f): New macro.
2612         (RUN_TEST_LOOP_fp_f): Likewise.
2613         (getpayload_test_data): New array.
2614         (getpayload_test): New function.
2615         (main): Call getpayload_test.
2616         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2617         descriptor.
2618         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2619         getpayloadf and getpayloadl.
2620         * manual/libm-err-tab.pl: Update comment on interfaces without
2621         ulps tabulated.
2622         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2623         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2624         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2625         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2626         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2627         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2628         * sysdeps/nacl/libm.abilist: Update.
2629         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2630         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2631         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2632         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2633         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2634         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2635         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2636         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2637         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2638         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2639         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2640         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2642         Likewise.
2643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2644         Likewise.
2645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2646         Likewise.
2647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2648         Likewise.
2649         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2650         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2651         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2652         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2653         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2655         Likewise.
2656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2657         Likewise.
2658         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2659         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2660         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2661
2662 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2663
2664         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2665         tst-fallocate{64}.
2666         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2667         on syscall return.
2668
2669 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2670
2671         [BZ #20689]
2672         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2673         usable.
2674
2675 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * sysdeps/generic/nan-high-order-bit.h: New file.
2678         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2679         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2680         * sysdeps/hppa/math_private.h: Remove file.
2681         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2682         not define here.
2683         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2684         <nan-high-order-bit.h>.
2685         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2686         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2687         <nan-high-order-bit.h>.
2688         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2689         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2690         <nan-high-order-bit.h>.
2691         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2692         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2693         <nan-high-order-bit.h>.
2694         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2695         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2696         <nan-high-order-bit.h>.
2697         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2698         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2699         <nan-high-order-bit.h>.
2700         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2701         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2702         <nan-high-order-bit.h>.
2703         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2704         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2705         <nan-high-order-bit.h>.
2706         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2707         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2708         <nan-high-order-bit.h>.
2709         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2710         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2711         <nan-high-order-bit.h>.
2712         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2713         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2714         <nan-high-order-bit.h>.
2715         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2716         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2717         <nan-high-order-bit.h>.
2718         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2719         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2720         <nan-high-order-bit.h>.
2721         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2722         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2723         <nan-high-order-bit.h>.
2724         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2725         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2726         <nan-high-order-bit.h>.
2727         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2728         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2729         <nan-high-order-bit.h>.
2730         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2731         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2732         <nan-high-order-bit.h>.
2733         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2734         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2735         <nan-high-order-bit.h>.
2736         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2737
2738 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2739
2740         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2741
2742 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2743
2744         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2745         abort-instr.h.
2746         (EFAULT): Remove conditional define.
2747         (ENOSYS): Likewise.
2748         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2749         instead of conditional branch instructions.
2750
2751 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2752
2753         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2754         (totalordermag): New declaration.
2755         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2756         New macro.
2757         * math/Versions (totalordermag): New libm symbol at version
2758         GLIBC_2.25.
2759         (totalordermagf): Likewise.
2760         (totalordermagl): Likewise.
2761         * math/Makefile (libm-calls): Add s_totalordermagF.
2762         * math/libm-test.inc (totalordermag_test_data): New array.
2763         (totalordermag_test): New function.
2764         (main): Call totalordermag_test.
2765         * math/test-tgmath.c (NCALLS): Increase to 125.
2766         (F(compile_test)): Call totalordermag.
2767         (F(totalordermag)): New function.
2768         * manual/arith.texi (FP Comparison Functions): Document
2769         totalordermag, totalordermagf and totalordermagl.
2770         * manual/libm-err-tab.pl: Update comment on interfaces without
2771         ulps tabulated.
2772         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2773         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2774         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2775         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2776         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2777         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2778         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2779         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2780         totalordermag.
2781         (CFLAGS-nldbl-totalordermag.c): New variable.
2782         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2783         (do_test): Also test totalordermagl.
2784         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2785         Likewise.
2786         * sysdeps/nacl/libm.abilist: Update.
2787         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2788         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2789         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2790         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2791         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2792         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2793         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2794         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2795         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2796         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2797         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2798         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2800         Likewise.
2801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2802         Likewise.
2803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2804         Likewise.
2805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2806         Likewise.
2807         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2808         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2809         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2810         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2811         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2812         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2813         Likewise.
2814         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2815         Likewise.
2816         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2817         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2818         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2819
2820 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2821
2822         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2823         boolean.
2824
2825 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2826
2827         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2828         raising FE_INVALID with feraisexcept in case where part of
2829         argument is infinite, subtract that part of argument from itself.
2830         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2831         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2832         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2833
2834 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2835
2836         * math/libm-test.inc (totalorder_test_data): Add more tests.
2837
2838 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2839
2840         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2841         Undefine weak_alias and add a comment why mips64 require
2842         versioning.
2843
2844 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2845
2846         [BZ #20647]
2847         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2848         maximum CPUID level is less than 2.
2849
2850 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2851
2852         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2853         (totalorder): New declaration.
2854         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2855         New macro.
2856         * math/Versions (totalorder): New libm symbol at version
2857         GLIBC_2.25.
2858         (totalorderf): Likewise.
2859         (totalorderl): Likewise.
2860         * math/Makefile (libm-calls): Add s_totalorderF.
2861         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2862         string.
2863         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2864         (qnan_value_pl): Likewise.
2865         (snan_value_pl): Likewise.
2866         (qnan_value): Define using qnan_value_pl.
2867         (snan_value): Define using snan_value_pl.
2868         (struct test_ff_i_data): Add comment about which tests use this
2869         structure.
2870         (RUN_TEST_ff_b): New macro.
2871         (RUN_TEST_LOOP_ff_b): Likewise.
2872         (totalorder_test_data): New array.
2873         (totalorder_test): New function.
2874         (main): Call totalorder_test.
2875         * math/test-tgmath.c (NCALLS): Increase to 122.
2876         (F(compile_test)): Call totalorder.
2877         (F(totalorder)): New function.
2878         * manual/arith.texi (FP Comparison Functions): Document
2879         totalorder, totalorderf and totalorderl.
2880         * manual/libm-err-tab.pl: Update comment on interfaces without
2881         ulps tabulated.
2882         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2883         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2884         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2885         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2886         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2887         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2888         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2889         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2890         totalorder.
2891         (CFLAGS-nldbl-totalorder.c): New variable.
2892         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2893         file.
2894         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2895         Add test-totalorderl-ldbl-128ibm.
2896         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2897         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2898         test-totalorderl-ldbl-96.
2899         * sysdeps/nacl/libm.abilist: Update.
2900         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2901         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2902         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2903         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2904         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2905         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2906         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2907         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2908         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2909         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2910         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2911         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2913         Likewise.
2914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2915         Likewise.
2916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2917         Likewise.
2918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2919         Likewise.
2920         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2921         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2922         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2923         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2924         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2926         Likewise.
2927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2928         Likewise.
2929         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2930         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2931         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2932
2933 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2934
2935         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2936         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2937         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2938         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2939         remove ENOSYS implementation.
2940         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2941         Consolidate all Linux implementations.
2942
2943 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2944
2945         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2946         * resolv/herror.c (herror): Cast away const-ness.
2947         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2948         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2949
2950 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2951
2952         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2953         instead of M_NAN + M_NAN.
2954         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2955
2956 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2957
2958         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2959         unused variable 'p'.
2960
2961 2016-10-09  Alan Modra  <amodra@gmail.com>
2962             Andreas Schwab  <schwab@linux-m68k.org>
2963
2964         [BZ #20554]
2965         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2966         [PIC && !SHARED]: Set up PIC register for PLT call.
2967
2968 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2969
2970         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2971         conditional on value of [__FLT_EVAL_METHOD__].
2972         * math/test-iseqsig-excess-precision.c: New file.
2973         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2974
2975 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2976
2977         * math/s_iseqsig_template.c: Include math-private.h.
2978
2979         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2980         * posix/tst-posix_fadvise.c: New file.
2981         * posix/tst-posix_fadvise64.c: Likewise.
2982         * posix/tst-posix_fadvise-common.c: Likewise.
2983         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2984         (__ASSUME_FADVISE64_64_6ARG): Define.
2985         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2986         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2987         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2988         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2989         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2990         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2991         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2992         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2993         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2994         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2995         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2996         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2999         Likewise.
3000         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
3001         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
3002         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
3003         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
3004         Alias to __posix_fadvise64_l32.
3005         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
3006         Add compat definition to posix_fadvise64.
3007         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
3008         Add versioned definition to posix_fadvise64.
3009         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
3010         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
3011         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
3012         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
3013         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
3014
3015         * io/Makefile (tests): Add tst-posix_fallocate and
3016         tst-posix_fallocate64.
3017         * io/tst-posix_fallocate-common.c: New file.
3018         * io/tst-posix_fallocate.c: Likewise.
3019         * io/tst-posix_fallocate64.c: Likewise.
3020         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
3021         file.
3022         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
3023         Likewise.
3024         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
3025         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
3026         Likewise.
3027         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
3028         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
3029         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
3030         SYSCALL_LL to pass both offset and len arguments.
3031         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
3032         Likewise.
3033         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
3034         __libc_pwrite64 alias used by posix_fallocate64.
3035
3036         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
3037         tst-fallocate64.
3038         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
3039         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
3040         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
3041         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
3042         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
3043         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
3044         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
3045         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3046         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
3047         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
3048         macro on offset argument.
3049         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
3050         SYSCALL_LL64 on offset argument.
3051
3052         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
3053         tst-fallocate64.
3054         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
3055         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
3056         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
3057         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
3058         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
3059         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
3060         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
3061         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3062         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
3063         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
3064         macro on offset argument.
3065         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
3066         SYSCALL_LL64 on offset argument.
3067         * test-skeleton.c (FAIL_RET): Add macro.
3068         (FAIL_EXIT): Likewise.
3069         (FAIL_EXIT1): Likewise.
3070         (_FAIL): Likewise.
3071
3072 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3073
3074         [BZ #20629]
3075         resolv: Remove RES_USEBSTRING and its implementation.
3076         * resolv/resolv.h (RES_USEBSTRING): Remove.
3077         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
3078         (digitvalue, encode_bitstring, decode_bitstring): Remove.
3079         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
3080         (labellen): Remove extended label types support.
3081         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
3082         * resolv/res_init.c (res_setoptions): Likewise.
3083         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
3084
3085 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3086
3087         resolv: Remove RES_NOIP6DOTINT and its implementation.
3088         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
3089         (RES_NOIP6DOTINT): Remove.
3090         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
3091         handling.
3092         * resolv/res_debug.c (p_option): Likewise.
3093         * resolv/res_init.c (res_setoptions): Likewise.
3094         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
3095
3096 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3097
3098         resolv: Deprecate unimplemented flags.
3099         * misc/sys/cdefs.h (__glibc_macro_warning1)
3100         (__glibc_macro_warning): Define.
3101         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
3102         (RES_KEEPTSIG): Mark as deprecated.
3103         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
3104         RES_NOCHECKNAME, RES_KEEPTSIG.
3105         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
3106
3107 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3108
3109         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
3110         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
3111         Use strong_alias to create symbols for glibc verison 2.19.
3112
3113 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3114
3115         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
3116
3117 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3118
3119         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
3120
3121 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3122
3123         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
3124
3125 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3126
3127         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
3128         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
3129         in header for using it as type for ifunc function because __GI_* symbols
3130         for ppc32 do not target the ifunc symbols.
3131         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
3132
3133 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3134
3135         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
3136         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
3137         libc_ifunc_hidden_def.
3138         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
3139         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
3140         Redirect ifunced function in header for using it as type of ifunc'ed
3141         function. Redefine libc_hidden_def to use fallback non ifunc'ed
3142         function for __GI_* symbol.
3143         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
3144         * include/libc-symbols.h
3145         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
3146
3147 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3148
3149         [BZ #20478]
3150         * sysdeps/s390/multiarch/ifunc-resolve.h
3151         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
3152         to create ifunc symbols.
3153         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
3154         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
3155         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
3156         for using it as type for ifunc function.
3157         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
3158         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
3159         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
3160         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
3161         * sysdeps/s390/multiarch/strcat.c: Likewise.
3162         * sysdeps/s390/multiarch/strchr.c: Likewise.
3163         * sysdeps/s390/multiarch/strcmp.c: Likewise.
3164         * sysdeps/s390/multiarch/strcpy.c: Likewise.
3165         * sysdeps/s390/multiarch/strcspn.c: Likewise.
3166         * sysdeps/s390/multiarch/strlen.c: Likewise.
3167         * sysdeps/s390/multiarch/strncmp.c: Likewise.
3168         * sysdeps/s390/multiarch/strncpy.c: Likewise.
3169         * sysdeps/s390/multiarch/strnlen.c: Likewise.
3170         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
3171         * sysdeps/s390/multiarch/strrchr.c: Likewise.
3172         * sysdeps/s390/multiarch/strspn.c: Likewise.
3173         * sysdeps/s390/multiarch/wcschr.c: Likewise.
3174         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
3175         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
3176         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
3177         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
3178         * sysdeps/s390/multiarch/wmemset.c: Likewise.
3179         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
3180         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
3181         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
3182         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
3183         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
3184         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
3185
3186 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3187
3188         * include/libc-symbols.h (__ifunc_resolver):
3189         New macro is used by __ifunc* macros.
3190         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
3191         depending on HAVE_GCC_IFUNC.
3192         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
3193         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
3194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
3195         Redirect ifunced function in header for using as type for ifunc function.
3196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3200         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
3201         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
3202         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
3203         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
3204         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
3205         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
3206         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
3207         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
3208         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
3209         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
3210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3215         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
3216         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
3217         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
3218         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
3219         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
3220         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
3221         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
3222         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
3223         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
3224         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
3225         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
3226         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
3227         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
3228         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
3229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
3230         Add libc_hidden_def() and use libc_ifunc_hidden() macro
3231         instead of libc_ifunc() macro.
3232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3233         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
3234
3235 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3236
3237         * config.h.in (HAVE_GCC_IFUNC): New undef.
3238         * configure.ac: Add check if gcc supports attribute ifunc feature.
3239         * configure: Regenerated.
3240         * manual/install.texi: Add recommendation for gcc with
3241         indirect-function support.
3242         * INSTALL: Regenerated.
3243
3244 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
3245
3246         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
3247         macro.
3248         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3249         (__iseqsig): New declaration.
3250         * math/s_iseqsig_template.c: New file.
3251         * math/Versions (__iseqsigf): New libm symbol at version
3252         GLIBC_2.25.
3253         (__iseqsig): Likewise.
3254         (__iseqsigl): Likewise.
3255         * math/libm-test.inc (iseqsig_test_data): New array.
3256         (iseqsig_test): New function.
3257         (main): Call iseqsig_test.
3258         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
3259         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
3260         * manual/libm-err-tab.pl: Update comment on interfaces without
3261         ulps tabulated.
3262         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
3263         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
3264         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
3265         * sysdeps/nacl/libm.abilist: Update.
3266         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3267         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3268         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3269         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3270         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3271         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3272         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3273         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3274         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3275         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3276         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3277         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3279         Likewise.
3280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3281         Likewise.
3282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3283         Likewise.
3284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3285         Likewise.
3286         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3287         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3288         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3289         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3290         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3291         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3292         Likewise.
3293         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3294         Likewise.
3295         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3296         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3297         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3298
3299 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3300
3301         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
3302         do_sincos_2, sloww, sloww1): Update comments.
3303
3304         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
3305         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
3306
3307         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
3308         K boolean and rename it.
3309         (__sin): Adjust.
3310         (__cos): Adjust.
3311
3312 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3313             Siddhesh Poyarekar  <siddhesh@sourceware.org>
3314
3315         * manual/nss.texi: Fix typos in the manual.
3316
3317 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3318
3319         * manual/contrib.texi: Fix typos in the manual.
3320
3321         * manual/maint.texi: Fix typos in the manual.
3322
3323         * manual/install.texi: Fix typos in the manual.
3324         * INSTALL: Regenerated.
3325
3326         * manual/lang.texi: Fix typos in the manual.
3327
3328         * manual/probes.texi: Fix typos in the manual.
3329
3330         * manual/threads.texi: Fix typos in the manual.
3331
3332         * manual/debug.texi: Fix typos in the manual.
3333
3334         * manual/crypt.texi: Fix typos in the manual.
3335
3336         * manual/conf.texi: Fix typos in the manual.
3337
3338         * manual/sysinfo.texi: Fix typos in the manual.
3339
3340         * manual/users.texi: Fix typos in the manual.
3341
3342         * manual/job.texi: Fix typos in the manual.
3343
3344         * manual/process.texi: Fix typos in the manual.
3345
3346         * manual/argp.texi: Fix typos in the manual.
3347         * manual/getopt.texi: Likewise.
3348         * manual/startup.texi: Likewise.
3349
3350         * manual/signal.texi: Fix typos in the manual.
3351
3352         * manual/setjmp.texi: Fix typos in the manual.
3353
3354         * manual/resource.texi: Fix typos in the manual.
3355
3356         * manual/time.texi: Fix typos in the manual.
3357
3358         * manual/arith.texi: Fix typos in the manual.
3359
3360         * manual/math.texi: Fix typos in the manual.
3361
3362         * manual/syslog.texi: Fix typos in the manual.
3363
3364         * manual/terminal.texi: Fix typos in the manual.
3365
3366         * manual/socket.texi: Fix typos in the manual.
3367
3368         * manual/filesys.texi: Fix typos in the manual.
3369
3370         * manual/llio.texi: Fix typos in the manual.
3371
3372         * manual/stdio.text: Fix typos in the manual.
3373
3374 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3375
3376         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
3377         instead of K1.
3378
3379         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
3380         SHIFT_QUADRANT and make it bool.
3381         (do_sincos_2): Likewise.
3382         (sloww): Likewise.
3383         (sloww1): Likewise.
3384         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
3385         (__cos): Likewise.
3386
3387 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3388
3389         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3390
3391 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
3392
3393         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
3394         Define to __WORDSIZE, not conditional on [LONG_MAX ==
3395         0x7fffffffL].
3396         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3397
3398 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3399
3400         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
3401         inline by __inline__.
3402         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
3403         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
3404         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
3405         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
3406         sigset_t from signal.h.
3407         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
3408         which is already required.
3409
3410 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3411
3412         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3413
3414 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
3415
3416         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
3417         (struct tcp_repair_window): New type.
3418
3419 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3420
3421         * libio/tst-memstream3.c: Include string.h.
3422
3423 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3424
3425         [BZ #18241]
3426         [BZ #20181]
3427         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
3428         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
3429         write position is at the end the buffer.
3430         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
3431         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
3432         (_IO_str_seekoff): Set correct offset from negative displacement and
3433         set EINVAL for invalid ones.
3434         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
3435         buffer length.
3436         (_IO_wstr_switch_to_get_mode): New function.
3437         (_IO_wstr_seekoff): Set correct offset from negative displacement and
3438         set EINVAL for invalid ones.
3439         * libio/tst-memstream3.c: New file.
3440         * libio/tst-wmemstream3.c: Likewise.
3441         * manual/examples/memstrm.c: Remove warning when priting size_t.
3442
3443 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3444
3445         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
3446         macro to use __builtin_fma.
3447         * sysdeps/x86_64/fpu/dla.h: Remove file.
3448
3449         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
3450         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
3451         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
3452
3453 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
3454
3455         [BZ #20292]
3456         * elf/Makefile (routines): Add dl-addr-obj.
3457         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
3458         tst-_dl_addr_inside_object.
3459         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
3460         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3461         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
3462         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3463         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
3464         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
3465         * elf/dl-open.c: Likewise.
3466         * elf/dl-addr-obj.c: New file.
3467         * elf/tst-_dl_addr_inside_object.c: New file.
3468
3469 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3470
3471         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
3472         <bits/iscanonical.h>.
3473         * bits/iscanonical.h: New file.
3474         * math/s_iscanonicall.c: Likewise.
3475         * math/Versions (__iscanonicall): New libm symbol at version
3476         GLIBC_2.25.
3477         * math/libm-test.inc (iscanonical_test_data): New array.
3478         (iscanonical_test): New function.
3479         (main): Call iscanonical_test.
3480         * math/Makefile (headers): Add bits/iscanonical.h.
3481         (type-ldouble-routines): Add s_iscanonicall.
3482         * manual/arith.texi (Floating Point Classes): Document
3483         iscanonical.
3484         * manual/libm-err-tab.pl: Update comment on interfaces without
3485         ulps tabulated.
3486         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
3487         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
3488         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
3489         Likewise.
3490         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
3491         test-iscanonical-ldbl-128ibm.
3492         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
3493         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
3494         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
3495         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
3496         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3497         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3498         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3500         Likewise.
3501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3502         Likewise.
3503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3504         Likewise.
3505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3506         Likewise.
3507         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3508         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3509
3510 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3511
3512         * string/bits/string3.h: Remove C++ style comments.
3513
3514 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3515
3516         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
3517         instead of ternary condition.
3518         (do_sincos_2): Likewise.
3519         (__sin): Likewise.
3520         (__cos): Likewise.
3521         (slow): Likewise.
3522         (sloww): Likewise.
3523         (sloww1): Likewise.
3524         (bsloww): Likewise.
3525         (bsloww1): Likewise.
3526
3527         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
3528         instead of ternary condition.
3529         (do_sin_slow): Likewise.
3530         (do_sincos_1): Likewise.
3531         (do_sincos_2): Likewise.
3532         (__cos): Likewise.
3533         (sloww): Likewise.
3534         (sloww1): Likewise.
3535         (sloww2): Likewise.
3536         (bsloww): Likewise.
3537         (bsloww1): Likewise.
3538         (bsloww2): Likewise.
3539
3540         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
3541         check from here...
3542         (slow2): ... and here...
3543         (__sin): ... to here.
3544
3545 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
3546
3547         * math/math.h
3548         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
3549         Cast argument to its own type.
3550         * math/test-iszero-excess-precision.c: New file.
3551         * math/Makefile (tests): Add test-iszero-excess-precision.
3552         (CFLAGS-test-iszero-excess-precision.c): New variable.
3553
3554 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3555
3556         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3557         field, add err field.
3558         (__spawni_child): Report error through err member instead of pipe.
3559         (__spawnix): Likewise.
3560
3561 2016-09-28  Zack Weinberg  <zackw@panix.com>
3562
3563         * scripts/check-installed-headers.sh: Generalize treatment of
3564         sys/elf.h to all target architectures.
3565
3566         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3567         deleted typedef ucontext_t.
3568
3569 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3570
3571         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3572         (__INTERNAL_SYSCALL1): Likewise.
3573         (__INTERNAL_SYSCALL2): Likewise.
3574         (__INTERNAL_SYSCALL3): Likewise.
3575         (__INTERNAL_SYSCALL4): Likewise.
3576         (__INTERNAL_SYSCALL5): Likewise.
3577         (__INTERNAL_SYSCALL6): Likewise.
3578         (__INTERNAL_SYSCALL7): Likewise.
3579         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3580         (__INTERNAL_SYSCALL_NARGS): Likewise.
3581         (__INTERNAL_SYSCALL_DISP): Likewise.
3582         (INTERNAL_SYSCALL_CALL): Likewise.
3583         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3584         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3585         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3586         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3587         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3588         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3589         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3590         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3591         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3592         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3593         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3594         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3595         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3596
3597 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3598
3599         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3600         macro.
3601         * math/libm-test.inc (iszero_test_data): New array.
3602         (iszero_test): New function.
3603         (main): Call iszero_test.
3604         * manual/arith.texi (Floating Point Classes): Document iszero.
3605         * manual/libm-err-tab.pl: Update comment on interfaces without
3606         ulps tabulated.
3607
3608 2016-09-23  Zack Weinberg  <zackw@panix.com>
3609
3610         * scripts/check-installed-headers.sh: New script.
3611         * Rules: In each directory that defines header files to be installed,
3612         run check-installed-headers.sh on them as a special test.
3613         * Makefile: Likewise for the headers installed at top level.
3614
3615         * include/aliases.h, include/alloca.h, include/argz.h
3616         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3617         * include/elf.h, include/envz.h, include/err.h
3618         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3619         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3620         * include/link.h, include/malloc.h, include/mcheck.h
3621         * include/mntent.h, include/netinet/ether.h
3622         * include/nss.h, include/obstack.h, include/printf.h
3623         * include/pty.h, include/resolv.h, include/rpc/auth.h
3624         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3625         * include/rpc/clnt.h, include/rpc/des_crypt.h
3626         * include/rpc/key_prot.h, include/rpc/netdb.h
3627         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3628         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3629         * include/rpc/rpc_msg.h, include/rpc/svc.h
3630         * include/rpc/svc_auth.h, include/rpc/xdr.h
3631         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3632         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3633         * include/rpcsvc/ypupd.h, include/shadow.h
3634         * include/stdio_ext.h, include/sys/epoll.h
3635         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3636         * include/sys/prctl.h, include/sys/profil.h
3637         * include/sys/statfs.h, include/sys/sysctl.h
3638         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3639         * sysdeps/arm/nacl/include/bits/setjmp.h
3640         * sysdeps/mips/include/sys/asm.h
3641         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3642         * sysdeps/unix/sysv/linux/include/sys/timex.h
3643         * sysdeps/x86/fpu/include/bits/fenv.h:
3644         Add #ifndef _ISOMAC guard around internal declarations.
3645         Add multiple-inclusion guard if not already present.
3646
3647 2016-09-23  Zack Weinberg  <zackw@panix.com>
3648
3649         * sysdeps/generic/sys/ucontext.h
3650         * sysdeps/arm/sys/ucontext.h
3651         * sysdeps/i386/sys/ucontext.h
3652         * sysdeps/m68k/sys/ucontext.h
3653         * sysdeps/mips/sys/ucontext.h
3654         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3655         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3656         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3657         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3658         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3659         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3660         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3661         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3662         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3663         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3664         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3665         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3666         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3667         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3668         Include both bits/sigcontext.h and bits/sigstack.h.
3669         Fix grammar error in comment, if present.
3670
3671         * bits/sigstack.h
3672         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3673         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3674         * sysdeps/unix/sysv/linux/bits/sigstack.h
3675         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3676         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3677         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3678         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3679         * bits/sigcontext.h
3680         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3681         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3682         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3683         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3684         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3685         as well as signal.h, if this was not already allowed.  Request
3686         definition of size_t if necessary.  Minimize semantically-null
3687         differences across files.
3688
3689 2016-09-23  Zack Weinberg  <zackw@panix.com>
3690
3691         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3692         Remove all logic conditional on __need macros.  Move all the
3693         conditionally defined types to their own headers...
3694         * time/bits/types/clock_t.h: Define clock_t here.
3695         * time/bits/types/clockid_t.h: Define clockid_t here.
3696         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3697         * time/bits/types/struct_timespec.h: Define struct timespec here.
3698         * time/bits/types/struct_timeval.h: Define struct timeval here.
3699         * time/bits/types/struct_tm.h: Define struct tm here.
3700         * time/bits/types/time_t.h: Define time_t here.
3701         * time/bits/types/timer_t.h: Define timer_t here.
3702         * time/Makefile: Install the new headers.
3703
3704         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3705         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3706         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3707         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3708         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3709         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3710         * sysdeps/unix/sysv/linux/bits/resource.h
3711         * sysdeps/unix/sysv/linux/bits/timex.h
3712         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3713         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3714         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3715         * sysdeps/unix/sysv/linux/sys/acct.h
3716         * sysdeps/unix/sysv/linux/sys/timerfd.h
3717         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3718         * time/sys/time.h, time/sys/timeb.h
3719         Use the new bits/types headers.
3720
3721         * include/time.h: Remove __need logic.
3722         * include/bits/time.h
3723         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3724         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3725         * include/bits/types/struct_itimerspec.h
3726         * include/bits/types/struct_timespec.h
3727         * include/bits/types/struct_timeval.h
3728         * include/bits/types/struct_tm.h:
3729         New wrapper headers.
3730
3731 2016-09-23  Zack Weinberg  <zackw@panix.com>
3732
3733         * sysdeps/mach/hurd/net/if_ppp.h
3734         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3735         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3736         if __USE_MISC is defined, to ensure struct ifreq is declared.
3737
3738         * inet/netinet/ether.h: Condition all function prototypes
3739         on __USE_MISC, to ensure struct ether_addr is declared.
3740
3741         * socket/bits/types/struct_osockaddr.h: New header.
3742         * include/bits/types/struct_osockaddr.h: New wrapper.
3743         * socket/Makefile: Install the new header.
3744         * socket/sys/socket.h, inet/protocols/talkd.h:
3745         Refer to bits/types/struct_osockaddr.h for the definition of
3746         struct osockaddr.
3747
3748 2016-09-23  Zack Weinberg  <zackw@panix.com>
3749
3750         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3751         * inet/protocols/routed.h, inet/protocols/talkd.h
3752         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3753         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3754         * sysdeps/generic/netinet/if_ether.h
3755         * sysdeps/generic/netinet/in_systm.h
3756         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3757         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3758         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3759         * sysdeps/mach/hurd/net/if_arp.h
3760         * sysdeps/mach/hurd/net/if_ppp.h
3761         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3762         * sysdeps/unix/sysv/linux/bits/in.h
3763         * sysdeps/unix/sysv/linux/net/ethernet.h
3764         * sysdeps/unix/sysv/linux/net/if_arp.h
3765         * sysdeps/unix/sysv/linux/net/if_ppp.h
3766         * sysdeps/unix/sysv/linux/net/if_shaper.h
3767         * sysdeps/unix/sysv/linux/net/route.h
3768         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3769         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3770         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3771         * sysdeps/unix/sysv/linux/netipx/ipx.h
3772         * sysdeps/unix/sysv/linux/sys/acct.h
3773         * include/arpa/nameser.h, include/resolv.h:
3774         Change all uses of u_char to unsigned char,
3775         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3776         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3777         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3778         and u_int64_t and u_quad_t to uint64_t.
3779
3780         * mach/sys/reboot.h: Remove two casts of integer literals
3781         to the types they already have.
3782
3783         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3784         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3785         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3786         from referring to 'unsigned char' to 'uint8_t' for consistency with
3787         the macro definition below.
3788
3789         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3790         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3791         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3792         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3793         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3794         * sysdeps/unix/sysv/linux/sys/acct.h
3795         * include/arpa/nameser.h, include/resolv.h:
3796         Fix indentation disrupted by mechanical edits.
3797
3798         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3799         * sysdeps/generic/netinet/in_systm.h
3800         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3801         * sysdeps/gnu/netinet/udp.h
3802         * sysdeps/unix/sysv/linux/net/ethernet.h
3803         * sysdeps/unix/sysv/linux/net/if_arp.h
3804         * sysdeps/unix/sysv/linux/net/if_ppp.h
3805         * sysdeps/unix/sysv/linux/net/if_shaper.h
3806         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3807         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3808         * sysdeps/unix/sysv/linux/netipx/ipx.h
3809         * sysdeps/unix/sysv/linux/sys/acct.h
3810         Include stdint.h for uintNN_t definitions.
3811         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3812
3813 2016-09-23  Zack Weinberg  <zackw@panix.com>
3814
3815         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3816         * sysdeps/unix/sysv/linux/netrose/rose.h:
3817         Include sys/socket.h and netax25/ax25.h.
3818
3819         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3820         * resolv/arpa/nameser_compat.h:
3821         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3822
3823         * sysdeps/unix/sysv/linux/sys/quota.h:
3824         Use __caddr_t instead of caddr_t.
3825         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3826         Use __clockid_t instead of clockid_t.
3827
3828         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3829
3830         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3831         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3832         expanding it.
3833
3834         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3835         Define __glibc_c99_flexarr_available to 1 when the compiler
3836         supports C99-compatible flexible array members, 0 otherwise.
3837         * sysdeps/unix/sysv/linux/bits/socket.h
3838         * sysdeps/mach/hurd/bits/socket.h
3839         * bits/socket.h: Use __glibc_c99_flexarr_available in
3840         definitions of struct cmsghdr and CMSG_DATA.
3841
3842 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3843
3844         * manual/nss.texi (NSS Modules Interface): Adjust function return
3845         type to enum nss_status.  Document errnop argument.  Clarify
3846         h_errnop semantics.  Fix cross-reference formatting.
3847         (NSS Module Function Internals): Mention that *errnop needs to be
3848         set on failure, but not to zero.
3849
3850 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3851
3852         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3853         (get_random_name): New functions.
3854         (check_wrapper_flags_mode): Use linkat to give the new file a name
3855         determined by get_random_name.
3856         (do_test): Add calls to test open64 and openat64.
3857
3858 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3859
3860         * test-skeleton.c: Remove #include <stdarg.h>.
3861
3862 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3863
3864         [BZ #19826]
3865         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3866         initialization of static TLS entries.
3867         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3868         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3869
3870 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3871
3872         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3873         _hurd_malloc_fork_prepare.
3874         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3875         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3876         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3877         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3878         (_hurd_fork_child_hook): Drop malloc_fork_child.
3879         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3880         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3881         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3882         after locking locks (notably hurd_dtable_lock). Call
3883         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3884         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3885         __malloc_fork_unlock_child.
3886         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3887
3888 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3889
3890         * soft-fp/extendhftf2.c: New.
3891         * soft-fp/fixhfti.c: Likewise.
3892         * soft-fp/fixunshfti.c: Likewise.
3893         * soft-fp/floattihf.c: Likewise.
3894         * soft-fp/floatuntihf.c: Likewise.
3895         * soft-fp/half.h: Likewise.
3896         * soft-fp/trunctfhf2.c: Likewise.
3897
3898 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3899
3900         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3901         macro.
3902         * math/libm-test.inc (issubnormal_test_data): New array.
3903         (issubnormal_test): New function.
3904         * manual/arith.texi (Floating Point Classes): Document
3905         issubnormal.
3906         * manual/libm-err-tab.pl: Update comment on interfaces without
3907         ulps tabulated.
3908
3909         * sysdeps/generic/stdint.h: Define
3910         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3911         <bits/libc-header-start.h> instead of including <features.h>.
3912         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3913         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3914         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3915         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3916         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3917         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3918         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3919         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3920         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3921         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3922         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3923         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3924         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3925         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3926         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3927         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3928         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3929         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3930         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3931         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3932         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3933         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3934         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3935         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3936         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3937         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3938         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3939         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3940         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3941         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3942         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3943         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3944         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3945         * manual/arith.texi (Integers): Document these macros for types
3946         specified by width properties.
3947         * manual/lang.texi (Width of Type): Document these macros for
3948         other standard typedefs.
3949         * stdlib/tst-width-stdint.c: New file.
3950         * stdlib/Makefile (tests): Add tst-width-stdint.
3951
3952 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3953
3954         [BZ #20016]
3955         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3956         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3957         Move ...
3958         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3959         ... here, as compatibility symbols in a new file.
3960         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3961         * resolv/res_init.c (__res_vinit): Adjust member names.
3962         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3963         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3964         (res_send_rhook): Remove.
3965         (struct __res_state): Rename qhook, rhook members.
3966
3967 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3968
3969         malloc: Use __libc_lock wrappers.
3970         * malloc/arena.c (list_lock, free_list_lock): Define using
3971         __libc_lock_define_initialized.
3972         (arena_lock): Adjust formatting.
3973         * malloc/malloc.c (struct malloc_state): Define mutex using
3974         __libc_lock_define.
3975         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3976         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3977         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3978         (mutex_unlock, mutex_trylock): Remove.
3979         (__pthread_initialize): Remove unused macro.
3980         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3981         (mutex_unlock, mutex_trylock): Remove.
3982
3983 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3984
3985         [BZ #20592]
3986         Remove RR type classification macros.
3987         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3988         (ns_t_udp_p, ns_t_xfr_p): Remove.
3989
3990 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3991
3992         Remove misleading version information.
3993         * resolv/arpa/nameser.h (__NAMESER): Remove.
3994         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3995
3996 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3997
3998         Remove the always-defined BIND_4_COMPAT macro.
3999         * resolv/arpa/nameser.h: Unconditionally include
4000         <arpa/nameser_compat.h>.
4001         (BIND_4_COMPAT): Remove.
4002         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
4003
4004 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4005
4006         [BZ #20591]
4007         Remove obsolete DNSSEC support.
4008         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
4009         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
4010         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
4011         (ns_verify_tcp, ns_verify_tcp_init): Remove.
4012         (ns_cert_types): Add comment.
4013         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
4014         separately.
4015         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
4016         (dst_s_dns_key_id): Remove.
4017         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
4018         variables.
4019
4020 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4021
4022         [BZ #20524]
4023         * manual/string.texi (String/Array Comparison): Clarify the
4024         strverscmp behavior.
4025
4026 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4027
4028         * test-skeleton.c (xasprintf): Add function.
4029         * io/tst-open-tmpfile.c: New test.
4030         * io/Makefile (tests): Add it.
4031
4032 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4033
4034         Avoid running $(CXX) during build to obtain header file paths.
4035         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
4036         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
4037         * Makerules (cstdlib, cmath): Remove variables.  Use
4038         $(c++-cstdlib-header), $(c++-cmath-header) instead.
4039         * configure: Regenerate.
4040
4041 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4042
4043         * Makeconfig (all-object-suffixes): Include .op only if
4044         $(build-profile).
4045
4046 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4047
4048         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
4049         conditionals.  Do not define PATH_MAX.
4050
4051 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4052
4053         * posix/Makefile (tests): Add tst-spawn3.
4054         * posix/tst-spawn3.c: New file.
4055         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
4056         if it is already opened for open action.
4057
4058         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
4059         all signals when executing the clone vfork child.
4060         (SIGALL_SET): Remove macro.
4061
4062         * nptl/Makefile (tests): Add tst-exec5.
4063         * nptl/tst-exec5.c: New file.
4064         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
4065         asynchronous cancellation.
4066
4067 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4068
4069         * hurd/exc2signal.c: #include <hurd/signal.h>
4070         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
4071         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
4072         accordingly.
4073         * mach/mach_error.c (mach_error): Fix old-style function definition.
4074         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
4075
4076 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4077
4078         * math/Makefile (libm-calls): Remove s_nanF.
4079         (gen-libm-calls): Add s_nanF.
4080
4081         * math/s_nan.c: Refactor into ...
4082         * math/s_nan_template.c: New file.
4083
4084         * math/s_nanf.c: Removed.
4085         * math/s_nanl.c: Removed.
4086         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
4087         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
4088
4089         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4090         (LDOUBLE_nanl_libm_version): New macro.
4091
4092         * sysdeps/generic/math-type-macros-double.h:
4093         (M_STRTO_NAN): New macro.
4094         * sysdeps/generic/math-type-macros-float.h: Likewise.
4095         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
4096
4097         * sysdeps/generic/math-type-macros.h: Document
4098         M_STRTO_NAN.
4099
4100 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4101
4102         * math/s_nanf.c: Remove __nanf undef.
4103         * math/s_nan.c: Remove __nan undef.
4104         * math/s_nanl.c: Remove __nanl undef.
4105
4106         * sysdeps/generic/math_private.h (__nan): Remove macro
4107         override.
4108         (__nanf): Likewise.
4109         (__nanl): Likewise.
4110
4111 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4112
4113         * math/Makefile (gen-all-calls): New variable.
4114         (generated): Replace gen-libm-calls with gen-all-calls.
4115         (gen-libm-templates.stmp): Likewise.  Also, ensure
4116         the output directory exists or is created and add
4117         dependency on the Makefile.
4118         (calls): Move s_ldexpF into gen-calls.
4119         (gen-calls): New variable.
4120
4121         * math/s_ldexpf.c: Removed.
4122         * math/s_ldexpl.c: Removed.
4123         * math/s_ldexp.c: Refactored into ...
4124         * math/s_ldexp_template.c: New file.
4125
4126         * sysdeps/generic/math-type-macros-double.h: Remove
4127         redundant fall-through definition of declare_mgen_alias.
4128         (declare_mgen_alias_2): New macro.
4129
4130         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
4131         New macro for function aliased to two exported symbols.
4132
4133         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
4134         new template file.
4135         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
4136
4137 2016-09-20  Florian Weimer  <fweimer@redhat.com>
4138
4139         * Makeconfig (all-object-suffixes): Remove .og.
4140         * Makerules (elide-routines.og): Remove.
4141         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
4142         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
4143         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
4144
4145 2016-09-20  Florian Weimer  <fweimer@redhat.com>
4146
4147         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
4148         .os objects.
4149
4150 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4151
4152         [BZ #20615]
4153         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
4154         fpu directory by non-fpu.
4155         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
4156         on non-fpu directory from a fpu directory.
4157
4158 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
4159
4160         * include/limits.h: Define
4161         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
4162         <bits/libc-header-start.h> instead of including <features.h>.
4163         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
4164         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
4165         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
4166         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
4167         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
4168         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
4169         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
4170         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
4171         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
4172         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
4173         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
4174         * manual/lang.texi (Width of Type): Document these macros.
4175         * stdlib/tst-width.c: New file.
4176         * stdlib/Makefile (tests): Add tst-width.
4177
4178 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4179
4180         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
4181         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
4182
4183 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4184
4185         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
4186         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
4187         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
4188
4189 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4190
4191         [BZ #18243]
4192         * rt/Makefile (test): Add tst-shm-cancel.
4193         * rt/tst-shm-cancel.c: New file.
4194         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
4195
4196         [BZ #18243]
4197         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
4198         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
4199         definition.
4200         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
4201         uncontended case.
4202         * nptl/sem_wait.c (__new_sem_wait): Likewise.
4203         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
4204         (tf): Fix check for uncontended case.
4205         (do_test): Likewise.
4206         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
4207         (tf): Fix check for uncontended case.
4208         (do_test): Likewise.
4209         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
4210         (tf): Fix check for uncontended case.
4211         (do_test): Likewise.
4212         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
4213         (tf): Fix check for uncontended case.
4214         (do_test): Likewise.
4215
4216         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
4217         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
4218
4219         [BZ #15765]
4220         * nptl/Makefile (tests): Add tst-sem16.
4221         * nptl/tst-sem16.c: New file.
4222         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
4223
4224         * nptl/sem_open.c (sem_open): Init pad value to 0.
4225         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
4226         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
4227
4228 2016-09-15  Florian Weimer  <fweimer@redhat.com>
4229
4230         [BZ #20611]
4231         * inet/Makefile (routines): Add inet6_scopeid_pton.
4232         (tests): Add tst-inet6_scopeid_pton.
4233         * inet/inet6_scopeid_pton.c: New file.
4234         * inet/net-internal.h: Likewise.
4235         * inet/tst-inet6_scopeid_pton.c: New test.
4236         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
4237         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
4238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4239
4240 2016-09-14  Florian Weimer  <fweimer@redhat.com>
4241
4242         Remove support for compiling wrappers with PTW.
4243         * sysdeps/nptl/Makeconfig: Drop ptw- support.
4244         * nptl/Makefile (pthread-compat-wrappers): Define.
4245         (libpthread-routines): Use pthread-compat-wrappers.
4246         * sysdeps/unix/sysv/linux/alpha/Makefile
4247         (libpthread-routines, libpthread-shared-only-routines): Remove
4248         ptw- prefix.
4249         * sysdeps/s390/nptl/Makefile
4250         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4251         * sysdeps/ia64/nptl/Makefile
4252         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4253         * sysdeps/nacl/Makefile (libpthread-routines): Use
4254         pthread-compat-wrappers to filter the routines list instead of the
4255         ptw- prefix.
4256
4257 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4258
4259         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
4260         with L() and remove explicit suffix, convert real literals
4261         which can be equivalentally substituted with integers, and
4262         transform -L(x) to L(-x).
4263
4264         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4265         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4266         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4267         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4268         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4269         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4270         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4271         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4272         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4273         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4274         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4275         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4276         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4277         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4278         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4279         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4280         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4281         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4282         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4283         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4284         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4285         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4286         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4289         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4290         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4291         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4292         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4293         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4294         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4295         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4296         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4297         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4298         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4299         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4300         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4301         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4302         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4303         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4304         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4305         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4307         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4308         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4309         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4310         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4311         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4312         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4313         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4314
4315 2016-09-13  Florian Weimer  <fweimer@redhat.com>
4316
4317         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
4318
4319 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4320
4321         * malloc/Makefile (tests): Remove individual static test names
4322         and just add all of tests-static.
4323
4324         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
4325
4326 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
4327
4328         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
4329         file.
4330
4331         * sysdeps/sparc/fpu/fegetmode.c: New file.
4332         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
4333
4334         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
4335         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
4336
4337         * sysdeps/s390/fpu/fegetmode.c: New file.
4338         * sysdeps/s390/fpu/fesetmode.c: Likewise.
4339
4340         * sysdeps/powerpc/fpu/fegetmode.c: New file.
4341         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
4342         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
4343         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
4344         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
4345         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
4346
4347         * sysdeps/mips/fpu/fegetmode.c: New file.
4348         * sysdeps/mips/fpu/fesetmode.c: Likewise.
4349
4350         * sysdeps/m68k/fpu/fegetmode.c: New file.
4351         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
4352
4353         * sysdeps/ia64/fpu/fegetmode.c: New file.
4354         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
4355
4356         * sysdeps/hppa/fpu/fegetmode.c: New file.
4357         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
4358
4359         * sysdeps/arm/fegetmode.c: New file.
4360         * sysdeps/arm/fesetmode.c: Likewise.
4361
4362         * sysdeps/alpha/fpu/fegetmode.c: New file.
4363         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
4364
4365         * sysdeps/aarch64/fpu/fegetmode.c: New file.
4366         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
4367
4368         * math/fegetmode.c: New file.
4369         * math/fesetmode.c: Likewise.
4370         * sysdeps/i386/fpu/fegetmode.c: Likewise.
4371         * sysdeps/i386/fpu/fesetmode.c: Likewise.
4372         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
4373         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
4374         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
4375         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
4376         declaration.
4377         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
4378         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
4379         typedef.
4380         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4381         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4382         (femode_t): New typedef.
4383         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4384         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4385         (femode_t): New typedef.
4386         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4387         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4388         (femode_t): New typedef.
4389         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4390         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4391         (femode_t): New typedef.
4392         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4393         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4394         (femode_t): New typedef.
4395         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4396         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4397         (femode_t): New typedef.
4398         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4399         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4400         (femode_t): New typedef.
4401         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4402         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4403         (femode_t): New typedef.
4404         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4405         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4406         (femode_t): New typedef.
4407         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4408         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4409         (femode_t): New typedef.
4410         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
4411         declaration.
4412         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4413         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4414         (femode_t): New typedef.
4415         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4416         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4417         (femode_t): New typedef.
4418         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4419         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4420         (femode_t): New typedef.
4421         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4422         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4423         (femode_t): New typedef.
4424         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4425         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4426         (femode_t): New typedef.
4427         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4428         * manual/arith.texi (FE_DFL_MODE): Document macro.
4429         (fegetmode): Document function.
4430         (fesetmode): Likewise.
4431         * math/Versions (fegetmode): New libm symbol at version
4432         GLIBC_2.25.
4433         (fesetmode): Likewise.
4434         * math/Makefile (libm-support): Add fegetmode and fesetmode.
4435         (tests): Add test-femode and test-femode-traps.
4436         * math/test-femode-traps.c: New file.
4437         * math/test-femode.c: Likewise.
4438         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
4439         alias for __fe_dfl_env.
4440         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
4441         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
4442         (__fe_dfl_mode): Likewise.
4443         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
4444         version GLIBC_2.25.
4445         * sysdeps/nacl/libm.abilist: Update.
4446         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4447         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4448         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4449         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4450         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4451         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4452         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4453         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4454         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4455         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4456         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4457         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4459         Likewise.
4460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4461         Likewise.
4462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4463         Likewise.
4464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4465         Likewise.
4466         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4467         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4468         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4469         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4470         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4471         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4472         Likewise.
4473         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4474         Likewise.
4475         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4476         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4477         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4478
4479 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         [BZ #20495]
4482         [BZ #20508]
4483         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
4484         processors, set Use_dl_runtime_resolve_slow and set
4485         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
4486         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4487         New.
4488         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4489         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
4490         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4491         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
4492         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
4493         if Use_dl_runtime_resolve_opt is set.  Use
4494         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
4495         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
4496         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
4497         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
4498         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
4499         New.
4500         (_dl_runtime_resolve_opt): Likewise.
4501         (_dl_runtime_profile): Define only if _dl_runtime_profile is
4502         defined.
4503
4504 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4505
4506         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
4507         __libc_memalign with "+ RELA R_390_GLOB_DAT".
4508
4509 2016-09-06  Florian Weimer  <fweimer@redhat.com>
4510
4511         Convert malloc to __libc_lock.  Automated part, using this Perl
4512         s/// command:
4513           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
4514             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
4515         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
4516         conversion.
4517
4518 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
4519
4520         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
4521         (linknamespace-symlists-tests): Likewise.
4522         (linknamespace-header-tests): Likewise.
4523
4524 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
4525
4526         [BZ #19810]
4527         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
4528         * elf/tst-noload.c: New test case.
4529         * elf/Makefile (tests): Add tst-noload.
4530
4531 2016-09-02  Roland McGrath  <roland@hack.frob.com>
4532
4533         * sysdeps/nacl/dup.c: Add libc_hidden_def.
4534
4535         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
4536         not any more.
4537
4538         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
4539
4540 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4541
4542         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
4543         (do_cos_slow): Likewise.
4544         (do_sin): Likewise.
4545         (do_sin_slow): Likewise.
4546         (slow): Likewise.
4547         (slow1): Likewise.
4548         (slow2): Likewise.
4549         (sloww): Likewise.
4550         (sloww1): Likewise.
4551         (sloww2): Likewise.
4552         (bsloww): Likewise.
4553         (bsloww1): Likewise.
4554         (bsloww2): Likewise.
4555         (cslow2): Likewise.
4556
4557         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4558
4559         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4560         arguments.  Consolidate input partitioning from callers here.
4561         (do_cos_slow): Likewise.
4562         (do_sin): Likewise.
4563         (do_sin_slow): Likewise.
4564         (do_sincos_1): Remove the no longer necessary input partitioning.
4565         (do_sincos_2): Likewise.
4566         (__sin): Likewise.
4567         (__cos): Likewise.
4568         (slow1): Likewise.
4569         (slow2): Likewise.
4570         (sloww1): Likewise.
4571         (sloww2): Likewise.
4572         (bsloww1): Likewise.
4573         (bsloww2): Likewise.
4574         (cslow2): Likewise.
4575
4576 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4577
4578         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4579         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4580         outside of allocated array.
4581
4582 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4583
4584         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4585         instead of MB_CUR_MAX to avoid variable-length array.
4586
4587 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4588
4589         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4590         (type-double-routines): Add k_rem_pio2.
4591         (type-float-routines): Add k_rem_pio2f.
4592
4593         * sysdeps/generic/math_private.h:
4594         (__kernel_rem_pio2l): Removed.
4595
4596         * math/k_rem_pio2l.c: Removed.
4597         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4598         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4599         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4600         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4601
4602 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4603
4604         * math/Makefile (gen-libm-calls): Add s_fmin
4605         (libm-calls): Remove above.
4606
4607         * math/s_fmin.c: Refactor into ...
4608         * math/s_fmin_template.c: New file.
4609
4610         * math/s_fminf.c: Removed.
4611         * math/s_fminl.c: Removed.
4612         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4613         (LDOUBLE_fmin_libm_version): New macro.
4614
4615         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4616         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4617
4618 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4619
4620         * math/Makefile: (gen-libm-calls): Add s_fmax.
4621         (libm-calls): Remove above.
4622
4623         * math/s_fmax.c: Refactor into ...
4624         * math/s_fmax_template.c: New file.
4625         * math/s_fmaxf.c: Removed.
4626         * math/s_fmaxl.c: Removed.
4627
4628         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4629         (LDOUBLE_fmaxl_libm_version): New macro.
4630
4631         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4632         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4633
4634         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4635         s_fmin.c to pick the aarch64 version of the file.
4636         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4637         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4638
4639 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4640
4641         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4642         (libm-calls): Remove above.
4643
4644         * math/s_nextdown.c: Refactor into ...
4645         * math/s_nextdown_template.c: New file.
4646         * math/s_nextdownf.c: Removed.
4647         * math/s_nextdownl.c: Removed.
4648
4649         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4650
4651 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4652
4653         * math/Makefile (gen-libm-calls): Add s_fdim.
4654         (libm-calls): Move to above.
4655
4656         * math/s_fdim.c: Renamed and refactored into to ...
4657         * math/s_fdim_template.c: New file.
4658         * math/s_fdiml.c: Removed.
4659         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4660         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4661
4662         * sysdeps/generic/math-type-macros-double.h:
4663         (declare_mgen_alias): Don't declare if already declared.
4664         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4665         Likewise.
4666
4667         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4668         (declare_mgen_alias): Don't declare if already declared.
4669         (M_LIBM_NEED_COMPAT): Likewise.
4670         (declare_mgen_libm_compat): Likewise.
4671         (LDOUBLE_fdiml_libm_version): New macro.
4672
4673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4674         Include math/s_fdim.c now that ldbl-opt version is not needed.
4675         (declare_mgen_alias): New macro to disable aliasing.
4676
4677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4678         (declare_mgen_alias): Likewise.
4679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4680         (declare_mgen_alias): Likewise.
4681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4682         (declare_mgen_alias): Likewise.
4683         (M_LIBM_NEED_COMPAT): Likewise.
4684
4685 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4686
4687         [BZ #20525]
4688         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4689         Include <linux/quota.h>.
4690         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4691         and btodb.
4692         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4693         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4694         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4695         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4696         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4697         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4698         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4699         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4700         types.
4701         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4702         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4703
4704 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4705
4706         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4707         (gammal_positive): Fix spacing.
4708         (__ieee754_gammal_r): Likewise.
4709
4710 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4711
4712         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4713         (_Float128): Define as long double, always.
4714         (L): Apply long double type suffix, always.
4715
4716         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4717         _Float128, excepting comments.
4718
4719         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4720         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4721         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4722         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4723         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4724         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4725         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4726         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4727         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4728         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4729         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4730         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4731         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4732         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4733         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4734         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4735         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4736         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4737         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4738         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4739         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4740         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4741         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4742         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4743         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4744         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4745         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4746         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4747         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4748         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4749         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4750         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4751         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4752         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4753         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4754         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4755         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4756         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4757         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4758         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4759         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4760         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4761         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4762         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4763         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4764         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4765         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4766         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4767         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4768         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4769         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4770         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4771         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4772         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4773         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4774         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4775         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4776         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4777         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4778         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4779         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4780         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4781         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4782         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4783         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4784         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4785         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4786         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4787
4788         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4789         _Float128, and include math_private.h.
4790         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4791
4792         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4793         long double semantics.
4794         (_Float128): Likewise.
4795         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4796         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4797         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4798         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4799
4800 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4801
4802         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4803         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4804         * sysdeps/s390/configure: Regenerated.
4805         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4806         instruction for raising over-/underflow if z196 zarch is supported
4807         by default.
4808         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4809
4810 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4811
4812         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4813         it point to a dumb buffer for RPC to fill it.
4814
4815 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4816
4817         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4818         instead of if/else.
4819         (do_sin_slow): Likewise.
4820         (do_sincos_1): Use fabs instead of if/else.
4821         (do_sincos_2): Likewise.
4822         (__sin): Likewise.
4823         (__cos): Likewise.
4824         (slow2): Likewise.
4825         (sloww): Likewise.
4826         (sloww1): Likewise.  Drop argument M.
4827         (sloww2): Use fabs instead of if/else.
4828         (bsloww): Likewise.
4829         (bsloww1): Likewise.
4830         (bsloww2): Likewise.
4831
4832         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4833         fall through comment.
4834         (do_sincos_1): Likewise.
4835
4836         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4837         Consolidate switch cases 0 and 2.
4838
4839 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4840
4841         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4842         (libm-calls): Remove the above.
4843
4844         * math/s_cexp_template.c: Update using type-generic macros.
4845         * math/s_clog10_template.c: Likewise.
4846         * math/s_cpow_template.c: Likewise.
4847         * math/s_clog_template.c: Likewise.
4848         * math/s_cproj_template.c: Likewise.
4849         * math/s_csqrt_template.c: Likewise.
4850
4851         * math/s_cexp.c: Removed.
4852         * math/s_cexpf.c: Removed.
4853         * math/s_cexpl.c: Removed.
4854         * math/s_clog10.c: Removed.
4855         * math/s_clog10f.c: Removed.
4856         * math/s_clog10l.c: Removed.
4857         * math/s_cpow.c: Removed.
4858         * math/s_cpowf.c: Removed.
4859         * math/s_cpowl.c: Removed.
4860         * math/s_clog.c: Removed.
4861         * math/s_clogf.c: Removed.
4862         * math/s_clogl.c: Removed.
4863         * math/s_cproj.c: Removed.
4864         * math/s_cprojf.c: Removed.
4865         * math/s_cprojl.c: Removed.
4866         * math/s_csqrt.c: Removed.
4867         * math/s_csqrtf.c: Removed.
4868         * math/s_csqrtl.c: Removed.
4869
4870         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4871         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4872         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4873         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4874         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4875         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4876
4877         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4878         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4879         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4880         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4881         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4882         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4883         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4884         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4885         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4886         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4887         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4888
4889         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4890         version.
4891
4892         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4893         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4894         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4895         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4896
4897 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4898
4899         * s_cexp_template.c: Copy of s_cexp.c.
4900         * s_clog_template.c: Copy of s_clog.c.
4901         * s_clog10_template.c: Copy of s_clog10.c.
4902         * s_cpow_template.c: Copy of s_cpow.c.
4903         * s_cproj_template.c: Copy of s_cproj.c.
4904         * s_csqrt_template.c: Copy of s_csqrt.c.
4905
4906 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4907
4908         [BZ #20517]
4909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4910         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4911         exported.
4912
4913 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4914
4915         * math/fetestexceptflag.c: New file.
4916         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4917         Stefan Liebler.
4918         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4919         (fetestexceptflag): New function declaration.
4920         * manual/arith.texi (fetestexceptflag): Document function.
4921         * math/Versions (fetestexceptflag): New libm symbol at version
4922         GLIBC_2.25.
4923         * math/Makefile (libm-support): Add fetestexceptflag.
4924         (tests): Add test-fetestexceptflag.
4925         * math/test-fetestexceptflag.c: New file.
4926         * sysdeps/nacl/libm.abilist: Update.
4927         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4928         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4929         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4930         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4931         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4932         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4933         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4934         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4935         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4936         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4937         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4938         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4940         Likewise.
4941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4942         Likewise.
4943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4944         Likewise.
4945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4946         Likewise.
4947         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4948         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4949         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4950         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4951         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4952         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4953         Likewise.
4954         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4955         Likewise.
4956         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4957         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4958         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4959
4960 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4961
4962         [BZ #20432]
4963         Avoid strong references to malloc-internal symbols when linking
4964         statically, to support statically interposed mallocs.
4965         * include/libc-symbols.h (call_function_static_weak): New macro.
4966         * malloc/Makefile (tests): Add tst-interpose-nothread,
4967         tst-interpose-thread, tst-interpose-static-nothread,
4968         tst-interpose-static-thread.
4969         (tests-static): Add tst-interpose-static-nothread,
4970         tst-interpose-static-thread.
4971         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4972         tst-interpose-aux-thread.o.
4973         (test-extras): Add tst-interpose-aux-nothread,
4974         tst-interpose-aux-thread.
4975         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4976         tst-interpose-aux-nothread.o.
4977         (tst-interpose-thread, tst-interpose-static-thread): Link with
4978         tst-interpose-aux-thread.o and libthread.
4979         * malloc/tst-interpose-aux-nothread.c: New file.
4980         * malloc/tst-interpose-aux-thread.c: Likewise.
4981         * malloc/tst-interpose-aux.c: Likewise.
4982         * malloc/tst-interpose-aux.h: Likewise.
4983         * malloc/tst-interpose-nothread.c: Likewise.
4984         * malloc/tst-interpose-skeleton.c: Likewise.
4985         * malloc/tst-interpose-static-nothread.c: Likewise.
4986         * malloc/tst-interpose-static-thread.c: Likewise.
4987         * malloc/tst-interpose-thread.c: Likewise.
4988         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4989         * sysdeps/mach/hurd/fork.c (__fork): Only call
4990         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4991         __malloc_fork_unlock_child if defined.
4992         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4993
4994 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4995
4996         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4997         timespec C99 designated initialization.
4998
4999 2016-08-26  Florian Weimer  <fweimer@redhat.com>
5000
5001         [BZ #19946]
5002         Avoid expected SIGALRM signals.
5003         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
5004         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
5005         (xpthread_create, xpthread_detach, xpthread_join)
5006         (delayed_exit_thread, delayed_exit): New functions.
5007         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
5008         (tf): Use xpthread_cond_wait.
5009         (do_test): Likewise.  Replace alarm with delayed_exit.
5010         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5011         (do_test): Call delayed_exit.  Report failure.
5012         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5013         (do_test): Call delayed_exit.
5014         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5015         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
5016         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5017         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
5018         error.
5019         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5020         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
5021         error.
5022         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
5023         (do_test): Call delayed_exit.
5024         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
5025         (do_test): Call delayed_exit.
5026         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
5027         (do_test): Call delayed_exit instead of alarm.  Use
5028         xpthread_mutex_lock.
5029         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
5030         (do_test): Call delayed_exit instead of alarm.  Use
5031         xpthread_mutex_lock.
5032         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
5033         (do_test): Call delayed_exit instead of alarm.
5034         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
5035         (do_test): Call delayed_exit instead of alarm.  Use
5036         xpthread_spin_lock.
5037         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
5038         (do_test): Call delayed_exit instead of alarm.  Use
5039         xpthread_join.
5040
5041 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5042
5043         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
5044         adjust CFA when allocating register save area on re-aligned
5045         stack.
5046
5047 2016-08-26  Florian Weimer  <fweimer@redhat.com>
5048
5049         * string/tst-cmp.c: New test.
5050         * string/Makefile (tests): Add it.
5051
5052 2016-08-25  Mark Wielaard  <mark@klomp.org>
5053
5054         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
5055         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
5056         (check_tree_recurse): Use newly defined accessors.
5057         (check_tree): Likewise.
5058         (maybe_split_for_insert): Likewise.
5059         (__tfind): Likewise.
5060         (__tdelete): Likewise.
5061         (trecurse): Likewise.
5062         (tdestroy_recurse): Likewise.
5063         (__tsearch): Likewise. And add asserts for malloc alignment.
5064         (__twalk): Cast root to node in case CHECK_TREE is defined.
5065
5066 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5067
5068         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
5069
5070 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5071
5072         * math/Makefile (libm-gen-calls): Add
5073         catan, catanh, ctan, ctanh.
5074         (libm-calls): Remove the above.
5075
5076         * math/s_catan_template.c: Update using type-generic macros.
5077         * math/s_catanh_template.c: Likewise.
5078         * math/s_ctan_template.c: Likewise.
5079         * math/s_ctanh_template.c: Likewise.
5080
5081         * math/s_catanf.c: Removed.
5082         * math/s_catan.c: Removed.
5083         * math/s_catanl.c: Removed.
5084         * math/s_catanhf.c: Removed.
5085         * math/s_catanh.c: Removed.
5086         * math/s_catanhl.c: Removed.
5087         * math/s_ctanf.c: Removed.
5088         * math/s_ctan.c: Removed.
5089         * math/s_ctanl.c: Removed.
5090         * math/s_ctanhf.c: Removed.
5091         * math/s_ctanh.c: Removed.
5092         * math/s_ctanhl.c: Removed.
5093
5094         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
5095         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
5096         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
5097         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
5098         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
5099         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
5100
5101         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
5102         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
5103         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
5104         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
5105
5106 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5107
5108         * s_catan_template.c: Copy of s_catan.c.
5109         * s_catanh_template.c: Copy of s_catanh.c.
5110         * s_ctan_template.c: Copy of s_ctan.c.
5111         * s_ctanh_template.c: Copy of s_ctanh.c.
5112
5113 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5114
5115         * math/Makefile (gen-libm-calls): Move
5116         casin, casinh, csin, csinh here.
5117         (libm-calls): Remove the above.
5118
5119         * math/s_casin_template.c: Update using type-generic macros.
5120         * math/s_casinh_template.c: Likewise.
5121         * math/s_csin_template.c: Likewise.
5122         * math/s_csinh_template.c: Likewise.
5123         * math/k_casinh_template.c: Likewise.
5124
5125         * math/s_casinf.c: Removed.
5126         * math/s_casin.c: Removed.
5127         * math/s_casinl.c: Removed.
5128         * math/s_casinh.c: Removed.
5129         * math/s_casinhf.c: Removed.
5130         * math/s_casinhl.c: Removed.
5131         * math/s_csin.c: Removed.
5132         * math/s_csinf.c: Removed.
5133         * math/s_csinl.c: Removed.
5134         * math/s_csinh.c: Removed.
5135         * math/s_csinhf.c: Removed.
5136         * math/s_csinhl.c: Removed.
5137         * math/k_casinh.c: Removed.
5138         * math/k_casinhf.c: Removed.
5139         * math/k_casinhl.c: Removed.
5140
5141         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
5142         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
5143         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
5144         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
5145
5146         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
5147         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
5148         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
5149         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
5150         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
5151         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
5152         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
5153         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
5154
5155         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
5156         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
5157         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
5158         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
5159
5160         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
5161         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
5162         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
5163         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
5164
5165 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5166
5167         * s_casin_template.c: Copy of s_casin.c.
5168         * s_casinh_template.c: Copy of s_casinh.c.
5169         * s_csin_template.c: Copy of s_csin.c.
5170         * s_csinh_template.c: Copy of s_csinh.c.
5171         * k_casinh_template.c: Copy of k_casinh.c.
5172
5173 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5174
5175         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
5176
5177 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5178
5179         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
5180         (mul_split) Remove, rename as mul_splitl, remove
5181         redundant float.h include, and include via mul_splitl.h
5182
5183         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
5184         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
5185         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5186         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
5187         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
5188
5189         * math/mul_splitl.h: New file.
5190
5191         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
5192         Move into mul_split.h, and remove redundant float.h include.
5193
5194         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
5195         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
5196         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
5197         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
5198
5199         * math/mul_split.h: New file.
5200
5201 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5202
5203         * math/Makefile (libm-gen-calls): Move
5204         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
5205         (libm-calls): Remove above.
5206
5207         * math/s_cacos_template.c: Update using type-generic macros.
5208         * math/s_cacosh_template.c: Likewise.
5209         * math/s_ccos_template.c: Likewise.
5210         * math/s_ccosh_template.c: Likwise.
5211
5212         * math/s_cacosf.c: Removed.
5213         * math/s_cacos.c: Removed.
5214         * math/s_cacosl.c: Removed.
5215         * math/s_cacoshf.c: Removed.
5216         * math/s_cacosh.c: Removed.
5217         * math/s_cacoshl.c: Removed.
5218         * math/s_ccosf.c: Removed.
5219         * math/s_ccos.c: Removed.
5220         * math/s_ccosl.c: Removed.
5221         * math/s_ccoshf.c: Removed.
5222         * math/s_ccosh.c: Removed.
5223         * math/s_ccoshl.c: Removed.
5224
5225         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
5226         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
5227         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
5228         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
5229         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
5230         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
5231
5232         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
5233         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
5234         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
5235         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
5236
5237         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
5238         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
5239         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
5240         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
5241
5242 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5243
5244         * s_cacos_template.c: Copy of s_cacos.c.
5245         * s_cacosh_template.c: Copy of s_cacosh.c.
5246         * s_ccos_template.c: Copy of s_ccos.c.
5247         * s_ccosh_template.c: Copy of s_ccosh.c.
5248
5249 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5250
5251         * stdlib/tst-strtod-round-skeleton.c:
5252         Refactored from tst-strtod-round.c.
5253
5254         (L_): New macro to apply literal modifier.
5255         (FNPFX): New macro to select str or wcs prefix.
5256         (CHAR): New macro to choose wchar_t or char.
5257         (STRM): New macro to choose printf for tested character type.
5258
5259         (STRTO): New macro to choose appropriate string -> real function.
5260         (FNPFXS): Stringitized version of FNPFX.
5261         (STR): Support for above macro.
5262         (STRX): Likewise.
5263
5264         (TEST): Update with above macros.
5265         (test): Likewise.
5266         (GEN_ONE_TEST): Likewise.
5267         (test_in_one_mode): Likewise.
5268
5269         * stdlib/tst-strtod-round.c: New file.
5270         * wcsmbs/tst-wcstod-round.c: New file.
5271
5272         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
5273         (tst-wcstod-round): Add libm depencency for fesetround.
5274
5275 2016-08-19  Zack Weinberg  <zackw@panix.com>
5276
5277         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
5278
5279 2016-08-18  Torvald Riegel  <triegel@redhat.com>
5280
5281         [BZ #20477]
5282         * resolv/res_hconf.c (do_init): Use atomic access.
5283         * resolv/res_hconf.h: Add comments.
5284         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
5285         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
5286         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5287
5288 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5289
5290         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
5291         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
5292         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5293         Likewise.
5294
5295 2016-08-18  Florian Weimer  <fweimer@redhat.com>
5296
5297         [BZ #16907]
5298         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
5299         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
5300         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
5301         (__attribute__): Remove definition.
5302
5303 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5304
5305         * sysdeps/ieee754/ldbl-128/e_asinl.c:
5306         Remove unused sqrtl declaration.
5307
5308 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5309
5310         * math/Makefile: (gen-libm-templates.stmp): New rule.
5311         (libm-calls): Move carg conj cimag and cabs into ...
5312         (gen-libm-calls): New variable.
5313         (generated): Inform Make objects from gen-libm-calls
5314         may be generated.
5315
5316         * sysdeps/generic/math-type-macros.h: New file.
5317         * sysdeps/generic/math-type-macros-float.h: Likewise.
5318         * sysdeps/generic/math-type-macros-double.h: Likewise.
5319         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
5320         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
5321         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
5322
5323         * math/cabs.c: Refactor into
5324         * math/cabs_template.c: new file.
5325         * math/cabsf.c: Removed.
5326         * math/cabsl.c: Removed.
5327         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
5328         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
5329
5330         * math/carg.c: Refactor into
5331         * math/carg_template.c: new file.
5332         * math/cargf.c: Removed.
5333         * math/cargl.c: Removed.
5334         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
5335         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
5336
5337         * math/conj.c: Refactor into
5338         * math/conj_template.c: new file.
5339         * math/conjf.c: Removed.
5340         * math/conjl.c: Removed.
5341         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
5342         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
5343
5344         * math/cimag.c: Refactor into
5345         * math/cimag_template.c: new file.
5346         * math/cimagf.c: Removed.
5347         * math/cimagl.c: Removed.
5348         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5349         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5350
5351         * math/cimag.c: Refactor into
5352         * math/cimag_template.c: new file.
5353         * math/cimagf.c: Removed.
5354         * math/cimagl.c: Removed.
5355         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5356         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5357
5358 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5359
5360         Reduce time to expected nptl/tst-once5 failure.
5361         * nptl/tst-once5.cc (TIMEOUT): Define.
5362
5363 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5364
5365         [BZ #20452]
5366         Avoid additional copies of objects in libc.a in static libraries.
5367         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
5368         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
5369         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
5370         rt-sysdep.
5371         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
5372         Add nptl-sysdep.
5373         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
5374         Add ptw-sysdep.
5375         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
5376         rt-sysdep.
5377         * sysdeps/unix/sysv/linux/alpha/Makefile
5378         (libpthread-shared-only-routines): Add ptw-sysdep,
5379         ptw-sigprocmask, ptw-rt_sigaction.
5380         * sysdeps/unix/sysv/linux/ia64/Makefile
5381         (librt-shared-only-routines): Add rt-sysdep.
5382         * sysdeps/unix/sysv/linux/i386/Makefile
5383         (libpthread-shared-only-routines): Add libc-do-syscall.
5384         * sysdeps/unix/sysv/linux/microblaze/Makefile
5385         (libpthread-shared-only-routines): Add sysdep.
5386         * sysdeps/unix/sysv/linux/powerpc/Makefile
5387         (librt-shared-only-routines): Add rt-sysdep.
5388         (libpthread-shared-only-routines): Add sysdep.
5389         * sysdeps/unix/sysv/linux/s390/Makefile
5390         (librt-shared-only-routines): Add rt-sysdep.
5391         * sysdeps/unix/sysv/linux/sparc/Makefile
5392         (librt-shared-only-routines): Add rt-sysdep.
5393         (libpthread-shared-only-routines): Add sysdep.
5394         * sysdeps/unix/sysv/linux/tile/Makefile
5395         (libpthread-shared-only-routines): Likewise.
5396
5397 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
5398
5399         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
5400         Mask implicit bit out of unpacked value.
5401         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
5402         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
5403         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
5404
5405         * sysdeps/sparc/fpu/fesetexcept.c: New file.
5406
5407         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
5408
5409         * sysdeps/s390/fpu/fesetexcept.c: New file.
5410
5411         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
5412         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
5413         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
5414
5415         * sysdeps/mips/fpu/fesetexcept.c: New file.
5416
5417         * sysdeps/m68k/fpu/fesetexcept.c: New file.
5418
5419         * sysdeps/ia64/fpu/fesetexcept.c: New file.
5420
5421         * sysdeps/hppa/fpu/fesetexcept.c: New file.
5422
5423         * sysdeps/arm/fesetexcept.c: New file.
5424
5425         * sysdeps/alpha/fpu/fesetexcept.c: New file.
5426
5427         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
5428
5429         * math/fesetexcept.c: New file.
5430         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
5431         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
5432         * math/fenv.h: Define
5433         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5434         <bits/libc-header-start.h> instead of including <features.h>.
5435         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
5436         declaration.
5437         * manual/arith.texi (fesetexcept): Document function.
5438         * math/Versions (fesetexcept): New libm symbol at version
5439         GLIBC_2.25.
5440         * math/Makefile (libm-support): Add fesetexcept.
5441         (tests): Add test-fesetexcept and test-fesetexcept-traps.
5442         * math/test-fesetexcept.c: New file.
5443         * math/test-fesetexcept-traps.c: Likewise.
5444         * sysdeps/nacl/libm.abilist: Update.
5445         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5446         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5447         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5448         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5449         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5450         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5451         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5452         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5453         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5454         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5455         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5456         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5458         Likewise.
5459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5460         Likewise.
5461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5462         Likewise.
5463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5464         Likewise.
5465         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5466         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5467         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5468         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5469         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5470         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5471         Likewise.
5472         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5473         Likewise.
5474         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5475         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5476         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5477
5478 2016-08-16  Florian Weimer  <fweimer@redhat.com>
5479
5480         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
5481         New.
5482         (do_test): Apply default_stack_size_in_mb if not set.
5483         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
5484
5485 2016-08-15  Andreas Schwab  <schwab@suse.de>
5486
5487         [BZ #20435]
5488         CVE-2016-6323
5489         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
5490         as .cantunwind.
5491
5492 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
5493
5494         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
5495         comment from fraiseexcpt.c.
5496
5497         * math/test-fexcept.c (feraiseexcept_exact): New function.
5498         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
5499         (test_except): Likewise.
5500
5501 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
5502
5503         [BZ #20455]
5504         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
5505         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
5506         to be restored.
5507
5508         * math/test-fexcept-traps.c: New file.
5509         * math/test-fexcept.c: Likewise.
5510         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
5511         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
5512         macro.
5513         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
5514         (EXCEPTION_SET_FORCES_TRAP): Likewise.
5515
5516 2016-08-09  Torvald Riegel  <triegel@redhat.com>
5517
5518         * include/atomic.h (atomic_fetch_and_relaxed,
5519         atomic_fetch_and_release, atomic_fetch_or_release,
5520         atomic_fetch_xor_release): New.
5521
5522 2016-08-06  Christian Seiler  <christian@iwakd.de>
5523
5524         [BZ #20444]
5525         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
5526         MACH_PORT_NULL.
5527
5528 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5529
5530         * math/s_fdim.c: Avoid alias renamed.
5531         * math/s_fdimf.c: Likewise.
5532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5533         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5534         Add s_fdimf-vis3, s_fdim-vis3.
5535         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5536         (CFLAGS-s_fdim-vis3.c): Likewise.
5537         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
5538         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
5539
5540 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5541
5542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5543         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5544         Remove s_fdimf-vis3, s_fdim-vis3.
5545         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
5546         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
5547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
5548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
5549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
5550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5553         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5554         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5555
5556 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5557
5558         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5559         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5560         -Wa,-Av9a -mvis.
5561
5562 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5563
5564         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5565         LIT() to individual constants in simple expressions
5566         after splitting on spaces.
5567         (_apply_lit): Rename replaced version, and use it to
5568         apply to what appears to be a token.
5569
5570         * math/libm-test.inc: Fix many, many issues with
5571         spacing.
5572
5573 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5574
5575         * math/math.h: Move comment about <bits/mathdef.h> definitions
5576         above inclusion of <bits/mathdef.h>.  Do not mention
5577         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5578
5579 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5580
5581         * include/atomic.h (atomic_exchange_relaxed): New.
5582
5583 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5584
5585         * math/e_scalb.c: Do not include <fenv.h>.
5586         (invalid_fn): Do calculation resulting in NaN instead of raising
5587         FE_INVALID and returning a NaN explicitly.
5588         * math/e_scalbf.c: Do not include <fenv.h>.
5589         (invalid_fn): Do calculation resulting in NaN instead of raising
5590         FE_INVALID and returning a NaN explicitly.
5591         * math/e_scalbl.c: Do not include <fenv.h>.
5592         (invalid_fn): Do calculation resulting in NaN instead of raising
5593         FE_INVALID and returning a NaN explicitly.
5594
5595 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5596
5597         * po/de.po: Updated from Translation Project.
5598         * po/fi.po: Likewise.
5599         * po/sv.po: Likewise.
5600
5601 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5602
5603         [BZ #20452]
5604         Use sysdep.o from libc.a in static libraries.
5605         * sysdeps/unix/sysv/linux/i386/Makefile
5606         (libpthread-shared-only-routines): Add sysdep.
5607         (librt-shared-only-routines): Likewise.
5608
5609 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5610
5611         * math/tgmath.h (nextdown): Define if
5612         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5613         (nextup): Likewise.
5614
5615         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5616         macro.
5617         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5618         Document.
5619         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5620         Document macro.
5621         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5622         (exp10f): Likewise.
5623         (exp10l): Likewise.
5624         * math/bits/mathcalls.h (exp10): Declare if
5625         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5626
5627         * manual/arith.texi (nextup): Fix typo in last change.
5628
5629 2016-08-03  Zack Weinberg  <zackw@panix.com>
5630
5631         [BZ #19239]
5632         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5633         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5634         define major, minor, and makedev to issue deprecation warnings on use.
5635         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5636         previously-activated deprecation warnings for these macros and prevent
5637         subsequent inclusions of this header from having any effect.
5638         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5639         including <sys/sysmacros.h>, and undefine it again afterward.
5640
5641 2016-08-03  Zack Weinberg  <zackw@panix.com>
5642
5643         * sysdeps/generic/sys/sysmacros.h: Delete file.
5644         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5645         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5646         * bits/sysmacros.h: ... here; this encoding is now the generic
5647         encoding.  Now defines only the following macros:
5648         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5649         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5650         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5651
5652         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5653         bits/sysmacros.h and the above new macros to generate the
5654         public implementations of major, minor, and makedev.
5655         * misc/tst-makedev.c: New test.
5656         * include/sys/sysmacros.h: New wrapper.
5657
5658         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5659         (routines): Add makedev.
5660         (tests): Add tst-makedev.
5661         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5662         gnu_dev_makedev.
5663         * posix/Makefile (headers): Remove sys/sysmacros.h.
5664         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5665
5666         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5667         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5668         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5669         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5670         * sysdeps/unix/sysv/linux/arm/libc.abilist
5671         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5672         * sysdeps/unix/sysv/linux/i386/libc.abilist
5673         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5674         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5675         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5676         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5677         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5678         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5679         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5680         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5681         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5686         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5687         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5688         * sysdeps/unix/sysv/linux/sh/libc.abilist
5689         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5690         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5693         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5694         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5695         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5696         Add GLIBC_2.25.
5697
5698         * include/features.h (__glibc_clang_prereq): New macro.
5699         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5700         (__attribute_deprecated_msg__): New macros.
5701
5702 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5703
5704         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5705         macro.
5706         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5707         * manual/arith.texi (issignaling): Document as ISO from TS
5708         18661-1:2014.
5709         (nextup): Likewise.
5710         (nextupf): Likewise.
5711         (nextupl): Likewise.
5712         (nextdown): Likewise.
5713         (nextdownf): Likewise.
5714         (nextdownl): Likewise.
5715         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5716         macro.
5717         * math/math.h: Define
5718         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5719         <bits/libc-header-start.h> instead of including <features.h>.
5720         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5721         [__USE_GNU].
5722         * math/bits/mathcalls.h (nextdown): Declare if
5723         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5724         (nextup): Likewise.
5725         (__issignaling): Likewise.
5726
5727 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5728
5729         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5730         check, and remove __glibc_likely hint
5731         from FP_INFINITE check.
5732         * s_csinhf.c (__csinhf): Likewise.
5733
5734         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5735         hint from FP_INFINITE check.
5736         * s_csinhl.c (__csinhl): Likewise.
5737
5738 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5739
5740         * math/Makefile (libm-calls): Insert F placeholder into
5741         object names.  Move w_lgamma_compat* routines into
5742         (libm-compat-calls): New variable.
5743         (libm-compat-calls-ldouble-yes): New variable.
5744         (calls): Insert F placeholder.
5745         (generated): Redefine using new type-foreach macro call.
5746         (routines): Likewise.
5747
5748         (types): New variable to hold a list of symbolic names
5749         for each type supported by the target machine.
5750         (libm-routines): Redefine using new types variable.
5751         (type-foreach): macro to replace fooF with the
5752         appropriately suffixed foo for each types.
5753
5754         (type-ldouble-suffix): New variable.
5755         (type-ldouble-routines): Likewise.
5756         (type-ldouble-yes): Likewise.
5757         (type-double-suffix): Likewise.
5758         (type-double-routines): Likewise.
5759         (type-float-suffix): Likewise.
5760         (type-float-routines): Likewise.
5761
5762         (dbl-only-routines): Remove.
5763         (long-c-yes): Likewise.
5764         (long-m-routines): Likewise.
5765         (long-m-support): Likewise.
5766         (long-m-yes): Likewise.
5767         (test-longdouble-yes): Likewise.
5768
5769         (test-float.o): Simplify by increasing the scope of the
5770         recipe which adds libm-test.stmp to the vector types.
5771         (test-ifloat.o): Likewise.
5772         (test-float-finite.o): Likewise.
5773         (test-double.o): Likewise
5774         (test-idouble.o): Likewise.
5775         (test-double-finite.o): Likewise.
5776         (test-ldouble.o): Likewise
5777         (test-ildoubl.o): Likewise.
5778         (test-ldouble-finite.o): Likewise.
5779
5780         (libm-tests): Redefine type tests using foreach and the
5781         list of types in types.
5782
5783         (CPPFLAGS-test-ildoubl.c): Rename to
5784         (CPPFLAGS-test-ildouble.c): New variable
5785
5786         * math/test-ildoubl.c: Rename to
5787         * math/test-ildouble.c: New file.
5788
5789 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5790
5791         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5792         Use fabsl instead of fabs.
5793         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5794         Likewise.
5795         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5796         Add long double suffix to constant to ensure proper
5797         promotion to long double.
5798
5799 2016-08-03  Tom Tromey  <tom@tromey.com>
5800
5801         [BZ #20311]
5802         * nptl_db/Makefile (headers): Add proc_service.h.
5803         * nptl_db/proc_service.h: Add include guard.  Use
5804         __BEGIN/__END_DECLS.
5805         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5806         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5807         arguments.
5808
5809
5810 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5811
5812         [BZ #17730]
5813         Avoid using memalign for TCB allocations.
5814         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5815         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5816         Avoid alignment gap in the TLS_DTV_AT_TP case.
5817         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5818         determine the pointer to free.
5819         * nptl/tst-tls3-malloc.c: New test.
5820         * nptl/Makefile (tests): Add it.
5821         (tst-tls3-malloc): Link with libdl, libpthread.
5822         (LDFLAGS-tst-tls3-malloc): Set.
5823         (tst-tls3-malloc.out): Depend on DSO used in test.
5824
5825 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5826
5827         [BZ #17730]
5828         Avoid using memalign for TLS allocations.
5829         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5830         is_static member with to_free member.
5831         (union dtv): Use struct dtv_pointer.
5832         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5833         dtv_pointer instead of is_static.
5834         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5835         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5836         instead of val.
5837         (allocate_dtv_entry): New function.
5838         (allocate_and_init): Return struct dtv_pointer.  Call
5839         allocate_dtv_entry instead of __libc_memalign.
5840         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5841         instead of val.
5842         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5843         instead of is_static.  Adjust call to allocate_and_init.
5844         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5845         struct dtv_pointer instead of val.
5846
5847 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5848
5849         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5850         (MALLOC_ALIGN_MASK): Move ...
5851         * malloc/malloc-internal.h: ... to here.
5852         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5853
5854 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5855
5856         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5857         (UDP_ENCAP_GTP1U): Likewise.
5858
5859         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5860         (PF_MAX): Update value.
5861         (AF_QIPCRTR): New macro.
5862
5863 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5864
5865         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5866         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5867         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5868         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5869         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5870         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5871         s_truncf-vis3, s_trunc-vis3.
5872         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5873         (CFLAGS-s_ceil-vis3.c): Likewise.
5874         (CFLAGS-s_floorf-vis3.c): Likewise.
5875         (CFLAGS-s_floor-vis3.c): Likewise.
5876         (CFLAGS-s_truncf-vis3.c): Likewise.
5877         (CFLAGS-s_trunc-vis3.c): Likewise.
5878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5879         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5880         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5881         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5882         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5886         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5887         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5888         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5889         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5890
5891 2016-08-02  David S. Miller  <davem@davemloft.net>
5892
5893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5894         (__nearbyint_vis3): Don't check for sNaN before float register is
5895         loaded with the incoming argument.
5896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5897         (__nearbyintf_vis3): Likewise.
5898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5899         Likewise.
5900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5901         Likewise.
5902
5903         * string/test-strncmp.c (do_test_limit): Make sure the test data
5904         stream is aligned as required for the type "CHAR".
5905         (do_test): Likewise.
5906
5907 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5908
5909         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5910         by beq instructions jumping to the end of the function.
5911         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5912         clobber list. Use "i" constraint instead of "X".
5913         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5914         of "X".
5915
5916 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5917
5918         * bits/libc-header-start.h: New file.
5919         * Makefile (headers): Add bits/libc-header-start.h.
5920         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5921         (__GLIBC_USE): New macro.
5922         * libio/stdio.h: Define
5923         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5924         <bits/libc-header-start.h> instead of including <features.h>.
5925         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5926         (open_memstream): Likewise.
5927         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5928         (__asprintf): Likewise.
5929         (asprintf): Likewise.
5930         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5931         (getdelim): Likewise.
5932         (getline): Likewise.
5933         * string/string.h: Define
5934         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5935         <bits/libc-header-start.h> instead of including <features.h>.
5936         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5937         (strndup): Likewise.
5938         * wcsmbs/wchar.h: Define
5939         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5940         <bits/libc-header-start.h> instead of including <features.h>.
5941         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5942         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5943
5944 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5945
5946         Support linking against compatibility symbols, for use in tests.
5947         * include/libc-symbols.h (symbol_version_reference): New macro.
5948         (symbol_version): Use it.
5949         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5950         (compat_symbol): Use compat_symbol_reference.
5951         (compat_symbol_1, compat_symbol_2): Remove.
5952         (compat_symbol_reference, compat_symbol_reference_1)
5953         (compat_symbol_reference_2): New macro.  Use
5954         symbol_version_reference.
5955
5956 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5957
5958         [BZ #19469]
5959         * malloc/Makefile (CPPFLAGS): Compile tests with
5960         -DTEST_NO_MALLOPT.
5961         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5962
5963 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5964
5965         [BZ #20033]
5966         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5967         finite version.
5968         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5969         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5970         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5971         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5972         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5973         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5974         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5975         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5976         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5977         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5978         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5979         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5980         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5981         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5982         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5983         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5984         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5985         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5986         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5987         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5988         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5989         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5990         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5991         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5992         in zero power.
5993
5994 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5995
5996         [BZ #20370]
5997         * malloc/arena.c (get_free_list): Update comment.  Assert that
5998         arenas on the free list have no attached threads.
5999         (remove_from_free_list): New function.
6000         (reused_arena): Call it.
6001
6002 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
6003
6004         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
6005         when it is a NaN.
6006         [_IEEE_FP_INEXACT] Remove.
6007         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
6008         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
6009         when it is a NaN.
6010         [_IEEE_FP_INEXACT] Remove.
6011         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
6012         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
6013         when it is a NaN.
6014         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
6015         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
6016         when its absolute value is greater than 0x1.0p52.
6017         [_IEEE_FP_INEXACT] Remove.
6018         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
6019         when its absolute value is greater than 0x1.0p23.
6020         [_IEEE_FP_INEXACT] Remove.
6021
6022 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
6023
6024         * version.h (RELEASE): Set to "development"
6025         (VERSION): Set to 2.24.90.
6026         * NEWS: Add 2.25 section.
6027
6028         * version.h (RELEASE): Set to "stable"
6029         (VERSION): Set to 2.24.
6030         * include/features.h (__GLIBC_MINOR__): Set to 24.
6031
6032         * NEWS: Add 2.24 fixed bugs.
6033         * po/libc.pot: Regenerate.
6034
6035 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
6036
6037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6038         [$(subdir) = math] (libm-sysdep_routines): Remove.
6039         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
6040         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
6041         s_truncf-vis3, s_trunc-vis3.
6042         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
6043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
6044         file.
6045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
6046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
6047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
6048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
6049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
6051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
6052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
6054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
6055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
6056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
6057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
6058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
6059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
6060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
6064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
6065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
6066         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
6067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
6068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6069         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
6070         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
6071         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6072         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
6073         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
6074         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
6076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
6077         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6078         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
6079         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
6080         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
6081         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
6082         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6083         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6084         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
6085         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
6086         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
6087         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
6088
6089 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
6090
6091         [BZ #20384]
6092         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
6093         test-double-libmvec-sincos-avx-main.o,
6094         test-double-libmvec-sincos-avx2-main.o,
6095         test-double-libmvec-sincos-main.o,
6096         test-float-libmvec-sincosf-avx-main.o,
6097         test-float-libmvec-sincosf-avx2-main.o and
6098         test-float-libmvec-sincosf-main.o.
6099         test-float-libmvec-sincosf-avx512-main.o.
6100         ($(objpfx)test-double-libmvec-sincos): Also link with
6101         $(objpfx)test-double-libmvec-sincos-main.o.
6102         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
6103         $(objpfx)test-double-libmvec-sincos-avx-main.o.
6104         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
6105         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
6106         ($(objpfx)test-float-libmvec-sincosf): Also link with
6107         $(objpfx)test-float-libmvec-sincosf-main.o.
6108         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
6109         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
6110         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
6111         test-double-libmvec-sincos-avx512-main.o and
6112         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
6113         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
6114         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
6115         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
6116         (CFLAGS-test-double-libmvec-sincos.c): Removed.
6117         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
6118         (CFLAGS-test-double-libmvec-sincos-main.c): New.
6119         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
6120         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
6121         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
6122         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
6123         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
6124         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
6125         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
6126         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
6127         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
6128         -DREQUIRE_AVX2.
6129         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
6130         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
6131         -DREQUIRE_AVX512F.
6132         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
6133         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
6134         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6135         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
6136         file.
6137         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
6138         Likewise.
6139         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
6140         Likewise.
6141         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
6142         Likewise.
6143         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
6144         Likewise.
6145         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
6146         Likewise.
6147         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
6148         Likewise.
6149         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
6150         Likewise.
6151
6152 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
6153
6154         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
6155
6156 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
6157
6158         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
6159         and typo in a comment about AT_HWCAP entry.
6160
6161 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6162
6163         * sysdeps/aarch64/libm-test-ulps: Updated.
6164
6165 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6166
6167         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
6168         of r13 as it is not restored in mvcle case.
6169
6170 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
6171
6172         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
6173         Rename "ret" to "__ret".
6174         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
6175         inline_syscall5, inline_syscall6): Likewise.
6176
6177 2016-07-19   Will Newton  <will.newton@gmail.com>
6178
6179         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
6180         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
6181         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
6182         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
6183         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
6184
6185 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6186
6187         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
6188         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
6189         -mfpmath=387 with $(rtld-CFLAGS).
6190         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
6191         $(rtld-CFLAGS).
6192
6193 2016-07-18   Ross Burton  <ross.burton@intel.com>
6194              Khem Raj  <raj.khem@gmail.com>
6195
6196         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
6197         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
6198         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
6199         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
6200         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
6201         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
6202         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
6203         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
6204         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
6205         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
6206         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
6207         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
6208         R_METAG_TLS_DTPOFF): New.
6209
6210 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6211             Matt Clay  <mclay@lycos.com>
6212
6213         [BZ #20357]
6214         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
6215         to call __mpsin/__mpcos and to negate values.
6216         * math/auto-libm-test-in: Add test.
6217         * math/auto-libm-test-out: Regenerate.
6218
6219 2016-07-18  Zack Weinberg  <zackw@panix.com>
6220
6221         * grp/Makefile: Don't install the internal header grp-merge.h.
6222
6223 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6224
6225         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6226
6227 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6228
6229         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
6230
6231 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6232
6233         [BZ #15368]
6234         * sysdeps/unix/sysv/linux/nptl-signals.h
6235         (__nptl_clear_internal_signals): New function.
6236         (__libc_signal_block_all): Likewise.
6237         (__libc_signal_block_app): Likewise.
6238         (__libc_signal_restore_set): Likewise.
6239         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
6240         implementation.
6241         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
6242         the cached pid/tid value in pthread structure.
6243
6244 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         [BZ #20347]
6247         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6248
6249 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         [BZ #20348]
6252         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
6253         preadv64, pwrite64 and pwritev64.
6254
6255 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6256
6257         [BZ #20350]
6258         * posix/tst-preadwrite.c: Renamed to ...
6259         * posix/tst-preadwrite-common.c: This.
6260         (PREAD): Removed.
6261         (PWRITE): Likewise.
6262         (STRINGIFY): Likewise.
6263         (STRINGIFY2): Likewise.
6264         (do_prepare): Make it static and remove function arguments.
6265         (do_test): Likewise.
6266         (PREPARE): Updated.
6267         (TEST_FUNCTION): New.
6268         (name): Make it static.
6269         (fd): Likewise.
6270         (do_prepare): Use create_temp_file.
6271         (do_test): Renamed to ...
6272         (do_test_with_offset): This.  Make it static and accept offset.
6273         Properly check return value of PWRITE and PREAD.  Return bytes
6274         read.  Don't close fd nor unlink name.
6275         * posix/tst-preadwrite.c: Rewrite.
6276         * posix/tst-preadwrite64.c: Likewise.
6277
6278 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6279
6280         [BZ #20309]
6281         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
6282         -mtls-dialect=gnu2 works.
6283         * configure: Regenerated.
6284         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
6285         (tests): Add tst-gnu2-tls1.
6286         (modules-names): Add tst-gnu2-tls1mod.
6287         ($(objpfx)tst-gnu2-tls1): New.
6288         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
6289         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
6290         * elf/tst-gnu2-tls1.c: New file.
6291         * elf/tst-gnu2-tls1mod.c: Likewise.
6292         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
6293         bytes for push in the PLT entry to align the stack.
6294
6295 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         [BZ #20349]
6298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
6299
6300 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6301
6302         [BZ #18707]
6303         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
6304         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
6305
6306 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6307
6308         * sysdeps/unix/sysv/linux/sysdep.h
6309         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
6310         guards.
6311         * misc/tst-preadvwritev-common.c: New file.
6312         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
6313         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
6314         a check for files larger than 2GB.
6315
6316         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6317         (__ASSUME_OFF_DIFF_OFF64): Remove define.
6318         * sysdeps/unix/sysv/linux/pread.c
6319         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
6320         __OFF_T_MATCHES_OFF64_T.
6321         * sysdeps/unix/sysv/linux/pread64.c
6322         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
6323         * sysdeps/unix/sysv/linux/preadv.c
6324         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
6325         * sysdeps/unix/sysv/linux/preadv64.c
6326         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
6327         * sysdeps/unix/sysv/linux/pwrite.c
6328         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
6329         * sysdeps/unix/sysv/linux/pwrite64.c
6330         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
6331         * sysdeps/unix/sysv/linux/pwritev.c
6332         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
6333         * sysdeps/unix/sysv/linux/pwritev64.c
6334         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
6335
6336 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
6337
6338         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6339         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
6340
6341 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6342
6343         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
6344
6345 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6346
6347         [BZ #20240]
6348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6349         (CFLAGS-s_modf-ppc32.c): New variable.
6350         (CFLAGS-s_modff-ppc32.c): Likewise.
6351         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6352         (CFLAGS-s_modf-ppc64.c): Likewise.
6353         (CFLAGS-s_modff-ppc64.c): Likewise.
6354
6355 2016-07-07  Andreas Schwab  <schwab@suse.de>
6356
6357         [BZ #20263]
6358         * nptl/tst-robust10.c: New test.
6359         * nptl/Makefile (tests): Add tst-robust10.
6360
6361 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
6362
6363         [BZ #20263]
6364         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
6365
6366 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
6367
6368         * sysdeps/s390/linkmap.h (struct link_map_machine):
6369         Remove member gotplt and add member jmprel.
6370         * sysdeps/s390/s390-32/dl-machine.h
6371         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
6372         instead of gotplt with &got[3].
6373         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
6374         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6375
6376 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
6377
6378         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
6379
6380 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6381
6382         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
6383         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
6384         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6385         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
6386         * libio/vtables.c (_IO_vtable_check)
6387         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6388         * libio/libioP.h (IO_set_accept_foreign_vtables)
6389         [!PTR_MANGLE]: Do not call PTR_MANGLE.
6390
6391 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6392
6393         [BZ #20314]
6394         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
6395         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6396         $(common-objpfx)cmath.
6397         ($(common-objpfx)cstdlib): New target.
6398         ($(common-objpfx)cmath): Likewise.
6399
6400 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
6401
6402         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
6403
6404 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6405
6406         [BZ #20327]
6407         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
6408         are not part of the string.
6409
6410 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6411
6412         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
6413         * nptl/tst-cancel4-common.h (fifoname): New variable.
6414         (fifofd): Likewise.
6415         (cl_fifo): New function.
6416         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
6417         SIGINT.
6418         (tf_open): Add early cancel test.
6419
6420 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6421
6422         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
6423
6424 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
6425
6426         * sysdeps/generic/ldsodefs.h
6427         (dl_symbol_visibility_binds_local_p): New inline function.
6428         * elf/dl-addr.c (determine_info): Treat hidden and internal
6429         symbols as local.
6430         * elf/dl-lookup.c (do_lookup_x): Likewise.
6431         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
6432
6433 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
6434
6435         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
6436         invalid exception for a sNaN input.
6437         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6438         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
6439         (__nearbyint_vis3): Likewise
6440         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
6441         (__nearbyintf_vis3): Likewise
6442         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
6443         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6444         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
6445         Likewise.
6446         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
6447         Likewise.
6448
6449 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6450
6451         [BZ #20139]
6452         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
6453         (HAVE_AVX512DQ_ASM_SUPPORT): This.
6454         * sysdeps/x86_64/configure.ac: Require assembler from binutils
6455         2.24 or above.
6456         (HAVE_AVX512_ASM_SUPPORT): Removed.
6457         (HAVE_AVX512DQ_ASM_SUPPORT): New.
6458         * sysdeps/x86_64/configure: Regenerated.
6459         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
6460         check unconditional.
6461         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
6462         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6463         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6464         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6465         Likewise.
6466         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6467         Likewise.
6468         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6469         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6470         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6471         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6472         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
6473         Likewise.
6474         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6475         Likewise.
6476         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6477         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6478         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
6479         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
6480         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
6481         Likewise.
6482         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
6483         Likewise.
6484         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
6485         Likewise.
6486         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
6487         Likewise.
6488         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
6489         Likewise.
6490         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
6491         Likewise.
6492         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
6493         Likewise.
6494         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
6495         Likewise.
6496         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
6497         Likewise.
6498         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
6499         Likewise.
6500         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
6501         Likewise.
6502
6503 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
6504
6505         [BZ #20024]
6506         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
6507         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
6508         of this implementation of vector function.
6509         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
6510         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
6511         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6512         Likewise.
6513         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
6514         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
6515         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
6516         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
6517         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
6518         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
6519         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6520         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
6521         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
6522         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
6523         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
6524         for testing vector sincos with fixed ABI.
6525         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
6526         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
6527         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
6528         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
6529         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
6530         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
6531         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
6532         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
6533         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
6534         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
6535         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
6536         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
6537         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
6538         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
6539         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6540         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6541
6542 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6543
6544         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
6545
6546 2016-06-30  Anton Blanchard  <anton@samba.org>
6547
6548         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6549         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
6550         s_sinf-ppc64.
6551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6554         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6555
6556 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6557
6558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6559         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6560         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6561         e_expf-ppc64.
6562         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6563         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6564         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6565         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6566
6567 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6568
6569         [BZ #20277]
6570         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6571         when SHARED is defined.
6572
6573 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6574
6575         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6576         (index_arch_Prefer_ERMS): Likewise.
6577         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6578         __memcpy_erms for Prefer_ERMS.
6579         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6580         (__memmove_erms): Enabled for libc.a.
6581         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6582         __memmove_erms or Prefer_ERMS.
6583         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6584         __mempcpy_erms for Prefer_ERMS.
6585         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6586         __memset_erms for Prefer_ERMS.
6587
6588 2016-06-30  Andreas Schwab  <schwab@suse.de>
6589
6590         [BZ #20262]
6591         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6592         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6593         of memory.
6594
6595 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6596
6597         [BZ #18645]
6598         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6599         (test-extras): Add tst-cleanupx4aux.
6600         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6601         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6602         tst-cleanupx4aux.o.
6603         * nptl/tst-cleanupx4aux.c: New file.
6604
6605 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6606
6607         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6608
6609 2016-06-29  Andreas Schwab  <schwab@suse.de>
6610
6611         [BZ #20260]
6612         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6613         address before the beginning of the string as an integer to avoid
6614         array-bounds warning.
6615
6616 2016-06-28  Richard Henderson  <rth@redhat.com>
6617
6618         * elf/elf.h (EM_BPF): New.
6619         (EM_NUM): Update.
6620         (R_BPF_NONE, R_BPF_MAP_FD): New.
6621
6622         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6623         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6624         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6625         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6626         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6627         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6628         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6629         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6630         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6631         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6632         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6633         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6634         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6635         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6636         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6637         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6638         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6639         (EM_NUM): Update.
6640
6641 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6642
6643         [BZ #18960]
6644         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6645         Set _nl_current_LC_CATEGORY_used to two instead of one.
6646
6647 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6648
6649         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6650         (do_test): ... this.
6651         (TEST_FUNCTION): New macro.
6652          Include test-skeleton.c.
6653         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6654         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6655
6656 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6657
6658         [BZ #15479]
6659         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6660         floating-point environment rather than just control word.
6661         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6662         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6663         floating-point environment, with "invalid" exceptions merged in,
6664         rather than just control word.
6665         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6666         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6667         "inexact" exceptions.
6668
6669         [BZ #15479]
6670         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6671         floating-point environment rather than just control word.
6672         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6673         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6674         floating-point environment, with "invalid" exceptions merged in,
6675         rather than just control word.
6676         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6677         * math/libm-test.inc (floor_test_data): Do not allow spurious
6678         "inexact" exceptions.
6679
6680         [BZ #15479]
6681         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6682         floating-point environment rather than just control word.
6683         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6684         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6685         floating-point environment, with "invalid" exceptions merged in,
6686         rather than just control word.
6687         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6688         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6689         "inexact" exceptions.
6690
6691 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6692
6693         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6694         __libc_vfork.
6695         (__vfork) [IS_IN (libc)]: Remove alias.
6696         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6697         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6698         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6699
6700 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6701
6702         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6703         of atomic_compare_and_exchange_bool_rel.
6704         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6705         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6706         catomic_compare_and_exchange_bool_rel): Remove.
6707         * sysdeps/aarch64/atomic-machine.h
6708         (atomic_compare_and_exchange_bool_rel): Likewise.
6709         * sysdeps/alpha/atomic-machine.h
6710         (atomic_compare_and_exchange_bool_rel): Likewise.
6711         * sysdeps/arm/atomic-machine.h
6712         (atomic_compare_and_exchange_bool_rel): Likewise.
6713         * sysdeps/mips/atomic-machine.h
6714         (atomic_compare_and_exchange_bool_rel): Likewise.
6715         * sysdeps/microblaze/atomic-machine.h
6716         ( __arch_compare_and_exchange_bool_8_rel,
6717         __arch_compare_and_exchange_bool_16_rel): Likewise.
6718         * sysdeps/powerpc/atomic-machine.h
6719         ( __arch_compare_and_exchange_bool_8_rel,
6720         __arch_compare_and_exchange_bool_16_rel): Likewise.
6721         * sysdeps/powerpc/powerpc32/atomic-machine.h
6722         ( __arch_compare_and_exchange_bool_32_rel,
6723         __arch_compare_and_exchange_bool_64_rel): Likewise.
6724         * sysdeps/powerpc/powerpc64/atomic-machine.h
6725         ( __arch_compare_and_exchange_bool_32_rel,
6726         __arch_compare_and_exchange_bool_64_rel): Likewise.
6727         * sysdeps/tile/atomic-machine.h
6728         (atomic_compare_and_exchange_bool_rel): Likewise.
6729
6730 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6731
6732         [BZ #20296]
6733         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6734         when either argument is a NaN.
6735         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6736         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6737
6738         * math/libm-test.inc (snan_value_ld): New macro.
6739         (isgreater_test_data): Add sNaN tests.
6740         (isgreaterequal_test_data): Likewise.
6741         (isless_test_data): Likewise.
6742         (islessequal_test_data): Likewise.
6743         (islessgreater_test_data): Likewise.
6744         (isunordered_test_data): Likewise.
6745         (nextafter_test_data): Likewise.
6746         (nexttoward_test_data): Likewise.
6747         (remainder_test_data): Likewise.
6748         (remquo_test_data): Likewise.
6749         (significand_test_data): Likewise.
6750         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6751
6752 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6753
6754         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6755         environment macros are defined.
6756         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6757
6758 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6759
6760         [BZ #20191]
6761         Implement vtable verification in libio.
6762         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6763         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6764         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6765         _IO_new_file_init_internal instead of _IO_file_init.
6766         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6767         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6768         * libio/Makefile (routines): Add vtables.
6769         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6770         (_IO_init): Remove, not for internal use.
6771         (_IO_init_internal): Declare, internal replacement for _IO_init.
6772         (_IO_file_init): Remove, not for internal use.
6773         (_IO_new_file_init): Remove, not for internal use.
6774         (_IO_new_file_init_internal): Declare, internal replacement for
6775         _IO_new_file_init.
6776         (_IO_old_file_init): Remove, not for internal use.
6777         (_IO_old_file_init_internal): Declare, internal replacement for
6778         _IO_old_file_init.
6779         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6780         internal use.
6781         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6782         Declare.
6783         (libio_vtable): New macro.
6784         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6785         functions.
6786         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6787         _IO_new_file_init.
6788         (_IO_new_file_init): New externally visible wrapper which disables
6789         vtable verification.
6790         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6791         Define as vtables.
6792         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6793         (_IO_init): New externally visible wrapper which disables
6794         vtable verification.
6795         * libio/iofdopen.c (_IO_new_fdopen): Call
6796         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6797         comment.
6798         * libio/iofopen.c (__fopen_internal): Call
6799         _IO_new_file_init_internal instead of _IO_file_init.
6800         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6801         Define as vtables.
6802         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6803         _IO_new_file_init_internal instead of _IO_file_init.
6804         * libio/iopopen.c (_IO_new_popen): Likewise.
6805         (_IO_proc_jumps): Define as vtable.
6806         * libio/iovdprintf.c (_IO_vdprintf): Call
6807         _IO_new_file_init_internal instead of _IO_file_init.
6808         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6809         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6810         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6811         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6812         _IO_old_file_init.
6813         (_IO_old_file_init): New externally visible wrapper which disables
6814         vtable verification.
6815         (_IO_old_file_jumps): Define as vtable.
6816         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6817         _IO_old_file_init_internal instead of _IO_old_file_init.
6818         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6819         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6820         (_IO_old_proc_jumps): Define as vtable.
6821         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6822         Define as vtables.
6823         * libio/vtables.c: New file.
6824         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6825         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6826         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6827         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6828         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6829         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6830         instead of _IO_init.
6831
6832 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6833
6834         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6835
6836 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6837
6838         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6839         potentially unused.
6840
6841 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6842
6843         * test-skeleton.c (write_message): New function.
6844         * malloc/tst-mallocfork2.c (write_message): Remove.
6845         * debug/tst-longjmp_chk2.c (write_indented): New function.
6846         (write_message): Remove.
6847         (stackoverflow_handler): Call write_indented.
6848
6849 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6850
6851         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6852         "inexact" exceptions after fnstenv.
6853         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6854         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6855         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6856
6857 2015-06-22  Zack Weinberg  <zackw@panix.com>
6858
6859         * sysdeps/generic/bits/hwcap.h: Moved to ...
6860         * bits/hwcap.h: Here.
6861
6862 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6863
6864         * sysdeps/aarch64/memcpy.S (memcpy):
6865         Further tuning for performance.
6866
6867 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6868
6869         [BZ #20284]
6870         * malloc/arena.c (reused_arena): Do not return NULL if we start
6871         out with a non-corrupted arena.
6872
6873 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6874
6875         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6876         * misc/tst-preadvwritev.c: New file.
6877         * misc/tst-preadvwritev64.c: Likewise.
6878         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6879         usage.
6880         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6881         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6882         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6883         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6884
6885 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6886
6887         [BZ #19654]
6888         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6889         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6890         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6891         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6892         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6893         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6894         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6895         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6896         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6897         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6898         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6899         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6900         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6901         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6902         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6903         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6904         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6905         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6906         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6907         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6908         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6909         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6910         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6911         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6912         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6913         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6914
6915 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6916
6917         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6918         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6919
6920 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6921
6922         * sysdeps/aarch64/memcpy.S (memcpy):
6923         Rewrite of optimized memcpy and memmove.
6924         * sysdeps/aarch64/memmove.S (memmove): Remove
6925         memmove code (merged into memcpy.S).
6926
6927 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6928
6929         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6930         * sysdeps/generic/dl-dtv.h: New file.
6931         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6932         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6933         (dtv_t): Remove.
6934         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6935         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6936         (dtv_t): Remove.
6937         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6938         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6939         (dtv_t): Remove.
6940         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6941         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6942         (dtv_t): Remove.
6943         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6944         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6945         (dtv_t): Remove.
6946         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6947         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6948         (dtv_t): Remove.
6949         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6950         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6951         (dtv_t): Remove.
6952         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6953         (dtv_t): Remove.
6954         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6955         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6956         (dtv_t): Remove.
6957         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6958         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6959         (dtv_t): Remove.
6960         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6961         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6962         (dtv_t): Remove.
6963         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6964         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6965         (dtv_t): Remove.
6966         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6967         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6968         (dtv_t): Remove.
6969         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6970         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6971         (dtv_t): Remove.
6972         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6973         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6974         (dtv_t): Remove.
6975         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6976         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6977         (dtv_t): Remove.
6978
6979 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6980
6981         Revert symbol poisoning of  __malloc_initialize_hook.
6982         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6983         poisoning.
6984         * malloc/Makefile: Remove un-poisoning.
6985         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6986         instead of old__malloc_initialize_hook.
6987         * malloc/malloc-hooks.h: Likewise.
6988         * malloc/malloc.c: Likewise.
6989         * malloc/mcheck-init.c: Likewise.
6990
6991 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6992
6993         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6994
6995 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6996
6997         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6998         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6999         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
7000         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
7001
7002 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7003
7004         * NEWS: Mention addition of nextup and nextdown.
7005         * manual/arith.texi: Document nextup and nextdown.
7006         * manual/libm-err-tab.pl: Add nextup and nextdown.
7007         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
7008         * math/Versions (libm): Add GLIBC_2.24.
7009         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
7010         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7011         Add new test.
7012         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
7013         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
7014         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
7015         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
7016         (nextup_test_data): Likewise.
7017         (nextdown_test_data): Likewise.
7018         * math/s_nextdown.c: New file.
7019         * math/s_nextdownf.c: Likewise.
7020         * math/s_nextdownl.c: Likewise.
7021         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
7022         F(nextup): New function.
7023         F(nextdown): Likewise.
7024         * math/tgmath.h: Add nextup and nextdown.
7025         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
7026         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
7027         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
7028         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
7029         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
7030         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
7031         Add nextup and nextdown.
7032         (CFLAGS-nldbl-nextup.c): New variable.
7033         (CFLAGS-nldbl-nextdown.c): Likewise.
7034         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
7035         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
7036         * sysdeps/nacl/libm.abilist: Update.
7037         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7038         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7039         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7040         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7041         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7042         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7043         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7044         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7045         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7046         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7047         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7048         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7051         Likewise.
7052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7054         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7055         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7056         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7057         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7058         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7059         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
7060         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
7061         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7062         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7063         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
7064         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7065
7066 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7067
7068         * manual/pattern.texi: Fix typos & grammar errors.
7069
7070 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7071
7072         * manual/search.texi: Fix typos & grammar errors.
7073
7074 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7075
7076         * manual/message.texi: Fix typos & grammar errors.
7077
7078 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
7079
7080         * manual/contrib.texi: Fix spelling typos.
7081         * manual/crypt.texi: Likewise.
7082         * manual/filesys.texi: Likewise.
7083         * manual/locale.texi: Likewise.
7084         * manual/message.texi: Likewise.
7085         * manual/nss.texi: Likewise.
7086         * manual/string.texi: Likewise.
7087
7088 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7089
7090         * manual/locale.texi: Fix typos & grammar errors.
7091
7092 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7093
7094         * manual/charset.texi: Fix typos & grammar errors.
7095
7096 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7097
7098         * manual/string.texi: Fix typos.
7099
7100 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7101
7102         * manual/ctype.texi: Fix typos.
7103
7104 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7105
7106         * manual/memory.texi: Fix various typos & grammar errors.
7107
7108 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
7109
7110         [BZ #20255]
7111         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
7112         * math/libm-test.inc (fdim_test_data): Add another test.
7113
7114         [BZ #6796]
7115         [BZ #20255]
7116         [BZ #20256]
7117         * math/s_fdim.c: Include <math_private.h>.
7118         (__fdim): Use math_narrow_eval on result.
7119         * math/s_fdimf.c: Include <math_private.h>.
7120         (__fdimf): Use math_narrow_eval on result.
7121         * sysdeps/i386/fpu/s_fdim.S: Remove file.
7122         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
7123         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
7124         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
7125         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
7126         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
7127         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
7128         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
7129         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
7130         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
7131         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
7132         * math/libm-test.inc (fdim_test_data): Expect errno setting on
7133         overflow.  Add sNaN tests.
7134
7135         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
7136         fpclassify.
7137         * math/s_fdimf.c (__fdimf): Likewise.
7138         * math/s_fdiml.c (__fdiml): Likewise.
7139
7140 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7141
7142         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
7143         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
7144         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7145         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
7146         ifunc'ed strcasecmp/strncasecmp.
7147         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
7148         [EALIGN]: Removed.
7149         [END]: Likewise.
7150         [__strcasecmp]: Define instead of the above to control symbol name.
7151         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
7152         for __strcasecmp_power8.
7153         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
7154         for __strncasecmp_power8.
7155         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
7156         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
7157         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
7158         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
7159         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
7160         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
7161
7162 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
7163
7164         [BZ #20252]
7165         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
7166         arguments when second argument is a NaN.
7167         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
7168         qNaN tests.
7169
7170         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
7171         (conj_test_data): Likewise.
7172         (copysign_test_data): Likewise.
7173         (creal_test_data): Likewise.
7174         (fma_test_data): Likewise.
7175         (fmod_test_data): Likewise.
7176
7177         [BZ #20250]
7178         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
7179         itself.
7180         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
7181         zero input to itself.
7182         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
7183         Likewise.
7184         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
7185         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
7186         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
7187         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
7188         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
7189
7190 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7191
7192         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
7193         * nptl/tst-cancel4-common.c: New file.
7194         * nptl/tst-cancel4-common.h: Likewise.
7195         * nptl/tst-cancel4.c: Move common definitions to
7196         tst-cancel4-common.{c,h} file.
7197         * nptl/tst-cancel4_1.c: New test.
7198         * nptl/tst-cancel4_2.c: New test.
7199
7200 2016-06-13  Florian Weimer  <fweimer@redhat.com>
7201
7202         [BZ #20248]
7203         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
7204         (write_message): New function.
7205         (stackoverflow_handler): Call it instead of printf, to avoid
7206         excessive stack usage by printf.
7207         (do_test): Restore SIGSEGV, SIGBUS default handlers.
7208
7209 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7210
7211         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
7212         (prio_inherit_missing): Remove define.
7213         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7214         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7215         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
7216         Likewise.
7217         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7218         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7219         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7220         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7221         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7222         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7223
7224 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
7225
7226         [BZ #19670]
7227         [BZ #19672]
7228
7229         * io/test-lfs.c (do_prepare): Use xmalloc.
7230         * io/tst-fcntl.c (do_prepare): Likewise.
7231         * libio/tst-fopenloc.c (do_bz17916): Likewise.
7232         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
7233         * login/tst-utmp.c (do_prepare): Likewise.
7234         * posix/tst-exec.c (do_prepare): Likewise.
7235         * posix/tst-pathconf.c (prepare): Likewise.
7236         * posix/tst-spawn.c (do_prepare): Likewise.
7237         * posix/tst-truncate.c (do_prepare): Likewise.
7238         * rt/tst-aio.c (do_prepare): Likewise.
7239         * rt/tst-aio64.c (do_prepare): Likewise.
7240
7241 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7242
7243         [BZ #20237]
7244         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
7245         (get*ent): Set entidx to NULL during initialization.  If entidx is
7246         NULL, start iteration from the beginning.
7247
7248 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7249
7250         * malloc/malloc.c (musable): Return correct size for dumped fake
7251         mmapped chunk.
7252
7253 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7254
7255         [BZ #20222]
7256         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
7257         (_IO_cookie_write): Likewise.
7258         (_IO_cookie_seek): Likewise.
7259         (_IO_cookie_close): Likewise.
7260         (_IO_old_cookie_seek): Likewise.
7261         (set_callbacks): New function.
7262         (_IO_cookie_init): Call set_callbacks to copy callbacks.
7263
7264 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
7265
7266         * locale/programs/localedef.c (oldstyle_tables): Remove.
7267         * locale/programs/localedef.h (oldstyle_tables): Likewise.
7268
7269 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
7270
7271         [BZ #20240]
7272         * math/Makefile (CFLAGS-s_modf.c): New variable.
7273         (CFLAGS-s_modff.c): Likewise.
7274         (CFLAGS-s_modfl.c): Likewise.
7275         * math/libm-test.inc (modf_test_data): Add sNaN tests.
7276
7277 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
7278
7279         [BZ #20215]
7280         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
7281         [!__GNUC_PREREQ (3,2)]: Likewise.
7282
7283 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
7284
7285         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
7286         (msghdr.msg_controllen): Likewise.
7287         (cmsghdr.cmsg_len): Likewise.
7288         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
7289         ptw-oldsendmsg.
7290         (CFLAGS-oldrecvmsg.c): Remove rule.
7291         (CFLAGS-oldsendmsg.c): Likewise.
7292         (CFLAGS-recvmsg.c): Add rule.
7293         (CFLAGS-sendmsg.c): Likewise.
7294         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
7295         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
7296         (CFLAGS-recvmsg.c): Remove rule.
7297         (CFLAGS-sendmsg.c): Likewise.
7298         (CFLAGS-oldrecvmsg.c): Likewise.
7299         (CFLAGS-oldsendmsg.c): Likewise.
7300         (CFLAGS-recvmmsg.c): Likewise.
7301         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
7302         to kernel defined interfaces.
7303         (msghdr.msg_controllen): Likewise.
7304         (cmsghdr.cmsg_len): Likewise.
7305         (msghdr.__glibc_reserved1): Remove member.
7306         (msghdr.__glibc_reserved2): Likewise.
7307         (cmsghdr.__glibc_reserved1): Likewise.
7308         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
7309         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
7310         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7311         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7312         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
7313         version.
7314         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
7315         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
7316         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
7317         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
7318         Remove recvmsg and sendmsg.
7319         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
7320         Likewise.
7321         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7322         Likewise.
7323         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7324         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7325         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7326         Likewise.
7327         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7328         Likewise.
7329         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
7330         [libc] (GLIBC_2.24): Likewise.
7331         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7332         Likewise.
7333         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7334         Likewise.
7335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7336         [libc] (GLIBC_2.24): Likewise.
7337         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7338         Likewise.
7339         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7340         Likewise.
7341         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7342         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7343         Likewise.
7344         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7345         Likewise.
7346         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7347         Likewise.
7348         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
7349         Likewise.
7350         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
7351         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
7352         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
7353         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
7354         version for {recv,send,recm,sendm}msg.
7355         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7356         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7357         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7358         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7359         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7360         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7361         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7362         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7363         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7364         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7365         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7366         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7368         Likewise.
7369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7370         Likewise.
7371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7373         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7374         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7375         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7376         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7377         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7378         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7379         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7381         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7382         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7383         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7384
7385 2016-06-10  Florian Weimer  <fweimer@redhat.com>
7386
7387         [BZ #19564]
7388         Remove __malloc_initialize_hook from the API.
7389         * malloc/malloc.h (__malloc_initialize_hook): Remove.
7390         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
7391         #pragma GCC poison.
7392         * malloc/malloc-hooks.h: New file.
7393         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
7394         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
7395         (old__malloc_initialize_hook): Rename from
7396         __malloc_initialize_hook to evade poisoning.  Turn into compat
7397         symbol.
7398         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
7399         __malloc_initialize_hook.
7400         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
7401         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
7402         * manual/memory.texi (Hooks for Malloc): Remove
7403         __malloc_initialize_hook.  Adjust hook example.
7404
7405 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
7406
7407         [BZ #20235]
7408         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
7409         itself.
7410         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7411         * math/libm-test.inc (log2_test_data): Add sNaN tests.
7412
7413         [BZ #20234]
7414         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
7415         infinity or NaN input to itself.
7416
7417         [BZ #20233]
7418         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
7419         to itself.
7420
7421         [BZ #20232]
7422         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
7423         itself.
7424
7425 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7426
7427         * sysdeps/x86_64/start.S (_start): Always indirect branch to
7428         __libc_start_main via GOT.
7429
7430 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7431
7432         * sysdeps/x86_64/memcopy.h: New file.
7433         * sysdeps/x86_64/wordcopy.c: Likewise.
7434
7435 2016-06-09  Florian Weimer  <fweimer@redhat.com>
7436
7437         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
7438         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
7439         <cstdlib>.
7440         (optimization_barrier): New.
7441         (do_test): Use it.  Call quick_exit in the global namespace.
7442         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
7443         instead of <cstdlib>, <thread>.
7444         (optimization_barrier): New.
7445         (non_main_thread): Adjust declaration.  Call optimization_barrier.
7446         Call quick_exit in the global namespace.
7447         (do_test): Call optimization_barrier.  Use pthread_create,
7448         pthread_join instead of std::thread.
7449
7450 2016-06-09  Andreas Schwab  <schwab@suse.de>
7451
7452         [BZ #19755]
7453         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
7454         new entries in auto-propagate mode.
7455         * nscd/grpcache.c (cache_addgr): Likewise.
7456
7457 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7458
7459         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
7460         New functions.
7461         (add_temp_file): Use them.
7462
7463 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
7464
7465         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
7466
7467 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
7468
7469         [BZ #20229]
7470         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
7471         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7472         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
7473
7474         [BZ #20228]
7475         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
7476         itself.
7477         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
7478         * math/libm-test.inc (log10_test_data): Add sNaN tests.
7479
7480         [BZ #20227]
7481         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
7482         itself.
7483         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7484         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7485         * math/libm-test.inc (log_test_data): Add sNaN tests.
7486
7487         [BZ #20226]
7488         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
7489         itself.
7490         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7491         * math/libm-test.inc (exp_test_data): Add sNaN tests.
7492         (exp10_test_data): Likewise.
7493         (expm1_test_data): Likewise.
7494
7495         [BZ #20225]
7496         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
7497         itself.
7498         * math/s_ldexpf.c (__ldexpf): Likewise.
7499         * math/s_ldexpl.c (__ldexpl): Likewise.
7500         * math/w_scalbln.c (__w_scalbln): Likewise.
7501         * math/w_scalblnf.c (__w_scalblnf): Likewise.
7502         * math/w_scalblnl.c (__w_scalblnl): Likewise.
7503         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
7504         (scalbln_test_data): Likewise.
7505
7506         [BZ #20224]
7507         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
7508         argument to itself.
7509         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
7510
7511 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7512
7513         [BZ #19776]
7514         * sysdeps/x86_64/memcpy.S: Make it dummy.
7515         * sysdeps/x86_64/mempcpy.S: Likewise.
7516         * sysdeps/x86_64/memmove.S: New file.
7517         * sysdeps/x86_64/memmove_chk.S: Likewise.
7518         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7519         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7520         * sysdeps/x86_64/memmove.c: Removed.
7521         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
7522         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
7523         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
7524         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7525         Likewise.
7526         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7527         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7529         memcpy-sse2-unaligned, memmove-avx-unaligned,
7530         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
7531         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7532         (__libc_ifunc_impl_list): Replace
7533         __memmove_chk_avx512_unaligned_2 with
7534         __memmove_chk_avx512_unaligned.  Remove
7535         __memmove_chk_avx_unaligned_2.  Replace
7536         __memmove_chk_sse2_unaligned_2 with
7537         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
7538         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
7539         with __memmove_avx512_unaligned.  Replace
7540         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
7541         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
7542         with __memcpy_chk_avx512_unaligned.  Remove
7543         __memcpy_chk_avx_unaligned_2.  Replace
7544         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
7545         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
7546         Replace __memcpy_avx512_unaligned_2 with
7547         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
7548         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
7549         with __mempcpy_chk_avx512_unaligned.  Remove
7550         __mempcpy_chk_avx_unaligned_2.  Replace
7551         __mempcpy_chk_sse2_unaligned_2 with
7552         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7553         Replace __mempcpy_avx512_unaligned_2 with
7554         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7555         Replace __mempcpy_sse2_unaligned_2 with
7556         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7557         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7558         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7559         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7560         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7561         (ENTRY): Removed.
7562         (END): Likewise.
7563         (ENTRY_CHK): Likewise.
7564         (libc_hidden_builtin_def): Likewise.
7565         Don't include ../memcpy.S.
7566         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7567         __memcpy_chk_avx512_unaligned_erms and
7568         __memcpy_chk_avx512_unaligned.  Use
7569         __memcpy_chk_avx_unaligned_erms and
7570         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7571         Default to __memcpy_chk_sse2_unaligned.
7572         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7573         Change function suffix from unaligned_2 to unaligned.
7574         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7575         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7576         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7577         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7578         (ENTRY): Removed.
7579         (END): Likewise.
7580         (ENTRY_CHK): Likewise.
7581         (libc_hidden_builtin_def): Likewise.
7582         Don't include ../mempcpy.S.
7583         (mempcpy): New.  Add a weak alias.
7584         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7585         __mempcpy_chk_avx512_unaligned_erms and
7586         __mempcpy_chk_avx512_unaligned.  Use
7587         __mempcpy_chk_avx_unaligned_erms and
7588         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7589         Default to __mempcpy_chk_sse2_unaligned.
7590
7591 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7592
7593         [BZ #19881]
7594         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7595         into ...
7596         * sysdeps/x86_64/memset.S: This.
7597         (__bzero): Removed.
7598         (__memset_tail): Likewise.
7599         (__memset_chk): Likewise.
7600         (memset): Likewise.
7601         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7602         defined.
7603         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7604         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7605         (__memset_zero_constant_len_parameter): Check SHARED instead of
7606         PIC.
7607         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7608         memset-avx2 and memset-sse2-unaligned-erms.
7609         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7610         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7611         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7612         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7613         (__bzero): Enabled.
7614         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7615         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7616         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7617         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7618         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7619         (memset): Removed.
7620         (__memset_chk): Likewise.
7621         (MEMSET_SYMBOL): New.
7622         (libc_hidden_builtin_def): Replace __memset_sse2 with
7623         __memset_sse2_unaligned.
7624         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7625         __memset_chk_sse2 and __memset_chk_avx2 with
7626         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7627         Use __memset_chk_sse2_unaligned_erms or
7628         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7629         __memset_chk_avx512_unaligned_erms and
7630         __memset_chk_avx512_unaligned.
7631
7632 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7633
7634         * math/gen-auto-libm-test.c (fp_format_desc): remove
7635         suffix member.
7636         (output_generic_value): Remove usage of suffix member,
7637         and the resulting unuse of the fp_format argument.
7638         (output_for_one_input_case): Remove unused fp_format
7639         parameter.
7640
7641         * math/auto-libm-test-out: Regenerate.
7642
7643         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7644         usage with TEST_COND_ibm128.
7645         (TEST_COND_flt_32): Remove.
7646         (TEST_COND_dbl_64): Remove.
7647         (TEST_COND_ldbl_96_intel): Remove.
7648         (TEST_COND_ldbl_96_m68k): Remove.
7649         (TEST_COND_ldbl_128): Remove.
7650
7651 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7652
7653         * auto-libm-test-in:
7654         Replace flt-32 usage with binary32.
7655         Replace dbl-64 usage with binary64.
7656         Replace ldbl-intel-96 usage with intel96.
7657         Replace ldbl-m68k-96 usage with m68k96.
7658         Replace ldbl-128ibm usage with ibm128.
7659         Replace ldbl-128 usage with binary128.
7660
7661         * auto-libm-test-out: Regenerate.
7662
7663 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7664
7665         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7666         (parse_ulps): Dynamically generate type name matching
7667         string from all_floats.
7668         (get_ulps): Generate the ulps as an array instead.
7669         (output_ulps): Dynamically compose the type based
7670         on the number of supported formats, and print
7671         the indices as type specific helper macros.
7672
7673         * math/libm-test.inc: Remove comment about CHOOSE.
7674         (ulp_data): Generate the type in libm-test-ulps.h.
7675         (ULP_IDX): New macro.
7676         (find_ulps): Update usage of max_ulp.
7677
7678         * math/test-double-vlen2.h (CHOOSE): Remove.
7679         * math/test-double-vlen4.h (CHOOSE): Likewise.
7680         * math/test-double-vlen8.h (CHOOSE): Likewise.
7681         * math/test-float.c (CHOOSE): Likewise.
7682         * math/test-float-finite.c (CHOOSE): Likewise.
7683         * math/test-double.c (CHOOSE): Likewise.
7684         * math/test-double-finite.c (CHOOSE): Likewise.
7685         * math/test-idouble.c (CHOOSE): Likewise.
7686         * math/test-ifloat.c (CHOOSE): Likewise.
7687         * math/test-ildoubl.c (CHOOSE): Likewise.
7688         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7689         * math/test-ldouble.c (CHOOSE): Likewise.
7690
7691         * math/test-float.h (TEST_FLOAT): Remove.
7692         * math/test-double.h (TEST_DOUBLE): Likewise.
7693         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7694
7695 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7696
7697         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7698         (parse_args): Strip C suffix from floating point literals
7699         typed with 'f' and wrap them with LIT().
7700
7701         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7702         (test_ff_f_data_nexttoward): Rename to
7703         (test_fj_f_data): New struct.
7704         (nexttoward_test_data): Relabel tests as
7705         TEST_fj_f instead of TEST_ff_f.
7706
7707 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7708
7709         Emacs bug 23726.
7710         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7711         (__libc_realloc): Correct size computation for dumped fake mmapped
7712         chunks.
7713
7714 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7715
7716         [BZ #20219]
7717         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7718         to itself.
7719         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7720
7721         [BZ #20218]
7722         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7723         to itself.
7724         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7725
7726 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7727
7728         [BZ #20195]
7729         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7730         check to ...
7731         (init_cpu_features): Here.
7732
7733 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7734
7735         [BZ #20214]
7736         * sysdeps/unix/sysv/linux/bits/in.h
7737         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7738          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7739         Define to 1.
7740         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7741          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7742         Define to 0.
7743         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7744         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7745
7746 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7747
7748         [BZ #20198]
7749         * stdlib/Makefile (tests): Add tst-quick_exit, and
7750         tst-thread-quick_exit.
7751         [ifeq ($(have-cxx-thread_local),yes)]
7752         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7753         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7754         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7755         (LDLIBS-tst-thread-quick_exit): Likewise.
7756         [ifneq ($(have-cxx-thread_local),yes)]
7757         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7758         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7759         If run_dtors is true call __call_tls_dtors.
7760         (exit): Call __run_exit_handlers with run_dtors set to true.
7761         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7762         definition.
7763         * stdlib/quick_exit.c (quick_exit): Remove function.
7764         (__new_quick_exit): New function.
7765         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7766         function.
7767         * stdlib/tst-quick_exit.cc: New file.
7768         * stdlib/tst-thread-quick_exit.cc: New file.
7769         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7770         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7771         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7772         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7773         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7774         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7775         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7776         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7777         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7778         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7779         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7780         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7781         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7782         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7783         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7784         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7789         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7790         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7791         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7792         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7793         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7795         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7796         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7797         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7798         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7799
7800 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7801
7802         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7803         a typo in comments.
7804
7805 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7806
7807         [BZ #20213]
7808         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7809         argument to itself.
7810         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7811
7812 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7813
7814         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7815         required flags.
7816         (CFLAGS-pwritev64.c): Likewise.
7817         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7818         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7819         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7820         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7821         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7822         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7823         syscall from auto-generation.
7824         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7825         [WORDSIZE == 64] (pwritev64): Remove macro.
7826         [!PWRITEV] (PWRITEV): Likewise.
7827         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7828         [!PWRITEV] (PWRITE): Likewise.
7829         [!PWRITEV] (OFF_T): Likewise.
7830         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7831         (LO_HI_LONG): Remove macro.
7832         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7833         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7834         (PWRITEV): Remove macro.
7835         (PWRITEV_REPLACEMENTE): Likewise.
7836         (PWRITE): Likewise.
7837         (OFF_T): Likewise.
7838         (pwritev64): New function.
7839         * nptl/tst-cancel4.c (tf_writev): Add test.
7840
7841         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7842         required flags.
7843         (CFLAGS-preadv64.c): Likewise.
7844         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7845         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7846         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7847         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7848         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7849         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7850         syscall from auto-generation.
7851         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7852         [WORDSIZE == 64] (preadv64): Remove macro.
7853         [!PREADV] (PREADV): Likewise.
7854         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7855         [!PREADV] (PREAD): Likewise.
7856         [!PREADV] (OFF_T): Likewise.
7857         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7858         (LO_HI_LONG): Remove macro.
7859         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7860         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7861         (PREADV): Remove macro.
7862         (PREADV_REPLACEMENTE): Likewise.
7863         (PREAD): Likewise.
7864         (OFF_T): Likewise.
7865         (preadv64): New function.
7866         * nptl/tst-cancel4.c (tf_preadv): Add test.
7867
7868 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7869
7870         [BZ #20212]
7871         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7872         argument to itself.
7873         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7874
7875 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7876
7877         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7878         New symbol defined as libc_hidden_def.
7879         (strcasestr): Became a weak alias to __strcasestr.
7880         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7881         according to multi-arch support.  Move __stpncpy hidden
7882         definition from here to...
7883         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7884         symbol stpncpy.
7885         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7886         libc_hidden_builtin_def.
7887         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7888         memset symbol to use when multi-arch support is available.
7889
7890 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7891
7892         * dlfcn/tst-rec-dlopen.c: Include string.h.
7893
7894 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7895
7896         * manual/install.texi: Remove mention of --without-tls
7897         * INSTALL: Regenerate.
7898
7899 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7900
7901         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7902         Remove.
7903         (call_function, interposed_malloc_called): New variables.
7904         (malloc): New function.
7905         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7906         and clear call_function as needed.
7907
7908 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7909
7910         * include/wchar.h (__wmemset): Use __typeof.
7911
7912 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7913
7914         * include/wchar.h (__wmemset): Declare function without typeof.
7915
7916 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7917
7918         [BZ #20205]
7919         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7920         exponent when incrementing negative subnormal with low mantissa
7921         word zero.
7922         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7923         Add another test.
7924
7925 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7926
7927         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7928         __wmemset instead of wmemset.
7929
7930 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7931
7932         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7933         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7934         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7935         __USE_KERNEL_IPV6_DEFS to 0.
7936         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7937         Update comment.
7938
7939 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7940
7941         [BZ #19861]
7942         Do not use IFUNC resolver with potentially unrelocated symbol.
7943         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7944         (DEFINE_FORK): Remove macro and inline definition.
7945         (fork_alias): Renamed from fork_ifunc.
7946         (__fork_alias): Renamed from __fork_ifunc.
7947
7948 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7949
7950         [BZ 19653]
7951         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7952         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7953
7954 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7955
7956         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7957         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7958         i386-linux-gnu).
7959         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7960         Set to no.
7961         * sysdeps/mach/hurd/configure: Refresh.
7962
7963 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7964
7965         [BZ #20178]
7966         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7967         on failure instead of exit.
7968
7969 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7970
7971         [BZ #3629]
7972         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7973         of POSIX.1-2008.
7974
7975 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7976
7977         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7978           Use PLT entry for calling _hurd_self_sigstate.
7979
7980 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7981
7982         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7983         available logical processors with SMT level type sharing L2
7984         cache for Intel processors.
7985
7986 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7987
7988         [BZ #20160]
7989         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7990         argument to itself before returning the result.
7991         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7992         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7993         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7994         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7995         Likewise.
7996         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7997         Likewise.
7998         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7999         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
8000         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
8001         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
8002         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8003         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8004
8005         [BZ #20160]
8006         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
8007         argument to itself before returning the result.
8008         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8009         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8010         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8011         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
8012         Likewise.
8013         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
8014         Likewise.
8015         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
8016         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
8017         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
8018         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
8019         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8020         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8021
8022 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8023
8024         * libm-test.inc: Replace usage of M_El with
8025         (lit_e): New macro.
8026
8027 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8028
8029         * libm-test.inc: Replace usage of M_PI_4l with
8030         (lit_pi_4_d): New macro.
8031
8032 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8033
8034         * libm-test.inc: Replace usage of M_PIl with
8035         (lit_pi): New macro.
8036
8037 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8038
8039         * libm-test.inc: Replace usage of M_PI2l with
8040         (lit_pi_2_d): New macro.
8041
8042         * math/test-double.h (LITM): New macro.
8043         * math/test-float.h (LITM): Likewise.
8044         * math/test-ldouble.h (LITM): Likewise.
8045
8046 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8047
8048         * libm-test.inc (M_PI_34l): Rename to
8049         (lit_pi_3_m_4_d): New Macro.
8050         (M_PI_34_LOG10El): Rename to
8051         (lit_pi_3_m_4_ln10_m_d): New Macro.
8052         (M_PI2_LOG10El): Rename to
8053         (lit_pi_2_ln10_m_d):  New Macro.
8054         (M_PI4_LOG10El): Rename to
8055         (lit_pi_4_ln10_m_d):  New Macro.
8056         (M_PI_LOG10El): Rename to
8057         (lit_pi_ln10_d):  New Macro.
8058
8059 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
8060
8061         [BZ #20157]
8062         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
8063         determine whether to negate low half if [_ARCH_PPCGR], and integer
8064         comparison otherwise.
8065         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
8066         determine whether to negate low half.
8067
8068         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
8069         (NO_TEST_INLINE_DOUBLE): Likewise.
8070         (TEST_COND_x86_64): Likewise.
8071         (TEST_COND_x86): Likewise.
8072         (M_PI_6l): Likewise.
8073
8074 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8075
8076         * math/libm-test.inc:
8077         (TEST_FLOAT): Change usage to TEST_COND_binary32.
8078         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
8079         (TEST_LDOUBLE): Update usage to evaluate as true if
8080         the guarded tests match the property being tested.
8081         (LDBL_MAX_EXP): Change to MAX_EXP.
8082         (LDBL_MIN_EXP): Change to MIN_EXP.
8083         (LDBL_MANT_DIG): Change to MANT_DIG, except for
8084         nexttoward tests.
8085
8086 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8087
8088         * math/libm-test.inc:
8089         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
8090         (TYPE_MIN): Likewise.
8091         (TYPE_TRUE_MIN): Likewise.
8092         (TYPE_MAX): Likewise.
8093         (MIN_EXP): Likewise.
8094         (MAX_EXP): Likewise.
8095         (MANT_DIG): Likewise.
8096
8097         (FSTR_MAX): New macro.
8098         (__CONCATX): Likewise.
8099         (QTYPE_STR): Likewise.
8100         (TEST_COND_binary32): Likewise.
8101         (TEST_COND_binary64): Likewise.
8102         (TEST_COND_binary128): Likewise.
8103         (TEST_COND_ibm128): Likewise.
8104         (TEST_COND_intel96): Likewise.
8105         (TEST_COND_m68k96): Likewise.
8106
8107         (TEST_COND_flt_32): Redefine as equivalent format test macro.
8108         (TEST_COND_dbl_64): Likewise.
8109         (TEST_COND_ldbl_96_intel): Likewise.
8110         (TEST_COND_ldbl_96_m68k): Likewise.
8111         (TEST_COND_ldbl_128): Likewise.
8112         (TEST_COND_ldbl_128ibm): Likewise.
8113
8114         (plus_zero): Redefine using LIT macro.
8115         (minus_zero): Likewise.
8116         (plus_infty): Redefine as (INF).
8117         (minux_infty): Redefine as (-INF).
8118         (max_value): Redefine as TYPE_MAX.
8119         (min_value): Redefine as TYPE_MIN.
8120         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
8121
8122         (print_float): Refactor to use snprintf to convert FLOAT values
8123         to string. This brings it closer to dropin replacement of strtof
8124         for the TS 18661 defined types.
8125         (update_stats): Likewise.
8126         (print_complex_function_ulps): Likewise.
8127         (print_max_error): Likewise.
8128         (print_complex_max_error): Likewise.
8129         (check_float_internal): Likewise.
8130
8131         * math/test-float.h (PREFIX): New macro.
8132         (LIT): Likewise.
8133         (TYPE_STR): Likewise.
8134         (FTOSTR): Likewise.
8135
8136         * math/test-double.h (PREFIX): New macro.
8137         (LIT): Likewise.
8138         (TYPE_STR): Likewise.
8139         (FTOSTR): Likewise.
8140
8141         * math/test-ldouble.h (PREFIX): New macro.
8142         (LIT): Likewise.
8143         (TYPE_STR): Likewise.
8144         (FTOSTR): Likewise.
8145
8146 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
8147
8148         [BZ #20156]
8149         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
8150         to itself when zero or not finite.
8151         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
8152         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
8153         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
8154         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8155
8156 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
8157
8158         [BZ #20153]
8159         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
8160         x * x + x for infinities and NaNs.
8161
8162         [BZ #20151]
8163         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
8164         argument to itself before returning result.
8165         (__ieee754_y0l): Likewise.
8166         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
8167         (__ieee754_y1l).
8168
8169         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
8170         (atan_test_data): Likewise.
8171         (ceil_test_data): Likewise.
8172         (cos_test_data): Likewise.
8173         (cosh_test_data): Likewise.
8174         (erf_test_data): Likewise.
8175         (exp2_test_data): Likewise.
8176         (fabs_test_data): Likewise.
8177         (floor_test_data): Likewise.
8178         (ilogb_test_data): Likewise.
8179         (j0_test_data): Likewise.
8180         (j1_test_data): Likewise.
8181         (jn_test_data): Likewise.
8182         (lgamma_test_data): Likewise.
8183         (lrint_test_data): Likewise.
8184         (llrint_test_data): Likewise.
8185         (logb_test_data): Likewise.
8186         (lround_test_data): Likewise.
8187         (llround_test_data): Likewise.
8188         (nearbyint_test_data): Likewise.
8189         (rint_test_data): Likewise.
8190         (round_test_data): Likewise.
8191         (sin_test_data): Likewise.
8192         (sincos_test_data): Likewise.
8193         (sinh_test_data): Likewise.
8194         (sqrt_test_data): Likewise.
8195         (tan_test_data): Likewise.
8196         (tanh_test_data): Likewise.
8197         (tgamma_test_data): Likewise.
8198         (trunc_test_data): Likewise.
8199         (y0_test_data): Likewise.
8200         (y1_test_data): Likewise.
8201         (yn_test_data): Likewise.
8202
8203         * math/libm-test.inc: Update comment about NaN testing.
8204         (TEST_SNAN): New macro.
8205         (snan_value): Likewise.
8206         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
8207         (fpclassify_test_data): Add sNaN tests.
8208         (isfinite_test_data): Likewise.
8209         (isinf_test_data): Likewise.
8210         (isnan_test_data): Likewise.
8211         (isnormal_test_data): Likewise.
8212         (issignaling_test_data): Likewise.
8213         (signbit_test_data): Likewise.
8214         * math/gen-libm-test.pl (%beautify): Add snan_value.
8215         (show_exceptions): Add argument $test_snan.
8216         (parse_args): Handle snan_value as non-finite.  Update call to
8217         show_exceptions.
8218         * math/Makefile (libm-test-no-inline-cflags): Add
8219         -fsignaling-nans.
8220
8221 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8222
8223         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
8224         (CFLAGS-oldsendmsg.c): Add rule.
8225         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
8226         Correct recvmsg symbol name.
8227         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
8228         Likewise.
8229
8230 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8231
8232         * sysdeps/unix/sysv/linux/Makefile
8233         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
8234         oldsendmmsg.
8235         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
8236         sendmmsg.
8237         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8238         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8239         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8240         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8242         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8243         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
8245         Likewise.
8246         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8247         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
8248         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
8249         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
8250         iovlen and controllen fields to adjust to POSIX specification.
8251         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8252
8253         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
8254         and change to correct expected type.
8255         (msghdr.msg_controllen): Likewise.
8256         (cmsghdr.cmsg_len): Likewise.
8257         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
8258         expected POSIX assumption about the size.
8259         (msghdr.msg_controllen): Likewise.
8260         (msghdr.__glibc_reserved1): Likewise.
8261         (msghdr.__glibc_reserved2): Likewise.
8262         (cmsghdr.cmsg_len): Likewise.
8263         (cmsghdr.__glibc_reserved1): Likewise.
8264         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
8265         Add ptw-oldrecvmsg and ptw-oldsendmsg.
8266         (CFLAGS-sendmsg.c): Remove rule.
8267         (CFLAGS-recvmsg.c): Likewise.
8268         (CFLAGS-oldsendmsg.c): Add rule.
8269         (CFLAGS-oldrecvmsg.c): Likewise.
8270         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
8271         recvmsg and sendmsg.
8272         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
8273         Likewise.
8274         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
8275         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
8276         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
8277         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
8278         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
8279         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
8280         Likewise.
8281         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
8282         Likewise.
8283         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
8284         Likewise.
8285         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
8286         Likewise.
8287         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
8288         Likewise.
8289         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
8290         Likewise.
8291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
8292         (GLIBC_2.24): Likewise.
8293         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
8294         Likewise.
8295         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
8296         Likewise.
8297         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
8298         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
8299         Likewise.
8300         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
8301         Likewise.
8302         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
8303         Likewise.
8304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
8305         (GLIBC_2.24): Likewise.
8306         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
8307         Likewise.
8308         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
8309         Likewise.
8310         * sysdeps/unix/sysv/linux/Makefile
8311         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
8312         (CFLAGS-sendmsg.c): Add rule.
8313         (CFLAGS-recvmsg.c): Likewise.
8314         (CFLAGS-oldsendmsg.c): Likewise.
8315         (CFLAGS-oldrecvmsg.c): Likewise.
8316         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
8317         initialization.
8318         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
8319         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
8320         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
8321         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
8322         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
8323         iovlen and controllen fields to adjust to POSIX specification.
8324         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
8325         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
8326         added recvmsg and sendmsg.
8327         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8328         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8329         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8330         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8331         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8332         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8333         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8334         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8335         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8336         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8337         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8338         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8340         Likewise.
8341         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8343         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8344         Likewise.
8345         Likewise.
8346         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8347         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8348         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8349         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8350         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8351         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8352         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8353         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8354         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8355         Likewise.
8356         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8357         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8358
8359         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
8360         from auto-generation.
8361         (sendmsg): Likewise.
8362         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
8363         (sendmsg): Likewise.
8364         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
8365         (sendmsg): Likewise.
8366         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
8367         (sendmsg): Likewise.
8368         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
8369         (sendmsg): Likewise.
8370         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
8371         (sendmsg): Likewise.
8372         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
8373         Likewise.
8374         (sendmsg): Likewise.
8375         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
8376         (sendmsg): Likewise.
8377         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8378         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8379         Remove.
8380         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8381         Likewise.
8382         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8383         Undefine.
8384         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8385         Likewise.
8386         * sysdeps/unix/sysv/linux/kernel-features.h
8387         (__ASSUME_SENDMSG_SYSCALL): Define.
8388         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8389         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8390         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8391         Remove.
8392         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8393         Likewise.
8394         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8395         Undefine.
8396         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8397         Likewise.
8398         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8399         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8400         Remove.
8401         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8402         Likewise.
8403         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8404         Undefine.
8405         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8406         Likewise.
8407         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8408         (__ASSUME_SENDMSG_SYSCALL): Undefine.
8409         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8410         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8411         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8412         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8413         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8414         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8415         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8416
8417 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8418
8419         * stdlib/gen-tst-strtod-round.c: Add backslash to
8420         compile command in comment.
8421         (printfp): Remove the literal suffix, and define an infinite
8422         value as INF to avoid expansion clash with INFINITY.
8423         (round_str): Remove the literal suffix.
8424         (round_for_all): Likewise, remove the now duplicate ldbl-64
8425         entry, and remove some magic constants.
8426
8427         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
8428         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
8429         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
8430         (_CONCAT): New macro.
8431         (CONCAT): Likewise.
8432         (CHOOSE_ld): Likewise.
8433         (CHOOSE_f): Likewise.
8434         (CHOOSE_d): Likewise.
8435         (FTYPE_MEMBER): Likewise.
8436         (BOOL_MEMBER): Likewise.
8437         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
8438         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
8439         (_XNTRY): Likewise.
8440         (XNTRY): Likewise.
8441         (_ENTRY): Likewise.
8442         (ENTRY): Likewise.
8443         (test_exactness): Generate members via macro.
8444         (test_results): Likewise.
8445         (test): Update members.
8446         (TEST): Redefine using new macros.
8447         (INF): New macro.
8448         (fetestmodes): New structure.
8449         (do_test): Refactor to be type generic.
8450         (test_in_one_mode): Refactor duplicate code into
8451         (GEN_ONE_TEST): New macro.
8452
8453         * stdlib/tst-strtod-round-data.h: Regenerate.
8454
8455         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
8456         Extend to pass additional arbitrary parameters to
8457         generators.
8458
8459 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
8460
8461         [BZ #15479]
8462         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
8463         floating-point state after first floating-point operation on
8464         input.  Restore full floating-point state instead of just rounding
8465         mode.
8466         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8467         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8468         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8469         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8470         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8471
8472         [BZ #15479]
8473         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
8474         floating-point state after first floating-point operation on
8475         input.  Restore full floating-point state instead of just rounding
8476         mode.
8477         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8478         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8479         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8480         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8481         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8482
8483 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8484
8485         [BZ #19727]
8486         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
8487         valid high surrogate.
8488         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
8489         of an utf16 surrogate.
8490         * iconv/gconv_simple.c (BODY): Likewise.
8491         * iconvdata/bug-iconv12.c: New file.
8492         * iconvdata/Makefile (tests): Add bug-iconv12.
8493
8494 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8495
8496         [BZ #19726]
8497         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
8498         outptrp in case of an illegal input.
8499         * iconv/tst-iconv6.c: New file.
8500         * iconv/Makefile (tests): Add tst-iconv6.
8501
8502 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8503
8504         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
8505         an error in case of a value in range of an utf16 low surrogate.
8506
8507 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8508
8509         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
8510         an error in case of a value in range of an utf16 low surrogate.
8511
8512 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8513
8514         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
8515         Move to ...
8516         * sysdeps/s390/Makefile: ... here.
8517         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
8518         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
8519         (BRANCH_ON_COUNT): New define.
8520         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
8521         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
8522         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
8523         run on s390-32, too.
8524         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
8525         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
8526         run on s390-32, too.
8527         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
8528         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
8529         run on s390-32, too.
8530
8531 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8532
8533         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
8534         etf3eh or new vector loop-variant.
8535
8536 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8537
8538         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
8539         etf3eh or new vector loop-variant.
8540
8541 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8542
8543         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
8544         or new vector loop-variant.
8545
8546 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8547
8548         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
8549         Rename to TR_LOOP and usage of tr instead of troo instruction.
8550
8551 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8552
8553         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8554         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8555
8556 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8557
8558         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8559         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8560         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8561         New override define.
8562         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8563
8564 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8565
8566         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8567         * sysdeps/s390/configure.ac: Add test for S390 vector register
8568         support in gcc.
8569         * sysdeps/s390/configure: Regenerated.
8570
8571 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8572
8573         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8574         Install file from $(objpfx)gconv-modules.
8575         ($(objpfx)gconv-modules): Concatenate architecture specific file
8576         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8577         * sysdeps/s390/gconv-modules: New file.
8578         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8579         Deleted.
8580         ($(objpfx)gconv-modules-s390): Deleted.
8581         (sysdeps-gconv-modules): New variable.
8582
8583 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8584
8585         [BZ #15479]
8586         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8587         of immediate operand to rounding instruction.
8588         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8589         Likewise.
8590         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8591         Likewise.
8592         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8593         Likewise.
8594
8595 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8596
8597         * math/libm-test.inc (MIN_EXP): Directly define as
8598         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8599
8600 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8601
8602         * math/libm-test.inc (MANT_DIG): Directly define as
8603         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8604
8605 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8606
8607         * stdlib/gen-tst-strtod-round.c (main):
8608           Change usage to more closely match the generated
8609           output.  Add usage and compilation instructions.
8610           (string_to_fp): Add and use FILE* parameter as
8611           output target.
8612           (print_fp): Likewise.
8613           (round_str): Likewise.
8614           (round_for_all): Likewise.
8615         * stdlib/tst-strtod-round.c (tests): Move into
8616         * stdlib/tst-strtod-round-data.h: New file.
8617
8618 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8619
8620         [BZ #15479]
8621         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8622         (__round): Do not force "inexact" exception.
8623         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8624         variable.
8625         (__round): Do not force "inexact" exception.
8626         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8627         (__roundf): Do not force "inexact" exception.
8628         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8629         (__roundl): Do not force "inexact" exception.
8630         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8631         (__roundl): Do not force "inexact" exception.
8632         * math/libm-test.inc (round_test_data): Do not allow spurious
8633         "inexact" exceptions.
8634
8635         [BZ #15479]
8636         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8637         exception in comment.
8638         (huge): Remove variable.
8639         (__floor): Do not force "inexact" exception.
8640         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8641         "inexact" exception in comment.
8642         (huge): Remove variable.
8643         (__floor): Do not force "inexact" exception.
8644         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8645         exception in comment.
8646         (huge): Remove variable.
8647         (__floorf): Do not force "inexact" exception.
8648         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8649         exception in comment.
8650         (huge): Remove variable.
8651         (__floorl): Do not force "inexact" exception.
8652
8653         [BZ #15479]
8654         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8655         exception in comment.
8656         (huge): Remove variable.
8657         (__ceil): Do not force "inexact" exception.
8658         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8659         "inexact" exception in comment.
8660         (huge): Remove variable.
8661         (__ceil): Do not force "inexact" exception.
8662         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8663         (__ceilf): Do not force "inexact" exception.
8664         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8665         exception in comment.
8666         (huge): Remove variable.
8667         (__ceill): Do not force "inexact" exception.
8668
8669 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8670
8671         * config.h.in (BIND_NOW): New.
8672         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8673         * configure: Regenerated.
8674         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8675         indirect branch via the GOT slot.
8676
8677 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8678
8679         [BZ #19765]
8680         * sysdeps/s390/mempcpy.S: New File.
8681         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8682         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8683         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8684         Add mempcpy variants.
8685         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8686         (memcpy): Adjust to be usable from mempcpy entry point.
8687         (__memcpy_mvcle): Likewise.
8688         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8689         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8690         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8691         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8692         (__memcpy_z10): Likewise.
8693         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8694
8695 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8696
8697         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8698         Remove __GI_ symbol.
8699         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8700         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8701         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8702         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8703         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8704         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8705
8706 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8707
8708         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8709         Use cghi instead of chi to compare 64bit value.
8710
8711 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8712
8713         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8714         Jump to 1MB check before executing mvc-loop.
8715
8716 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8717
8718         [BZ #6527]
8719         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8720         unconditionally.
8721         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8722
8723 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8724
8725         * stdlib/tst-strtod6.c (do_test): Use new type generic
8726         invocation of the test function.
8727         (test): Refactor into ...
8728         (TEST_STRTOD): New macro base function.
8729
8730 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8731
8732         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8733         (TEST_STRTOD): New macro.
8734         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8735
8736 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8737
8738         * stdlib/tst-strtod6.c (do_test): Use new type generic
8739         invocation of the test function.
8740         (test): Refactor into ...
8741         (TEST_STRTOD): New macro base function.
8742
8743 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8744
8745         CVE-2016-4429
8746         [BZ #20112]
8747         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8748         payload.
8749
8750 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8751
8752         [BZ #20111]
8753         * bits/sockaddr.h (_SS_SIZE): Define.
8754         * bits/socket.h (_SS_SIZE): Remove.
8755         (_SS_PADSIZE): Adjust to account for all padding.
8756         (struct sockaddr_storage): Update comment.  Avoid implicit
8757         padding.
8758         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8759         (_SS_PADSIZE): Adjust to account for all padding.
8760         (struct sockaddr_storage): Update comment.  Avoid implicit
8761         padding.
8762         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8763         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8764         (_SS_PADSIZE): Adjust to account for all padding.
8765         (struct sockaddr_storage): Update comment.  Avoid implicit
8766         padding.
8767         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8768         __SS_SIZE is 126 in this version.
8769         * inet/tst-sockaddr.c: New file.
8770         * inet/Makefile (tests): Add tst-sockaddr.c
8771         (tst-sockaddr.c): Compile with non-strict aliasing.
8772
8773 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8774
8775         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8776         [XPG3 || XPG4].
8777         (NL_ARGMAX): Also expect for [XPG3].
8778         (NL_LANGMAX): Likewise.
8779         (NL_MSGMAX): Likewise.
8780         (NL_NMAX): Likewise.
8781         (NL_SETMAX): Likewise.
8782         (NL_TEXTMAX): Likewise.
8783         (NZERO): Likewise.
8784         (TMP_MAX): Likewise.
8785         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8786         variable.
8787
8788         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8789         (PF_MAX): Update value.
8790         (AF_KCM): New macro.
8791         (SOL_NETBEUI): Likewise.
8792         (SOL_LLC): Likewise.
8793         (SOL_DCCP): Likewise.
8794         (SOL_NETLINK): Likewise.
8795         (SOL_TIPC): Likewise.
8796         (SOL_RXRPC): Likewise.
8797         (SOL_PPPOL2TP): Likewise.
8798         (SOL_BLUETOOTH): Likewise.
8799         (SOL_PNPIPE): Likewise.
8800         (SOL_RDS): Likewise.
8801         (SOL_IUCV): Likewise.
8802         (SOL_CAIF): Likewise.
8803         (SOL_ALG): Likewise.
8804         (SOL_NFC): Likewise.
8805         (SOL_KCM): Likewise.
8806         (MSG_BATCH): New enum value and macro.
8807
8808 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8809
8810         [BZ #18185]
8811         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8812         sharing L2 cache to 2 for Knights Landing.
8813
8814 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8815
8816         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8817         (FTW_DP): Do not expect for [XPG3 || XPG4].
8818         (FTW_SL): Do not expect for [XPG3].
8819         (FTW_SLN): Likewise.
8820         (FTW_PHYS): Likewise.
8821         (FTW_MOUNT): Likewise.
8822         (FTW_DEPTH): Likewise.
8823         (FTW_CHDIR): Likewise.
8824         (nftw): Likewise.
8825         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8826         variable.
8827
8828 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8829
8830         * manual/errno.texi: Fix various typos & grammar errors.
8831
8832 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8833
8834         * manual/intro.texi: Fix duplicated typo.
8835
8836 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8837
8838         [BZ #13304]
8839         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8840         <float.h>, <math_private.h> and <stdlib.h>.
8841         (add_split): New function.
8842         (mul_split): Likewise.
8843         (ext_val): New typedef.
8844         (store_ext_val): New function.
8845         (mul_ext_val): New function.
8846         (compare): New function.
8847         (add_split_ext): New function.
8848         (__fmal): After checking for Inf, NaN and zero, compute result as
8849         an exact sum of scaled double values in round-to-nearest before
8850         adding those up and adjusting for other rounding modes.
8851         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8852         tests of fma.
8853         * math/auto-libm-test-out: Regenerated.
8854
8855 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8856
8857         [BZ #20119]
8858         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8859         processor level type mask for CPUID with EAX == 11.
8860
8861 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8862
8863         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8864         logical threads if the HTT bit is 0.
8865         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8866         (index_cpu_HTT): Likewise.
8867         (reg_HTT): Likewise.
8868
8869 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8870
8871         [BZ #20115]
8872         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8873         Remove alignments on jump targets.
8874
8875 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8876
8877         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8878         (getpwent): Likewise.
8879         (setpwent): Likewise.
8880         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8881         variable.
8882
8883         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8884         (remque): Likewise.
8885         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8886         variable.
8887
8888 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8889
8890         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8891         not being tested.
8892
8893 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8894
8895         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8896         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8897         call.
8898         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8899         (__condvar_cleanup1): Likewise.
8900
8901 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8902
8903         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8904         New
8905         (__pthread_unwind): Renamed to ...
8906         (PTHREAD_UNWIND): This.
8907         (__pthread_enable_asynccancel): Replace
8908         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8909
8910 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8911
8912         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8913         (CLONE_NEWCGROUP): New macro.
8914
8915         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8916         (Q_GETNEXTQUOTA): New macro.
8917
8918 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8919
8920         [BZ #19907]
8921         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8922         buffer updated by the previous run.
8923         * string/test-memcpy.c (do_one_test): Likewise.
8924         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8925         * string/test-memmove.c (do_one_test): Likewise.
8926
8927 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8928
8929         [BZ #20094]
8930         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8931         not [__USE_XOPEN].
8932         (unlockpt): Likewise.
8933         (ptsname): Likewise.
8934         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8935         variable.
8936
8937         [BZ #20076]
8938         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8939         instead of [__USE_UNIX98].
8940         (S_ISSOCK): Likewise.
8941         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8942         variable.
8943
8944         [BZ #20074]
8945         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8946         [__USE_POSIX].
8947         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8948         variable.
8949
8950         [BZ #20051]
8951         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8952         (ttyslot): Do not declare.
8953         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8954         (ttyslot): New prototype.
8955         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8956         variable.
8957         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8958
8959 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8960
8961         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8962
8963 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8964
8965         Fix race condition in tst-mallocfork2, use fewer resources.
8966         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8967         to current process group.
8968         (signal_sender): Yield in the non-sleeping case.
8969
8970 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8971
8972         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8973         (ecvt): Likewise.
8974         (fcvt): Likewise.
8975         (gcvt): Likewise.
8976         (getsubopt): Likewise.
8977         (grantpt): Likewise.
8978         (initstate): Likewise.
8979         (l64a): Likewise.
8980         (mktemp): Likewise.
8981         (mkstemp): Likewise.
8982         (ptsname): Likewise.
8983         (random): Likewise.
8984         (realpath): Likewise.
8985         (setstate): Likewise.
8986         (srandom): Likewise.
8987         (ttyslot): Likewise.
8988         (unlockpt): Likewise.
8989         (valloc): Likewise.
8990
8991         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8992         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8993         variable.
8994
8995 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8996
8997         [BZ #20072]
8998         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8999         init_cpu_features only if SHARED is defined.
9000         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
9001
9002 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9003
9004         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
9005         non-inclusive caches on Intel processors.
9006
9007 2016-05-13  Florian Weimer  <fweimer@redhat.com>
9008
9009         * malloc/malloc.c (dumped_main_arena_start)
9010         (dumped_main_arena_end): New variables.
9011         (DUMPED_MAIN_ARENA_CHUNK): New macro.
9012         (do_check_chunk): Skip dumped fake mmapped chunks.
9013         (munmap_chunk): Likewise.
9014         (__libc_free): Do not adjust statistics for fake mmapped chunks.
9015         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
9016         mmapped chunks.
9017         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
9018         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
9019         and dumped_main_arena_end to cover the dumped heap.
9020
9021 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
9022
9023         * conform/data/time.h-data (getdate_err): Do not expect for
9024         [XPG3].
9025         (getdate): Likewise.
9026         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
9027         variable.
9028
9029         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
9030         (F_ULOCK): Likewise.
9031         (F_TEST): Likewise.
9032         (F_TLOCK): Likewise.
9033         (useconds_t): Likewise.
9034         (intptr_t): Do not expect for [XPG3] or [XPG4].
9035         (brk): Do not expect for [XPG3]
9036         (fchown): Likewise.
9037         (fchdir): Likewise.
9038         (ftruncate): Likewise.
9039         (getdtablesize): Likewise.
9040         (gethostid): Likewise.
9041         (getpagesize): Likewise.
9042         (getpgid): Likewise.
9043         (getsid): Likewise.
9044         (getwd): Likewise.
9045         (lchown): Likewise.
9046         (lockf): Likewise.
9047         (readlink): Likewise.
9048         (sbrk): Likewise.
9049         (setpgrp): Likewise.
9050         (setregid): Likewise.
9051         (setreuid): Likewise.
9052         (symlink): Likewise.
9053         (sync): Likewise.
9054         (truncate): Likewise.
9055         (ualarm): Likewise.
9056         (usleep): Likewise.
9057         (vfork): Likewise.
9058         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
9059         variable.
9060
9061         [BZ #20054]
9062         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
9063         not [__USE_UNIX98].
9064         * conform/data/unistd.h-data (gethostname): Do not expect for
9065         [XPG3].
9066
9067         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
9068         [!POSIX] (S_IFBLK): Likewise.
9069         [!POSIX] (S_IFCHR): Likewise.
9070         [!POSIX] (S_IFIFO): Likewise.
9071         [!POSIX] (S_IFREG): Likewise.
9072         [!POSIX] (S_IFDIR): Likewise.
9073         [!POSIX] (S_IFLNK): Likewise.
9074         [!POSIX] (S_IFSOCK): Likewise.
9075         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
9076         variable.
9077         (test-xfail-XPG4/fcntl.h/conform): Likewise.
9078
9079 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
9080
9081         * sysdeps/aarch64/memset.S (__memset):
9082         Rewrite of optimized memset.
9083
9084 2016-05-12  Florian Weimer  <fweimer@redhat.com>
9085
9086         [BZ #19703]
9087         Partially async-signal-safe fork for single-threaded processes.
9088         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
9089         variable.  Do not acquire and reset/release malloc and libio locks
9090         in single-threaded processes.
9091         * malloc/tst-mallocfork2.c: New file.
9092         * malloc/Makefile (tests): Add it.
9093
9094 2016-05-12  Florian Weimer  <fweimer@redhat.com>
9095
9096         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
9097         argument.  Use scratch buffer instead of extend_alloca.
9098         (gethosts): Use scratch buffer instead of extend_alloca.
9099         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
9100         extend_alloca.
9101         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
9102
9103 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
9104
9105         [BZ #20055]
9106         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
9107         instead of [__USE_UNIX98].
9108         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
9109         [__USE_UNIX98].
9110         * conform/data/termios.h-data (tcgetsid): Do not expect for
9111         [XPG3].
9112         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
9113         variable.
9114         (test-xfail-XPG4/termios.h/conform): Likewise.
9115
9116 2016-05-11  Florian Weimer  <fweimer@redhat.com>
9117
9118         Do not use mcheck in localedef.
9119         * locale/programs/localedef.c (turn_on_mcheck)
9120         (__malloc_initialize_hook): Remove.
9121
9122 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
9123
9124         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
9125         * sysdeps/s390/s390-64/Makefile: Likewise.
9126
9127 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9128
9129         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
9130         Remove ifunc-defines.sym.
9131         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
9132         Likewise.
9133         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
9134         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
9135         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
9136         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
9137         rtld-global-offsets.sym.
9138         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
9139         * sysdeps/x86/cpu-features-offsets.sym: This.
9140         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
9141         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
9142
9143 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
9144
9145         [BZ #20073]
9146         * io/sys/stat.h (fchmod): Declare for
9147         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
9148         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
9149         variable.
9150
9151         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
9152         [XPG3] (S_IFSOCK): Likewise.
9153         [XPG3] (S_ISVTX): Likewise.
9154         [XPG3] (S_ISLNK): Likewise.
9155         [XPG3] (S_ISSOCK): Likewise.
9156         [XPG3] (fchmod): Likewise.
9157         [XPG3] (lstat): Likewise.
9158         [XPG3] (mknod): Likewise.
9159
9160         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
9161         [XPG3].  Expect type long and XFAIL for [XPG4].
9162         (st_blocks): Likewise.
9163
9164         [BZ #20044]
9165         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
9166         (pthread_atfork): New prototype.
9167         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
9168         variable.
9169
9170         [BZ #20043]
9171         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
9172         prototype.
9173
9174 2016-05-10  Florian Weimer  <fweimer@redhat.com>
9175
9176         [BZ #20017]
9177         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
9178         gmtime.
9179
9180 2016-05-10  Florian Weimer  <fweimer@redhat.com>
9181
9182         [BZ #19994]
9183         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
9184         flag in _res.options.
9185
9186 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
9187
9188         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
9189         [XPG3 || XPG4].
9190         (blksize_t): Likewise.
9191         (clockid_t): Likewise.
9192         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
9193         variable.
9194         (test-xfail-XPG4/sys/types.h/conform): Likewise.
9195
9196 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
9197
9198         * sysdeps/unix/sysv/linux/s390/init-first.c:
9199         Add VDSO_SYMBOL(getcpu).
9200         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
9201         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
9202         Add VDSO_SYMBOL(getcpu).
9203         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9204         New define HAVE_GETCPU_VSYSCALL.
9205         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9206
9207 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
9210         instead of <sysdeps/x86_64/cacheinfo.c>.
9211         * sysdeps/x86_64/cacheinfo.c: Moved to ...
9212         * sysdeps/x86/cacheinfo.c: Here.
9213
9214 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9215
9216         * malloc/malloc-internal.h: Adjust header file guard.
9217
9218 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9219
9220         [BZ #19787]
9221         * inet/getnameinfo.c (check_sprintf_result): New function.
9222         (CHECKED_SNPRINTF): New macro.
9223         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
9224         to the host buffer.
9225         (gni_host_local): Use checked_copy to copy the host name.
9226         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
9227         (gni_serv_local): Use checked_copy to copy the service name.
9228         (getnameinfo): Remove unnecessary truncation of result buffers.
9229
9230 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9231
9232         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
9233         in case of inet_ntop failure.
9234
9235 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9236
9237         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
9238         avoid long lines.
9239         (gni_host_inet_numeric): Likewise.  Reduce scope of local
9240         variables.
9241         (gni_host_inet, gni_host_local): Add comment.
9242         (gni_host): Add comment.  Use temporary to avoid long lines.
9243
9244 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9245
9246         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
9247         registers specifiers where general purpose registers specifiers should
9248         have been used.
9249
9250 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9251
9252         [BZ #19779]
9253         CVE-2016-1234
9254         Avoid copying names of directory entries.
9255         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
9256         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
9257         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
9258         (struct readdir_result): New type.
9259         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
9260         (GL_READDIR): New macros.
9261         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
9262         (convert_dirent, convert_dirent64): New functions.
9263         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
9264         convert_dirent64.  Adjust references to the readdir result.
9265         * sysdeps/unix/sysv/linux/i386/glob64.c:
9266         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
9267         * posix/bug-glob2.c (LONG_NAME): Define.
9268         (filesystem): Add LONG_NAME.
9269         (my_DIR): Increase the size of room_for_dirent.
9270
9271 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
9272
9273         [BZ #20041]
9274         * misc/sys/select.h (__need_timespec): Only define if
9275         [__USE_XOPEN2K].
9276         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
9277         variable.
9278         (test-xfail-XPG4/utmpx.h/conform): Likewise.
9279         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
9280         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
9281
9282 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9283             Segher Boessenkool  <segher@gcc.gnu.org>
9284
9285         [BZ #20004]
9286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
9287         (__novec_swapcontext): Add missing load.
9288
9289 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
9290
9291         [BZ #20023]
9292         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
9293         <time.h>.
9294         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
9295         variable.
9296         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
9297
9298 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9299
9300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
9301         flags CLONE_VM compare.
9302
9303 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9304
9305         [BZ #20031]
9306         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
9307         completely empty.
9308
9309 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9310
9311         [BZ #19573]
9312         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
9313         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
9314         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
9315         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
9316         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
9317         (hesiod_free_list): Mark as hidden.
9318         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
9319         res_set, res_get.
9320         * hesiod/hesiod.c: Remove unnecessary forward declarations.
9321         (init, __hesiod_res_get, __hesiod_res_set): Remove.
9322         (hesiod_init): Remove obsolete res_ninit call.
9323         (hesiod_end): Do not free resolver state.  Do not invoke callback.
9324         (hesiod_bind): Do not call init.
9325         (get_txt_records): Use res_mkquery, res_send instead of
9326         res_nmkquery, res_nsend.
9327         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
9328         instead of _nss_hesiod_init.
9329         (_nss_hesiod_initgroups_dyn): Likewise.
9330         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
9331         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
9332         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
9333
9334 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9335
9336         * hesiod/hesiod_p.h (DEF_RHS): Remove.
9337         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
9338
9339 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9340
9341         * hesiod/hesiod.h: Remove RCS keyword.
9342         * hesiod/hesiod_p.h: Likewise.
9343
9344         * hesiod/hesiod.c: Likewise.
9345
9346 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
9347
9348         [BZ #12450]
9349         * locale/iso-639.def: Add Samogitian/sgs.
9350
9351 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
9352
9353         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
9354
9355         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
9356
9357 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
9358             Carlos O'Donell  <carlos@redhat.com>
9359
9360         [BZ #19072]
9361         * grp/Makefile (headers): Add grp-merge.h
9362         (routines): Add grp-merge.
9363         * grp/getgrgid_r.c: Include grp-merge.h.
9364         (DEEPCOPY_FN): Define.
9365         (MERGE_FN): Define.
9366         * grp/getgrname_r.c: Include grp-merge.h.
9367         (DEEPCOPY_FN): Define.
9368         (MERGE_FN): Define.
9369         * grp/grp-merge.c: New file.
9370         * grp/grp-merge.h: New file.
9371         * include/grp-merge.h: New file.
9372         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
9373         __copy_grp@GLIBC_PRIVATE.
9374         * manual/nss.texi (Actions in the NSS configuration): Describe
9375         return, continue, and merge.
9376         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
9377         (DEEPCOPY_FN): Define.
9378         (MERGE_FN): Define.
9379         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
9380         (DEEPCOPY_FN): Define.
9381         (MERGE_FN): Define.
9382         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
9383         [!MERGE_FN]: Define __merge_einval.
9384         (CHECK_MERGE): Define.
9385         (REENTRANT_NAME): Process merge if do_merge is true.
9386         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
9387         (__nss_getent_r): Likewise.
9388         * nss/nsswitch.c (nss_parse_service_list): Likewise.
9389         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
9390
9391 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9392
9393         [BZ #20012]
9394         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
9395         length to calculate the buffer to read.
9396         (fmemopen_write): Set the buffer position based on bytes written.
9397         (fmemopen_seek): Return EINVAL for invalid whence modes.
9398
9399         [BZ #19957]
9400         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
9401         tst-getpid2.
9402         (test): Add tst-clone2.
9403         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
9404         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
9405         pid/tid fields for CLONE_VM.
9406         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
9407         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
9408         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
9409         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
9410         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
9411         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
9412         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
9413         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
9414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
9415         Likewise.
9416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9417         Likewise.
9418         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
9419         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
9420         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
9421         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
9422         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
9423         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
9424         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
9425         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
9426
9427 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9428
9429         [BZ #19642]
9430         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
9431         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
9432         (gni_serv_local, gni_serv): New functions extracted from
9433         getnameinfo.
9434         (getnameinfo): Call gni_host and gni_serv to perform the
9435         processing.  Always free scratch buffer.
9436
9437 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9438
9439         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
9440         remaining bytes in the dest string, with zeros.
9441
9442 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9443
9444         [BZ #20010]
9445         CVE-2016-3706
9446         * sysdeps/posix/getaddrinfo.c
9447         (convert_hostent_to_gaih_addrtuple): New function.
9448         (gethosts): Call convert_hostent_to_gaih_addrtuple.
9449         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
9450         AF_INET data.
9451
9452 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9453
9454         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
9455         callback function gl_readdir.
9456         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
9457         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
9458         (glob_in_dir): Remove len.  Use strdup instead of malloc and
9459         memcpy to copy the name.
9460         * manual/pattern.texi (Calling Glob): Document requirements for
9461         implementations of the gl_readdir callback function.
9462         * manual/examples/mkdirent.c: New example.
9463         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
9464         per the manual guidance.
9465         * posix/tst-gnuglob.c (my_readdir): Likewise.
9466
9467 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
9468
9469         [BZ #20014]
9470         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
9471         not [__USE_POSIX].
9472         (getchar_unlocked): Likewise.
9473         (putc_unlocked): Likewise.
9474         (putchar_unlocked): Likewise.
9475         (flockfile): Likewise.
9476         (ftrylockfile): Likewise.
9477         (funlockfile): Likewise.
9478         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
9479         variable.
9480         (test-xfail-XPG4/stdio.h/conform): Likewise.
9481
9482         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
9483         Expect constant.
9484         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
9485         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
9486         variable.
9487         (test-xfail-XPG4/langinfo.h/conform): Likewise.
9488         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
9489
9490         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
9491         [__USE_LARGEFILE64] (off64_t): Likewise.
9492         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
9493         variable.
9494
9495 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9496
9497         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
9498
9499 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9500
9501         * resolv/inet_addr.c: Reindent preprocessor conditionals.
9502         * resolv/res_init.c: Likewise.
9503         * resolv/res_mkquery.c: Likewise.
9504
9505 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9506
9507         * resolv/res_init.c (isascii): Do not define.  Use definition in
9508         <ctype.h>.
9509         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
9510         (LOG_AUTH): Remove.
9511         (SPRINTF): Remove, adjust caller.
9512         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
9513
9514 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9515
9516         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
9517         SUNSECURITY conditional.
9518         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
9519
9520 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9521
9522         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
9523         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
9524         Remove BSD-related preprocessor conditionals.
9525         * conf/portability.h: Remove.
9526
9527 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9528
9529         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
9530         * resolv/res_data.c: Likewise.
9531
9532 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9533
9534         * resolv/res_comp.c: Remove code conditional on __ultrix__.
9535         * resolv/res_data.c: Remove code conditional on ultrix.
9536
9537 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9538
9539         * resolv/res_init.c (RFC1535): Do not define.  Remove
9540         RFC1535 preprocessor conditionals.
9541         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
9542         because there configuration options which make the resolver
9543         behavior different.
9544
9545 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9546
9547         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
9548         RESOLVSORT preprocessor conditionals.
9549         * resolv/nss_dns/dns-host.c: Likewise.
9550         * resolv/res_init.c: Likewise.
9551
9552 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9553
9554         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9555         is never defined.
9556
9557 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9558
9559         * inet/inet_lnaof.c: Remove SCSS keyword.
9560         * inet/inet_mkadr.c: Likewise.
9561         * inet/inet_net.c: Likewise.
9562         * inet/inet_netof.c: Likewise.
9563         * inet/rcmd.c: Likewise.
9564         * inet/rexec.c: Likewise.
9565         * inet/ruserpass.c: Likewise.
9566
9567 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9568
9569         * resolv/inet_addr.c: Remove _LIBC conditionals.
9570         * resolv/res_data.c: Likewise.
9571         * resolv/res_init.c: Likewise.
9572         * resolv/res_mkquery.c: Likewise.
9573         * resolv/res_libc.c: Update comment.
9574         * resolv/README: Update.
9575
9576 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9577
9578         * resolv/gethnamaddr.c: Remove SCSS keyword.
9579         * resolv/herror.c: Likewise.
9580         * resolv/inet_addr.c: Likewise.
9581         * resolv/inet_net_ntop.c: Likewise.
9582         * resolv/inet_net_pton.c: Likewise.
9583         * resolv/inet_neta.c: Likewise.
9584         * resolv/inet_ntop.c: Likewise.
9585         * resolv/inet_pton.c: Likewise.
9586         * resolv/ns_date.c: Remove RCS keyword.
9587         * resolv/ns_name.c: Likewise.
9588         * resolv/ns_netint.c: Likewise.
9589         * resolv/ns_parse.c: Likewise.
9590         * resolv/ns_print.c: Likewise.
9591         * resolv/ns_samedomain.c: Likewise.
9592         * resolv/ns_ttl.c: Likewise.
9593         * resolv/nsap_addr.c: Likewise.
9594         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9595         * resolv/res_data.c: Remove RCS keyword.
9596         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9597         * resolv/res_init.c: Likewise.
9598         * resolv/res_mkquery.c: Likewise.
9599         * resolv/res_query.c: Likewise.
9600         * resolv/res_send.c: Likewise.
9601
9602 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * conform/data/stdio.h-data (fdopen): Expect also for
9605         [XPG3 || XPG4].
9606
9607         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9608         (fseeko): Likewise.
9609         (ftello): Likewise.
9610         (ftrylockfile): Likewise.
9611         (funlockfile): Likewise.
9612         (getc_unlocked): Likewise.
9613         (getchar_unlocked): Likewise.
9614         (putc_unlocked): Likewise.
9615         (putchar_unlocked): Likewise.
9616
9617 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9618
9619         [BZ #19868]
9620         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9621         DNS packet syntax checks (which were not needed before).  Skip
9622         over non-PTR records.
9623
9624 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9625
9626         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9627         definition.  Include <stddef.h> instead.
9628
9629 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9630
9631         [BZ #19831]
9632         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9633         function.
9634         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9635         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9636
9637 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9638
9639         [BZ #19862]
9640         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9641         (getanswer_r): Do not call syslog.
9642         (gaih_getanswer_slice): Likewise.
9643         * resolv/gethnamaddr.c (AskedForGot): Remove.
9644         (getanswer): Do not call syslog.
9645         (gethostbyaddr): Likewise.
9646
9647 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9648
9649         * conform/data/signal.h-data (union sigval): Expect also if
9650         [XOPEN2K].
9651         (struct sigevent): Likewise.
9652         (SIGEV_NONE): Likewise.
9653         (SIGEV_SIGNAL): Likewise.
9654         (SIGEV_THREAD): Likewise.
9655         (SIGRTMIN): Likewise.
9656         (SIGRTMAX): Likewise.
9657         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9658         variable.
9659         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9660
9661 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9662
9663         [BZ #19830]
9664         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9665         (gaih_getanswer_slice): Likewise.
9666         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9667         Also check for availability of RR metadata.
9668
9669 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9670
9671         [BZ #19825]
9672         * resolv/res_send.c (send_vc): Remove early *resplen2
9673         initialization.  Set *resplen2 on socket error.  Call
9674         close_and_return_error for other errors.
9675
9676 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9677
9678         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9679         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9680         (SCM_IUCV_TRGCLS): New define.
9681
9682 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9683
9684         [BZ #20005]
9685         * libio/fmemopen.c (fmemopen_write): Update internal position after
9686         write.
9687         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9688         * stdio-common/tst-fmemopen4.c: New file..
9689
9690 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9691
9692         [BZ #19996]
9693         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9694         not [__USE_XOPEN2K].
9695         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9696         variable.
9697
9698         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9699         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9700         variable.
9701
9702         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9703         [__USE_XOPEN2K8].
9704         [__USE_LARGEFILE64] (off64_t): Likewise.
9705         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9706         variable.
9707
9708 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9709
9710         [BZ #19989]
9711         * libio/stdio.h (cuserid): Do not declare if
9712         [__USE_XOPEN2K && !__USE_GNU].
9713         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9714         variable.
9715
9716 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9717
9718         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9719         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9721         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9722         ifunc'ed strcspn.
9723         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9724         [EALIGN]: Removed.
9725         [END]: Likewise
9726         [STRSPN]: Define instead of the above to control symbol name.
9727         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9728         New file.
9729         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9730         Likewise.
9731         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9732         Likewise.
9733         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9734         Likewise.
9735         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9736         [INITIAL_MASK]: New macro.
9737         [STRCSPN]: Likewise.
9738         [UPDATE_MASK]: Likewise.
9739         [USE_AS_STRCSPN]: Lisewise.
9740
9741 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9742
9743         [BZ #19931]
9744         * stdio-common/tst-vfprintf-width-prec.c: New file.
9745         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9746         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9747         (generated): Add mtrace-related files.
9748         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9749         (tst-%-mem.out): New pattern rule, replaces
9750         tst-printf-bz18872-mem.out.
9751         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9752         specifier, deallocate any previously allocated work buffer.
9753
9754 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9755
9756         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9757         Add nop before __startcontext, add explaining comments.
9758
9759 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9760
9761         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9762         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9763         completely different API.
9764
9765         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9766         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9767         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9768         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9769         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9770         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9771         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9772         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9773         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9774         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9775
9776 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9777
9778         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9779
9780 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9781
9782         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9783         when it is the default of 0.
9784
9785 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9786
9787         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9788         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9789         (sysdep_routines): Add new strcasestr targets.
9790         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9791         (__libc_ifunc_impl_list): Likewise.
9792         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9793         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9794         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9795         * sysdeps/powerpc/powerpc64/power8/Makefile:
9796         New file to add strcasestr-ppc64 to sysdep_routines.
9797         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9798         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9799
9800 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9801
9802         * benchtests/Makefile (wcsmbs-benchset): Include only for
9803         native builds and runs.
9804         (LOCALES): Likewise.
9805         (bench-build): Build timing-type here instead of the bench
9806         target.  Generate locale only for native builds.
9807         * benchtests/README: Add note for cross-building.
9808
9809         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9810
9811         * benchtests/README: Update README to include instructions on
9812         using bench-build.
9813
9814         * Makefile.in (bench-build): New target.
9815         * Rules (PHONY): Add bench-build target.
9816         * benchtests/Makefile (bench): Depend on bench-build.
9817         (bench-build): New target.
9818
9819 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9820
9821         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9822         profil_reply_port.
9823         (profile_waiter): Do not initialize profil_reply_port.
9824         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9825         frequency instead of tick length in us.
9826
9827 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9828
9829         [BZ #18712]
9830         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9831         (__old_mempcpy_small): Likewise.
9832         (__old_strcpy_small): Likewise.
9833         (__old_stpcpy_small): Likewise.
9834         (__old_strpbrk_c2): Fix compat symbol name.
9835         (__old_strpbrk_c3): Likewise.
9836         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9837         (__mempcpy_small): Remove.
9838         (__strcpy_small): Remove.
9839         (__stpcpy_small): Remove.
9840
9841 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9842
9843         [BZ #19400]
9844         * locale/iso-639.def: Add the Talossan/tzl language.
9845
9846 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9847
9848         [BZ #16983]
9849         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9850         comment.  Add "ln" to strchr check on postal_fmt.
9851
9852 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9853
9854         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9855         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9856         tel_dom_fmt.
9857
9858 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9859
9860         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9861         (sysdep_routines): Added __strlen_power8.
9862         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9863         __strlen_power8 entry.
9864         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9865         Implementation for POWER8.
9866         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9867         for __strlen_power8.
9868         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9869         Implementation for POWER8.
9870
9871 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9872
9873         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9874
9875 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9876
9877         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9878         Goldmont and Airmont processors.
9879
9880 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9881
9882         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9883         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9884         (__STRING2_SMALL_GET32): Remove.
9885         (memset): Remove.
9886         (__memset_1): Remove.
9887         (__memset_gc): Remove.
9888         (__mempcpy): Remove.
9889         (mempcpy): Remove.
9890         (__mempcpy_args): Remove.
9891         (strchr): Remove.
9892         (strcpy): Remove.
9893         (strcpy_args): Remove.
9894         (__stpcpy_args): Remove.
9895         (__strcmp_cc): Remove.
9896         (__strcmp_gc): Remove.
9897         (strstr): Remove.
9898
9899 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9900
9901         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9902         * nis/nis_call.c (nis_server_cache_add): Likewise.
9903
9904 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9905
9906         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9907
9908 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9909
9910         * malloc/arena.c (__malloc_fork_lock_parent)
9911         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9912         internal_function attribute.
9913
9914 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9915
9916         * stdio-common/printf_fp.c (__printf_fp_l):
9917         Rename ___printf_fp_l to __printf_fp_l and
9918         remove strong alias. Use libc_hidden_def instead
9919         of ldbl_hidden_def macro.
9920
9921 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9922
9923         Remove malloc hooks from fork handler.  They are no longer needed
9924         because malloc runs right before fork, and no malloc calls from
9925         other fork handlers are not possible anymore.
9926         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9927         declarations.
9928         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9929         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9930         (atfork_recursive_cntr): Remove.
9931         (__malloc_fork_lock_parent): Do not override malloc hooks and
9932         thread_arena.
9933         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9934         thread_arena.
9935         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9936         thread_arena instead of save_arena.
9937
9938 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9939
9940         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9941         (thread_atfork, thread_atfork_static): Remove.
9942         * sysdeps/mach/hurd/malloc-machine.h:
9943         (thread_atfork, thread_atfork_static): Remove.
9944
9945 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9946
9947         [BZ #19431]
9948         Run the malloc fork handler as late as possible to avoid deadlocks.
9949         * malloc/malloc-internal.h: New file.
9950         * malloc/malloc.c: Include it.
9951         * malloc/arena.c (ATFORK_MEM): Remove.
9952         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9953         Update comment.
9954         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9955         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9956         Remove outdated comment.
9957         (ptmalloc_init): Do not call thread_atfork.  Remove
9958         thread_atfork_static.
9959         * malloc/tst-malloc-fork-deadlock.c: New file.
9960         * Makefile (tests): Add tst-malloc-fork-deadlock.
9961         (tst-malloc-fork-deadlock): Link against libpthread.
9962         * manual/memory.texi (Aligned Memory Blocks): Update safety
9963         annotation comments.
9964         * sysdeps/nptl/fork.c (__libc_fork): Call
9965         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9966         __malloc_fork_unlock_child.
9967         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9968
9969 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9970
9971         [BZ #19613]
9972         Remove union wait.
9973         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9974         (w_stopsig, w_stopval): Remove.
9975         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9976         stat_loc argument.
9977         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9978         (__WAIT_STATUS_DEFN): Remove.
9979         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9980         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9981         (wait, wait3, wait4): Use int * for the stat_loc argument.
9982         * posix/wait.c (__wait): Likewise.
9983         * posix/wait3.c (__wait3): Likewise.
9984         * posix/wait4.c (__wait4): Likewise.
9985         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9986         (__WAIT_STATUS_DEFN): Remove.
9987         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9988         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9989         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9990         argument.
9991         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9992         * sysdeps/posix/wait3.c (__wait3): Likewise.
9993         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9994         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9995         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9996         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9997         stat_loc argument.
9998         * manual/process.texi (BSD Wait Functions): Remove union wait.
9999
10000 2016-04-13  Andreas Schwab  <schwab@suse.de>
10001
10002         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
10003         (test-extras): Add tst-tlsalign-vars.
10004         * math/Makefile: Wrap long lines.
10005         (libm-vec-test-wrappers): Define.
10006         (test-extras): Add $(libm-vec-test-wrappers).
10007         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
10008         * nss/Makefile (extra-test-objs): Add nss_test1.os.
10009         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
10010         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
10011         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
10012         (extra-test-objs): Add corresponding objects.
10013
10014 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
10015
10016         [BZ #19928]
10017         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
10018         New.
10019         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
10020         times of shared cache size.
10021         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
10022         (VMOVNT): New.
10023         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
10024         (VMOVNT): Likewise.
10025         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10026         (VMOVNT): Likewise.
10027         (VMOVU): Changed to movups for smaller code sizes.
10028         (VMOVA): Changed to movaps for smaller code sizes.
10029         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
10030         comments.
10031         (PREFETCH): New.
10032         (PREFETCH_SIZE): Likewise.
10033         (PREFETCHED_LOAD_SIZE): Likewise.
10034         (PREFETCH_ONE_SET): Likewise.
10035         Rewrite to use forward and backward loops, which move 4 vector
10036         registers at a time, to support overlapping addresses and use
10037         non temporal store if size is above the threshold and there is
10038         no overlap between destination and source.
10039
10040 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
10041
10042         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
10043         Include dl-vdso.
10044         * sysdeps/unix/sysv/linux/mips/Versions: Add
10045         __vdso_clock_gettime.
10046         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
10047         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
10048         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
10049         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
10050         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
10051         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
10052         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
10053         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10054         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10055
10056 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10057
10058         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
10059         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
10060         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
10061         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
10062         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
10063         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
10065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
10066         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
10067         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
10068         syscalls generation.
10069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10070         [__NR_pwrite64] (__NR_write): Remove define.
10071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10072         [__NR_pwrite64] (__NR_write): Remove define.
10073         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
10074         Remove define.
10075         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
10076         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
10077         Remove define.
10078         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
10079         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
10080         Linux implementation as base.
10081         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
10082
10083         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
10084         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
10085         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
10086         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
10087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
10088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
10089         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
10090         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
10091         syscall generation.
10092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10093         [__NR_pread64] (__NR_pread): Remove define.
10094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10095         [__NR_pread64] (__NR_pread): Likewise.
10096         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
10097         define.
10098         (__libc_pread): Use SYSCALL_LL macro on offset argument.
10099         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
10100         Remove define.
10101         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
10102         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
10103         Linux implementation as base.
10104         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
10105         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
10106         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10107
10108         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
10109         definition.
10110         (__ALIGNMENT_COUNT): Likewise.
10111         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
10112         (__ALIGNMENT_COUNT): Likewise.
10113         (SYSCALL_LL): New define.
10114         (SYSCALL_LL64): Likewise.
10115         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
10116         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
10117         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
10118         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
10119
10120         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10121         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
10122         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10123         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
10124         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10125         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
10126
10127 2016-04-11  Florian Weimer  <fweimer@redhat.com>
10128
10129         [BZ #19865]
10130         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
10131         original buffer before retry.
10132
10133 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10134
10135         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
10136         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
10137         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
10138         GLRO(dl_auxv) list.
10139         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
10140         including <ldsodefs.h>.
10141         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
10142
10143 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
10144
10145         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
10146         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
10147         $(CPPFLAGS).
10148
10149 2016-04-09  Khem Raj  <raj.khem@gmail.com>
10150
10151         [BZ #17950]
10152         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
10153         Add -mfpmath=387.
10154
10155 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
10156
10157         * sysdeps/i386/configure.ac: Change == to = when calling test.
10158         * sysdeps/x86_64/configure.ac: Likewise.
10159         * sysdeps/i386/configure: Regenerated.
10160         * sysdeps/x86_64/configure: Likewise.
10161
10162 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
10163
10164         [BZ #16137]
10165         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
10166         * benchtests/bench-strcoll.c (input_files): Likewise.
10167         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
10168         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
10169         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
10170
10171 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
10172
10173         [BZ #19929]
10174         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
10175         [__USE_XOPEN2K8 && !__USE_GNU].
10176         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
10177         variable.
10178
10179         [BZ #19925]
10180         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
10181         define if [!__USE_MISC && __USE_XOPEN2K].
10182         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
10183         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
10184         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
10185         Likewise.
10186         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
10187         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
10188         variable.
10189         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
10190
10191 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10192
10193         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
10194         (sysdep_routines): Add new strspn targets.
10195         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10196         (__libc_ifunc_impl_list): Add strspn.
10197         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
10198         New file.
10199         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
10200         Likewise.
10201         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
10202         Likewise.
10203         * sysdeps/powerpc/powerpc64/power8/strspn.S:
10204         Likewise.
10205
10206 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10207
10208         * misc/hsearch_r.c: Include <limits.h>.
10209
10210 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10211
10212         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
10213
10214 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10215
10216         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10217         (MEMCPY_SYMBOL): New.
10218         (MEMPCPY_SYMBOL): Likewise.
10219         (MEMMOVE_CHK_SYMBOL): Likewise.
10220         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
10221         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
10222         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
10223         Provide alias for memcpy in libc.a and ld.so.
10224
10225 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10226
10227         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10228         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
10229         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
10230         Disabled fro now.
10231         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
10232         symbols.  Properly check USE_MULTIARCH on __memset symbols.
10233
10234 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10235
10236         * benchtests/Makefile (string-benchset): Add memcpy-large,
10237         memmove-large and memset-large.
10238         * benchtests/bench-memcpy-large.c: New file.
10239         * benchtests/bench-memmove-large.c: Likewise.
10240         * benchtests/bench-memmove-large.c: Likewise.
10241         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
10242
10243 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10244
10245         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
10246         32-bit displacement to avoid long nop between instructions.
10247
10248 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10249
10250         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
10251         a comment on VMOVU and VMOVA.
10252
10253 2016-04-04  Florian Weimer  <fweimer@redhat.com>
10254
10255         [BZ #19633]
10256         Use specified locale for number formatting in strfmon_l.
10257         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
10258         (__nl_lookup_word): New inline functions.
10259         * include/printf.h (__print_fp_l): Declare.
10260         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
10261         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
10262         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
10263         (___printf_fp): New function.
10264         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
10265         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
10266         * stdlib/tst-strfmon_l.c (do_test): New test.
10267         * stdlib/Makefile (tests): Add kt.
10268         (LOCALES): Build additional locales.
10269         (tst-strfmon_l.out): Require locales.
10270
10271 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10272
10273         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
10274         if not in libc.
10275         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10276         Likewise.
10277         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
10278         Likewise.
10279         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10280         Likewise.
10281
10282 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10283
10284         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10285         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
10286         with unaligned_erms.
10287         (__memmove_erms): Skip if source == destination.
10288         (__memmove_unaligned_erms): Don't check source == destination
10289         first.
10290
10291 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10292
10293         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10294         bit_arch_Fast_Copy_Backward for Intel Core proessors.
10295
10296 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10297
10298         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
10299         * string/strspn.c (strspn): Likewise.
10300
10301 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10302
10303         * benchtests/bench-memset.c (do_test): Support 64-byte
10304         alignment.
10305         (test_main): Test 64-byte alignment.
10306
10307 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10308
10309         * benchtests/bench-memmove.c (test_main): Test 64-byte
10310         alignment.
10311
10312 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10313
10314         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
10315
10316 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10317
10318         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
10319         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
10320         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
10321
10322         * string/strpbrk.c (strpbrk): Rewrite function.
10323         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
10324         (__strpbrk_c2): Likewise.
10325         (__strpbrk_c3): Likewise.
10326         * string/string-inlines.c
10327         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
10328         Likewise.
10329         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
10330         Likewise.
10331
10332         * string/strspn.c (strcspn): Rewrite function.
10333         * string/bits/string2.h (strspn): Use __builtin_strcspn.
10334         (__strspn_c1): Remove inline function.
10335         (__strspn_c2): Likewise.
10336         (__strspn_c3): Likewise.
10337         * string/string-inlines.c
10338         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
10339         compatibility symbol.
10340         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
10341         Likewise.
10342         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
10343         Likewise.
10344         * string/string-inlines.c: Include generic version.
10345
10346 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
10347             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10348
10349         * string/Version (libc): Add GLIBC_2.24.
10350         * string/strcspn.c (strcspn): Rewrite function.
10351         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
10352         (__strcspn_c1): Remove inline function.
10353         (__strcspn_c2): Likewise.
10354         (__strcspn_c3): Likewise.
10355         * string/string-inline.c
10356         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
10357         compatibility symbol.
10358         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
10359         Likewise.
10360         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
10361         Likewise.
10362         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
10363
10364 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
10365
10366         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10367         Use ahi instead of aghi to adjust stack pointer.
10368
10369 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10370
10371         [BZ #19853]
10372         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
10373         TEST to take significant digits as second parameter.
10374         [TEST]: Redefine in terms of TEST_N taking 30
10375         significant digits.
10376         (do_test): Add test case to demonstrate precision
10377         failure in the ldbl-128ibm printf.
10378         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
10379         (__mpn_extract_long_double): Carry 7 extra intermediate
10380         bits of precision to aide computing difference when
10381         signs differ.
10382
10383 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10384
10385         [BZ #19881]
10386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10387         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
10388         memset-avx512-unaligned-erms.
10389         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10390         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
10391         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
10392         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
10393         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
10394         __memset_sse2_unaligned_erms, __memset_erms,
10395         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
10396         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
10397         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
10398         file.
10399         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10400         Likewise.
10401         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
10402         Likewise.
10403         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
10404         Likewise.
10405
10406 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10407
10408         [BZ #19776]
10409         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10410         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
10411         memmove-avx512-unaligned-erms.
10412         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10413         (__libc_ifunc_impl_list): Test
10414         __memmove_chk_avx512_unaligned_2,
10415         __memmove_chk_avx512_unaligned_erms,
10416         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
10417         __memmove_chk_sse2_unaligned_2,
10418         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
10419         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
10420         __memmove_avx512_unaligned_erms, __memmove_erms,
10421         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
10422         __memcpy_chk_avx512_unaligned_2,
10423         __memcpy_chk_avx512_unaligned_erms,
10424         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
10425         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
10426         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
10427         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
10428         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
10429         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
10430         __mempcpy_chk_avx512_unaligned_erms,
10431         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
10432         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
10433         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
10434         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
10435         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
10436         __mempcpy_erms.
10437         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
10438         file.
10439         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10440         Likwise.
10441         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
10442         Likwise.
10443         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10444         Likwise.
10445
10446 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10447
10448         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
10449         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
10450         (La_s390_64_regs): Likewise.
10451         (La_s390_32_retval): Append vector register lrv_v24.
10452         (La_s390_64_retval): Likeweise.
10453         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10454         Handle extended structs La_s390_32_regs and La_s390_32_retval.
10455         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10456         Handle extended structs La_s390_64_regs and La_s390_64_retval.
10457
10458 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10459
10460         [BZ #19916]
10461         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
10462         to create a non-vector/vector version for _dl_runtime_resolve and
10463         _dl_runtime_profile. Move implementation to ...
10464         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
10465         (_dl_runtime_resolve) Save and restore fpr/vrs.
10466         (_dl_runtime_profile) Save and restore vrs and fix some issues
10467         if _dl_call_pltexit is called.
10468         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10469         Choose the correct resolver function if running on a machine with vx.
10470         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
10471         to create a non-vector/vector version for _dl_runtime_resolve and
10472         _dl_runtime_profile. Move implementation to ...
10473         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
10474         (_dl_runtime_resolve) Save and restore fpr/vrs.
10475         (_dl_runtime_profile) Save and restore vrs and fix some issues
10476         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
10477         Choose the correct resolver function if running on a machine with vx.
10478
10479 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10480
10481         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
10482
10483 2016-03-31  Florian Weimer  <fweimer@redhat.com>
10484
10485         [BZ #19509]
10486         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
10487         skip_map != NULL.
10488         * elf/tst-dlsym-error.c: New file.
10489         * elf/Makefile (tests): Add tst-dlsym-error.
10490         (tst-dlsym-error): Link against libdl.
10491
10492 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
10493
10494         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10495         (__ASSUME_FUTIMESAT): Remove macro.
10496         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
10497
10498 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10499
10500         [BZ #19879]
10501         CVE-2016-3075
10502         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
10503         copy name.
10504
10505 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10506
10507         [BZ #19837]
10508         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
10509         error if parse_line fails.
10510
10511 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10512
10513         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
10514         (index_cpu_ERMS): Likewise.
10515         (reg_ERMS): Likewise.
10516
10517 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
10518
10519         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
10520         PER_LINUX_FDPIC): Add.
10521
10522 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10523
10524         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10525         memcpy-avx512-no-vzeroupper.
10526         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
10527         to ...
10528         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
10529         (MEMCPY): Don't define.
10530         (MEMCPY_CHK): Likewise.
10531         (MEMPCPY): Likewise.
10532         (MEMPCPY_CHK): Likewise.
10533         (MEMPCPY_CHK): Renamed to ...
10534         (__mempcpy_chk_avx512_no_vzeroupper): This.
10535         (MEMPCPY_CHK): Renamed to ...
10536         (__mempcpy_chk_avx512_no_vzeroupper): This.
10537         (MEMCPY_CHK): Renamed to ...
10538         (__memmove_chk_avx512_no_vzeroupper): This.
10539         (MEMCPY): Renamed to ...
10540         (__memmove_avx512_no_vzeroupper): This.
10541         (__memcpy_avx512_no_vzeroupper): New alias.
10542         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
10543
10544 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         [BZ #18858]
10547         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10548         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
10549         and mempcpy-avx512-no-vzeroupper.
10550         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10551         New.
10552         (MEMPCPY): Likewise.
10553         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10554         (MEMPCPY_CHK): New.
10555         (MEMPCPY): Likewise.
10556         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10557         (MEMPCPY): Likewise.
10558         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10559         (MEMPCPY): Likewise.
10560         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10561         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10562         Likewise.
10563         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10564         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10565
10566 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10567              Amit Pawar  <Amit.Pawar@amd.com>
10568
10569         [BZ #19583]
10570         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10571         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10572         processors.  Set Fast_Copy_Backward for AMD Excavator
10573         processors.
10574         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10575         New.
10576         (index_arch_Fast_Unaligned_Copy): Likewise.
10577         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10578         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10579
10580 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10581
10582         [BZ #19791]
10583         * resolv/res_send.c (close_and_return_error): New function.
10584         (send_dg): Initialize *resplen2 after reopen failure.  Call
10585         close_and_return_error for error returns.  On error paths without
10586         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10587         successful return.
10588
10589 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10590
10591         [BZ# 19860]
10592         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10593         zero if the compiler does not provide the AVX512F bit.
10594
10595 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10596
10597         [BZ #19848]
10598         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10599         from 8 to 4.
10600         (__ieee754_powl): Compare integer exponent against 4 not 8.
10601         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10602         from 8 to 4.
10603         (__ieee754_powl): Compare integer exponent against 4 not 8.
10604         * math/auto-libm-test-in: Add more tests of pow.
10605         * math/auto-libm-test-out: Regenerated.
10606         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10608
10609 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10610
10611         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10612         Make code unconditional.
10613         [!__NR_utimensat]: Remove conditional code.
10614         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10615         Make code unconditional.
10616         [!__NR_utimensat]: Remove conditional code.
10617         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10618         Make code unconditional.
10619         [!__NR_utimensat]: Remove conditional code.
10620
10621 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10622
10623         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10624         Make code unconditional.
10625
10626 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10627
10628         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10629         call-clobbered %eax on retry path.
10630         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10631
10632 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10633
10634         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10635         Don't set %rcx twice before "rep movsb".
10636
10637 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10638
10639         [BZ #19583]
10640         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10641         inline.  Check family before setting family, model and
10642         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10643         bits here.
10644         (init_cpu_features): Replace HAS_CPU_FEATURE and
10645         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10646         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10647         for Intel processors with usable AVX2.  Call get_common_indeces
10648         for other processors with family == NULL.
10649         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10650         (CPU_FEATURES_ARCH_P): Likewise.
10651         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10652         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10653
10654 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10655
10656         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10657         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10658         $(shared-thread-library) instead of hardcoding the path to libpthread.
10659
10660 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10661
10662         * sysdeps/unix/sysv/linux/kernel-features.h
10663         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10664         * sysdeps/unix/sysv/linux/getdents.c
10665         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10666         [!have_no_getdents64_defined]: Likewise.
10667         (__GETDENTS): Remove __have_no_getdents64 conditional.
10668
10669 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10670
10671         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10672         Remove macro.
10673         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10674         <kernel-features.h>.
10675         (signalfd) [__NR_signalfd4]: Make code unconditional.
10676         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10677
10678 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10679
10680         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10681         style.
10682
10683 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10684
10685         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10686         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10687         __pthread_unwind.
10688         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10689         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10690         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10691         (__condvar_cleanup1): Likewise.
10692
10693 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10694
10695         [BZ #19822]
10696         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10697         move it to the final $@ location.
10698
10699 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10700
10701         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10702         access where posix_spawn success and pid argument is null.
10703         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10704         success case.
10705
10706 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10707
10708         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10709
10710         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10711
10712         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10713         and __fcntl.
10714         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10715         __fcntl only.
10716         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10717         adding attribute_hidden to __open and __fcntl.
10718
10719         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10720         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10721         depend on libc-modules.h,
10722         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10723
10724 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10725
10726         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10727         Remove macro.
10728         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10729         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10730         entry.
10731
10732         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10733         Remove macro.
10734         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10735         include <kernel-features.h>.
10736         [!__ASSUME_FALLOCATE]: Remove conditional code.
10737         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10738
10739 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10740
10741         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10742         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10743         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10744         (_ZGVdN4v_cos_avx2): Likewise.
10745         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10746         (_ZGVdN4v_cos): Likewise.
10747         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10748         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10749         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10750         (_ZGVdN4v_exp_avx2): Likewise.
10751         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10752         (_ZGVdN4v_exp): Likewise.
10753         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10754         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10755         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10756         (_ZGVdN4v_log_avx2): Likewise.
10757         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10758         (_ZGVdN4v_log): Likewise.
10759         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10760         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10761         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10762         (_ZGVdN4vv_pow_avx2): Likewise.
10763         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10764         (_ZGVdN4vv_pow): Likewise.
10765         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10766         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10767         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10768         (_ZGVdN4v_sin_avx2): Likewise.
10769         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10770         (_ZGVdN4v_sin): Likewise.
10771         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10772         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10773         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10774         (_ZGVdN4vvv_sincos_avx2): Likewise.
10775         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10776         (_ZGVdN4vvv_sincos): Likewise.
10777         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10778         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10779         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10780         (_ZGVbN4v_cosf_sse4): Likewise.
10781         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10782         (_ZGVdN8v_cosf_avx2): Likewise.
10783         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10784         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10785         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10786         (_ZGVbN4v_expf_sse4): Likewise.
10787         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10788         (_ZGVdN8v_expf_avx2): Likewise.
10789         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10790         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10791         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10792         (_ZGVbN4v_logf_sse4): Likewise.
10793         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10794         (_ZGVdN8v_logf_avx2): Likewise.
10795         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10796         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10797         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10798         (_ZGVbN4vv_powf_sse4): Likewise.
10799         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10800         (_ZGVdN8vv_powf_avx2): Likewise.
10801         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10802         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10803         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10804         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10805         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10806         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10807         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10808         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10809         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10810         (_ZGVbN4v_sinf_sse4): Likewise.
10811         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10812         (_ZGVdN8v_sinf_avx2): Likewise.
10813         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10814         Use JUMPTARGET to call callee.
10815         (WRAPPER_IMPL_SSE2_ff): Likewise.
10816         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10817         (WRAPPER_IMPL_AVX): Likewise.
10818         (WRAPPER_IMPL_AVX_ff): Likewise.
10819         (WRAPPER_IMPL_AVX_fFF): Likewise.
10820         (WRAPPER_IMPL_AVX512): Likewise.
10821         (WRAPPER_IMPL_AVX512_ff): Likewise.
10822         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10823         Likewise.
10824         (WRAPPER_IMPL_SSE2_ff): Likewise.
10825         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10826         (WRAPPER_IMPL_AVX): Likewise.
10827         (WRAPPER_IMPL_AVX_ff): Likewise.
10828         (WRAPPER_IMPL_AVX_fFF): Likewise.
10829         (WRAPPER_IMPL_AVX512): Likewise.
10830         (WRAPPER_IMPL_AVX512_ff): Likewise.
10831         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10832
10833 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10834
10835         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10836         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10837         qualifier.
10838         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10839         internal_function qualifiers.
10840
10841 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10842
10843         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10844         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10845         * math/atest-exp.c (exp_mpn): Mark chk unused.
10846         * math/atest-exp2.c (exp_mpn): Likwise.
10847         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10848         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10849
10850 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10851
10852         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10853         Remove macro.
10854         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10855         <kernel-features.h>.
10856         [__NR_ppoll]: Make code unconditional.
10857         [!__ASSUME_PPOLL]: Remove conditional code.
10858
10859         * sysdeps/unix/sysv/linux/kernel-features.h
10860         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10861         (__ASSUME_ACCEPT4): Likewise.
10862         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10863         Define.
10864         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10865         Likewise.
10866         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10867         Likewise.
10868         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10869         Likewise.
10870         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10871         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10872         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10873         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10874         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10875         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10876         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10877         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10878         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10879         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10880         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10881         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10882         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10883         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10884         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10885         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10886         Likewise.
10887         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10888         Likewise.
10889         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10890         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10891         0x040300].
10892         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10893         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10894         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10895         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10896         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10897         0x030300].
10898         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10899         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10900         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10901         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10902         0x040300].
10903         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10904         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10905         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10906         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10907         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10908         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10909         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10910         0x030300].
10911         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10912         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10913         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10914         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10915         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10916         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10917         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10918         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10919         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10920         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10921         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10922         0x040300].
10923         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10924         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10925         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10926         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10927         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10928         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10929         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10930         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10931         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10932         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10933         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10934         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10935         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10936         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10937         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10938         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10939         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10940         Likewise.
10941         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10942         Likewise.
10943
10944 2016-03-15  Andreas Schwab  <schwab@suse.de>
10945
10946         [BZ #19257]
10947         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10948         statp->_u._ext.nscount as loop count.
10949
10950 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10951
10952         * math/test-signgam-finite-c99.c: Also #undef
10953         __LIBC_INTERNAL_MATH_INLINES.
10954         * math/test-signgam-main.c: Likewise.
10955
10956 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10959         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10960         (MADV_FREE): Likewise.
10961         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10962         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10963         EPOLLEXCLUSIVE.
10964
10965 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10966
10967         * timezone/README: Remove mention of checktab.awk. Mention wiki
10968         SharedSourceFiles.
10969
10970 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10971
10972         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10973         WUNTRACED.
10974
10975 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10976
10977         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10978         order to match the type of p when calling atomic_exchange_acq().
10979
10980 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10981
10982         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10983         cfi_offset calls.
10984         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10985         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10986         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10987         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10988         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10989
10990 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10991
10992         * timezone/checktab.awk: Removed.
10993
10994 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10995
10996         * manual/math.texi (Errors in Math Functions): Document relaxed
10997         accuracy goals for IBM long double.
10998         * math/libm-test.inc (test_exceptions): Always allow spurious
10999         "underflow" and "inexact" exceptions for IBM long double.
11000
11001 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11002
11003         [BZ #19762]
11004         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11005         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
11006         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
11007         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
11008         (bit_arch_*): This for feature array.
11009         (bit_*): Renamed to ...
11010         (bit_cpu_*): This for cpu array.
11011         (index_*): Renamed to ...
11012         (index_arch_*): This for feature array.
11013         (index_*): Renamed to ...
11014         (index_cpu_*): This for cpu array.
11015         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
11016         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
11017         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
11018         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
11019         bit_##name with index_cpu_##name and bit_cpu_##name.
11020         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
11021         bit_##name with index_arch_##name and bit_arch_##name.
11022
11023 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
11024
11025         [BZ #19792]
11026         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
11027         Terminate FDE before return label.
11028
11029 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
11030
11031         [BZ #19790]
11032         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
11033         (rintl): Define as macro.
11034         [USE_AS_NEARBYINTL] (__rintl): Likewise.
11035         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
11036         of fesetround.  Ensure results are evaluated before end of scope.
11037         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
11038         USE_AS_NEARBYINTL and include s_rintl.c.
11039         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
11040         Disable exception traps in new environment.
11041         (libc_feholdsetround_ppc_ctx): Likewise.
11042
11043 2016-03-08  Roland McGrath  <roland@hack.frob.com>
11044
11045         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
11046         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
11047         (tst_audit10_aux) [__AVX512F__]: ... here.
11048
11049 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
11050
11051         * include/sys/auxv.h: New file.
11052
11053 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
11054
11055         [BZ #19759]
11056         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
11057
11058 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11059
11060         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
11061         operand modifier.
11062         (feclearexcept): Likewise.
11063
11064 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11065
11066         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
11067         to reflect the entire 32-bit HWCAP.
11068         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
11069         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
11070
11071 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
11072
11073         [BZ #19783]
11074         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
11075         $(test-via-rtld-prefix).
11076         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
11077
11078 2016-03-08  Florian Weimer  <fweimer@redhat.com>
11079
11080         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
11081         union wait.  Report any non-zero exit status as error.
11082
11083 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11084
11085         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
11086         configured with --enable-hardcoded-path-in-tests.
11087
11088 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
11089
11090         [BZ #19677]
11091         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11092         (__ieee754_remainderl): Put zero low parts in canonical form.
11093         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
11094         file.  Based on
11095         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
11096         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
11097         with wrapper round test-fmodrem-ldbl-128ibm.c.
11098         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
11099         file.
11100         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
11101         Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
11103         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
11104
11105 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11106
11107         [BZ #19610]
11108         * elf/ldconfig.c (opt_link): Update comment.
11109         (options): Update help string for option -X.
11110         (search_dir): Unlink stale symbolic link only if updating symbolic
11111         links.
11112         * elf/tst-ldconfig-X.sh: New file.
11113         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
11114         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
11115
11116 2016-03-07  Andreas Schwab  <schwab@suse.de>
11117
11118         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
11119         needed arguments.
11120
11121 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
11122
11123         [BZ #15333]
11124         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
11125         to lstat64.
11126
11127 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11128
11129         * libio/filedoalloc.c (isatty): Remove.
11130         (local_isatty): Add comment.  Call __isatty directly.
11131         (_IO_file_doallocate): Update comment.  Assume _LIBC.
11132         * libio/wfiledoalloc.c (isatty): Remove.
11133         (_IO_wfile_doallocate): Update comment.
11134
11135 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11136
11137         [BZ #19269]
11138         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
11139         tst-audit4-aux.o.
11140         (tst-audit10): Depend on tst-audit10-aux.o.
11141         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
11142         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
11143         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
11144         instead of inline AVX code.
11145         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
11146         instead of inline AVX512 code.
11147         * sysdeps/x86_64/tst-audit4-aux.c: New file
11148         * sysdeps/x86_64/tst-audit10-aux.c: New file
11149
11150         [BZ #19648]
11151         * test-skeleton.c (main): Do not set RLIMIT_DATA.
11152
11153 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11154
11155         [BZ #14750]
11156         [BZ #10354]
11157         [BZ #18433]
11158         * include/sched.h (__clone): Add hidden prototype.
11159         (__clone2): Likewise.
11160         * include/unistd.h (__dup): Likewise.
11161         * posix/Makefile (tests): Add tst-spawn2.
11162         * posix/tst-spawn2.c: New file.
11163         * sysdeps/posix/dup.c (__dup): Add hidden definition.
11164         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
11165         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
11166         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
11167         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
11168         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
11169         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
11170         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
11171         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
11172         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
11173         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
11174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
11175         Likewise.
11176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11177         Likewise.
11178         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
11179         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
11180         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
11181         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
11182         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
11183         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
11184         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
11185         * sysdeps/unix/sysv/linux/nptl-signals.h
11186         (____nptl_is_internal_signal): New function.
11187         * sysdeps/unix/sysv/linux/spawni.c: New file.
11188
11189         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
11190         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
11191         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
11192         * posix/tst-execvp2.c (do_test): Likewise.
11193         * posix/tst-execvp3.c (do_test): Likewise.
11194         * posix/tst-execvp4.c (do_test): Likewise.
11195         * posix/tst-execvpe1.c: New file.
11196         * posix/tst-execvpe2.c: Likewise.
11197         * posix/tst-execvpe3.c: Likewise.
11198         * posix/tst-execvpe4.c: Likewise.
11199         * posix/tst-execvpe5.c: Likewise.
11200         * posix/tst-execvpe6.c: Likewise.
11201
11202         [BZ #19534]
11203         * posix/execl.c (execl): Remove dynamic memory allocation.
11204         * posix/execle.c (execle): Likewise.
11205         * posix/execlp.c (execlp): Likewise.
11206
11207 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11208
11209         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
11210         Replace .text with .text.avx512.
11211         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
11212         Likewise.
11213
11214 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
11215
11216         * sysdeps/generic/libnsl.abilist: New file.
11217         * sysdeps/generic/libutil.abilist: New file.
11218
11219 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11220
11221         [BZ #19762]
11222         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
11223         HAS_ARCH_FEATURE with Fast_Rep_String.
11224         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
11225         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
11226         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
11227         Likewise.
11228         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
11229         Likewise.
11230         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
11231         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
11232         Likewise.
11233         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
11234         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
11235         Likewise.
11236
11237 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11238
11239         [BZ #19745]
11240         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11241         with *%rax in call.
11242
11243 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11244
11245         [BZ #19745]
11246         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
11247         with *__libc_start_main@GOTPCREL(%rip) in call.
11248
11249 2016-03-04  Roland McGrath  <roland@hack.frob.com>
11250
11251         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
11252         inside conditional for nonempty $(CXX).
11253
11254         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
11255         nonempty.
11256
11257         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
11258         to test for empty $(CXX) rather than $(CXX) of "no".
11259
11260 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11261
11262         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
11263
11264 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
11265             H.J. Lu  <hongjiu.lu@intel.com>
11266
11267         [BZ #18880]
11268         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
11269         instead of Slow_BSF, and also check for Fast_Copy_Backward to
11270         enable __memcpy_ssse3_back.
11271
11272 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11273
11274         [BZ #19758]
11275         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11276         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
11277
11278 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11279
11280         [BZ #19490]
11281         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
11282         (__fentry__): Likewise.
11283
11284 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11285
11286         * gmon/Makefile (noprof): Add $(sysdep_noprof).
11287         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
11288
11289 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11290
11291         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
11292         __mcount_internal directly.
11293         (C_LABEL(__fentry__)): Likewise.
11294         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
11295         directly.
11296
11297 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11298
11299         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11300         (__start_context): Call __setcontext directly.
11301
11302 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
11303
11304         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11305         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11306         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
11307         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11308         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11309         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11310         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
11311         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11312         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11313         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
11314         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11315         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11316         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11317         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11318         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11319         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11320         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
11321         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11322         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11323         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11324         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
11325         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11326         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11327         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11328         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
11329         Remove conditional code.
11330         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11331         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
11332         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11333         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11334         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
11335         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11336         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11337         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11338         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11339         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11340         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11341         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11342
11343 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
11344
11345         * NEWS (2.23): Fix typo in bug 19048 text.
11346
11347 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
11348
11349         [BZ #14259]
11350         * Makeconfig: Rename msgcatdir to localedir.
11351         Rename inst_msgcatdir to inst_localedir.
11352         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
11353         * config.make.in: Add localedir.
11354         * elf/Makefile ($(objpfx)sotruss): Use localedir.
11355         (ldd-rewrite): Likewise.
11356         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
11357         (install-others): Use inst_localedir.
11358         (CPPFLAGS): Use localedir.
11359         * locale/Makefile (locale-CPPFLAGS): Likewise.
11360         * po/Makefile (mo-installed): Use inst_localedir.
11361
11362         [BZ #19575]
11363         * localedata/charmaps/GB18030: Update comments regarding PAU to
11364         non-PUA mappings.
11365
11366 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
11367
11368         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
11369         test for header.
11370         * sysdeps/unix/sysv/linux/configure: Regenerated.
11371         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
11372         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
11373         Remove conditional code.
11374         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
11375
11376         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
11377         Define to 3.2.0.
11378         (arch_minimum_kernel): Likewise.
11379         * sysdeps/unix/sysv/linux/configure: Regenerated.
11380         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
11381         Define to 2.6.32.
11382         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
11383         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
11384         (arch_minimum_kernel): Define to 2.6.32.
11385         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
11386         * README: Document Linux 3.2 requirement.
11387         * manual/install.texi (Linux): Document Linux 3.2 headers
11388         requirement.
11389         * INSTALL: Regenerated.
11390
11391 2016-02-24  Andreas Schwab  <schwab@suse.de>
11392
11393         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
11394         if !NO_LONG_DOUBLE.
11395
11396 2016-02-22  Roland McGrath  <roland@hack.frob.com>
11397
11398         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
11399         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
11400
11401 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
11402
11403         [BZ #19512]
11404         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
11405
11406 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11407
11408         * posix/tst-dir.c: Include libc-internal.h.
11409
11410 2016-02-20  Florian Weimer  <fweimer@redhat.com>
11411
11412         [BZ #19056]
11413         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
11414         * manual/filesys.texi (Reading/Closing Directory): Mention
11415         deprecaion.
11416         * posix/tst-dir.c (main): Disable deprecation warning in test.
11417
11418 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
11419
11420         [BZ #19679]
11421         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
11422         Renamed to ...
11423         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
11424         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11425         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
11426         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11427         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11428         * sysdeps/x86_64/dl-trampoline.h
11429         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11430         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11431
11432 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11433
11434         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
11435
11436 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11437
11438         * elf/elf.h (R_386_GOT32X): New.
11439         (R_386_NUM): Update.
11440         (R_X86_64_GOTPCRELX: New.
11441         (R_X86_64_REX_GOTPCRELX): New.
11442         (R_X86_64_NUM): Update.
11443
11444 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
11445
11446         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
11447
11448 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
11449
11450         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
11451         assign attr->stackaddr to it, and adjust it down when
11452         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
11453         [_STACK_GROWS_UP]: Delete assert.
11454         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
11455         Implement stack grows up logic.
11456         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
11457         stack grows up logic.
11458
11459 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11460
11461         * NEWS: Update with 2.24 template.
11462
11463 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11464
11465         [BZ #19678]
11466         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
11467         Ensure +0.0 is returned when taking the next value below the least
11468         positive value.
11469
11470 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11471
11472         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
11473         available.  Do not define NO_THREADS.
11474         * malloc/malloc.c: Do not check NO_THREADS.
11475         * malloc/arena.c: Likewise.
11476
11477 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11478
11479         * malloc/malloc.c (__libc_mallinfo): Update comment.
11480         (struct malloc_par): Remove max_total_mem member, it was always 0.
11481         (int_mallinfo): Store 0 into usmblks (no functional change).
11482         * malloc/hooks.c (struct malloc_state): Document that
11483         max_total_mem is always 0.
11484         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
11485         always 0.
11486         * manual/memory.texi (Statistics of Malloc): Likewise.
11487
11488 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11489
11490         * malloc/malloc.c (sysmalloc): Do not update arena_max.
11491         * malloc/arena.c (arena_max): Remove.
11492         (heap_trim, _int_new_arena): Do not update arena_max.
11493
11494 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11495
11496         * resolv/res_init.c (res_ninit): Update comment.
11497
11498 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11499
11500         [BZ #19505]
11501         * posix/spawn_int.h: Add headers and include guard.
11502         (__spawn_valid_fd): New function.
11503         * posix/spawn_faction_addopen.c
11504         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
11505         * posix/spawn_faction_addclose.c
11506         (posix_spawn_file_actions_addclose): Likewise.
11507         * posix/spawn_faction_adddup2.c
11508         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
11509         second file descriptor.
11510         * posix/spawn_valid_fd.c: New file.
11511         * posix/tst-posix_spawn-fd.c: New file.
11512         * posix/Makefile (routines): Add spawn_valid_fd.
11513         (tests): Add tst-posix_spawn-fd.
11514
11515 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11516
11517         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
11518         (do_test): Limit the number of arenas, so that we can use fewer
11519         outer threads.  Limit timeout to 3 seconds, in preparation for a
11520         larger TIMEOUT value.
11521
11522 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11523
11524         [BZ #19674]
11525         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
11526         sign in overflowing and underflowing results when overflow or
11527         underflow is detected early.  Include sign in result before rather
11528         than after scaling.
11529
11530         [BZ #19603]
11531         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11532         (__ieee754_remainderl): Adjust sign of integer version of low part
11533         when taking absolute value of high part.
11534         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11535         * math/libm-test.inc (remainder_test_data): Add another test.
11536         (remquo_test_data): Likewise.
11537
11538 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
11539
11540         [BZ #19602]
11541         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
11542         equal high parts and both low parts zero specially.
11543         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
11544         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
11545         Add test-fmodl-ldbl-128ibm.
11546
11547         [BZ #19595]
11548         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
11549         common logic for all cases of shifting subnormal results.  Do not
11550         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11551         exponent to ldbl_insert_mantissa in subnormal case.
11552
11553         [BZ #19594]
11554         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11555         on high and low parts then adjust result and use
11556         ldbl_canonicalize_int if needed.
11557
11558         [BZ #19593]
11559         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11560         on high part and __floor or __ceil on low part then use
11561         ldbl_canonicalize_int if needed.
11562
11563         [BZ #19592]
11564         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11565         high and low parts then use ldbl_canonicalize_int if needed.
11566
11567         [BZ #17899]
11568         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11569         New function.
11570         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11571         on high and low parts then use ldbl_canonicalize_int if needed.
11572
11573 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11574
11575         * configure: Regenerated.
11576
11577         * po/libc.pot: Regenerated.
11578
11579         * po/be.po: Updated translation.
11580         * po/bg.po: Likewise.
11581         * po/ca.po: Likewise.
11582         * po/cs.po: Likewise.
11583         * po/da.po: Likewise.
11584         * po/el.po: Likewise.
11585         * po/eo.po: Likewise.
11586         * po/es.po: Likewise.
11587         * po/fi.po: Likewise.
11588         * po/fr.po: Likewise.
11589         * po/gl.po: Likewise.
11590         * po/hr.po: Likewise.
11591         * po/hu.po: Likewise.
11592         * po/ia.po: Likewise.
11593         * po/id.po: Likewise.
11594         * po/it.po: Likewise.
11595         * po/ja.po: Likewise.
11596         * po/lt.po: Likewise.
11597         * po/nb.po: Likewise.
11598         * po/nl.po: Likewise.
11599         * po/pt_BR.po: Likewise.
11600         * po/rw.po: Likewise.
11601         * po/sk.po: Likewise.
11602         * po/sl.po: Likewise.
11603         * po/sv.po: Likewise.
11604         * po/tr.po: Likewise.
11605         * po/zh_CN.po: Likewise.
11606         * po/zh_TW.po: Likewise.
11607
11608         * version.h (RELEAES): Set to "development".
11609         (VERSION): Set to 2.23.90.
11610
11611         * version.h (RELEASE): Set to "stable".
11612         (VERSION): Set to 2.23.
11613         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11614
11615         * NEWS: Updated fixed bugs.
11616
11617 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11618             Wilco Dijkstra  <wdijkstr@arm.com>
11619
11620         [BZ #19462]
11621         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11622         (_STRING_INLINE_unaligned): This.
11623         * include/string.h: Include <string_private.h>.
11624         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11625         _STRING_INLINE_unaligned.
11626         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11627         (_STRING_INLINE_unaligned): New.
11628         * sysdeps/aarch64/string_private.h: New file.
11629         * sysdeps/generic/string_private.h: Likewise.
11630         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11631         * sysdeps/s390/string_private.h: Likewise.
11632         * sysdeps/x86/string_private.h: Likewise.
11633         * sysdeps/m68k/m680x0/m68020/bits/string.h
11634         (_STRING_ARCH_unaligned): Renamed to ...
11635         (_STRING_INLINE_unaligned): This.
11636         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11637         to ...
11638         (_STRING_INLINE_unaligned): This.
11639         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11640         to ...
11641         (_STRING_INLINE_unaligned): This.
11642         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11643         to ...
11644         (_STRING_INLINE_unaligned): This.
11645
11646 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11647             H.J. Lu  <hongjiu.lu@intel.com>
11648
11649         [BZ #19590]
11650         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11651         relocation.
11652
11653 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11654
11655         [BZ #18665]
11656         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11657         *herrno_p.
11658         (gaih_getanswer): Document functional behviour. Return tryagain
11659         if any result is tryagain.
11660         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11661         when freed.
11662         * resolv/res_send.c: Add copyright text.
11663         (__libc_res_nsend): Document that MAXPACKET is expected.
11664         (send_vc): Document. Remove buffer reuse.
11665         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11666         size of the buffer. Add Dprint for truncated UDP buffer.
11667
11668 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11669
11670         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11671         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11672         * INSTALL: Regenerate.
11673
11674 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11675             Jonathan Wakely  <jwakely@redhat.com>
11676             Carlos O'Donell  <carlos@redhat.com>
11677
11678         [BZ 19439]
11679         * math/Makefile (tests): Add test-math-isinff.
11680         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11681         * math/bits/mathcalls.h [__USE_MISC]: Use
11682         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11683         functions not in C++11 and which don't conflict e.g. isinff,
11684         isinfl etc.
11685         * math/test-math-isinff.cc: New file.
11686
11687 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11688
11689         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11690
11691 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11692
11693         [BZ #19529]
11694         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11695
11696 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11697
11698         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11699
11700 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11701
11702         [BZ #19550]
11703         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11704         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11705         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11706         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11707         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11708         New syscall entry.
11709         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11710         New syscall entry.
11711         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11712         syscall entry.
11713
11714 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11715
11716         [BZ #18240]
11717         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11718         unsigned int wraparound.
11719
11720 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11721
11722         [BZ #18240]
11723         * misc/bug18240.c: New test.
11724         * misc/Makefile (tests): Add it.
11725
11726 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11727             Joseph Myers  <joseph@codesourcery.com>
11728
11729         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11730         load in branch delay slot when less than a word of input left.
11731
11732 2016-01-27  Andreas Schwab  <schwab@suse.de>
11733
11734         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11735         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11736         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11737         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11738
11739 2016-01-26  David S. Miller  <davem@davemloft.net>
11740
11741         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11742
11743 2016-01-25  David S. Miller  <davem@davemloft.net>
11744
11745         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11746         __sqrtl_finite.
11747         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11748         instead using versioned_symbol.
11749         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11750         of entries.
11751
11752         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11753         __sqrtl_finite to GLIBC_2.23
11754
11755 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11756
11757         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11758
11759 2016-01-25  Andreas Schwab  <schwab@suse.de>
11760
11761         [BZ #17514]
11762         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11763         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11764         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11765         * nptl/tst-mutex-errorcheck.c: New file.
11766
11767 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11768
11769         [BZ #18560]
11770         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11771         (IPCOP_semop): Likewise.
11772         (IPCOP_semget): Likewise.
11773         (IPCOP_semctl): Likewise.
11774         (IPCOP_msgsnd): Likewise.
11775         (IPCOP_msgrcv): Likewise.
11776         (IPCOP_msgget): Likewise.
11777         (IPCOP_msgctl): Likewise.
11778         (IPCOP_shmat): Likewise.
11779         (IPCOP_shmdt): Likewise.
11780         (IPCOP_shmget): Likewise.
11781         (IPCOP_shmctl): Likewise.
11782
11783 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11784
11785         * string/tst-endian.c: Include <libc-internal.h>.
11786         (do_test): Ignore tautological-compare warnings around
11787         "htobeXX (beXXtoh (i)) != i" and
11788         "htoleXX (leXXtoh (i)) != i" if-statements.
11789
11790 2016-01-24  David S. Miller  <davem@davemloft.net>
11791
11792         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11793         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11794         alias.
11795         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11796         __sqrtl_finite.
11797
11798         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11799
11800 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11801
11802         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11803         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11804         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11805
11806 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11807
11808         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11809         (thread_func): Use new function to simplify barrier check.
11810         (do_test): Use new function to simplify checking barrier exit
11811         code, and actually join the child thread.
11812
11813 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11814
11815         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11816         semicolon.
11817         (__libc_tend): Likewise.
11818         (__libc_tabort): Likewise.
11819
11820 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11821
11822         * sysdeps/nios2/libm-test-ulps: Update.
11823         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11824         (__gtsf2): Likewise.
11825         (__unorddf2): Likewise.
11826         (__unordsf2): Likewise.
11827         (__ledf2): Likewise.
11828
11829 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11830
11831         * nis/nis_table.c (__follow_path): Disable diagnostic for
11832         uninitialized variable that is a false positive for gcc 4.7.
11833         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11834
11835 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11836
11837         * sysdeps/nacl/lowlevellock-futex.h
11838         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11839         Always evaluate PRIVATE argument.
11840
11841 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11842
11843         [BZ #19490]
11844         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11845         (pthread_cond_broadcast): Use ENTRY/END
11846         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11847         (pthread_cond_signal): Likewise.
11848         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11849         Likewise.
11850         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11851         Likewise.
11852         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11853         Likewise.
11854
11855 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11856
11857         * sysdeps/ieee754/dbl-64/s_finite.c
11858         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11859         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11860         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11861         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11862         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11863
11864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11865         (__gtsf2): Add as optional for libc.so.
11866         (__unordsf2): Likewise.
11867         (__signbit): Remove for libc.so.
11868         (__signbitl): Likewise.
11869
11870 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11871
11872         * iconvdata/bug-iconv11.c (test_ibm93x):
11873         Use %zu printf format specifier for size_t argument.
11874
11875 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11876
11877         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11878         already-recorded ulps.
11879         * sysdeps/arm/libm-test-ulps: Regenerated.
11880         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11881         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11882         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11883
11884 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11885             Paul Pluzhnikov  <ppluzhnikov@google.com>
11886
11887         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11888         assembler not supporting AVX-512.
11889
11890 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11891
11892         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11893
11894 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11895
11896         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11897         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11898
11899         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11900
11901         * sysdeps/arm/libm-test-ulps: Regenerated.
11902
11903 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11904
11905         [BZ #19451]
11906         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11907
11908 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11909
11910         [BZ #19486]
11911         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11912         * sysdeps/generic/fix-fp-int-convert-overflow.h
11913         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11914         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11915         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11916         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11917         Likewise.
11918         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11919         Avoid conversions to long int where inexact exceptions
11920         could be raised.
11921         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11922         Likewise.
11923         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11924         Avoid conversions to long long int where inexact exceptions
11925         could be raised.
11926         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11927         Likewise.
11928
11929 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11930
11931         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11932         * configure: Regenerated.
11933
11934 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11935
11936         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11937
11938 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11939
11940         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11941         outside of comment.
11942
11943 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11944
11945         * nptl/tst-barrier1.c: Add description on first line.
11946         * nptl/tst-barrier2.c: Likewise.
11947         * nptl/tst-barrier3.c: Likewise.
11948         * nptl/tst-barrier4.c: Likewise.
11949         * nptl/tst-barrier5.c: Likewise.
11950
11951 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11952
11953         [BZ #18868]
11954         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11955
11956 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11957
11958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11959         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11960         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11961         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11962         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11963         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11964         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11965         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11966         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11967         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11968         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11969
11970 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11971
11972         [BZ #13065]
11973         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11974         new implementation.
11975         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11976         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11977         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11978         (BARRIER_IN_THRESHOLD): New macro.
11979         * nptl/pthread_barrierattr_setpshared.c
11980         (pthread_barrierattr_setpshared): Clean up.
11981         * nptl/tst-barrier4.c: Correct comment.
11982         * nptl/tst-barrier5.c: New file.
11983         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11984         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11985         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11986         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11987         * nptl/lowlevelbarrier.sym: Remove.
11988         * nptl/DESIGN-barrier.txt: Remove.
11989         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11990         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11991         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11992         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11993         error.
11994         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11995         implementation.
11996
11997 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11998
11999         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
12000         (do_child): Mask SIGRTMIN while thr is running.
12001
12002 2016-01-15  Martin Sebor  <msebor@redhat.com>
12003
12004         [BZ #19432]
12005         * iconvdata/Makefile: Add bug-iconv11.
12006         * iconvdata/bug-iconv11.c: New test.
12007         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
12008         * iconvdata/ibm933.c: Same.
12009         * iconvdata/ibm935.c: Same.
12010         * iconvdata/ibm937.c: Same.
12011         * iconvdata/ibm939.c: Same.
12012
12013 2016-01-15  Martin Sebor  <msebor@redhat.com>
12014
12015         [BZ #19443]
12016         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
12017         [DEBUG] (_ufc_set_bits): Declare used.
12018         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
12019         [DEBUG] (print_all): Declare used.
12020         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
12021         operands of the ternary ?: expression to target type.
12022         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
12023         calling the undeclared abort.
12024         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
12025
12026 2016-01-15  Martin Sebor  <msebor@redhat.com>
12027
12028         [BZ #18755]
12029         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
12030         warnings.
12031         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
12032         (__gai_create_helper_thread): Same.
12033         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
12034         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
12035         to suppress -Wmaybe-uninitialized warnings.
12036
12037 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
12038
12039         [BZ #19465]
12040         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
12041         inside if.
12042         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12043         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12044         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12045
12046 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
12047
12048         [BZ #19466]
12049         * time/tst-mktime2.c (time_t_max): Removed.
12050         (time_t_min): Likewise.
12051         (TYPE_SIGNED): New.
12052         (TYPE_MINIMUM): Likewise.
12053         (TYPE_MAXIMUM): Likewise.
12054         (TIME_T_MIN): Likewise.
12055         (TIME_T_MAX): Likewise.
12056         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
12057         and TIME_T_MIN.
12058         (do_test): Likewise.
12059
12060 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
12061
12062         [BZ #19467]
12063         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
12064         index_Fast_Unaligned_Load flag for Excavator family CPUs.
12065
12066 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
12067
12068         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
12069
12070 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
12071
12072         * benchtests/Makefile (PYTHON): Define.
12073         (bench-func): Use $(PYTHON) to run python scripts.
12074         ($(objpfx)bench-%.c): Likewise.
12075
12076 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
12077
12078         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
12079         leading slash when `file_name' is "/".
12080
12081 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
12082
12083         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
12084         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
12085         Likewise.
12086         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
12087         Likewise.
12088         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
12089         Likewise.
12090         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
12091         enum constant and macro.
12092         (PTRACE_SETSIGMASK): Likewise.
12093         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12094         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12095         (PTRACE_GETSIGMASK): Likewise.
12096         (PTRACE_SETSIGMASK): Likewise.
12097         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12098         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
12099         Likewise.
12100         (PTRACE_SETSIGMASK): Likewise.
12101         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12102         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12103         (PTRACE_GETSIGMASK): Likewise.
12104         (PTRACE_SETSIGMASK): Likewise.
12105         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12106         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
12107         Likewise.
12108         (PTRACE_SETSIGMASK): Likewise.
12109         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12110         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
12111         Likewise.
12112         (PTRACE_SETSIGMASK): Likewise.
12113         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12114         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
12115         Likewise.
12116         (PTRACE_SETSIGMASK): Likewise.
12117         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12118
12119 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
12120             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12121
12122         [BZ #19439]
12123         * math/bits/mathcalls.h
12124         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
12125         prototype.
12126         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
12127
12128 2016-01-11  Andreas Schwab  <schwab@suse.de>
12129
12130         [BZ #19253]
12131         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
12132         cache when TZDEFRULES was used.
12133         * time/tst-tzname.c: New file.
12134         * time/Makefile (test): Add tst-tzname.
12135         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
12136         * timezone/Makefile (test-zones): Add $(posixrules-file).
12137         ($(testdata)/$(posixrules-file)): New rule.
12138
12139 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         Fix doc quoting problems with Texinfo 5
12142         Without this change, in the info file output, Texinfo 5 quotes code
12143         in text with undirected single quotes 'like this' and generates
12144         code examples that with many PDF readers cannot be cut out of PDFs
12145         and pasted into code.
12146         * manual/libc.texinfo: Configure the libc manual like the GNU
12147         Emacs manual, by using @documentencoding and setting
12148         txicodequoteundirected and txicodequotebacktick.  This way,
12149         Texinfo 5 quotes code in text with directed single quotes ‘like
12150         this’ and produces examples that can be cut out of PDFs.  This
12151         change causes Texinfo 5 to generate info files that contain UTF-8
12152         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
12153         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
12154
12155 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12156
12157         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
12158         __libc_tabort, __libc_tend): New wrappers that enforce compiler
12159         barriers to their respective compiler built-ins.
12160         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
12161         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
12162         * sysdeps/powerpc/sysdep.h: Likewise.
12163         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
12164         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
12165         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
12166
12167 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
12168
12169         * scripts/config.guess: Revert previous shebang change.
12170         * scripts/config.sub: Likewise.
12171         * scripts/mkinstalldirs: Likewise.
12172
12173 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12174
12175         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
12176         PPC_FEATURE2_HAS_IEEE128.
12177         * sysdeps/powerpc/dl-procinfo.c:
12178         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
12179
12180 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
12181
12182         [BZ #19415]
12183         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
12184         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
12185         (_dl_lookup_address): Rewrite using function resolver trampoline.
12186         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
12187         two bits in address.
12188
12189 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
12190
12191         * longlong.h: Change !__SHMEDIA__ to
12192         (!defined (__SHMEDIA__) || !__SHMEDIA__).
12193         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
12194
12195 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
12196             Joseph Myers  <joseph@codesourcery.com>
12197             Mark Shinwell  <shinwell@codesourcery.com>
12198             Andrew Stubbs  <ams@codesourcery.com>
12199             Rich Felker <dalias@libc.org>
12200
12201         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
12202
12203 2016-01-07  Richard Henderson  <rth@redhat.com>
12204
12205         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
12206
12207 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
12208
12209         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
12210         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
12211         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12212         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12213         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
12214
12215 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
12216             Joseph Myers  <joseph@codesourcery.com>
12217
12218         * timezone/private.h: Update from tzcode 2015g.
12219         * timezone/tzfile.h: Likewise.
12220         * timezone/tzselect.ksh: Likewise.
12221         * timezone/zdump.c: Likewise.
12222         * timezone/zic.c: Likewise.
12223         * timezone/ialloc.c: Remove file.
12224         * timezone/scheck.c: Likewise.
12225         * timezone/Makefile (extra-objs): Remove variable.
12226         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
12227         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
12228         -Wno-maybe-uninitialized.
12229         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
12230         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
12231         (CFLAGS-ialloc.c): Remove variable.
12232         (CFLAGS-scheck.c): Likewise.
12233         * timezone/README: Update list of files from tzcode.
12234
12235 2016-01-07  Khem Raj  <raj.khem@gmail.com>
12236
12237         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
12238         instead of __fxprintf when _LIBC is undefined.
12239
12240 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
12241
12242         * catgets/test-gencat.sh: Remove space after shebang.
12243         * conform/GlibcConform.pm: Likewise.
12244         * conform/check-header-lists.sh: Likewise.
12245         * conform/conformtest.pl: Likewise.
12246         * conform/linknamespace.pl: Likewise.
12247         * conform/list-header-symbols.pl: Likewise.
12248         * debug/catchsegv.sh: Likewise.
12249         * elf/genrtldtbl.awk: Likewise.
12250         * elf/tst-pathopt.sh: Likewise.
12251         * elf/tst-rtld-load-self.sh: Likewise.
12252         * grp/tst_fgetgrent.sh: Likewise.
12253         * iconvdata/gen-8bit-gap-1.sh: Likewise.
12254         * iconvdata/gen-8bit-gap.sh: Likewise.
12255         * iconvdata/gen-8bit.sh: Likewise.
12256         * iconvdata/run-iconv-test.sh: Likewise.
12257         * intl/tst-gettext.sh: Likewise.
12258         * intl/tst-gettext2.sh: Likewise.
12259         * intl/tst-gettext4.sh: Likewise.
12260         * intl/tst-gettext6.sh: Likewise.
12261         * intl/tst-translit.sh: Likewise.
12262         * io/ftwtest-sh: Likewise.
12263         * libio/test-freopen.sh: Likewise.
12264         * locale/gen-translit.pl: Likewise.
12265         * malloc/tst-mtrace.sh: Likewise.
12266         * manual/check-safety.sh: Likewise.
12267         * manual/libc-texinfo.sh: Likewise.
12268         * manual/tsort.awk: Likewise.
12269         * manual/xtract-typefun.awk: Likewise.
12270         * nptl/tst-cancel-wrappers.sh: Likewise.
12271         * nptl/tst-tls6.sh: Likewise.
12272         * posix/globtest.sh: Likewise.
12273         * posix/tst-getconf.sh: Likewise.
12274         * posix/wordexp-tst.sh: Likewise.
12275         * scripts/check-c++-types.sh: Likewise.
12276         * scripts/check-local-headers.sh: Likewise.
12277         * scripts/config.guess: Likewise.
12278         * scripts/config.sub: Likewise.
12279         * scripts/cpp: Likewise.
12280         * scripts/cross-test-ssh.sh: Likewise.
12281         * scripts/documented.sh: Likewise.
12282         * scripts/evaluate-test.sh: Likewise.
12283         * scripts/gen-libc-abis: Likewise.
12284         * scripts/gen-sorted.awk: Likewise.
12285         * scripts/list-fixed-bugs.py: Likewise.
12286         * scripts/merge-test-results.sh: Likewise.
12287         * scripts/mkinstalldirs: Likewise.
12288         * scripts/rellns-sh: Likewise.
12289         * scripts/test-installation.pl: Likewise.
12290         * scripts/update-copyrights: Likewise.
12291         * stdio-common/tst-printf.sh: Likewise.
12292         * stdio-common/tst-unbputc.sh: Likewise.
12293         * stdlib/tst-fmtmsg.sh: Likewise.
12294         * stdlib/tst-setcontext3.sh: Likewise.
12295         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
12296         * sysdeps/unix/make-syscalls.sh: Likewise.
12297
12298 2016-01-06  John David Anglin  <dave.anglin@bell.net>
12299
12300         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
12301         asm stw with atomic_exchange_rel.  Add explanatory comment.
12302         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12303         Likewise.
12304
12305 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12306
12307         [BZ #19122]
12308         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
12309         * sysdeps/generic/dl-unistd.h: New file.
12310         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
12311
12312 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12313
12314          [BZ #19122]
12315          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
12316          * sysdeps/generic/dl-mman.h: New file.
12317          * sysdeps/mach/hurd/dl-mman.h: Likewise.
12318
12319 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
12320
12321         * manual/texinfo.tex: Update to version 2016-01-04.21 with
12322         trailing whitespace removed.
12323         * scripts/config.guess: Update to version 2016-01-01.
12324         * scripts/config.sub: Update to version 2016-01-01.
12325         * scripts/move-if-change: Update from gnulib.
12326
12327 2016-01-04  Anton Blanchard  <anton@samba.org>
12328
12329         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
12330         for array indices.
12331         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
12332
12333 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
12334
12335         * NEWS: Update copyright dates.
12336         * catgets/gencat.c (print_version): Likewise.
12337         * csu/version.c (banner): Likewise.
12338         * debug/catchsegv.sh: Likewise.
12339         * debug/pcprofiledump.c (print_version): Likewise.
12340         * debug/xtrace.sh (do_version): Likewise.
12341         * elf/ldconfig.c (print_version): Likewise.
12342         * elf/ldd.bash.in: Likewise.
12343         * elf/pldd.c (print_version): Likewise.
12344         * elf/sotruss.sh: Likewise.
12345         * elf/sprof.c (print_version): Likewise.
12346         * iconv/iconv_prog.c (print_version): Likewise.
12347         * iconv/iconvconfig.c (print_version): Likewise.
12348         * locale/programs/locale.c (print_version): Likewise.
12349         * locale/programs/localedef.c (print_version): Likewise.
12350         * login/programs/pt_chown.c (print_version): Likewise.
12351         * malloc/memusage.sh (do_version): Likewise.
12352         * malloc/memusagestat.c (print_version): Likewise.
12353         * malloc/mtrace.pl: Likewise.
12354         * manual/libc.texinfo: Likewise.
12355         * nptl/version.c (banner): Likewise.
12356         * nscd/nscd.c (print_version): Likewise.
12357         * nss/getent.c (print_version): Likewise.
12358         * nss/makedb.c (print_version): Likewise.
12359         * posix/getconf.c (main): Likewise.
12360         * scripts/test-installation.pl: Likewise.
12361         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12362
12363         * All files with FSF copyright notices: Update copyright dates
12364         using scripts/update-copyrights.
12365         * intl/plural.c: Regenerated.
12366         * locale/programs/charmap-kw.h: Likewise.
12367         * locale/programs/locfile-kw.h: Likewise.
12368
12369 2016-01-02  Helge Deller  <deller@gmx.de>
12370
12371         [BZ #19285]
12372         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
12373         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
12374         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
12375         (MADV_xxK_PAGES): Remove.
12376
12377 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
12378
12379         [BZ #15421]
12380         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
12381         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
12382         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
12383         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
12384
12385 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
12386
12387         [BZ #19408]
12388         * sysdeps/unix/sysv/linux/personality.c: New file.
12389         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
12390         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
12391         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
12392         (sysdep_routines): Add personality.
12393         (tests): Add tst-personality.
12394         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
12395         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
12396         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
12397         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
12398         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
12399         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
12400         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
12401         Likewise.
12402         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
12403         Likewise.
12404         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
12405         Likewise.
12406         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
12407         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
12408         Likewise.
12409
12410 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12411
12412         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
12413         (PATH_ARM_SYSTYPE): Remove.
12414         (PATH_CPUINFO): Likewise.
12415         (IO_BASE_FOOTBRIDGE): Likewise.
12416         (IO_SHIFT_FOOTBRIDGE): Likewise.
12417         (struct platform): Likewise.
12418         (init_iosys): Remove compatibility code for 2.4 kernels.
12419         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
12420
12421 2015-12-29  Florian Weimer  <fweimer@redhat.com>
12422
12423         * malloc/tst-malloc-thread-fail.c: New file.
12424         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
12425         (tst-malloc-thread-fail): Link against libpthread.
12426
12427 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
12428
12429         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
12430         (get_parser): New function.
12431         (main): New function.
12432
12433 2015-12-29  Rob Wu  <rob@robwu.nl>
12434
12435         [BZ #19369]
12436         * resolv/res_init.c (__res_vinit): Reset defdname before use.
12437
12438 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
12439
12440         [BZ #19270]
12441         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12442
12443 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
12444
12445         [BZ #15421]
12446         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
12447
12448 2015-12-23  Torvald Riegel  <triegel@redhat.com>
12449
12450         [BZ #13690]
12451         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
12452         after releasing it.
12453         (__lll_robust_unlock): Likewise.
12454         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12455         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
12456         (lll_robust_unlock): Likewise.
12457         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
12458         Prevent warnings in callers.
12459
12460 2015-12-23  Florian Weimer  <fweimer@redhat.com>
12461
12462         * malloc/arena.c (list_lock): Update comment.
12463
12464 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12465
12466         * sysdeps/powerpc/hwcapinfo.c: Export symbol
12467         __parse_hwcap_and_convert_at_platform to libc.a.
12468
12469 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12470
12471         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
12472         platform and feature support for POWER9.
12473         * sysdeps/powerpc/dl-procinfo.h: Likewise.
12474         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
12475         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
12476         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
12477         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
12478         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12479         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12480         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12481
12482 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12483
12484         Harmonize generic stdio-lock support with nptl
12485
12486         This fixes build when _IO_funlockfile is a macro, fixes build where
12487         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
12488         stack unwind.
12489
12490         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
12491         _IO_release_lock ): Use cleanup attribute on new
12492         _IO_acquire_lock_file variable instead of assuming that
12493         _IO_release_lock will be called.
12494         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
12495         _IO_acquire_lock_needs_exceptions_enabled.
12496         (_IO_acquire_lock_clear_flags2): New macro.
12497
12498 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12499
12500         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12501
12502 2015-12-21  Florian Weimer  <fweimer@redhat.com>
12503
12504         [BZ #19182]
12505         * malloc/arena.c (list_lock): Document lock ordering requirements.
12506         (free_list_lock): New lock.
12507         (ptmalloc_lock_all): Comment on free_list_lock.
12508         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
12509         (detach_arena): Update comment.  free_list_lock is now needed.
12510         (_int_new_arena): Use free_list_lock around detach_arena call.
12511         Acquire arena lock after list_lock.  Add comment, including FIXME
12512         about incorrect synchronization.
12513         (get_free_list): Switch to free_list_lock.
12514         (reused_arena): Acquire free_list_lock around detach_arena call
12515         and attached threads counter update.  Add two FIXMEs about
12516         incorrect synchronization.
12517         (arena_thread_freeres): Switch to free_list_lock.
12518         * malloc/malloc.c (struct malloc_state): Update comments to
12519         mention free_list_lock.
12520
12521 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
12522
12523         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
12524         Remove functions.
12525         (sloww, sloww1): Accept argument to offset quadrant.
12526         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
12527         quadrant.
12528         (__sin, __cos): Consolidate common code into new functions.
12529         (reduce_sincos_1, do_sincos_1): New functions.
12530         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12531
12532         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
12533         code to new functions.
12534         (reduce_sincos_2, do_sincos_2): New functions.
12535         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12536
12537         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
12538         common code for sincos.
12539         (__cos) [!IN_SINCOS]: Likewise.
12540         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
12541         New function.
12542         (__sincos): Use it.
12543
12544 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
12545
12546         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
12547         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
12548         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
12549
12550 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12551
12552         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12553         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12554         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12555         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12556         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12557         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12558         index_Prefer_No_VZEROUPPER): New feature.
12559         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12560         Prefer_No_VZEROUPPER for Knights Landing.
12561
12562 015-12-18  Torvald Riegel  <triegel@redhat.com>
12563
12564         * math/atest-exp2.c (mp_exp_m1): Remove.
12565
12566 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12567
12568         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12569         syscalls.
12570         (__SYSCALL0): New macro.
12571         (__SYSCALL1): Likewise.
12572         (__SYSCALL2): Likewise.
12573         (__SYSCALL3): Likewise.
12574         (__SYSCALL4): Likewise.
12575         (__SYSCALL5): Likewise.
12576         (__SYSCALL6): Likewise.
12577         (__SYSCALL_CONCAT_X): Likewise.
12578         (__SYSCALL_CONCAT): Likewise.
12579         (__SYSCALL_DIST): Likewise.
12580         (__SYSCALL_CALL): Likewise.
12581
12582 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12583
12584         [BZ #19363]
12585         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12586
12587 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12588
12589         [BZ #19375]
12590         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12591         negative subnormals.
12592
12593 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12594
12595         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12596         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12597         (INTERNAL_SYSCALL_NCS): Use it.
12598         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12599
12600 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12601
12602         [BZ #19243]
12603         * malloc/arena.c (get_free_list): Remove assert and adjust
12604         reference count handling.  Add comment about reused_arena
12605         interaction.
12606         (reused_arena): Add comments abount get_free_list interaction.
12607         * malloc/tst-malloc-thread-exit.c: New file.
12608         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12609         (tst-malloc-thread-exit): Link against libpthread.
12610
12611 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12612
12613         [BZ #19367]
12614         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12615         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12616         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12617         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12618         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12619
12620 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12621
12622         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12623         Silvermont optimizations for Knights Landing.
12624
12625 2015-12-15  Andreas Schwab  <schwab@suse.de>
12626
12627         [BZ #17197]
12628         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12629         immediately after emitting SI.
12630         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12631         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12632         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12633         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12634         * iconvdata/bug-iconv10.c: New file.
12635         * iconvdata/Makefile (tests): Add bug-iconv10.
12636         ($(objpfx)bug-iconv10.out): New rule.
12637
12638 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12639
12640         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12641         aliasing violation.
12642
12643 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12644
12645         [BZ #18472]
12646         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12647         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12648         conditionals for them.
12649         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12650         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12651         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12652         sys/kdaemon.h.
12653         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12654         compat-only syscall, obsoleted in glibc 2.23.
12655         (create_module): Likewise.
12656         (get_kernel_syms): Likewise.
12657         (query_module): Likewise.
12658         (uselib): Likewise.
12659         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12660
12661 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12662
12663         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12664         <linux/version.h>.
12665         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12666         conditional code.
12667         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12668         and ioshift_name initialization.
12669
12670 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12671
12672         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12673         Fix indentation.
12674
12675 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12676
12677         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12678
12679 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12680
12681         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12682
12683 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12684             Jakub Wilk  <jwilk@debian.org>
12685
12686         [BZ #19347]
12687         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12688         to change the group of the device to the tty group.
12689
12690 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12691
12692         Split large string section; add truncation advice
12693         * manual/examples/strncat.c: Remove.
12694         This example was misleading, as the code would have undefined
12695         behavior if "hello" was longer than SIZE.  Anyway, the manual
12696         shouldn't encourage strncpy+strncat for this sort of thing.
12697         * manual/string.texi (Copying Strings and Arrays): Split into
12698         three sections Copying Strings and Arrays, Concatenating Strings,
12699         and Truncating Strings, as this section was way too long.  All
12700         cross-referenced changed.  Add advice about string-truncation
12701         functions.  Remove misleading strncat example.
12702
12703 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12704
12705         * manual/nss.texi (NSS Modules Interface): Document
12706         NSS_STATUS_NOTFOUND and SUCCESS.
12707
12708 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12709
12710         [BZ 18568]
12711         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12712         201505L, for Unicode 8.
12713
12714 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12715
12716         * locale/C-translit.h: Regenerate.
12717
12718 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12719
12720         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12721         and U+0153.
12722
12723 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12724
12725         [BZ #19351]
12726         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12727         expanding log(1+z), compare z rather than its square with epsilon
12728         to determine when to avoid evaluating the expansion.
12729
12730         [BZ #19350]
12731         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12732         Increase overflow threshold.
12733
12734         [BZ #19349]
12735         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12736         when small.
12737
12738         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12739         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12740         New macro.
12741         [__LINUX_KERNEL_VERSION >= 0x040300]
12742         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12743         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12744         Likewise.
12745         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12746         Likewise.
12747         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12748         Likewise.
12749         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12750         Likewise.
12751         [__LINUX_KERNEL_VERSION >= 0x040300]
12752         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12753         [__LINUX_KERNEL_VERSION >= 0x040300]
12754         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12755         [__LINUX_KERNEL_VERSION >= 0x040300]
12756         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12757         [__LINUX_KERNEL_VERSION >= 0x040300]
12758         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12759         [__LINUX_KERNEL_VERSION >= 0x040300]
12760         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12761         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12762         Likewise.
12763         [__LINUX_KERNEL_VERSION >= 0x040300]
12764         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12765         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12766         Likewise.
12767         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12768         Likewise.
12769         [__LINUX_KERNEL_VERSION >= 0x040300]
12770         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12771         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12772         Likewise.
12773         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12774         Likewise.
12775         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12776         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12777         Likewise.
12778         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12779         Likewise.
12780         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12781         Likewise.
12782         [__LINUX_KERNEL_VERSION >= 0x040300]
12783         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12784         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12785         Likewise.
12786         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12787         Likewise.
12788         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12789         Likewise.
12790         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12791         Likewise.
12792         [__LINUX_KERNEL_VERSION >= 0x040300]
12793         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12794         [__LINUX_KERNEL_VERSION >= 0x040300]
12795         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12796         [__LINUX_KERNEL_VERSION >= 0x040300]
12797         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12798         [__LINUX_KERNEL_VERSION >= 0x040300]
12799         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12800         [__LINUX_KERNEL_VERSION >= 0x040300]
12801         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12802         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12803         Likewise.
12804         [__LINUX_KERNEL_VERSION >= 0x040300]
12805         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12806         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12807         Likewise.
12808         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12809         Likewise.
12810         [__LINUX_KERNEL_VERSION >= 0x040300]
12811         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12812         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12813         Likewise.
12814         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12815         Likewise.
12816         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12817         (__ASSUME_SOCKET_SYSCALL): Likewise.
12818         (__ASSUME_BIND_SYSCALL): Likewise.
12819         (__ASSUME_CONNECT_SYSCALL): Likewise.
12820         (__ASSUME_LISTEN_SYSCALL): Likewise.
12821         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12822         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12823         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12824         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12825         (__ASSUME_SEND_SYSCALL): Likewise.
12826         (__ASSUME_SENDTO_SYSCALL): Likewise.
12827         (__ASSUME_RECV_SYSCALL): Likewise.
12828         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12829         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12830         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12831         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12832         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12833         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12834         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12835         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12836         Likewise.
12837         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12838         Likewise.
12839         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12840         Likewise.
12841         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12842         Likewise.
12843         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12844         Likewise.
12845         [__LINUX_KERNEL_VERSION >= 0x020625]
12846         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12847         [__LINUX_KERNEL_VERSION >= 0x020625]
12848         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12849         [__LINUX_KERNEL_VERSION >= 0x020625]
12850         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12851         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12852         Likewise.
12853         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12854         Likewise.
12855         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12856         Likewise.
12857         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12858         Likewise.
12859         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12860         Likewise.
12861         [__LINUX_KERNEL_VERSION >= 0x020625]
12862         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12863         [__LINUX_KERNEL_VERSION >= 0x020625]
12864         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12865         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12866         Likewise.
12867         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12868         Likewise.
12869
12870 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12871
12872         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12873         record the current if the current ABI and CPU support the FP64
12874         extension.
12875         (has-modd-spreg): Define to record the current if the current ABI and
12876         CPU support 32-bit floating point values in odd FPU registers.
12877         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12878         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12879         $(has-modd-spreg) equals yes.
12880         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12881         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12882         $(has-modd-spreg) equal yes.
12883
12884 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12885
12886         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12887         basename.
12888
12889 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12890
12891         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12892         (bench-string): ... here.
12893         (bench): Add bench-string.
12894         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12895         to *-benchset to reflect what they are.
12896         (benchset): Adjust.
12897
12898         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12899         cos-inputs.
12900
12901 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12902
12903         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12904         __attribute__ ((__simd__)) for vector math function declarations.
12905
12906 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12907
12908         Fix typo in strncat, wcsncat manual entries
12909         * manual/string.texi (Copying and Concatenation): Fix typos in
12910         sample implementations of strncat and wcsncat, by having them use
12911         the old value of the destination length, not the new one.
12912
12913 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12914
12915         [BZ #16961]
12916         [BZ #16962]
12917         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12918         string on the stack for strtod.
12919         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12920         a string on the stack for strtof.
12921         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12922         constructing a string on the stack for strtold.
12923         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12924         __strtold_nan to GLIBC_PRIVATE.
12925         * math/test-nan-overflow.c: New file.
12926         * math/test-nan-payload.c: Likewise.
12927         * math/Makefile (tests): Add test-nan-overflow and
12928         test-nan-payload.
12929
12930 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12931
12932         Consistency about byte vs character in string.texi
12933         * manual/string.texi (String and Array Utilities):
12934         Distinguish more carefully among bytes, multibyte characters,
12935         and wide characters.  Use "byte" when talking about C 'char',
12936         to distinguish it more clearly from multibyte characters.
12937         Say "wide character" or "multibyte character" instead of
12938         "character", when a wide or multibyte character is intended.
12939         Similarly for "multibyte string" versus "string".
12940         Define these terms more carefully.
12941
12942 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12943
12944         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12945         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12946         Likewise.
12947         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12948         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12949         * sysdeps/sh/math_private.h: New file.
12950         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12951         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12952         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12953         long double function name.
12954         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12955         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12956         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12957         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12958         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12960         Remove __finitel, __isinfl, and __isnanl.
12961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12962         Likewise.
12963         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12964         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12965         Remove __finitel.
12966         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12967         Likewise.
12968         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12969
12970 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12971
12972         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12973         installed libmvec_nonshared.a.
12974
12975 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12976
12977         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12978         (sysdep_routines): Likewise.
12979         (sysdep-rtld-routines): Likewise.
12980         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12981         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12982         * sysdeps/powerpc/Versions: Added new
12983         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12984         * sysdeps/powerpc/hwcapinfo.c: New file.
12985         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12986         and parse hwcap, hwcap2 and platform number information.
12987         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12988         to store HWCAP+HWCAP2 and platform number.
12989         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12990         for HWCAP+HWCAP2 and platform number in the TCB.
12991         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12992         the HWCAP, HWCAP2 and platform number in the TCB.
12993         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12994         (TLS_INIT_TP): Included calls to add the hwcap and
12995         at_platform values in the TCB in TP initialization.
12996         (TLS_DEFINE_INIT_TP): Likewise.
12997         (THREAD_GET_HWCAP): New macro.
12998         (THREAD_SET_HWCAP): Likewise.
12999         (THREAD_GET_AT_PLATFORM): Likewise.
13000         (THREAD_SET_AT_PLATFORM): Likewise.
13001         * sysdeps/powerpc/powerpc32/dl-machine.h:
13002         (dl_platform_init): New function that calls
13003         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
13004         powerpc32.
13005         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
13006         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
13007         this functionality, static linking case.
13008         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
13009         linking case.
13010         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
13011         __parse_hwcap_and_convert_at_platform for the static linking case.
13012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
13013         Included the new __parse_hwcap_and_convert_at_platform symbol in the
13014         ABI list for GLIBC 2.23.
13015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
13016         Likewise.
13017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
13018         Likewise.
13019
13020 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
13021
13022         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
13023         * configure: Regenerate.
13024         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
13025         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
13026
13027 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
13028
13029         * iconvdata/ibm930.c: Add comment explaining encoding uses.
13030         * iconvdata/ibm933.c: Likewise.
13031         * iconvdata/ibm935.c: Likewise.
13032         * iconvdata/ibm937.c: Likewise.
13033         * iconvdata/ibm939.c: Likewise.
13034
13035 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13036
13037         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
13038         pthread_join.
13039         * nptl/tst-cancel21.c (tf): Likewise.
13040
13041 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13042
13043         [BZ #19313]
13044         * bits/typesizes.h (__CPU_MASK_TYPE): New.
13045         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
13046         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
13047         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
13048         Likewise.
13049         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
13050         Likewise.
13051         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
13052         Likewise.
13053         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
13054         Likewise.
13055         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
13056         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
13057         unsigned long int with __CPU_MASK_TYPE.
13058
13059 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13060
13061         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13062
13063 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
13064
13065         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
13066         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
13067         t512.x.
13068         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
13069
13070 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
13071
13072         [BZ #19214]
13073         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
13074         argument to return extended model.  Update family and model
13075         with extended family and model when family == 0x0f.
13076         (init_cpu_features): Updated.
13077
13078 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13079
13080         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
13081         signed off_t, so 32bit bigger than 2GiB values are fine actually.
13082
13083         * sysdeps/mach/hurd/mmap64.c: New file.
13084
13085 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
13086
13087         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
13088         rights for its main user thread in NEWTASK.
13089
13090 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
13091
13092         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
13093         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
13094
13095 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
13096
13097         [BZ #14259]
13098         * Makeconfig: Rename localedir to complocaledir.
13099         Rename inst_localedir to inst_complocaledir.
13100         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
13101         * config.make.in: Use complocaledir and libc_cv_complocaledir.
13102         * configure.ac: Use libc_cv_complocaledir.
13103         * configure: Regenerate.
13104         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
13105         -DCOMPLOCALEDIR.
13106         * locale/findlocale.c: Use COMPLOCALEDIR.
13107         * locale/loadarchive.c: Likewise.
13108         * locale/programs/locale.c: Likewise.
13109         * locale/programs/localedef.c: Likewise.
13110         * locale/programs/locarchive.c: Likewise.
13111         * localedata/Makefile: Use inst_complocaledir.
13112         * sysdeps/gnu/configure: Regenerate.
13113         * sysdeps/hppa/configure: Regenerate.
13114         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
13115         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
13117         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
13118         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
13119         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
13120         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
13121
13122 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
13123
13124         [BZ #19058]
13125         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
13126         AS_NEEDED.
13127         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
13128         workaround.
13129         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
13130         libmvec-static-only-routines): Added new file.
13131         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
13132
13133 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13134
13135         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
13136         of interrupted RPC instead of restoring it.
13137
13138         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
13139         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
13140         libc_hidden_def.
13141         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
13142         into initialized data instead of common. Define rtld_hidden_data_def.
13143         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
13144         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
13145         libc_hidden_def.
13146         (if_freenameindex): Add libc_hidden_weak.
13147         (if_nameindex): Add libc_hidden_weak.
13148         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
13149         __open64.
13150         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
13151         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
13152         * sysdeps/mach/nanosleep.c: Include <time.h>
13153         (__nanosleep): Rename to __libc_nanosleep.
13154         (__nanosleep): Add weak_alias.
13155         (nanosleep): Update alias.
13156
13157 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
13158
13159         * stdlib/strtod_nan.c: New file.
13160         * stdlib/strtod_nan_double.h: Likewise.
13161         * stdlib/strtod_nan_float.h: Likewise.
13162         * stdlib/strtod_nan_main.c: Likewise.
13163         * stdlib/strtod_nan_narrow.h: Likewise.
13164         * stdlib/strtod_nan_wide.h: Likewise.
13165         * stdlib/strtof_nan.c: Likewise.
13166         * stdlib/strtold_nan.c: Likewise.
13167         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
13168         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
13169         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
13170         * wcsmbs/wcstod_nan.c: Likewise.
13171         * wcsmbs/wcstof_nan.c: Likewise.
13172         * wcsmbs/wcstold_nan.c: Likewise.
13173         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
13174         strtold_nan.
13175         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
13176         wcstof_nan.
13177         * include/stdlib.h (__strtof_nan): Declare and use
13178         libc_hidden_proto.
13179         (__strtod_nan): Likewise.
13180         (__strtold_nan): Likewise.
13181         (__wcstof_nan): Likewise.
13182         (__wcstod_nan): Likewise.
13183         (__wcstold_nan): Likewise.
13184         * include/wchar.h (____wcstoull_l_internal): Declare.
13185         * stdlib/strtod_l.c: Do not include <ieee754.h>.
13186         (____strtoull_l_internal): Remove declaration.
13187         (STRTOF_NAN): Define macro.
13188         (SET_MANTISSA): Remove macro.
13189         (STRTOULL): Likewise.
13190         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
13191         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
13192         (STRTOF_NAN): Define macro.
13193         (SET_MANTISSA): Remove macro.
13194         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
13195         (SET_MANTISSA): Remove macro.
13196         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
13197         macro.
13198         (SET_MANTISSA): Remove macro.
13199         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
13200         macro.
13201         (SET_MANTISSA): Remove macro.
13202         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
13203         (SET_MANTISSA): Remove macro.
13204         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
13205         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
13206         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
13207
13208         [BZ #19266]
13209         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
13210         upper case and lower case letters inside NAN(), not using TOLOWER.
13211         * stdlib/tst-strtod-nan-locale-main.c: New file.
13212         * stdlib/tst-strtod-nan-locale.c: Likewise.
13213         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
13214         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
13215         Depend on $(gen-locales).
13216         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
13217         * wcsmbs/tst-wcstod-nan-locale.c: New file.
13218         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
13219         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
13220         Depend on $(gen-locales).
13221         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
13222
13223 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
13224
13225         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
13226
13227         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
13228         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
13229         __finitel, __isinfl, and __isnanl.
13230         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
13231         Likewise.
13232         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
13234         __finitel.
13235         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13236         Likewise.
13237         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13238
13239 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13240
13241         * malloc/memusage.c (me): Remove redundant getenv call.
13242
13243 2015-10-24  Florian Weimer  <fweimer@redhat.com>
13244
13245         [BZ #19143]
13246         [BZ #19164]
13247         * nptl/check-cpuset.h: Remove.
13248         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
13249         Remove CPU set size check.
13250         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
13251         Likewise.
13252         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
13253         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
13254         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
13255         (__pthread_setaffinity_new): Remove CPU set size check.
13256         * sysdeps/unix/sysv/linux/sched_setaffinity.c
13257         (__kernel_cpumask_size): Remove.
13258         (__sched_setaffinity_new): Remove CPU set size check.
13259         * manual/threads.texi (Default Thread Attributes): Remove stale
13260         reference to check_cpuset_attr, determine_cpumask_size in comment.
13261         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
13262         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
13263         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
13264         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
13265         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
13266         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
13267         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
13268         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
13269         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
13270         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
13271         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
13272         skeleton test file.
13273         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
13274         tst-affinity-pid.
13275
13276 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13277
13278         * scripts/update-abilist.sh: New file.
13279         * Makefile (+subdir_targets): Add subdir_update-all-abi.
13280         * Makerules (update-all-abi-%, update-all-abi)
13281         (subdir_update-all-abi): New targets.
13282         * elf/Makefile (update-all-abi): New target.
13283
13284 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13285
13286         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
13287         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
13288         (__libc_lock_define_initialized): Use it.
13289         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
13290         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
13291         * malloc/malloc.c (main_arena): Likewise.
13292         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13293         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13294
13295 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13298         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
13299         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13300         (PTRACE_O_MASK): Update value.
13301         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
13302         New value in enum __ptrace_setoptions.
13303         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13304         (PTRACE_O_MASK): Update value.
13305         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13306         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13307         (PTRACE_O_MASK): Update value.
13308         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13309         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13310         (PTRACE_O_MASK): Update value.
13311         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13312         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13313         (PTRACE_O_MASK): Update value.
13314         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
13315         New value in enum __ptrace_setoptions.
13316         (PTRACE_O_MASK): Update value.
13317         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
13318         New value in enum __ptrace_setoptions.
13319         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13320         (PTRACE_O_MASK): Update value.
13321
13322         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
13323         New macro.
13324         (PACKET_AUXDATA): Likewise.
13325         (PACKET_ORIGDEV): Likewise.
13326         (PACKET_VERSION): Likewise.
13327         (PACKET_HDRLEN): Likewise.
13328         (PACKET_RESERVE): Likewise.
13329         (PACKET_TX_RING): Likewise.
13330         (PACKET_LOSS): Likewise.
13331         (PACKET_VNET_HDR): Likewise.
13332         (PACKET_TX_TIMESTAMP): Likewise.
13333         (PACKET_TIMESTAMP): Likewise.
13334         (PACKET_FANOUT): Likewise.
13335         (PACKET_TX_HAS_OFF): Likewise.
13336         (PACKET_QDISC_BYPASS): Likewise.
13337         (PACKET_ROLLOVER_STATS): Likewise.
13338         (PACKET_FANOUT_DATA): Likewise.
13339         (PACKET_MR_UNICAST): Likewise.
13340
13341         [BZ #19242]
13342         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
13343         (TOUPPER): Likewise.
13344         * stdlib/tst-strtol-locale-main.c: New file.
13345         * stdlib/tst-strtol-locale.c: Likewise.
13346         * stdlib/Makefile (tests): Add tst-strtol-locale.
13347         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
13348         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
13349         Depend on $(gen-locales).
13350         * wcsmbs/tst-wcstol-locale.c: New file.
13351         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
13352         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
13353         tr_TR.ISO-8859-9.
13354         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
13355         Depend on $(gen-locales).
13356
13357 2015-11-20  Roland McGrath  <roland@hack.frob.com>
13358
13359         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
13360         __glibc_likely instead of __builtin_expect.  After falling back to
13361         dyncode_create in a non-ET_DYN case, use the allocate_code_data
13362         system interface to register the code pages as occupied.
13363
13364 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
13365
13366         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13367         [!ARM_MATH_PRIVATE_H].
13368         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
13369         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13370         [!HPPA_MATH_PRIVATE_H].
13371         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
13372         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
13373         to [!I386_MATH_PRIVATE_H].
13374         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
13375         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
13376         Change guard to [!M68K_MATH_PRIVATE_H].
13377         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
13378         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
13379         guard to [!MICROBLAZE_MATH_PRIVATE_H].
13380         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
13381         macro.
13382         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13383         [!MIPS_MATH_PRIVATE_H].
13384         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
13385         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13386         [!NIO2_MATH_PRIVATE_H].
13387         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
13388         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13389         [!TILE_MATH_PRIVATE_H].
13390         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
13391
13392         [BZ #15421]
13393         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
13394         initialize with 0 and define as weak alias of __signgam.
13395         * include/math.h [!_ISOMAC] (__signgam): Declare.
13396         * math/Makefile (libm-calls): Add w_lgamma_compat.
13397         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
13398         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
13399         test-signgam-ullong-init.
13400         (tests-static): Add test-signgam-uchar-static,
13401         test-signgam-uchar-init-static, test-signgam-uint-static,
13402         test-signgam-uint-init-static, test-signgam-ullong-static and
13403         test-signgam-ullong-init-static.
13404         (CFLAGS-test-signgam-uchar.c): New variable.
13405         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13406         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13407         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13408         (CFLAGS-test-signgam-uint.c): Likewise.
13409         (CFLAGS-test-signgam-uint-init.c): Likewise.
13410         (CFLAGS-test-signgam-uint-static.c): Likewise.
13411         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13412         (CFLAGS-test-signgam-ullong.c): Likewise.
13413         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13414         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13415         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13416         * math/Versions (libm): Add GLIBC_2.23.
13417         * math/lgamma-compat.h: New file.
13418         * math/test-signgam-main.c: Likewise.
13419         * math/test-signgam-uchar-init-static.c: Likewise.
13420         * math/test-signgam-uchar-init.c: Likewise.
13421         * math/test-signgam-uchar-static.c: Likewise.
13422         * math/test-signgam-uchar.c: Likewise.
13423         * math/test-signgam-uint-init-static.c: Likewise.
13424         * math/test-signgam-uint-init.c: Likewise.
13425         * math/test-signgam-uint-static.c: Likewise.
13426         * math/test-signgam-uint.c: Likewise.
13427         * math/test-signgam-ullong-init-static.c: Likewise.
13428         * math/test-signgam-ullong-init.c: Likewise.
13429         * math/test-signgam-ullong-static.c: Likewise.
13430         * math/test-signgam-ullong.c: Likewise.
13431         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
13432         wrapper of w_lgamma_main.c.
13433         * math/w_lgamma_compat.c: New file.
13434         * math/w_lgamma_compatf.c: Likewise.
13435         * math/w_lgamma_compatl.c: Likewise.
13436         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
13437         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13438         defining compatibility symbols.
13439         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
13440         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
13441         wrapper of w_lgammaf_main.c.
13442         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
13443         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13444         defining compatibility symbols.
13445         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
13446         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
13447         wrapper of w_lgammal_main.c.
13448         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
13449         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13450         defining compatibility symbols.
13451         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
13452         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
13453         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
13454         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
13455         <lgamma-compat.h>.
13456         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
13457         (__ieee754_gamma): Define as alias.
13458         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
13459         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
13460         <lgamma-compat.h>.
13461         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
13462         (__ieee754_gammaf): Define as alias.
13463         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
13464         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
13465         <lgamma-compat.h>.
13466         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
13467         (__ieee754_gammal): Define as alias.
13468         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
13469         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
13470         <math/w_lgamma_compat.c>.
13471         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
13472         Define as alias of __lgamma_compat and use in defining lgammal.
13473         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
13474         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
13475         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
13476         (USE_AS_COMPAT): New macro.
13477         (LGAMMA_OLD_VER): Undefine and redefine.
13478         (lgammal): Do not define here.
13479         (gammal): Only define here if [GAMMA_ALIAS].
13480         * conform/linknamespace.pl (@whitelist): Remove signgam.
13481         * sysdeps/nacl/libm.abilist: Update.
13482         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13483         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13484         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13485         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13486         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13487         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13488         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13489         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13490         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13491         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13492         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13493         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13495         Likewise.
13496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13497         Likewise.
13498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13499         Likewise.
13500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13501         Likewise.
13502         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13503         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13504         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13505         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13506         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13508         Likewise.
13509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13510         Likewise.
13511         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13512         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13513         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13514
13515 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13516
13517         [BZ #16364]
13518         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
13519         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
13520
13521 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13522
13523         * sysdeps/s390/fpu/bits/mathinline.h:
13524         Use __asm__ [__volatile__] instead of asm [volatile].
13525         * sysdeps/s390/abort-instr.h: Likewise.
13526         * sysdeps/s390/atomic-machine.h: Likewise.
13527         * sysdeps/s390/bits/string.h: Likewise.
13528         * sysdeps/s390/dl-tls.h: Likewise.
13529         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13530         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13531         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13532         * sysdeps/s390/fpu/fesetround.c: Likewise.
13533         * sysdeps/s390/fpu/fpu_control.h: Likewise.
13534         * sysdeps/s390/fpu/s_fma.c: Likewise.
13535         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
13536         * sysdeps/s390/memusage.h: Likewise.
13537         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
13538         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
13539         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
13540         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
13541         * sysdeps/s390/nptl/tls.h: Likewise.
13542         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
13543         * sysdeps/s390/s390-32/backtrace.c: Likewise.
13544         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13545         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13546         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13547         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13548         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
13549         * sysdeps/s390/s390-64/backtrace.c: Likewise.
13550         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13551         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13552         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13553         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13554         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13555         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13556         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13557         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13558         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13559         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13560         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13561         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13562         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13563         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13564         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13565
13566 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13567             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13568
13569         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13570         Add lwarx hint, and use macro for acquire instruction.
13571         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13572         Likewise.
13573         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13574         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13575         update to use new atomic macros.
13576
13577 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13578
13579         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13580         (__lll_trylock_elision): Fix setting of adapt_count.
13581         * sysdeps/unix/sysv/linux/powerpc/htm.h
13582         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13583         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13584         (_ABORT_SYSCALL): Renumber, and clarify definition.
13585         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13586
13587 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13588
13589         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13590         after system headers to prevent MIN/MAX redefinition.  Define
13591         HAVE_ALLOCA to preserve builtin alloca usage.
13592
13593 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13594
13595         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13596         static and don't set or restore rounding.
13597         (__cos)[IN_SINCOS]: Likewise.
13598         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13599         (__sincos): Set and restore rounding mode.  Remove check for infinite
13600         or NaN input.
13601
13602         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13603
13604         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13605         as used.
13606
13607 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13608
13609         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13610
13611 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13612
13613         * config.make.in (have-glob-dat-reloc): New.
13614         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13615         target supports GLOB_DAT relocaton. AC_SUBST.
13616         * configure: Regenerated.
13617         * elf/Makefile (tests): Add tst-prelink.
13618         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13619         (tst-prelink-ENV): New.
13620         ($(objpfx)tst-prelink-conflict.out): Likewise.
13621         ($(objpfx)tst-prelink-cmp.out): Likewise.
13622         * sysdeps/x86/tst-prelink.c: Moved to ...
13623         * elf/tst-prelink.c: Here.
13624         * sysdeps/x86/tst-prelink.exp: Moved to ...
13625         * elf/tst-prelink.exp: Here.
13626         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13627         (tst-prelink-ENV): Removed.
13628         ($(objpfx)tst-prelink-conflict.out): Likewise.
13629         ($(objpfx)tst-prelink-cmp.out): Likewise.
13630         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13631
13632 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13633
13634         [BZ #14551]
13635         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13636         (__mpn_construct_long_double): If high part overflows to infinity,
13637         set errno and recompute overflowed result of the correct sign.
13638         * sysdeps/ieee754/ldbl-128ibm/Makefile
13639         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13640         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13641         $(libm).
13642         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13643
13644 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13645
13646         [BZ #15479]
13647         [BZ #19238]
13648         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13649         floating-point state after first operation on input.  Restore full
13650         state rather than just rounding mode.
13651         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13652         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13653         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13654
13655         [BZ #19235]
13656         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13657         add 0.5 to integer arguments.
13658         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13659         Likewise.
13660         (.LC2): New object.
13661
13662 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13663
13664         * scripts/pylintrc (reports): Set to no.
13665
13666 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13667
13668         * elf/dl-load.c (open_verify): Take new argument FD.
13669         Skip __open call if passed FD is not -1.
13670         (_dl_map_object, open_path): Update callers.
13671         * elf/dl-sysdep-open.h: New file.
13672         * elf/dl-load.c: Include it.
13673         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13674         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13675         * sysdeps/nacl/dl-sysdep-open.h: New file.
13676         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13677         from libc to rtld.
13678
13679 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13680
13681         [BZ #19228]
13682         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13683         and restore full floating-point state.
13684         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13685         Likewise.
13686         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13687         Likewise.
13688         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13689         Likewise.
13690         * math/test-nearbyint-except-2.c: New file.
13691         * math/Makefile (tests): Add test-nearbyint-except-2.
13692
13693 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13694
13695         [BZ #19178]
13696         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13697         (tst-prelink-ENV): New.
13698         ($(objpfx)tst-prelink-conflict.out): Likewise.
13699         ($(objpfx)tst-prelink-cmp.out): Likewise.
13700         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13701         * sysdeps/x86/tst-prelink.c: New file.
13702         * sysdeps/x86/tst-prelink.exp: Likewise.
13703
13704 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13705
13706         * math/auto-libm-test-in: Add another test of pow.
13707         * math/auto-libm-test-out: Regenerated.
13708         * math/libm-test.inc (pow_test_data): Add another test.
13709
13710 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13711
13712         [BZ #19219]
13713         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13714         weak_alias to nearbyintl.
13715
13716 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13717
13718         * sysdeps/aarch64/bits/string.h: New file.
13719         (_STRING_ARCH_unaligned): Define.
13720
13721 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13722
13723         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13724         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13725         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13726         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13728
13729 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13730
13731         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13732         for original name of the DSO.  Add it to the name list of the DSO
13733         if it is actually given.
13734         (_dl_map_object): Keep track of whether an audit module rewrote
13735         the file name.  If yes, pass the original name to
13736         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13737         debugging is enabled, log the change of the file name.
13738         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13739         _dl_map_object_from_fd.
13740         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13741         * elf/tst-audit11.c: New file
13742         * elf/tst-auditmod11.c: New file.
13743         * elf/tst-audit11mod1.c: New file.
13744         * elf/tst-audit11mod2.c: New file.
13745         * elf/tst-audit11mod2.map: New file.
13746         * elf/tst-audit12.c: New file
13747         * elf/tst-auditmod12.c: New file.
13748         * elf/tst-audit12mod1.c: New file.
13749         * elf/tst-audit12mod2.c: New file.
13750         * elf/tst-audit12mod2.map: New file.
13751         * elf/tst-audit12mod3.c: New file.
13752
13753 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13754
13755         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13756         Don't create weak aliases,
13757         because versioned symbols are created later.
13758         * sysdeps/s390/s390-32/setjmp.S
13759         (setjmp, _setjmp): Remove weak and rename to an unique name
13760         in SHARED case due to existing versioned symbols.
13761         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13762         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13763         (getcontext): Create weak alias only in non SHARED case.
13764         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13765
13766 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13767
13768         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13769         (__ASSUME_*_SYSCALL) Define new macros.
13770         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13771         Remove socketcall syscalls.
13772         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13773         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13774         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13775         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13776         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13777         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13778
13779 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13780
13781         [BZ #12926]
13782         Terminate process on invalid netlink response.
13783         * sysdeps/unix/sysv/linux/netlinkaccess.h
13784         (__netlink_assert_response): Declare.
13785         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13786         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13787         (sysdep_routines): Add netlink_assert_response.
13788         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13789         __netlink_assert_response.
13790         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13791         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13792         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13793         __netlink_assert_response.
13794
13795 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13796
13797         [BZ #19178]
13798         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13799         (RTYPE_CLASS_PLT): Likewise.
13800         (RTYPE_CLASS_COPY): Likewise.
13801         (RTYPE_CLASS_TLS): Likewise.
13802         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13803         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13804         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13805         DL_DEBUG_PRELINK.
13806
13807 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13808
13809         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13810         calls with argument -0.5.
13811         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13812
13813         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13814         (libc_cv_z_nodlopen): Likewise.
13815         (libc_cv_z_initfirst): Likewise.
13816         * configure: Regenerated.
13817
13818 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13819
13820         Simplify abilist format to be line-based.
13821         * scripts/abilist.awk: Collect descriptors in the descs variable.
13822         (emit): Write descs variable and sort it
13823         externally, with sort.
13824         * sysdeps/**/*.abilist: Convert to new format.
13825
13826 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13827
13828         [BZ #11460]
13829         * io/Makefile (routines): Add fts64.
13830         (tests): Add tst-fts and tst-fts-lfs.
13831         (CFLAGS-fts64.c): New.
13832         * io/Versions (GLIBC_2.23): New.
13833         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13834         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13835         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13836         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13837         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13838         (FTSENT64): Likewise.
13839         (fts64_children): Likewise.
13840         (fts64_close): Likewise.
13841         (fts64_open): Likewise.
13842         (fts64_read): Likewise.
13843         (fts64_set): Likewise.
13844         * io/fts64.c: New file.
13845         * io/tst-fts.c: New test.
13846         * io/tst-fts-lfs.c: Likewise.
13847         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13848         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13849         fts64_set.
13850         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13851         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13852         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13853         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13854         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13855         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13856         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13857         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13858         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13859         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13860         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13861         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13862         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13864         Likewise.
13865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13866         Likewise.
13867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13869         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13870         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13871         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13872         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13873         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13876         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13877         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13878         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13879         * sysdeps/wordsize-64/fts.c: New file.
13880         * sysdeps/wordsize-64/fts64.c: Likewise.
13881         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13882         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13883         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13884         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13885
13886 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * math/libm-test.inc (NON_FINITE): New macro.
13889         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13890         * math/gen-libm-test.pl (show_exceptions): Add argument
13891         $non_finite.
13892         (parse_args): Update call to show_exceptions.
13893         * math/test-math-finite.h: New file.
13894         * math/test-math-no-finite.h: Likewise.
13895         * math/test-double-finite.c: Likewise.
13896         * math/test-float-finite.c: Likewise.
13897         * math/test-ldouble-finite.c: Likewise.
13898         * math/test-double.c: Include "test-math-no-finite.h".
13899         * math/test-float.c: Include "test-math-no-finite.h".
13900         * math/test-ldouble.c: Include "test-math-no-finite.h".
13901         * math/test-math-inline.h (TEST_FINITE): New macro.
13902         * math/test-math-vector.h (TEST_FINITE): Likewise.
13903         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13904         (libm-tests): Add test-float-finite and test-double-finite.
13905         ($(objpfx)test-float-finite.o): New dependency on
13906         $(objpfx)libm-test.stmp.
13907         ($(objpfx)test-double-finite.o): Likewise.
13908         ($(objpfx)test-ldouble-finite.o): Likewise.
13909         (libm-test-no-inline-cflags): New variable.
13910         (libm-test-finite-cflags): Likewise.
13911         (CFLAGS-test-float-finite.c): Likewise.
13912         (CFLAGS-test-double-finite.c): Likewise.
13913         (CFLAGS-test-ldouble-finite.c): Likewise.
13914         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13915         (CFLAGS-test-double.c): Likewise.
13916         (CFLAGS-test-ldouble.c): Likewise.
13917
13918 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13919
13920         * io/fcntl.c (__fcntl): Add ... to prototype.
13921         * misc/ioctl.c (__ioctl): Likewise.
13922         * misc/syscall.c (syscall): Likewise.
13923
13924 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13925
13926         * scripts/list-fixed-bugs.py: New file.
13927
13928         [BZ #19213]
13929         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13930         returned for argument 1.
13931         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13932         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13933         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13934         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13935         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13936         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13937
13938         [BZ #19211]
13939         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13940         __USE_XOPEN], not if [!__USE_ISOC99].
13941         (lgammaf): Likewise.
13942         (lgammal): Likewise.
13943         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13944         (gammaf): Likewise.
13945         (gammal): Likewise.
13946         * math/test-signgam-finite-c11.c: New file.
13947         * math/test-signgam-finite-c99.c: Likewise.
13948         * math/test-signgam-finite.c: Likewise.
13949         * math/Makefile (tests): Add test-signgam-finite,
13950         test-signgam-finite-c99 and test-signgam-finite-c11.
13951         (CFLAGS-test-signgam-finite.c): New variable.
13952         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13953         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13954
13955         [BZ #19212]
13956         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13957         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13958         500].
13959         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13960         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13961         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13962         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13963         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13964         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13965         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13966         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13967         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13968         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13969
13970         [BZ #19209]
13971         * math/bits/math-finite.h (ldexp): Remove declaration.
13972         (ldexpf): Likewise.
13973         (ldexpl): Likewise.
13974
13975         [BZ #19205]
13976         * math/bits/math-finite.h (acosf): Condition declaration on
13977         [__USE_ISOC99].
13978         (acosl): Likewise.
13979         (acoshf): Likewise.
13980         (acoshl): Likewise.
13981         (asinf): Likewise.
13982         (asinl): Likewise.
13983         (atan2f): Likewise.
13984         (atan2l): Likewise.
13985         (atanhf): Likewise.
13986         (atanhl): Likewise.
13987         (coshf): Likewise.
13988         (coshl): Likewise.
13989         (expf): Likewise.
13990         (expl): Likewise.
13991         (fmodf): Likewise.
13992         (fmodl): Likewise.
13993         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13994         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13995         (j0l): Likewise.
13996         (y0f): Likewise.
13997         (y0l): Likewise.
13998         (j1f): Likewise.
13999         (j1l): Likewise.
14000         (y1f): Likewise.
14001         (y1l): Likewise.
14002         (jnf): Likewise.
14003         (jnl): Likewise.
14004         (ynf): Likewise.
14005         (ynl): Likewise.
14006         (lgammaf_r): Condition declaration on [__USE_ISOC99].
14007         (lgammal_r): Likewise.
14008         (__lgamma_r_finite): New declaration.
14009         (__lgammaf_r_finite): Likewise.
14010         (__lgammal_r_finite): Likewise.
14011         (lgamma): Use __lgamma_r_finite.
14012         (lgammaf): Condition definition on [__USE_ISOC99].  Use
14013         __lgammaf_r_finite.
14014         (lgammal): Condition definition on [__USE_ISOC99].  Use
14015         __lgammal_r_finite.
14016         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
14017         __lgamma_r_finite.
14018         (gammaf): Condition definition on [__USE_ISOC99].  Use
14019         __lgammaf_r_finite.
14020         (gammal): Condition definition on [__USE_ISOC99].  Use
14021         __lgammal_r_finite.
14022         (logf): Condition declaration on [__USE_ISOC99].
14023         (logl): Likewise.
14024         (log10f): Likewise.
14025         (log10l): Likewise.
14026         (ldexpf): Likewise.
14027         (ldexpl): Likewise.
14028         (powf): Likewise.
14029         (powl): Likewise.
14030         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
14031         __USE_ISOC99].
14032         (remainderf): Condition declaration on [__USE_ISOC99].
14033         (remainderl): Likewise.
14034         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
14035         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
14036         (scalbl): Likewise.
14037         (sinhf): Condition declaration on [__USE_ISOC99].
14038         (sinhl): Likewise.
14039         (sqrtf): Likewise.
14040         (sqrtl): Likewise.
14041
14042 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
14043
14044         * sysdeps/arm/atomic-machine.h
14045         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
14046         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
14047         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
14048         Remove conditional code.
14049         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
14050         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
14051         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
14052         Change conditional to [__ASSEMBLER__].
14053         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14054         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
14055         [!__ASSEMBLER__].
14056         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
14057         code.
14058         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
14059         conditional macro definitions.
14060         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
14061         (__arch_compare_and_exchange_val_16_acq): Likewise.
14062         (__arch_compare_and_exchange_val_32_acq): Likewise.
14063         (atomic_exchange_and_add): Likewise.
14064         (atomic_add): Likewise.
14065         (atomic_add_negative): Likewise.
14066         (atomic_add_zero): Likewise.
14067         (atomic_bit_set): Likewise.
14068         (atomic_bit_test_set): Likewise.
14069         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
14070         code unconditional.
14071         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14072
14073         * math/test-math-errno.h: New file.
14074         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
14075         empty.
14076         (TEST_ERRNO): New macro.
14077         (TEST_EXCEPTIONS): Likewise.
14078         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
14079         (TEST_EXCEPTIONS): Likewise.
14080         * math/test-math-vector.h (TEST_ERRNO): Likewise.
14081         * math/test-double.c: Include "test-math-errno.h".
14082         * math/test-float.c: Likewise.
14083         * math/test-ldouble.c: Likewise.
14084         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
14085         code unconditional.
14086         (test_exceptions): Only run code if TEST_EXCEPTIONS.
14087         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
14088         unconditional.
14089         (test_errno): Only run code if TEST_ERRNO.
14090         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
14091
14092 2015-11-04  Florian Weimer  <fweimer@redhat.com>
14093
14094         * nptl/tst-once5.cc: Remove attribution.
14095
14096 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
14097
14098         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
14099         sqrt, tan, tanh, y0, y1 and yn.
14100         * math/auto-libm-test-out: Regenerated.
14101         * math/libm-test.inc (scalb_test_data): Add more tests.
14102         (scalbn_test_data): Likewise.
14103         (scalbln_test_data): Likewise.
14104         (signbit_test_data): Likewise.
14105         (sin_test_data): Likewise.
14106         (sincos_test_data): Likewise.
14107         (sinh_test_data): Likewise.
14108         (sqrt_test_data): Likewise.
14109         (tan_test_data): Likewise.
14110         (tanh_test_data): Likewise.
14111         (tgamma_test_data): Likewise.
14112         (y0_test_data): Likewise.
14113         (y1_test_data): Likewise.
14114         (yn_test_data): Likewise.
14115         (significand_test_data): Likewise.
14116         * sysdeps/i386/fpu/libm-test-ulps: Update.
14117
14118 2015-11-03  David Kastrup  <dak@gnu.org>
14119
14120         [BZ #18604]
14121         * assert/assert.h (assert): Don't macro-expand failed assertion
14122         expression in error message.
14123         * malloc/malloc.c (assert): Likewise.
14124
14125 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
14126
14127         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
14128         test.
14129         * configure: Regenerated.
14130
14131 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
14132
14133         * math/libm-test.inc (modf_test_data): Add more tests.
14134         (nearbyint_test_data): Likewise.
14135         (nextafter_test_data): Likewise.
14136         (nexttoward_test_data): Likewise.
14137         (pow_test_data): Likewise.
14138         (remainder_test_data): Likewise.
14139         (remquo_test_data): Likewise.
14140         (rint_test_data): Likewise.
14141
14142         [BZ #19201]
14143         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
14144         Check for zero remainder in case of large exponents and ensure
14145         correct sign of result in that case.
14146         * math/libm-test.inc (remainder_test_data): Add more tests.
14147
14148         [BZ #6799]
14149         * math/s_nextafter.c: Include <errno.h>.
14150         (__nextafter): Set errno on overflow and underflow.
14151         * math/s_nexttowardf.c: Include <errno.h>.
14152         (__nexttowardf): Set errno on overflow and underflow.
14153         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
14154         (__nextafterl): Set errno on overflow and underflow.
14155         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
14156         (__nexttoward): Set errno on overflow and underflow.
14157         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
14158         (__nexttowardf): Set errno on overflow and underflow.
14159         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
14160         (__nextafterf): Set errno on overflow and underflow.
14161         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
14162         (__nextafterl): Set errno on overflow and underflow.
14163         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
14164         (__nexttoward): Set errno on overflow and underflow.
14165         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
14166         (__nexttowardf): Set errno on overflow and underflow.
14167         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
14168         (__nextafterl): Set errno on overflow and underflow.
14169         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
14170         (__nexttoward): Set errno on overflow and underflow.
14171         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
14172         (__nexttowardf): Set errno on overflow and underflow.
14173         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
14174         (__nexttoward): Set errno on overflow and underflow.
14175         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
14176         (__nexttowardf): Set errno on overflow and underflow.
14177         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
14178         (__nldbl_nexttowardf): Set errno on overflow and underflow.
14179         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
14180         (__nextafterl): Set errno on overflow and underflow.
14181         * math/libm-test.inc (nextafter_test_data): Do not allow errno
14182         setting to be missing on overflow.  Add more tests.
14183         (nexttoward_test_data): Likewise.
14184
14185         * configure.ac (libc_cv_initfini_array): Remove configure test.
14186         * configure: Regenerated.
14187
14188 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
14189
14190         [BZ #19189]
14191         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
14192         non-finite argument handle arguments with negative sign.
14193
14194         * math/libm-test.inc (j0_test_data): Do not test sign of zero
14195         result from infinite argument.
14196         (j1_test_data): Likewise.
14197         (jn_test_data): Likewise.
14198         (y0_test_data): Likewise.
14199         (y1_test_data): Likewise.
14200         (yn_test_data): Likewise.
14201
14202         [BZ #16171]
14203         * math/w_remainder.c (drem): Define as weak alias of __remainder.
14204         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
14205         * math/w_remainderf.c (dremf): Define as weak alias of
14206         __remainderf.
14207         * math/w_remainderl.c (dreml): Define as weak alias of
14208         __remainderl.
14209         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
14210         __remainder.
14211         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
14212         __remainderf.
14213         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
14214         __remainderl.
14215         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
14216         weak alias of remainderl.
14217         * sysdeps/ieee754/ldbl-opt/w_remainder.c
14218         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
14219         alias of __remainder.
14220         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
14221         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
14222         strong alias of __remainderl.
14223         (dreml): Use long_double_symbol.
14224         * math/Makefile (libm-calls): Remove w_drem.
14225         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
14226         (CFLAGS-nldbl-drem.c): Remove variable.
14227         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
14228         * math/w_drem.c: Remove file.
14229         * math/w_dremf.c: Likewise.
14230         * math/w_dreml.c: Likewise.
14231         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
14232         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
14233         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
14234
14235         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
14236         * sysdeps/i386/configure: Regenerated.
14237         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
14238         * sysdeps/x86_64/configure: Regenerated.
14239
14240         * configure.ac (libc_cv_asm_protected_directive): Remove configure
14241         test.
14242         (libc_cv_visibility_attribute): Likewise.
14243         (libc_cv_protected_data): Test unconditionally.
14244         (libc_cv_broken_visibility_attribute): Remove configure test.
14245         (libc_cv_have_sdata_section): Test unconditionally.
14246         * configure: Regenerated.
14247
14248         * include/libc-internal.h (libc_max_align_t): Remove typedef.
14249         * include/scratch_buffer.h: Include <stddef.h> instead of
14250         <libc-internal.h>.
14251         (struct scratch_buffer): Use max_align_t instead of
14252         libc_max_align_t.
14253
14254 2015-10-29  Florian Weimer  <fweimer@redhat.com>
14255
14256         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
14257         instead of extend_alloca.  Change control flow to avoid a goto.
14258         Remove assert which is trivially always true.
14259
14260 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14261
14262         [BZ #16068]
14263         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
14264         (FE_ALL_EXCEPT_X86): New macro.
14265         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14266         FE_ALL_EXCEPT.  Ensure precision control is included in
14267         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14268         handle "denormal operand exception" and clear FZ and DAZ bits.
14269         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
14270         (FE_ALL_EXCEPT_X86): New macro.
14271         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14272         FE_ALL_EXCEPT.  Ensure precision control is included in
14273         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14274         handle "denormal operand exception" and clear FZ and DAZ bits.
14275         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
14276         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
14277         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14278         test-fenv-x87 and test-fenv-sse-2.
14279         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
14280
14281         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
14282         * math/test-double.h (BUILD_COMPLEX): New macro.
14283         * math/test-float.h (BUILD_COMPLEX): Likewise.
14284         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
14285
14286         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
14287         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
14288         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
14289         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
14290         instead of DBL_DENORM_MIN in comment.
14291         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
14292         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14293         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
14294         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
14295         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
14296         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14297
14298 2015-10-28  Florian Weimer  <fweimer@redhat.com>
14299
14300         [BZ# 19048]
14301         * malloc/malloc.c (struct malloc_state): Update comment.  Add
14302         attached_threads member.
14303         (main_arena): Initialize attached_threads.
14304         * malloc/arena.c (list_lock): Update comment.
14305         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
14306         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
14307         (deattach_arena): New function.
14308         (_int_new_arena): Initialize arena reference count and deattach
14309         replaced arena.
14310         (get_free_list, reused_arena): Update reference count and deattach
14311         replaced arena.
14312         (arena_thread_freeres): Update arena reference count and only put
14313         unreferenced arenas on the free list.
14314
14315 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14316
14317         [BZ #19181]
14318         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
14319         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
14320         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
14321         * math/test-fenv-clear-main.c: New file.
14322         * math/test-fenv-clear.c: Likewise.
14323         * math/Makefile (tests): Add test-fenv-clear.
14324         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
14325         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14326         test-fenv-clear-sse.
14327         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
14328
14329         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
14330         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
14331         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
14332
14333 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14334
14335         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
14336         static libc.
14337
14338 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
14341         test.
14342         * sysdeps/i386/configure: Regenerated.
14343         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
14344         test.
14345         * sysdeps/x86_64/configure: Regenerated.
14346         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
14347         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14348         memset-avx2 unconditionally instead of conditionally on
14349         [$(config-cflags-avx2) = yes].
14350         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14351         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
14352         unconditional.
14353         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
14354         * sysdeps/x86_64/multiarch/memset_chk.S
14355         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
14356         to [IS_IN (libc) && SHARED].
14357
14358 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14359
14360         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
14361         configure test.
14362         * sysdeps/arm/configure: Regenerated.
14363         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
14364         Define variable if not already defined.
14365
14366         [BZ #17404]
14367         * sysdeps/mips/atomic-machine.h
14368         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
14369         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
14370         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14371
14372         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
14373         unconditional.
14374         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
14375         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14376         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
14377         unconditional.
14378         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14379         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
14380         unconditional.
14381         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14382         * stdlib/setenv.c
14383         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
14384         code unconditional.
14385         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
14386         Remove conditional code.
14387         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
14388         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
14389         unconditional.
14390         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14391         code.
14392         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
14393         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
14394         unconditional.
14395         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14396         code.
14397         * sysdeps/ieee754/ldbl-128/k_tanl.c
14398         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14399         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14400         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
14401         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14402         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14403         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
14404         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
14405         unconditional.
14406         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14407         code.
14408         * sysdeps/ieee754/ldbl-96/k_tanl.c
14409         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14410         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14411
14412         * nptl/tst-initializers1-c11.c: New file.
14413         * nptl/tst-initializers1-gnu11.c: Likewise.
14414         * nptl/Makefile (tests): Add these new tests.
14415         (CFLAGS-tst-initializers1-c11.c): New variable.
14416         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14417
14418         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
14419         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
14420         instead of -std=gnu99.
14421         * configure.ac (systemtap): Test with -std=gnu11 instead of
14422         -std=gnu99.
14423         * configure: Regenerated.
14424         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
14425         in compilation command in comment.
14426
14427         * sysdeps/nptl/configure.ac: Remove file.
14428         * sysdeps/nptl/configure: Remove generated file.
14429         * configure.ac (libc_cv_forced_unwind): Do not substitute.
14430         * configure: Regenerated.
14431         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
14432         * config.make.in (have-forced-unwind): Remove variable.
14433         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14434         unconditional.
14435         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
14436         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
14437         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
14438         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
14439         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14440         unconditional.
14441
14442 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14443
14444         [BZ #19174]
14445         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
14446         .skip_lock_out_of_tbegin_retries.
14447         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
14448         (__lll_lock_elision): Likewise, and respect a value of
14449         try_tbegin <= 0.
14450
14451 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14452
14453         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
14454         statement.
14455
14456 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14457
14458         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
14459         variable.
14460         (test-xfail-ISO11/stdalign.h/conform): Likewise.
14461         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
14462
14463         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
14464         of -std=c1x -D_ISOC11_SOURCE.
14465
14466         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
14467         * configure: Regenerated.
14468         * manual/install.texi (Tools for Compilation): Document
14469         requirement for GCC 4.7 or later.
14470         * INSTALL: Regenerated.
14471
14472 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
14473
14474         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
14475         on CNT to a conditional jump to 'puntdata'.
14476
14477 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14478
14479         * configure.ac (libc_cv_gcc___thread): Remove configure test.
14480         (libc_cv_gcc_tls_model_attr): Likewise.
14481         * configure: Regenerated.
14482
14483         * configure.ac (libc_cv_need_minus_P): Remove configure test.
14484         * configure: Regenerated.
14485         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
14486
14487 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
14488
14489         * configure.ac (old_glibc_headers): Remove configure test.
14490         * configure: Regenerated.
14491         * config.make.in (old-glibc-headers): Remove variable.
14492         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
14493         (install): Remove dependency on remove-old-headers.
14494         (headers2_0): Remove variable.
14495         (remove-old-headers): Remove rule.
14496
14497         * configure.ac (libc_cv_dot_text): Remove configure test.
14498         (libc_cv_asm_set_directive): Use .text instead of
14499         ${libc_cv_dot_text} in configure test.
14500         * configure: Regenerated.
14501
14502 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14503
14504         [BZ #19168]
14505         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14506
14507 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14508
14509         * configure.ac (CXX): Clear the variable if the C++ toolchain does
14510         not support static linking.
14511         * configure: Regenerate.
14512
14513 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
14514
14515         * math/libm-test.inc (check_float_internal): Do not special-case
14516         errors up to 0.5 ulp.
14517
14518         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
14519         log2.
14520         * math/auto-libm-test-out: Regenerated.
14521         * math/libm-test.inc (MAX_EXP): New macro.
14522         (ilogb_test_data): Add more tests.
14523         (isfinite_test_data): Likewise.
14524         (isgreater_test_data): Likewise.
14525         (isgreaterequal_test_data): Likewise.
14526         (isinf_test_data): Likewise.
14527         (isless_test_data): Likewise.
14528         (islessequal_test_data): Likewise.
14529         (islessgreater_test_data): Likewise.
14530         (isnan_test_data): Likewise.
14531         (isnormal_test_data): Likewise.
14532         (issignaling_test_data): Likewise.
14533         (isunordered_test_data): Likewise.
14534         (j0_test_data): Likewise.
14535         (j1_test_data): Likewise.
14536         (jn_test_data): Likewise.
14537         (lgamma_test_data): Likewise.
14538         (log_test_data): Likewise.
14539         (log10_test_data): Likewise.
14540         (log1p_test_data): Likewise.
14541         (log2_test_data): Likewise.
14542         (logb_test_data): Likewise.
14543         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14544
14545         [BZ #18611]
14546         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
14547         avoid excess range and precision on underflow.
14548         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14549         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14550         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14551         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14552         underflow.
14553         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14554         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14555         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14556         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14557         * math/auto-libm-test-in: Do not allow missing errno setting for
14558         tests of j1 and jn.
14559         * math/auto-libm-test-out: Regenerated.
14560
14561 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14562
14563         [BZ #15491]
14564         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14565         floating-point environment instead of clearing all exceptions.
14566         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14567         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14568         merging in "invalid" exceptions from frndint.
14569         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14570         * math/test-nearbyint-except.c: New file.
14571         * math/Makefile (tests): Add test-nearbyint-except.
14572
14573 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14574
14575         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14576
14577         * sysdeps/tile/libm-test-ulps: Regenerated.
14578
14579 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14580
14581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14582         (__NR_sync_file_range2): Assume it is always defined.
14583         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14584         (__NR_sync_file_range): Assume it is always defined.
14585
14586 2015-10-22  Andreas Schwab  <schwab@suse.de>
14587
14588         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14589         INTERNAL_SYSCALL_ERRNO.
14590         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14591         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14592         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14593         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14594         Likewise.
14595         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14596
14597 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14598
14599         * io/tst-fcntl.c (fd): New static variable.
14600         (do_prepare): Open temporary file here....
14601         (do_test): ...not here.
14602
14603         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14604
14605 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14606
14607         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14608         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14609         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14610         Moved before "#ifdef __ASSEMBLER__".
14611
14612 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14613
14614         [BZ #19156]
14615         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14616         arguments very close to 0.
14617
14618 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14619
14620         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14621         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14622
14623 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14624
14625         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14626         New.  Defined for GCC 5 and above when not compiling for
14627         profiling.
14628         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14629
14630         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14631         Renamed to ...
14632         (CFLAGS-epoll_pwait.o): This.
14633         (CFLAGS-mmap.c): Renamed to ...
14634         (CFLAGS-mmap.o): This.
14635         (CFLAGS-mmap64.c): Renamed to ...
14636         (CFLAGS-mmap64.o): This.
14637         (CFLAGS-epoll_pwait.os): New.
14638         (CFLAGS-mmap.os): Likewise.
14639         (CFLAGS-mmap64.os): Likewise.
14640         (CFLAGS-semtimedop.os): Likewise.
14641         (CFLAGS-semtimedop.c): Renamed to ...
14642         (CFLAGS-semtimedop.o): This.
14643
14644 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14645
14646         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14647         warning message.
14648
14649 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14652         * Makefile ($(objpfx)c++-types-check.out): Filter out
14653         $(+gccwarn-c) instead of -Wstrict-prototypes.
14654
14655         * io/fts.c (fts_open): Convert to prototype-style function
14656         definition.
14657         * malloc/mcheck.c (mcheck): Likewise.
14658         (mcheck_pedantic): Likewise.
14659         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14660         internal_function.
14661         (re_search_internal): Likewise.
14662         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14663         prototype-style function definition.
14664         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14665         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14666         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14667         (xdr_utmpptr): Likewise.
14668         (xdr_utmparr): Likewise.
14669         (xdr_utmpidle): Likewise.
14670         (xdr_utmpidleptr): Likewise.
14671         (xdr_utmpidlearr): Likewise.
14672
14673         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14674         log, log10 and log2.
14675         * math/auto-libm-test-out: Regenerated.
14676         * math/libm-test.inc (fmod_test_data): Add more tests.
14677         (fpclassify_test_data): Likewise.
14678         (frexp_test_data): Likewise.
14679         (hypot_test_data): Likewise.
14680         (ilogb_test_data): Likewise.
14681
14682 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14683
14684         * debug/fortify_fail.c (__fortify_fail): Convert to
14685         prototype-style function definition.  Use internal_function.
14686         * libio/genops.c (save_for_backup): Convert to prototype-style
14687         function definition.
14688         * libio/wgenops.c (save_for_wbackup): Likewise.
14689         * login/grantpt.c (grantpt): Likewise.
14690         * login/ptsname.c (ptsname): Likewise.
14691         (__ptsname_r): Likewise.
14692         * login/unlockpt.c (unlockpt): Likewise.
14693         * mach/msgserver.c (__mach_msg_server): Likewise.
14694         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14695         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14696         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14697         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14698         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14699         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14700         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14701         Likewise.
14702         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14703         internal_function.
14704         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14705         prototype-style function definition.
14706         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14707         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14708         (__pthread_create_2_0): Likewise.
14709         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14710         * nptl/register-atfork.c (__register_atfork): Likewise.
14711         * posix/glob.c (glob): Likewise.
14712         * posix/regcomp.c (re_comp): Likewise.
14713         * posix/regexec.c (re_exec): Likewise.
14714         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14715         [!__STDC__]: Remove conditional code.
14716         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14717         [!__STDC__]: Remove conditional code.
14718         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14719         [!__STDC__]: Remove conditional code.
14720         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14721         [!__STDC__]: Remove conditional code.
14722         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14723         [!__STDC__]: Remove conditional code.
14724         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14725         [!__STDC__]: Remove conditional code.
14726         * stdlib/mul.c [__STDC__]: Make code unconditional.
14727         [!__STDC__]: Remove conditional code.
14728         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14729         [!__STDC__]: Remove conditional code.
14730         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14731         [!__STDC__]: Remove conditional code.
14732         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14733         function definition.
14734         (STRTOF): Likewise.
14735         * stdlib/strtod_l.c (__STRTOF): Likewise.
14736         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14737         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14738         (__strtol_l): Likewise.
14739         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14740         [!__STDC__]: Remove conditional code.
14741         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14742         definition.
14743         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14744         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14745         type.
14746         (__strcasecmp): Convert to prototype-style function definition.
14747         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14748         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14749         type.
14750         (__strncasecmp): Convert to prototype-style function definition.
14751         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14752         * sunrpc/xdr.c (xdr_union): Likewise.
14753         * sunrpc/xdr_array.c (xdr_array): Likewise.
14754         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14755         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14756         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14757         Likewise.
14758         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14759         Likewise.
14760         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14761         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14762         Likewise.
14763         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14764         (LOCALE_PARAM_PROTO): Likewise.
14765         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14766         argument type.
14767         (ut_argument_spec): Remove macro.
14768         (ut_argument_spec_iso): Rename to ut_argument_spec.
14769         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14770         prototype-style function definition.
14771         (memcpy_uppcase): Likewise.
14772         (__strftime_internal): Likewise.
14773         (my_strftime): Likewise.
14774         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14775         (LOCALE_PARAM_DECL): Likewise.
14776         [_LIBC] (LOCALE_PARAM): Include argument type.
14777         (__strptime_internal): Convert to prototype-style function
14778         definition.
14779         (strptime): Likewise.
14780         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14781         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14782         type.
14783         (__wcscasecmp): Convert to prototype-style function definition.
14784         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14785         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14786         type.
14787         (__wcsncasecmp): Convert to prototype-style function definition.
14788
14789         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14790         function definition.
14791         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14792         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14793         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14794         * elf/dl-minimal.c (_itoa): Likewise.
14795         * hurd/hurdmalloc.c (malloc): Likewise.
14796         (free): Likewise.
14797         (realloc): Likewise.
14798         * inet/inet6_option.c (inet6_option_space): Likewise.
14799         (inet6_option_init): Likewise.
14800         (inet6_option_append): Likewise.
14801         (inet6_option_alloc): Likewise.
14802         (inet6_option_next): Likewise.
14803         (inet6_option_find): Likewise.
14804         * io/ftw.c (FTW_NAME): Likewise.
14805         (NFTW_NAME): Likewise.
14806         (NFTW_NEW_NAME): Likewise.
14807         (NFTW_OLD_NAME): Likewise.
14808         * libio/iofwide.c (_IO_fwide): Likewise.
14809         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14810         (_IO_str_init_static): Likewise.
14811         (_IO_str_init_readonly): Likewise.
14812         (_IO_str_overflow): Likewise.
14813         (_IO_str_underflow): Likewise.
14814         (_IO_str_count): Likewise.
14815         (_IO_str_seekoff): Likewise.
14816         (_IO_str_pbackfail): Likewise.
14817         (_IO_str_finish): Likewise.
14818         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14819         (_IO_wstr_overflow): Likewise.
14820         (_IO_wstr_underflow): Likewise.
14821         (_IO_wstr_count): Likewise.
14822         (_IO_wstr_seekoff): Likewise.
14823         (_IO_wstr_pbackfail): Likewise.
14824         (_IO_wstr_finish): Likewise.
14825         * locale/programs/localedef.c (normalize_codeset): Likewise.
14826         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14827         (add_locales_to_archive): Likewise.
14828         (delete_locales_from_archive): Likewise.
14829         * malloc/malloc.c (__libc_mallinfo): Likewise.
14830         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14831         * misc/tsearch.c (__tfind): Likewise.
14832         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14833         * nptl/pthread_attr_getdetachstate.c
14834         (__pthread_attr_getdetachstate): Likewise.
14835         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14836         Likewise.
14837         * nptl/pthread_attr_getinheritsched.c
14838         (__pthread_attr_getinheritsched): Likewise.
14839         * nptl/pthread_attr_getschedparam.c
14840         (__pthread_attr_getschedparam): Likewise.
14841         * nptl/pthread_attr_getschedpolicy.c
14842         (__pthread_attr_getschedpolicy): Likewise.
14843         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14844         Likewise.
14845         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14846         Likewise.
14847         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14848         Likewise.
14849         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14850         Likewise.
14851         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14852         (__pthread_attr_init_2_0): Likewise.
14853         * nptl/pthread_attr_setdetachstate.c
14854         (__pthread_attr_setdetachstate): Likewise.
14855         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14856         Likewise.
14857         * nptl/pthread_attr_setinheritsched.c
14858         (__pthread_attr_setinheritsched): Likewise.
14859         * nptl/pthread_attr_setschedparam.c
14860         (__pthread_attr_setschedparam): Likewise.
14861         * nptl/pthread_attr_setschedpolicy.c
14862         (__pthread_attr_setschedpolicy): Likewise.
14863         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14864         Likewise.
14865         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14866         Likewise.
14867         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14868         Likewise.
14869         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14870         Likewise.
14871         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14872         Likewise.
14873         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14874         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14875         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14876         use internal_function.
14877         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14878         prototype-style function definition.
14879         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14880         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14881         internal_function.
14882         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14883         Convert to prototype-style function definition.
14884         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14885         Likewise.
14886         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14887         Likewise.
14888         (__pthread_mutex_unlock): Likewise.
14889         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14890         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14891         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14892         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14893         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14894         * nss/makedb.c (process_input): Likewise.
14895         * posix/fnmatch.c (__strchrnul): Likewise.
14896         (__wcschrnul): Likewise.
14897         (fnmatch): Likewise.
14898         * posix/fnmatch_loop.c (FCT): Likewise.
14899         * posix/glob.c (globfree): Likewise.
14900         (__glob_pattern_type): Likewise.
14901         (__glob_pattern_p): Likewise.
14902         * posix/regcomp.c (re_compile_pattern): Likewise.
14903         (re_set_syntax): Likewise.
14904         (re_compile_fastmap): Likewise.
14905         (regcomp): Likewise.
14906         (regerror): Likewise.
14907         (regfree): Likewise.
14908         * posix/regexec.c (regexec): Likewise.
14909         (re_match): Likewise.
14910         (re_search): Likewise.
14911         (re_match_2): Likewise.
14912         (re_search_2): Likewise.
14913         (re_search_stub): Likewise.  Use internal_function
14914         (re_copy_regs): Likewise.
14915         (re_set_registers): Convert to prototype-style function
14916         definition.
14917         (prune_impossible_nodes): Likewise.  Use internal_function.
14918         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14919         prototype-style function definition.
14920         (inet_net_pton_ipv4): Likewise.
14921         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14922         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14923         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14924         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14925         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14926         Make variadic.
14927         * time/strptime_l.c (localtime_r): Convert to prototype-style
14928         function definition.
14929         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14930         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14931         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14932         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14933
14934         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14935         definition.
14936         (_ufc_doit_r): Likewise.
14937         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14938         (_ufc_output_conversion_r): Likewise.
14939         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14940         * inet/rcmd.c (rcmd_af): Likewise.
14941         (rcmd): Likewise.
14942         (ruserok_af): Likewise.
14943         (ruserok): Likewise.
14944         (ruserok2_sa): Likewise.
14945         (ruserok_sa): Likewise.
14946         (iruserok_af): Likewise.
14947         (iruserok): Likewise.
14948         (__ivaliduser): Likewise.
14949         (__validuser2_sa): Likewise.
14950         * inet/rexec.c (rexec_af): Likewise.
14951         (rexec): Likewise.
14952         * inet/ruserpass.c (ruserpass): Likewise.
14953         * locale/programs/xmalloc.c (xcalloc): Likewise.
14954         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14955         * math/w_drem.c (__drem): Likewise.
14956         * math/w_dremf.c (__dremf): Likewise.
14957         * math/w_dreml.c (__dreml): Likewise.
14958         * misc/daemon.c (daemon): Likewise.
14959         * resolv/res_debug.c (p_fqnname): Likewise.
14960         * stdlib/div.c (div): Likewise.
14961         * string/memcmp.c (memcmp_bytes): Likewise.
14962         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14963         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14964
14965         * crypt/cert.c (main): Convert to prototype-style function
14966         definition.
14967         * io/pipe.c (__pipe): Likewise.
14968         * io/pipe2.c (__pipe2): Likewise.
14969         * misc/futimesat.c (futimesat): Likewise.
14970         * misc/utimes.c (__utimes): Likewise.
14971         * posix/execve.c (__execve): Likewise.
14972         * posix/execvp.c (execvp): Likewise.
14973         * posix/execvpe.c (__execvpe): Likewise.
14974         * posix/fexecve.c (fexecve): Likewise.
14975         * socket/socketpair.c (socketpair): Likewise.
14976         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14977         * stdlib/erand48.c (erand48): Likewise.
14978         * stdlib/erand48_r.c (__erand48_r): Likewise.
14979         * stdlib/jrand48.c (jrand48): Likewise.
14980         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14981         * stdlib/lcong48.c (lcong48): Likewise.
14982         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14983         * stdlib/nrand48.c (nrand48): Likewise.
14984         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14985         * stdlib/seed48.c (seed48): Likewise.
14986         * stdlib/seed48_r.c (__seed48_r): Likewise.
14987         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14988         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14989         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14990
14991 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14992
14993         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14994         * configure: Regenerated.
14995         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14996         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14997         unconditional.
14998         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14999         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15000         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15001         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
15002         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
15003         unconditional.
15004         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15005
15006         * posix/Makefile (CFLAGS-regex.c): Remove variable.
15007         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
15008
15009         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
15010         function definition.
15011         * crypt/crypt_util.c (__encrypt_r): Likewise.
15012         * libio/genops.c (_IO_no_init): Likewise.
15013         * libio/iofopncook.c (_IO_fopencookie): Likewise.
15014         (_IO_old_fopencookie): Likewise.
15015         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15016         * libio/iogetline.c (_IO_getline): Likewise.
15017         (_IO_getline_info): Likewise.
15018         * libio/iogetwline.c (_IO_getwline): Likewise.
15019         (_IO_getwline_info): Likewise.
15020         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
15021         * libio/vswprintf.c (_IO_vswprintf): Likewise.
15022         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
15023         (find_entry): Likewise.
15024         (iterate_table): Likewise.
15025         (lookup): Likewise.
15026         * login/forkpty.c (forkpty): Likewise.
15027         * misc/hsearch_r.c (__hsearch_r): Likewise.
15028         * misc/select.c (__select): Likewise.
15029         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
15030         Likewise.
15031         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
15032         Likewise.
15033         * nptl/old_pthread_cond_timedwait.c
15034         (__pthread_cond_timedwait_2_0): Likewise.
15035         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
15036         * nptl/pthread_barrierattr_getpshared.c
15037         (pthread_barrierattr_getpshared): Likewise.
15038         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
15039         Likewise.
15040         * nptl/pthread_mutex_setprioceiling.c
15041         (pthread_mutex_setprioceiling): Likewise.
15042         * nptl/pthread_mutexattr_getprioceiling.c
15043         (pthread_mutexattr_getprioceiling): Likewise.
15044         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
15045         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15046         Likewise.
15047         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15048         Likewise.
15049         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
15050         Likewise.
15051         * socket/recvfrom.c (__recvfrom): Likewise.
15052         * socket/sendto.c (__sendto): Likewise.
15053         * socket/setsockopt.c (__setsockopt): Likewise.
15054         * stdio-common/_itoa.c (_itoa): Likewise.
15055         * stdio-common/_itowa.c (_itowa): Likewise.
15056         * stdio-common/reg-printf.c (__register_printf_specifier):
15057         Likewise.
15058         (__register_printf_function): Likewise.
15059         * stdio-common/tempname.c (__path_search): Likewise.
15060         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
15061         * stdlib/mul_1.c (mpn_mul_1): Likewise.
15062         * stdlib/random_r.c (__initstate_r): Likewise.
15063         * stdlib/setenv.c (__add_to_environ): Likewise.
15064         * stdlib/submul_1.c (mpn_submul_1): Likewise.
15065         * streams/getpmsg.c (getpmsg): Likewise.
15066         * streams/putmsg.c (putmsg): Likewise.
15067         * streams/putpmsg.c (putpmsg): Likewise.
15068         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
15069         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
15070         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
15071         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
15072         * sunrpc/pm_getport.c (pmap_getport): Likewise.
15073         * sunrpc/svc_udp.c (cache_get): Likewise.
15074         * sunrpc/xdr_array.c (xdr_vector): Likewise.
15075         * sysdeps/mach/hurd/getcwd.c
15076         (__canonicalize_directory_name_internal): Likewise.
15077         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
15078         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
15079         * sysdeps/mach/hurd/select.c (__select): Likewise.
15080         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
15081         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15082         * sysdeps/sparc/nptl/pthread_barrier_init.c
15083         (__pthread_barrier_init): Likewise.
15084         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
15085         (__pthread_cond_timedwait): Likewise.
15086         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
15087         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
15088         Likewise.
15089         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
15090         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
15091         Likewise.
15092         * sysvipc/semtimedop.c (semtimedop): Likewise.
15093         * time/setitimer.c (__setitimer): Likewise.
15094         * time/strftime_l.c (emacs_strftime): Likewise.
15095
15096 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
15097
15098         * config.make.in (have-ssp): Delete.
15099         (stack-protector): New variable.
15100         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
15101         cache test for -fstack-protector-strong.  Export stack_protector to
15102         the best ssp flag.
15103         * configure: Regenerated.
15104         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
15105         * nscd/Makefile (CFLAGS-nscd): Likewise.
15106         * resolv/Makefile (CFLAGS-libresolv): Likewise.
15107
15108 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
15109
15110         [BZ #19122]
15111         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
15112         attribute_hidden.
15113
15114 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15115
15116         [BZ #18743]
15117         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
15118         code to...
15119         (ELIDE_LOCK): ...here.
15120         (__get_new_count): New function with part of the code from
15121         __elide_lock that updates the value of adapt_count after a
15122         transaction abort.
15123         (__elided_trylock): Moved this code to...
15124         (ELIDE_TRYLOCK): ...here.
15125
15126 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
15127
15128         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
15129         * configure: Regenerate.
15130         * INSTALL: Regenerate.
15131         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
15132         and tweak grammar.
15133
15134 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
15135
15136         * login/programs/pt_chown.c: Include signal.h
15137         (main): Clear any signal mask from the parent process.
15138
15139 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
15140
15141         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
15142         * configure: Regenerated.
15143         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
15144         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
15145         $(gnu89-inline-CFLAGS).
15146
15147         * configure.ac (libc_cv_asm_weak_directive): Remove configure
15148         test.
15149         (libc_cv_asm_weakext_directive): Likewise.
15150         * configure: Regenerated.
15151         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
15152         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
15153         * include/libc-symbols.h
15154         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
15155         #error.
15156         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
15157         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
15158
15159         * sysdeps/arm/backtrace.c (__backtrace): Convert to
15160         prototype-style function definition.
15161         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
15162         * sysdeps/i386/ffs.c (__ffs): Likewise.
15163         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
15164         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
15165         Likewise.
15166         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15167         Likewise.
15168         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
15169         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
15170         Likewise.
15171         * sysdeps/m68k/ffs.c (__ffs): Likewise.
15172         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
15173         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
15174         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
15175         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
15176         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
15177         * sysdeps/mach/hurd/access.c (__access): Likewise.
15178         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
15179         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
15180         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
15181         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
15182         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
15183         (cthread_getspecific): Likewise.
15184         (cthread_setspecific): Likewise.
15185         (__libc_getspecific): Likewise.
15186         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
15187         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
15188         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
15189         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
15190         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
15191         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
15192         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
15193         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
15194         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
15195         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
15196         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
15197         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
15198         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
15199         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
15200         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
15201         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
15202         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
15203         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
15204         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
15205         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
15206         * sysdeps/mach/hurd/link.c (__link): Likewise.
15207         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
15208         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
15209         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
15210         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
15211         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
15212         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
15213         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
15214         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
15215         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15216         * sysdeps/mach/hurd/rename.c (rename): Likewise.
15217         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
15218         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
15219         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
15220         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
15221         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
15222         * sysdeps/mach/hurd/send.c (__send): Likewise.
15223         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
15224         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
15225         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
15226         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
15227         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
15228         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
15229         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
15230         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
15231         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
15232         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
15233         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
15234         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
15235         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
15236         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
15237         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
15238         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
15239         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
15240         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
15241         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
15242         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15243         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
15244         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
15245         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
15246         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
15247         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
15248         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
15249         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
15250         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
15251         * sysdeps/posix/alarm.c (alarm): Likewise.
15252         * sysdeps/posix/cuserid.c (cuserid): Likewise.
15253         * sysdeps/posix/dirfd.c (dirfd): Likewise.
15254         * sysdeps/posix/dup.c (__dup): Likewise.
15255         * sysdeps/posix/dup2.c (__dup2): Likewise.
15256         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
15257         (main): Likewise.
15258         * sysdeps/posix/flock.c (__flock): Likewise.
15259         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
15260         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15261         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
15262         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
15263         * sysdeps/posix/isatty.c (__isatty): Likewise.
15264         * sysdeps/posix/killpg.c (killpg): Likewise.
15265         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15266         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
15267         * sysdeps/posix/raise.c (raise): Likewise.
15268         * sysdeps/posix/remove.c (remove): Likewise.
15269         * sysdeps/posix/rename.c (rename): Likewise.
15270         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
15271         * sysdeps/posix/seekdir.c (seekdir): Likewise.
15272         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15273         * sysdeps/posix/sigignore.c (sigignore): Likewise.
15274         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
15275         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15276         * sysdeps/posix/sigset.c (sigset): Likewise.
15277         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
15278         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
15279         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
15280         * sysdeps/posix/time.c (time): Likewise.
15281         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15282         (ttyname): Likewise.
15283         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
15284         * sysdeps/posix/utime.c (utime): Likewise.
15285         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
15286         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
15287         Likewise.
15288         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
15289         (pthread_spin_trylock): Likewise.
15290         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
15291         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
15292         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
15293         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
15294         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
15295         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
15296         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
15297         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
15298         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
15299         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
15300         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
15301         * sysdeps/s390/ffs.c (__ffs): Likewise.
15302         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
15303         Likewise.
15304         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15305         Likewise.
15306         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
15307         Likewise.
15308         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
15309         (pthread_barrier_destroy): Likewise.
15310         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15311         (__pthread_barrier_wait): Likewise.
15312         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
15313         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15314         (__pthread_barrier_wait): Likewise.
15315         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
15316         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
15317         (memcmp_not_common_alignment): Likewise.
15318         (MEMCMP): Likewise.
15319         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
15320         (_wordcopy_fwd_dest_aligned): Likewise.
15321         (_wordcopy_bwd_aligned): Likewise.
15322         (_wordcopy_bwd_dest_aligned): Likewise.
15323         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
15324         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
15325         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15326         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
15327         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
15328         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
15329         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
15330         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
15331         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
15332         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
15333         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
15334         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
15335         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
15336         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
15337         * sysdeps/unix/stime.c (stime): Likewise.
15338         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
15339         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
15340         Likewise.  Use internal_function.
15341         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
15342         Convert to prototype-style function definition.
15343         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15344         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15345         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
15346         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15347         Likewise.  Use internal_function.
15348         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
15349         prototype-style function definition
15350         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15351         Likewise.
15352         (__getlogin_r): Likewise.
15353         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
15354         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
15355         (__pthread_cond_broadcast): Likewise.
15356         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
15357         (__pthread_cond_destroy): Likewise.
15358         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
15359         (__pthread_cond_init): Likewise.
15360         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
15361         (__pthread_cond_signal): Likewise.
15362         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
15363         (__pthread_cond_wait): Likewise.
15364         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
15365         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
15366         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
15367         Likewise.
15368         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
15369         Likewise.
15370         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15371         Likewise.
15372         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
15373         Likewise.
15374         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
15375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
15376         (__ftruncate64): Likewise.
15377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
15378         (truncate64): Likewise.
15379         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
15380         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
15381         (pthread_getcpuclockid): Likewise.
15382         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
15383         Likewise.
15384         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
15385         Likewise.
15386         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
15387         Likewise.
15388         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
15389         Likewise.
15390         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
15391         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
15392         (__libc_sigaction): Likewise.
15393         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
15394         Likewise.
15395         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15396         (__sigprocmask): Likewise.
15397         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
15398         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
15399         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
15400         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
15401         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
15402         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
15403         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
15404         Likewise.
15405         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
15406         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
15407         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
15408         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
15409         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
15410         Likewise.
15411         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15412         (__sigprocmask): Likewise.
15413         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
15414         (cfgetispeed): Likewise.
15415         (cfsetospeed): Likewise.
15416         (cfsetispeed): Likewise.
15417         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
15418         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
15419         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15420         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
15421         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
15422         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
15423         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
15424         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
15425         Likewise.
15426         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
15427         Likewise.
15428         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
15429         Likewise.
15430         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
15431         Likewise.
15432         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
15433
15434 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15435
15436         sunrpc: Rewrite with explicit TLS access using __thread.
15437         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
15438         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
15439         directly.
15440         (__rpc_thread_variables): Access thread_rpc_vars directly.
15441         Eliminate redundant assignment of the tvp variable.
15442
15443 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15444
15445         malloc: Rewrite with explicit TLS access using __thread.
15446         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
15447         (tsd_setspecific, tsd_getspecific): Remove.
15448         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
15449         (tsd_setspecific, tsd_getspecific): Likewise.
15450         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
15451         (tsd_setspecific, tsd_getspecific): Likewise.
15452         * malloc/arena.c (thread_arena): New TLS variable.
15453         (arena_key): Remove variable.
15454         (arena_get): Use thread_arena.
15455         (arena_lookup): Remove macro.
15456         (malloc_atfork, free_atfork, ptmalloc_lock_all)
15457         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
15458         (_int_new_arena, get_free_list, reused_arena)
15459         (arena_thread_freeres): Use thread_arena.
15460         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
15461         tsd_getspecific, tsd_setspecific from safety annotations.
15462         (Allocating Cleared Space): Remove arena_lookup from safety
15463         annotations.
15464
15465 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15466
15467         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
15468         struct scratch_buffer instead of extend_alloca.
15469
15470 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15471
15472         * sysdeps/unix/sysv/linux/kernel-features.h
15473         (__ASSUME_SOCK_CLOEXEC): Remove.
15474         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
15475         (__have_paccept): Remove unused macro.
15476         * include/unistd.h (__have_sock_cloexec): Remove declaration.
15477         * misc/syslog.c (openlog_internal): Remove fallback code for
15478         !__ASSUME_SOCK_CLOEXEC.
15479         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
15480         missing SOCK_CLOEXEC.
15481         * nscd/connections.c (have_sock_cloexec): Remove definition.
15482         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15483         * nscd/nscd_helper.c (open_socket): Remove fallback code for
15484         !__ASSUME_SOCK_CLOEXEC.
15485         * resolv/res_send.c (__have_o_nonblock): Remove definition.
15486         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15487         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
15488         definition.
15489         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
15490         code for !__ASSUME_SOCK_CLOEXEC.
15491
15492 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15493
15494         [BZ #18982]
15495         * manual/stdio.texi (Variable Arguments Output): Add portability
15496         note, explaining that vfprintf clobbers the va_list pointer.
15497
15498 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15499
15500         * math/libm-test.inc (fabs_test_data): Add more tests.
15501         (fdim_test_data): Likewise.
15502         (fma_test_data): Likewise.
15503         (fmax_test_data): Likewise.
15504         (fmin_test_data): Likewise.
15505         (fmod_test_data): Likewise.
15506
15507 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
15508
15509         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
15510         data.
15511
15512 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15513
15514         * math/libm-test.inc (ceil_test_data): Add more tests and more
15515         expectations for "inexact".
15516         (floor_test_data): Add more tests.
15517         (round_test_data): Likewise.
15518         (trunc_test_data): Likewise.
15519
15520         * crypt/cert.c (good_bye): Convert to prototype-style function
15521         definition.
15522         (get8): Likewise.
15523         (put8): Likewise.
15524         * crypt/crypt-entry.c (crypt): Likewise.
15525         (__fcrypt): Likewise.
15526         * crypt/crypt_util.c (_ufc_prbits): Likewise.
15527         (_ufc_set_bits): Likewise.
15528         (_ufc_clearmem): Likewise.
15529         (__init_des_r): Likewise.
15530         (shuffle_sb): Likewise.
15531         (shuffle_sb): Likewise.
15532         (_ufc_setup_salt_r): Likewise.
15533         (_ufc_mk_keytab_r): Likewise.
15534         (_ufc_dofinalperm_r): Likewise.
15535         (encrypt): Likewise.
15536         (__setkey_r): Likewise.
15537         (setkey): Likewise.
15538         * crypt/md5.c (md5_init_ctx): Likewise.
15539         (md5_read_ctx): Likewise.
15540         (md5_finish_ctx): Likewise.
15541         (md5_stream): Likewise.
15542         (md5_buffer): Likewise.
15543         (md5_process_bytes): Likewise.
15544         * crypt/sha256.c (__sha256_init_ctx): Likewise.
15545         (__sha256_finish_ctx): Likewise.
15546         (__sha256_process_bytes): Likewise.
15547         * crypt/sha512.c (__sha512_init_ctx): Likewise.
15548         (__sha512_finish_ctx): Likewise.
15549         (__sha512_process_bytes): Likewise.
15550         * ctype/isctype.c (__isctype): Likewise.
15551         * debug/backtrace.c (__backtrace): Likewise.
15552         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15553         * debug/fgets_chk.c (__fgets_chk): Likewise.
15554         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15555         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15556         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15557         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15558         * debug/memset_chk.c (__memset_chk): Likewise.
15559         * debug/strcat_chk.c (__strcat_chk): Likewise.
15560         * debug/strncat_chk.c (__strncat_chk): Likewise.
15561         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15562         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15563         * dirent/dirfd.c (dirfd): Likewise.
15564         * dirent/getdents.c (__getdirentries): Likewise.
15565         * dirent/getdents64.c (getdirentries64): Likewise.
15566         * dirent/rewinddir.c (__rewinddir): Likewise.
15567         * dirent/seekdir.c (seekdir): Likewise.
15568         * dirent/telldir.c (telldir): Likewise.
15569         * elf/sln.c (makesymlinks): Likewise.
15570         (makesymlink): Likewise.
15571         * gmon/gmon.c (__moncontrol): Likewise.
15572         (__monstartup): Likewise.
15573         (write_hist): Likewise.
15574         (write_call_graph): Likewise.
15575         (write_bb_counts): Likewise.
15576         * grp/setgroups.c (setgroups): Likewise.
15577         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15578         * inet/inet_net.c (inet_network): Likewise.
15579         * inet/inet_netof.c (inet_netof): Likewise.
15580         * inet/rcmd.c (rresvport_af): Likewise.
15581         (rresvport): Likewise.
15582         * io/access.c (__access): Likewise.
15583         * io/chdir.c (__chdir): Likewise.
15584         * io/chmod.c (__chmod): Likewise.
15585         * io/chown.c (__chown): Likewise.
15586         * io/close.c (__close): Likewise.
15587         * io/creat.c (creat): Likewise.
15588         * io/creat64.c (creat64): Likewise.
15589         * io/dup.c (__dup): Likewise.
15590         * io/dup2.c (__dup2): Likewise.
15591         * io/dup3.c (__dup3): Likewise.
15592         * io/euidaccess.c (__euidaccess): Likewise.
15593         * io/faccessat.c (faccessat): Likewise.
15594         * io/fchmod.c (__fchmod): Likewise.
15595         * io/fchmodat.c (fchmodat): Likewise.
15596         * io/fchown.c (__fchown): Likewise.
15597         * io/fchownat.c (fchownat): Likewise.
15598         * io/fcntl.c (__fcntl): Likewise.
15599         * io/flock.c (__flock): Likewise.
15600         * io/fts.c (fts_load): Likewise.
15601         (fts_close): Likewise.
15602         (fts_read): Likewise.
15603         (fts_set): Likewise.
15604         (fts_children): Likewise.
15605         (fts_build): Likewise.
15606         (fts_stat): Likewise.
15607         (fts_sort): Likewise.
15608         (fts_alloc): Likewise.
15609         (fts_lfree): Likewise.
15610         (fts_palloc): Likewise.
15611         (fts_padjust): Likewise.
15612         (fts_maxarglen): Likewise.
15613         (fts_safe_changedir): Likewise.
15614         * io/getwd.c (getwd): Likewise.
15615         * io/isatty.c (__isatty): Likewise.
15616         * io/lchown.c (__lchown): Likewise.
15617         * io/link.c (__link): Likewise.
15618         * io/linkat.c (linkat): Likewise.
15619         * io/lseek.c (__libc_lseek): Likewise.
15620         * io/mkdir.c (__mkdir): Likewise.
15621         * io/mkdirat.c (mkdirat): Likewise.
15622         * io/mkfifo.c (mkfifo): Likewise.
15623         * io/mkfifoat.c (mkfifoat): Likewise.
15624         * io/open.c (__libc_open): Likewise.
15625         * io/open64.c (__libc_open64): Likewise.
15626         * io/readlink.c (__readlink): Likewise.
15627         * io/readlinkat.c (readlinkat): Likewise.
15628         * io/rmdir.c (__rmdir): Likewise.
15629         * io/symlink.c (__symlink): Likewise.
15630         * io/symlinkat.c (symlinkat): Likewise.
15631         * io/ttyname.c (ttyname): Likewise.
15632         * io/ttyname_r.c (__ttyname_r): Likewise.
15633         * io/umask.c (__umask): Likewise.
15634         * io/unlink.c (__unlink): Likewise.
15635         * io/unlinkat.c (unlinkat): Likewise.
15636         * io/utime.c (utime): Likewise.
15637         * libio/clearerr.c (clearerr): Likewise.
15638         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15639         * libio/feof.c (_IO_feof): Likewise.
15640         * libio/feof_u.c (feof_unlocked): Likewise.
15641         * libio/ferror.c (_IO_ferror): Likewise.
15642         * libio/ferror_u.c (ferror_unlocked): Likewise.
15643         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15644         * libio/fileno.c (__fileno): Likewise.
15645         * libio/fputc.c (fputc): Likewise.
15646         * libio/fputc_u.c (fputc_unlocked): Likewise.
15647         * libio/fputwc.c (fputwc): Likewise.
15648         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15649         * libio/freopen.c (freopen): Likewise.
15650         * libio/freopen64.c (freopen64): Likewise.
15651         * libio/fseek.c (fseek): Likewise.
15652         * libio/fseeko.c (fseeko): Likewise.
15653         * libio/fseeko64.c (fseeko64): Likewise.
15654         * libio/ftello.c (__ftello): Likewise.
15655         * libio/ftello64.c (ftello64): Likewise.
15656         * libio/fwide.c (fwide): Likewise.
15657         * libio/genops.c (_IO_un_link): Likewise.
15658         (_IO_link_in): Likewise.
15659         (_IO_least_marker): Likewise.
15660         (_IO_switch_to_main_get_area): Likewise.
15661         (_IO_switch_to_backup_area): Likewise.
15662         (_IO_switch_to_get_mode): Likewise.
15663         (_IO_free_backup_area): Likewise.
15664         (_IO_switch_to_put_mode): Likewise.
15665         (__overflow): Likewise.
15666         (__underflow): Likewise.
15667         (__uflow): Likewise.
15668         (_IO_setb): Likewise.
15669         (_IO_doallocbuf): Likewise.
15670         (_IO_default_underflow): Likewise.
15671         (_IO_default_uflow): Likewise.
15672         (_IO_default_xsputn): Likewise.
15673         (_IO_sgetn): Likewise.
15674         (_IO_default_xsgetn): Likewise.
15675         (_IO_sync): Likewise.
15676         (_IO_default_setbuf): Likewise.
15677         (_IO_default_seekpos): Likewise.
15678         (_IO_default_doallocate): Likewise.
15679         (_IO_init): Likewise.
15680         (_IO_old_init): Likewise.
15681         (_IO_default_sync): Likewise.
15682         (_IO_default_finish): Likewise.
15683         (_IO_default_seekoff): Likewise.
15684         (_IO_sputbackc): Likewise.
15685         (_IO_sungetc): Likewise.
15686         (_IO_set_column): Likewise.
15687         (_IO_set_column): Likewise.
15688         (_IO_adjust_column): Likewise.
15689         (_IO_get_column): Likewise.
15690         (_IO_init_marker): Likewise.
15691         (_IO_remove_marker): Likewise.
15692         (_IO_marker_difference): Likewise.
15693         (_IO_marker_delta): Likewise.
15694         (_IO_seekmark): Likewise.
15695         (_IO_unsave_markers): Likewise.
15696         (_IO_nobackup_pbackfail): Likewise.
15697         (_IO_default_pbackfail): Likewise.
15698         (_IO_default_seek): Likewise.
15699         (_IO_default_stat): Likewise.
15700         (_IO_default_read): Likewise.
15701         (_IO_default_write): Likewise.
15702         (_IO_default_showmanyc): Likewise.
15703         (_IO_default_imbue): Likewise.
15704         (_IO_iter_next): Likewise.
15705         (_IO_iter_file): Likewise.
15706         * libio/getc.c (_IO_getc): Likewise.
15707         * libio/getwc.c (_IO_getwc): Likewise.
15708         * libio/iofclose.c (_IO_new_fclose): Likewise.
15709         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15710         * libio/iofflush.c (_IO_fflush): Likewise.
15711         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15712         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15713         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15714         * libio/iofgets.c (_IO_fgets): Likewise.
15715         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15716         * libio/iofgetws.c (fgetws): Likewise.
15717         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15718         * libio/iofopen64.c (_IO_fopen64): Likewise.
15719         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15720         (_IO_cookie_write): Likewise.
15721         (_IO_cookie_seek): Likewise.
15722         (_IO_cookie_close): Likewise.
15723         (_IO_cookie_seekoff): Likewise.
15724         (_IO_old_cookie_seek): Likewise.
15725         * libio/iofputs.c (_IO_fputs): Likewise.
15726         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15727         * libio/iofputws.c (fputws): Likewise.
15728         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15729         * libio/iofread.c (_IO_fread): Likewise.
15730         * libio/iofread_u.c (__fread_unlocked): Likewise.
15731         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15732         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15733         * libio/ioftell.c (_IO_ftell): Likewise.
15734         * libio/iofwrite.c (_IO_fwrite): Likewise.
15735         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15736         * libio/iogets.c (_IO_gets): Likewise.
15737         * libio/iopadn.c (_IO_padn): Likewise.
15738         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15739         (_IO_new_popen): Likewise.
15740         (_IO_new_proc_close): Likewise.
15741         * libio/ioputs.c (_IO_puts): Likewise.
15742         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15743         (_IO_seekoff): Likewise.
15744         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15745         (_IO_seekpos): Likewise.
15746         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15747         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15748         * libio/ioungetc.c (_IO_ungetc): Likewise.
15749         * libio/ioungetwc.c (ungetwc): Likewise.
15750         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15751         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15752         * libio/iowpadn.c (_IO_wpadn): Likewise.
15753         * libio/libc_fatal.c (__libc_fatal): Likewise.
15754         * libio/memstream.c (__open_memstream): Likewise.
15755         (_IO_mem_sync): Likewise.
15756         (_IO_mem_finish): Likewise.
15757         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15758         (_IO_old_file_close_it): Likewise.
15759         (_IO_old_file_finish): Likewise.
15760         (_IO_old_file_fopen): Likewise.
15761         (_IO_old_file_attach): Likewise.
15762         (_IO_old_file_setbuf): Likewise.
15763         (_IO_old_do_write): Likewise.
15764         (old_do_write): Likewise.
15765         (_IO_old_file_underflow): Likewise.
15766         (_IO_old_file_overflow): Likewise.
15767         (_IO_old_file_sync): Likewise.
15768         (_IO_old_file_seekoff): Likewise.
15769         (_IO_old_file_write): Likewise.
15770         (_IO_old_file_xsputn): Likewise.
15771         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15772         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15773         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15774         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15775         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15776         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15777         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15778         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15779         (_IO_old_popen): Likewise.
15780         (_IO_old_proc_close): Likewise.
15781         * libio/oldpclose.c (__old_pclose): Likewise.
15782         * libio/pclose.c (__new_pclose): Likewise.
15783         * libio/peekc.c (_IO_peekc_locked): Likewise.
15784         * libio/putc.c (_IO_putc): Likewise.
15785         * libio/putc_u.c (putc_unlocked): Likewise.
15786         * libio/putchar.c (putchar): Likewise.
15787         * libio/putchar_u.c (putchar_unlocked): Likewise.
15788         * libio/putwc.c (putwc): Likewise.
15789         * libio/putwc_u.c (putwc_unlocked): Likewise.
15790         * libio/putwchar.c (putwchar): Likewise.
15791         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15792         * libio/rewind.c (rewind): Likewise.
15793         * libio/setbuf.c (setbuf): Likewise.
15794         * libio/setlinebuf.c (setlinebuf): Likewise.
15795         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15796         * libio/vscanf.c (_IO_vscanf): Likewise.
15797         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15798         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15799         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15800         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15801         (_IO_switch_to_main_wget_area): Likewise.
15802         (_IO_switch_to_wbackup_area): Likewise.
15803         (_IO_wsetb): Likewise.
15804         (_IO_wdefault_pbackfail): Likewise.
15805         (_IO_wdefault_finish): Likewise.
15806         (_IO_wdefault_uflow): Likewise.
15807         (__woverflow): Likewise.
15808         (__wuflow): Likewise.
15809         (__wunderflow): Likewise.
15810         (_IO_wdefault_xsputn): Likewise.
15811         (_IO_wdefault_xsgetn): Likewise.
15812         (_IO_wdoallocbuf): Likewise.
15813         (_IO_wdefault_doallocate): Likewise.
15814         (_IO_switch_to_wget_mode): Likewise.
15815         (_IO_free_wbackup_area): Likewise.
15816         (_IO_switch_to_wput_mode): Likewise.
15817         (_IO_sputbackwc): Likewise.
15818         (_IO_sungetwc): Likewise.
15819         (_IO_adjust_wcolumn): Likewise.
15820         (_IO_init_wmarker): Likewise.
15821         (_IO_wmarker_delta): Likewise.
15822         (_IO_seekwmark): Likewise.
15823         (_IO_unsave_wmarkers): Likewise.
15824         * libio/wmemstream.c (open_wmemstream): Likewise.
15825         (_IO_wmem_sync): Likewise.
15826         (_IO_wmem_finish): Likewise.
15827         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15828         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15829         * locale/programs/simple-hash.c (init_hash): Likewise.
15830         (delete_hash): Likewise.
15831         (insert_entry): Likewise.
15832         (set_entry): Likewise.
15833         (next_prime): Likewise.
15834         (is_prime): Likewise.
15835         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15836         (xmalloc): Likewise.
15837         (xrealloc): Likewise.
15838         * locale/programs/xstrdup.c (xstrdup): Likewise.
15839         * localedata/collate-test.c (xstrcoll): Likewise.
15840         * localedata/xfrm-test.c (xstrcmp): Likewise.
15841         * login/getlogin_r.c (__getlogin_r): Likewise.
15842         * login/getpt.c (__posix_openpt): Likewise.
15843         * login/login_tty.c (login_tty): Likewise.
15844         * login/setlogin.c (setlogin): Likewise.
15845         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15846         (mach_msg_destroy_port): Likewise.
15847         (mach_msg_destroy_memory): Likewise.
15848         * malloc/mcheck.c (flood): Likewise.
15849         * misc/acct.c (acct): Likewise.
15850         * misc/brk.c (__brk): Likewise.
15851         * misc/chflags.c (chflags): Likewise.
15852         * misc/chroot.c (chroot): Likewise.
15853         * misc/fchflags.c (fchflags): Likewise.
15854         * misc/fstab.c (getfsspec): Likewise.
15855         (getfsfile): Likewise.
15856         * misc/fsync.c (fsync): Likewise.
15857         * misc/ftruncate.c (__ftruncate): Likewise.
15858         * misc/ftruncate64.c (__ftruncate64): Likewise.
15859         * misc/getdomain.c (getdomainname): Likewise.
15860         (getdomainname): Likewise.
15861         * misc/gethostname.c (__gethostname): Likewise.
15862         * misc/getpass.c (getpass): Likewise.
15863         * misc/getttyent.c (skip): Likewise.
15864         (value): Likewise.
15865         * misc/gtty.c (gtty): Likewise.
15866         * misc/hsearch.c (hsearch): Likewise.
15867         (hcreate): Likewise.
15868         * misc/hsearch_r.c (__hcreate_r): Likewise.
15869         (__hdestroy_r): Likewise.
15870         * misc/ioctl.c (__ioctl): Likewise.
15871         * misc/mkdtemp.c (mkdtemp): Likewise.
15872         * misc/mkostemp.c (mkostemp): Likewise.
15873         * misc/mkostemp64.c (mkostemp64): Likewise.
15874         * misc/mkostemps.c (mkostemps): Likewise.
15875         * misc/mkostemps64.c (mkostemps64): Likewise.
15876         * misc/mkstemp.c (mkstemp): Likewise.
15877         * misc/mkstemp64.c (mkstemp64): Likewise.
15878         * misc/mkstemps.c (mkstemps): Likewise.
15879         * misc/mkstemps64.c (mkstemps64): Likewise.
15880         * misc/mktemp.c (__mktemp): Likewise.
15881         * misc/preadv.c (preadv): Likewise.
15882         * misc/preadv64.c (preadv64): Likewise.
15883         * misc/pwritev.c (pwritev): Likewise.
15884         * misc/pwritev64.c (pwritev64): Likewise.
15885         * misc/readv.c (__readv): Likewise.
15886         * misc/revoke.c (revoke): Likewise.
15887         * misc/setdomain.c (setdomainname): Likewise.
15888         * misc/setegid.c (setegid): Likewise.
15889         * misc/seteuid.c (seteuid): Likewise.
15890         * misc/sethostid.c (sethostid): Likewise.
15891         * misc/sethostname.c (sethostname): Likewise.
15892         * misc/setregid.c (__setregid): Likewise.
15893         * misc/setreuid.c (__setreuid): Likewise.
15894         * misc/sstk.c (sstk): Likewise.
15895         * misc/stty.c (stty): Likewise.
15896         * misc/syscall.c (syscall): Likewise.
15897         * misc/syslog.c (setlogmask): Likewise.
15898         * misc/truncate.c (__truncate): Likewise.
15899         * misc/truncate64.c (truncate64): Likewise.
15900         * misc/ualarm.c (ualarm): Likewise.
15901         * misc/usleep.c (usleep): Likewise.
15902         * misc/ustat.c (ustat): Likewise.
15903         * misc/writev.c (__writev): Likewise.
15904         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15905         * nptl/old_pthread_cond_broadcast.c
15906         (__pthread_cond_broadcast_2_0): Likewise.
15907         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15908         Likewise.
15909         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15910         Likewise.
15911         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15912         Likewise.
15913         * nptl/pt-raise.c (raise): Likewise.
15914         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15915         Likewise.
15916         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15917         * nptl/pthread_barrierattr_destroy.c
15918         (pthread_barrierattr_destroy): Likewise.
15919         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15920         Likewise.
15921         * nptl/pthread_barrierattr_setpshared.c
15922         (pthread_barrierattr_setpshared): Likewise.
15923         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15924         Likewise.
15925         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15926         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15927         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15928         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15929         Likewise.
15930         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15931         Likewise.
15932         * nptl/pthread_condattr_getpshared.c
15933         (pthread_condattr_getpshared): Likewise.
15934         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15935         Likewise.
15936         * nptl/pthread_condattr_setpshared.c
15937         (pthread_condattr_setpshared): Likewise.
15938         * nptl/pthread_detach.c (pthread_detach): Likewise.
15939         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15940         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15941         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15942         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15943         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15944         Likewise.
15945         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15946         Likewise.
15947         * nptl/pthread_mutex_getprioceiling.c
15948         (pthread_mutex_getprioceiling): Likewise.
15949         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15950         Likewise.
15951         * nptl/pthread_mutexattr_getprotocol.c
15952         (pthread_mutexattr_getprotocol): Likewise.
15953         * nptl/pthread_mutexattr_getpshared.c
15954         (pthread_mutexattr_getpshared): Likewise.
15955         * nptl/pthread_mutexattr_getrobust.c
15956         (pthread_mutexattr_getrobust): Likewise.
15957         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15958         Likewise.
15959         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15960         Likewise.
15961         * nptl/pthread_mutexattr_setprioceiling.c
15962         (pthread_mutexattr_setprioceiling): Likewise.
15963         * nptl/pthread_mutexattr_setprotocol.c
15964         (pthread_mutexattr_setprotocol): Likewise.
15965         * nptl/pthread_mutexattr_setpshared.c
15966         (pthread_mutexattr_setpshared): Likewise.
15967         * nptl/pthread_mutexattr_setrobust.c
15968         (pthread_mutexattr_setrobust): Likewise.
15969         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15970         Likewise.
15971         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15972         Likewise.
15973         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15974         Likewise.
15975         * nptl/pthread_rwlockattr_getkind_np.c
15976         (pthread_rwlockattr_getkind_np): Likewise.
15977         * nptl/pthread_rwlockattr_getpshared.c
15978         (pthread_rwlockattr_getpshared): Likewise.
15979         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15980         Likewise.
15981         * nptl/pthread_rwlockattr_setkind_np.c
15982         (pthread_rwlockattr_setkind_np): Likewise.
15983         * nptl/pthread_rwlockattr_setpshared.c
15984         (pthread_rwlockattr_setpshared): Likewise.
15985         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15986         Likewise.
15987         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15988         Likewise.
15989         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15990         Likewise.
15991         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15992         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15993         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15994         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15995         * nptl/sem_close.c (sem_close): Likewise.
15996         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15997         * nptl/sem_init.c (__old_sem_init): Likewise.
15998         * nptl/sigaction.c (__sigaction): Likewise.
15999         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
16000         * posix/_exit.c (_exit): Likewise.
16001         * posix/alarm.c (alarm): Likewise.
16002         * posix/confstr.c (confstr): Likewise.
16003         * posix/fpathconf.c (__fpathconf): Likewise.
16004         * posix/getgroups.c (__getgroups): Likewise.
16005         * posix/getpgid.c (__getpgid): Likewise.
16006         * posix/group_member.c (__group_member): Likewise.
16007         * posix/pathconf.c (__pathconf): Likewise.
16008         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
16009         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
16010         * posix/setgid.c (__setgid): Likewise.
16011         * posix/setpgid.c (__setpgid): Likewise.
16012         * posix/setuid.c (__setuid): Likewise.
16013         * posix/sleep.c (__sleep): Likewise.
16014         * posix/sysconf.c (__sysconf): Likewise.
16015         * posix/times.c (__times): Likewise.
16016         * posix/uname.c (__uname): Likewise.
16017         * posix/waitid.c (__waitid): Likewise.
16018         * pwd/getpw.c (__getpw): Likewise.
16019         * resolv/base64.c (b64_pton): Likewise.
16020         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
16021         * resolv/gethnamaddr.c (Dprintf): Likewise.
16022         (gethostbyname): Likewise.
16023         (gethostbyname2): Likewise.
16024         (gethostbyaddr): Likewise.
16025         (_sethtent): Likewise.
16026         (_gethtbyname): Likewise.
16027         (_gethtbyname2): Likewise.
16028         (_gethtbyaddr): Likewise.
16029         (map_v4v6_address): Likewise.
16030         (map_v4v6_hostent): Likewise.
16031         (addrsort): Likewise.
16032         (ht_sethostent): Likewise.
16033         (ht_gethostbyname): Likewise.
16034         (ht_gethostbyaddr): Likewise.
16035         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
16036         (inet_net_ntop_ipv4): Likewise.
16037         * resolv/inet_neta.c (inet_neta): Likewise.
16038         * resolv/inet_ntop.c (inet_ntop): Likewise.
16039         (inet_ntop4): Likewise.
16040         (inet_ntop6): Likewise.
16041         * resolv/inet_pton.c (__inet_pton): Likewise.
16042         (inet_pton4): Likewise.
16043         (inet_pton6): Likewise.
16044         * resolv/res_debug.c (loc_aton): Likewise.
16045         (loc_ntoa): Likewise.
16046         * resource/getpriority.c (__getpriority): Likewise.
16047         * resource/getrusage.c (__getrusage): Likewise.
16048         * resource/nice.c (nice): Likewise.
16049         * resource/setpriority.c (__setpriority): Likewise.
16050         * resource/setrlimit64.c (setrlimit64): Likewise.
16051         * resource/vlimit.c (vlimit): Likewise.
16052         * resource/vtimes.c (vtimes): Likewise.
16053         * rt/aio_error.c (aio_error): Likewise.
16054         * rt/aio_return.c (aio_return): Likewise.
16055         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
16056         * signal/kill.c (__kill): Likewise.
16057         * signal/killpg.c (killpg): Likewise.
16058         * signal/raise.c (raise): Likewise.
16059         * signal/sigaction.c (__sigaction): Likewise.
16060         * signal/sigaddset.c (sigaddset): Likewise.
16061         * signal/sigaltstack.c (sigaltstack): Likewise.
16062         * signal/sigandset.c (sigandset): Likewise.
16063         * signal/sigblock.c (__sigblock): Likewise.
16064         * signal/sigdelset.c (sigdelset): Likewise.
16065         * signal/sigempty.c (sigemptyset): Likewise.
16066         * signal/sigfillset.c (sigfillset): Likewise.
16067         * signal/sighold.c (sighold): Likewise.
16068         * signal/sigignore.c (sigignore): Likewise.
16069         * signal/sigintr.c (siginterrupt): Likewise.
16070         * signal/sigisempty.c (sigisemptyset): Likewise.
16071         * signal/sigismem.c (sigismember): Likewise.
16072         * signal/signal.c (signal): Likewise.
16073         * signal/sigorset.c (sigorset): Likewise.
16074         * signal/sigpause.c (__sigpause): Likewise.
16075         * signal/sigpending.c (sigpending): Likewise.
16076         * signal/sigprocmask.c (__sigprocmask): Likewise.
16077         * signal/sigrelse.c (sigrelse): Likewise.
16078         * signal/sigreturn.c (__sigreturn): Likewise.
16079         * signal/sigset.c (sigset): Likewise.
16080         * signal/sigsetmask.c (__sigsetmask): Likewise.
16081         * signal/sigstack.c (sigstack): Likewise.
16082         * signal/sigsuspend.c (__sigsuspend): Likewise.
16083         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
16084         * signal/sysv_signal.c (__sysv_signal): Likewise.
16085         * socket/accept.c (accept): Likewise.
16086         * socket/accept4.c (__libc_accept4): Likewise.
16087         * socket/bind.c (__bind): Likewise.
16088         * socket/connect.c (__connect): Likewise.
16089         * socket/getpeername.c (getpeername): Likewise.
16090         * socket/getsockname.c (__getsockname): Likewise.
16091         * socket/getsockopt.c (getsockopt): Likewise.
16092         * socket/listen.c (__listen): Likewise.
16093         * socket/recv.c (__recv): Likewise.
16094         * socket/recvmsg.c (__recvmsg): Likewise.
16095         * socket/send.c (__send): Likewise.
16096         * socket/sendmsg.c (__sendmsg): Likewise.
16097         * socket/shutdown.c (shutdown): Likewise.
16098         * socket/sockatmark.c (sockatmark): Likewise.
16099         * socket/socket.c (__socket): Likewise.
16100         * stdio-common/ctermid.c (ctermid): Likewise.
16101         * stdio-common/cuserid.c (cuserid): Likewise.
16102         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
16103         * stdio-common/remove.c (remove): Likewise.
16104         * stdio-common/rename.c (rename): Likewise.
16105         * stdio-common/renameat.c (renameat): Likewise.
16106         * stdio-common/tempname.c (__gen_tempname): Likewise.
16107         * stdio-common/xbug.c (InitBuffer): Likewise.
16108         (AppendToBuffer): Likewise.
16109         (ReadFile): Likewise.
16110         * stdlib/a64l.c (a64l): Likewise.
16111         * stdlib/drand48_r.c (drand48_r): Likewise.
16112         * stdlib/getcontext.c (getcontext): Likewise.
16113         * stdlib/getenv.c (getenv): Likewise.
16114         * stdlib/l64a.c (l64a): Likewise.
16115         * stdlib/llabs.c (llabs): Likewise.
16116         * stdlib/lldiv.c (lldiv): Likewise.
16117         * stdlib/lrand48_r.c (lrand48_r): Likewise.
16118         * stdlib/mrand48_r.c (mrand48_r): Likewise.
16119         * stdlib/putenv.c (putenv): Likewise.
16120         * stdlib/random.c (__srandom): Likewise.
16121         (__initstate): Likewise.
16122         (__setstate): Likewise.
16123         * stdlib/random_r.c (__srandom_r): Likewise.
16124         (__setstate_r): Likewise.
16125         (__random_r): Likewise.
16126         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
16127         * stdlib/setcontext.c (setcontext): Likewise.
16128         * stdlib/setenv.c (setenv): Likewise.
16129         (unsetenv): Likewise.
16130         * stdlib/srand48.c (srand48): Likewise.
16131         * stdlib/srand48_r.c (__srand48_r): Likewise.
16132         * stdlib/swapcontext.c (swapcontext): Likewise.
16133         * stdlib/system.c (__libc_system): Likewise.
16134         * stdlib/tst-strtod.c (expand): Likewise.
16135         * stdlib/tst-strtol.c (expand): Likewise.
16136         * stdlib/tst-strtoll.c (expand): Likewise.
16137         * streams/fattach.c (fattach): Likewise.
16138         * streams/fdetach.c (fdetach): Likewise.
16139         * streams/getmsg.c (getmsg): Likewise.
16140         * streams/isastream.c (isastream): Likewise.
16141         * string/ffs.c (__ffs): Likewise.
16142         * string/ffsll.c (ffsll): Likewise.
16143         * string/memcmp.c (memcmp_common_alignment): Likewise.
16144         (memcmp_not_common_alignment): Likewise.
16145         (MEMCMP): Likewise.
16146         * string/memcpy.c (memcpy): Likewise.
16147         * string/memmove.c (MEMMOVE): Likewise.
16148         * string/memset.c (memset): Likewise.
16149         * string/rawmemchr.c (RAWMEMCHR): Likewise.
16150         * string/strchrnul.c (STRCHRNUL): Likewise.
16151         * string/strerror.c (strerror): Likewise.
16152         * string/strndup.c (__strndup): Likewise.
16153         * string/strverscmp.c (__strverscmp): Likewise.
16154         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
16155         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
16156         (clnttcp_freeres): Likewise.
16157         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
16158         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
16159         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
16160         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
16161         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
16162         (xdr_callhdr): Likewise.
16163         * sunrpc/rpcinfo.c (udpping): Likewise.
16164         (tcpping): Likewise.
16165         (pstatus): Likewise.
16166         (pmapdump): Likewise.
16167         (brdcst): Likewise.
16168         (deletereg): Likewise.
16169         (getprognum): Likewise.
16170         (getvers): Likewise.
16171         (get_inet_address): Likewise.
16172         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
16173         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16174         (svcudp_stat): Likewise.
16175         (svcudp_recv): Likewise.
16176         (svcudp_reply): Likewise.
16177         (svcudp_getargs): Likewise.
16178         (svcudp_freeargs): Likewise.
16179         (svcudp_destroy): Likewise.
16180         * sunrpc/xdr.c (xdr_bytes): Likewise.
16181         (xdr_netobj): Likewise.
16182         (xdr_string): Likewise.
16183         (xdr_wrapstring): Likewise.
16184         * sunrpc/xdr_float.c (xdr_float): Likewise.
16185         (xdr_double): Likewise.
16186         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
16187         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
16188         * sysvipc/ftok.c (ftok): Likewise.
16189         * sysvipc/msgctl.c (msgctl): Likewise.
16190         * sysvipc/msgget.c (msgget): Likewise.
16191         * sysvipc/msgrcv.c (msgrcv): Likewise.
16192         * sysvipc/msgsnd.c (msgsnd): Likewise.
16193         * sysvipc/semget.c (semget): Likewise.
16194         * sysvipc/semop.c (semop): Likewise.
16195         * sysvipc/shmat.c (shmat): Likewise.
16196         * sysvipc/shmctl.c (shmctl): Likewise.
16197         * sysvipc/shmdt.c (shmdt): Likewise.
16198         * sysvipc/shmget.c (shmget): Likewise.
16199         * termios/cfmakeraw.c (cfmakeraw): Likewise.
16200         * termios/speed.c (cfgetospeed): Likewise.
16201         (cfgetispeed): Likewise.
16202         (cfsetospeed): Likewise.
16203         (cfsetispeed): Likewise.
16204         * termios/tcflow.c (tcflow): Likewise.
16205         * termios/tcflush.c (tcflush): Likewise.
16206         * termios/tcgetattr.c (__tcgetattr): Likewise.
16207         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
16208         * termios/tcgetsid.c (tcgetsid): Likewise.
16209         * termios/tcsendbrk.c (tcsendbreak): Likewise.
16210         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
16211         * time/adjtime.c (__adjtime): Likewise.
16212         * time/dysize.c (dysize): Likewise.
16213         * time/ftime.c (ftime): Likewise.
16214         * time/getitimer.c (__getitimer): Likewise.
16215         * time/gettimeofday.c (__gettimeofday): Likewise.
16216         * time/gmtime.c (__gmtime_r): Likewise.
16217         (gmtime): Likewise.
16218         * time/localtime.c (__localtime_r): Likewise.
16219         (localtime): Likewise.
16220         * time/offtime.c (__offtime): Likewise.
16221         * time/settimeofday.c (__settimeofday): Likewise.
16222         * time/stime.c (stime): Likewise.
16223         * time/strftime_l.c (tm_diff): Likewise.
16224         (iso_week_days): Likewise.
16225         * time/strptime.c (strptime): Likewise.
16226         * time/time.c (time): Likewise.
16227         * time/timespec_get.c (timespec_get): Likewise.
16228         * time/tzset.c (tzset_internal): Likewise.
16229         (compute_change): Likewise.
16230         (__tz_compute): Likewise.
16231         * wcsmbs/btowc.c (__btowc): Likewise.
16232         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
16233         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
16234         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
16235         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
16236         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
16237         * wcsmbs/wcscat.c (__wcscat): Likewise.
16238         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16239         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
16240         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
16241         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16242         * wcsmbs/wcsdup.c (wcsdup): Likewise.
16243         * wcsmbs/wcslen.c (__wcslen): Likewise.
16244         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
16245         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
16246         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
16247         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
16248         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16249         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
16250         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16251         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16252         * wcsmbs/wcstok.c (wcstok): Likewise.
16253         * wcsmbs/wctob.c (wctob): Likewise.
16254         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
16255         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16256         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
16257         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
16258         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
16259         * wcsmbs/wmemset.c (__wmemset): Likewise.
16260         * wctype/wcfuncs.c (__towlower): Likewise.
16261         (__towupper): Likewise.
16262
16263         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
16264         (lll_unlock_elision): Add adapt_count parameter.
16265
16266 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16267
16268         * sysdeps/nptl/configure.ac: Do not give errors based on the
16269         results of top-level configure tests.
16270         * sysdeps/nptl/configure: Regenerated.
16271
16272         * configure.ac (libc_cv_Bgroup): Remove configure test.
16273         * configure: Regenerated.
16274         * config.make.in (have-Bgroup): Remove variable.
16275
16276         * configure.ac (sizeof_long_double): Remove configure test.
16277         * configure: Regenerated.
16278         * config.make.in (sizeof-long-double): Remove variable.
16279
16280         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
16281         * configure: Regenerated.
16282         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
16283         variable.
16284         (exceptions): Likewise.
16285         * sysdeps/arm/configure: Regenerated.
16286         * config.make.in (exceptions): Remove variable.
16287         * Makeconfig (uses-callbacks): Use -fexceptions instead of
16288         $(exceptions).
16289         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
16290         (CFLAGS-vdprintf_chk.c): Likewise.
16291         (CFLAGS-printf_chk.c): Likewise.
16292         (CFLAGS-fprintf_chk.c): Likewise.
16293         (CFLAGS-vprintf_chk.c): Likewise.
16294         (CFLAGS-vfprintf_chk.c): Likewise.
16295         (CFLAGS-gets_chk.c): Likewise.
16296         (CFLAGS-fgets_chk.c): Likewise.
16297         (CFLAGS-fgets_u_chk.c): Likewise.
16298         (CFLAGS-fread_chk.c): Likewise.
16299         (CFLAGS-fread_u_chk.c): Likewise.
16300         (CFLAGS-wprintf_chk.c): Likewise.
16301         (CFLAGS-fwprintf_chk.c): Likewise.
16302         (CFLAGS-vwprintf_chk.c): Likewise.
16303         (CFLAGS-vfwprintf_chk.c): Likewise.
16304         (CFLAGS-fgetws_chk.c): Likewise.
16305         (CFLAGS-fgetws_u_chk.c): Likewise.
16306         * libio/Makefile (CFLAGS-fileops.c): Likewise.
16307         (CFLAGS-fputc.c): Likewise.
16308         (CFLAGS-fputwc.c): Likewise.
16309         (CFLAGS-freopen64.c): Likewise.
16310         (CFLAGS-freopen.c): Likewise.
16311         (CFLAGS-fseek.c): Likewise.
16312         (CFLAGS-fseeko64.c): Likewise.
16313         (CFLAGS-fseeko.c): Likewise.
16314         (CFLAGS-ftello64.c): Likewise.
16315         (CFLAGS-ftello.c): Likewise.
16316         (CFLAGS-fwide.c): Likewise.
16317         (CFLAGS-genops.c): Likewise.
16318         (CFLAGS-getc.c): Likewise.
16319         (CFLAGS-getchar.c): Likewise.
16320         (CFLAGS-getwc.c): Likewise.
16321         (CFLAGS-getwchar.c): Likewise.
16322         (CFLAGS-iofclose.c): Likewise.
16323         (CFLAGS-iofflush.c): Likewise.
16324         (CFLAGS-iofgetpos64.c): Likewise.
16325         (CFLAGS-iofgetpos.c): Likewise.
16326         (CFLAGS-iofgets.c): Likewise.
16327         (CFLAGS-iofgetws.c): Likewise.
16328         (CFLAGS-iofputs.c): Likewise.
16329         (CFLAGS-iofputws.c): Likewise.
16330         (CFLAGS-iofread.c): Likewise.
16331         (CFLAGS-iofsetpos64.c): Likewise.
16332         (CFLAGS-iofsetpos.c): Likewise.
16333         (CFLAGS-ioftell.c): Likewise.
16334         (CFLAGS-iofwrite.c): Likewise.
16335         (CFLAGS-iogetdelim.c): Likewise.
16336         (CFLAGS-iogetline.c): Likewise.
16337         (CFLAGS-iogets.c): Likewise.
16338         (CFLAGS-iogetwline.c): Likewise.
16339         (CFLAGS-ioputs.c): Likewise.
16340         (CFLAGS-ioseekoff.c): Likewise.
16341         (CFLAGS-ioseekpos.c): Likewise.
16342         (CFLAGS-iosetbuffer.c): Likewise.
16343         (CFLAGS-iosetvbuf.c): Likewise.
16344         (CFLAGS-ioungetc.c): Likewise.
16345         (CFLAGS-ioungetwc.c): Likewise.
16346         (CFLAGS-oldfileops.c): Likewise.
16347         (CFLAGS-oldiofclose.c): Likewise.
16348         (CFLAGS-oldiofgetpos64.c): Likewise.
16349         (CFLAGS-oldiofgetpos.c): Likewise.
16350         (CFLAGS-oldiofsetpos64.c): Likewise.
16351         (CFLAGS-oldiofsetpos.c): Likewise.
16352         (CFLAGS-peekc.c): Likewise.
16353         (CFLAGS-putc.c): Likewise.
16354         (CFLAGS-putchar.c): Likewise.
16355         (CFLAGS-putwc.c): Likewise.
16356         (CFLAGS-putwchar.c): Likewise.
16357         (CFLAGS-rewind.c): Likewise.
16358         (CFLAGS-wfileops.c): Likewise.
16359         (CFLAGS-wgenops.c): Likewise.
16360         (CFLAGS-oldiofopen.c): Likewise.
16361         (CFLAGS-iofopen.c): Likewise.
16362         (CFLAGS-iofopen64.c): Likewise.
16363         (CFLAGS-oldtmpfile.c): Likewise.
16364         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16365         (CFLAGS-fprintf.c): Likewise.
16366         (CFLAGS-printf.c): Likewise.
16367         (CFLAGS-vfwprintf.c): Likewise.
16368         (CFLAGS-vfscanf.c): Likewise.
16369         (CFLAGS-vfwscanf.c): Likewise.
16370         (CFLAGS-fscanf.c): Likewise.
16371         (CFLAGS-scanf.c): Likewise.
16372         (CFLAGS-isoc99_vfscanf.c): Likewise.
16373         (CFLAGS-isoc99_vscanf.c): Likewise.
16374         (CFLAGS-isoc99_fscanf.c): Likewise.
16375         (CFLAGS-isoc99_scanf.c): Likewise.
16376         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
16377         (CFLAGS-isoc99_fwscanf.c): Likewise.
16378         (CFLAGS-isoc99_vwscanf.c): Likewise.
16379         (CFLAGS-isoc99_vfwscanf.c): Likewise.
16380
16381         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
16382         after mkstemp64.
16383         * login/tst-utmp.c (do_prepare): Likewise.
16384         * rt/tst-aio.c (do_prepare): Likewise.
16385         * rt/tst-aio64.c (do_prepare): Likewise.
16386
16387 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16388
16389         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16390         (__lll_lock_elision): Remove adapt_count decrement...
16391         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16392         (__lll_trylock_elision): Likewise.
16393         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16394         (__lll_unlock_elision): ... to here. And utilize
16395         new adapt_count parameter.
16396         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16397         (__lll_unlock_elision): Update to include adapt_count
16398         parameter.
16399         (lll_unlock_elision): Pass pointer to adapt_count
16400         variable.
16401
16402 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16403
16404         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
16405         Add elision adapt_count parameter to list of arguments.
16406         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16407         (lll_unlock_elision): Update with new parameter list
16408         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
16409         (lll_unlock_elision): Likewise.
16410         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
16411         (lll_unlock_elision): Likewise.
16412
16413 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16414
16415         [BZ #19122]
16416         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
16417         attribute_hidden.
16418
16419         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
16420         attribute_hidden.
16421         [IS_IN (rtld)] (__strdup): Likewise.
16422         [IS_IN (rtld)] (__strerror_r): Likewise.
16423         [IS_IN (rtld)] (__strsep_g): Likewise.
16424         [IS_IN (rtld)] (memchr): Likewise.
16425         [IS_IN (rtld)] (memcmp): Likewise.
16426         [IS_IN (rtld)] (memcpy): Likewise.
16427         [IS_IN (rtld)] (memmove): Likewise.
16428         [IS_IN (rtld)] (memset): Likewise.
16429         [IS_IN (rtld)] (rawmemchr): Likewise.
16430         [IS_IN (rtld)] (stpcpy): Likewise.
16431         [IS_IN (rtld)] (strchr): Likewise.
16432         [IS_IN (rtld)] (strcmp): Likewise.
16433         [IS_IN (rtld)] (strlen): Likewise.
16434         [IS_IN (rtld)] (strnlen): Likewise.
16435         [IS_IN (rtld)] (strsep): Likewise.
16436
16437         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
16438         attribute_hidden.
16439         [IS_IN (rtld)] (__strtoul_internal): Likewise.
16440
16441         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
16442         attribute_hidden.
16443         [IS_IN (rtld)] (__libc_sigaction): Likewise.
16444
16445         * include/setjmp.h (__longjmp): Add attribute_hidden.
16446         [IS_IN (rtld)] (__sigsetjmp): Likewise.
16447
16448         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
16449         Add attribute_hidden.
16450
16451         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
16452         [IS_IN (rtld)] (__open): Likewise.
16453         [IS_IN (rtld)] (__fcntl): Likewise.
16454
16455         * include/dirent.h (__opendirat): Add attribute_hidden.
16456         (__getdents): Likewise.
16457         (__getdents64): Likewise.
16458         (__alloc_dir): Likewise.
16459         [IS_IN (rtld)] (__closedir): Likewise.
16460         [IS_IN (rtld)] (__fdopendir): Likewise.
16461         [IS_IN (rtld)] (__readdir): Likewise.
16462         [IS_IN (rtld)] (__readdir64): Likewise.
16463         [IS_IN (rtld)] (__rewinddir): Likewise.
16464
16465         * include/dlfcn.h (_dl_catch_error): Moved to ...
16466         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
16467         attribute_hidden.
16468
16469         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
16470         (_itoa_word): Likewise.
16471
16472         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
16473         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
16474         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
16475         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
16476         (_dl_higher_prime_number): Likewise.
16477         (_dl_debug_printf_c): Likewise.
16478         (_dl_signal_cerror): Likewise.
16479         (_dl_receive_error): Likewise.
16480         (_dl_reloc_bad_type): Likewise.
16481         (_dl_resolve_conflicts): Likewise.
16482         (_dl_check_all_versions): Likewise.
16483         (_dl_check_map_versions): Likewise.
16484         (_dl_sort_fini): Likewise.
16485         (_dl_debug_initialize): Likewise.
16486         (_dl_init_paths): Likewise.
16487         (_dl_show_auxv): Likewise.
16488         (_dl_next_ld_env_entry): Likewise.
16489         (_dl_important_hwcaps): Likewise.
16490         (_dl_load_cache_lookup): Likewise.
16491         (_dl_update_slotinfo): Likewise.
16492         (_dl_show_scope): Likewise.
16493
16494         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
16495         attribute_hidden.
16496         (_wordcopy_fwd_dest_aligned): Likewise.
16497         (_wordcopy_bwd_aligned): Likewise.
16498         (_wordcopy_bwd_dest_aligned): Likewise.
16499
16500         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
16501         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16502         Likewise.
16503         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16504         Likewise.
16505         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
16506
16507 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16508
16509         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
16510         GCC 5 requirement.
16511
16512 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16513
16514         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
16515         test.
16516         * sysdeps/i386/configure: Regenerated.
16517         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
16518         code unconditional.
16519
16520         * configure.ac (libc_cv_asm_previous_directive): Remove configure
16521         test.
16522         (libc_cv_asm_popsection_directive): Likewise.
16523         * configure: Regenerated.
16524         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
16525         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
16526         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
16527         (__make_section_unallocated): Make definition unconditional.
16528         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
16529         Remove conditional definition.
16530         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
16531         (__make_section_unallocated): Likewise.
16532
16533         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
16534         * configure: Regenerated.
16535         * config.make.in (static-libgcc): Remove variable.
16536         * Makerules (build-shlib-helper): Use -static-libgcc instead of
16537         $(static-libgcc).
16538         (build-module-helper): Likewise.
16539
16540         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
16541         * configure: Regenerated.
16542
16543 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16544
16545         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
16546         (struct char_buffer): New type.
16547         (char_buffer_start, char_buffer_size, char_buffer_error)
16548         (char_buffer_rewind, char_buffer_add): New functions.
16549         (ADDW): Remove macro, replaced by the char_buffer_add function.
16550         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16551         of extend_alloca.  Make control flow more explicit.
16552
16553 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16554
16555         [BZ #19137]
16556         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16557         Add -fomit-frame-pointer.
16558         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16559
16560 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16561
16562         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16563         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16564         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16565         only if !__GNUC_PREREQ (5,0).
16566         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16567         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16568         (INTERNAL_SYSCALL_NCS): Likewise.
16569         (LOADREGS_0): New macro for GCC 5.
16570         (ASMARGS_0): Likewise.
16571         (LOADREGS_1): Likewise.
16572         (ASMARGS_1): Likewise.
16573         (LOADREGS_2): Likewise.
16574         (ASMARGS_2): Likewise.
16575         (LOADREGS_3): Likewise.
16576         (ASMARGS_3): Likewise.
16577         (LOADREGS_4): Likewise.
16578         (ASMARGS_4): Likewise.
16579         (LOADREGS_5): Likewise.
16580         (ASMARGS_5): Likewise.
16581         (LOADREGS_6): Likewise.
16582         (ASMARGS_6): Likewise.
16583
16584 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16585
16586         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16587         -fomit-frame-pointer.
16588         (CFLAGS-mmap64.c): Likewise.
16589         (CFLAGS-semtimedop.c): Likewise.
16590         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16591         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16592         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16593         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16594
16595 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16596
16597         [BZ #18928]
16598         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16599         _dl_pointer_guard member.
16600         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16601         initializer.
16602         (security_init): Always set up pointer guard.
16603         (process_envvars): Do not process LD_POINTER_GUARD.
16604
16605 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16606
16607         [BZ #19134]
16608         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16609         (.LC2): Likewise.
16610         (.LC3): Likewise.
16611         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16612
16613 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16614
16615         [BZ #19129]
16616         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16617         r0 and r1.
16618
16619 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16620
16621         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16622
16623 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16624
16625         * include/stap-probe.h: Fix macro definition formatting.
16626
16627 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16628
16629         [BZ #19074]
16630         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16631         load and store num_ifs.
16632
16633 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16634
16635         [BZ #18822]
16636         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16637         (__sched_getaffinity_new): Add libc_hidden_proto and
16638         libc_hidden_def.
16639
16640 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16641
16642         [BZ #19007]
16643         * scripts/localplt.awk: Also allow GOT references.
16644         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16645         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16646         with "+ REL R_386_GLOB_DAT".
16647         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16648         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16649
16650 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16651
16652         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16653         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16654         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16655         Likewise.
16656         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16657         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16658         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16659         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16660         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16661         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16662         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16663         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16664         Likewise.
16665         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16666
16667 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16668
16669         [BZ #19125]
16670         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16671         <math_private.h> and <stdint.h>.
16672         (__llround): Avoid conversions to and from long long int, and
16673         subtractions, where those might raise spurious exceptions.
16674         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16675         <math_private.h> and <stdint.h>.
16676         (__llroundf): Avoid conversions to and from long long int, and
16677         subtractions, where those might raise spurious exceptions.
16678
16679 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16680
16681         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16682         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16683         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16684         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16685         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16686         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16687         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16688         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16689         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16690         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16691         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16692         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16693         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16694         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16695         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16696         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16697         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16698         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16699         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16700         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16701         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16702         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16703         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16704         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16705         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16706         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16707         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16708         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16709         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16710         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16711         (__xstat64_conv): Likewise.
16712         (__xstat32_conv): Likewise.
16713
16714 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16715
16716         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16717         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16718         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16719         <sysdeps/unix/sysv/linux/sysdep.h>.
16720         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16721         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16722         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16723         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16724         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16725         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16726         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16727         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16728         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16731         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16732         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16733         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16734         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16735         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16736         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16737         (sysdep-dl-routines): Add sysdep.
16738         [$(subdir) == nptl] (libpthread-routines): Likewise.
16739         [$(subdir) == rt] (librt-routines): Likewise.
16740         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16741         PIC when branching to SYSCALL_ERROR_LABEL.
16742         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16743         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16744         <sysdeps/unix/sysv/linux/sysdep.h>.
16745         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16746         (SYSCALL_ERROR_ERRNO): Removed.
16747         (SYSCALL_ERROR_HANDLER): Changed to empty.
16748         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16749         (__syscall_error): New prototype.
16750         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16751         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16752
16753 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16754
16755         [BZ #19124]
16756         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16757         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16758         _dl_runtime_resolve_avx.
16759         (_dl_runtime_profile_avx512): Make it a hidden alias of
16760         _dl_runtime_profile_avx.
16761
16762 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16763
16764         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16765         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16766         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16767         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16768
16769         [BZ #16422]
16770         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16771         New configure test.
16772         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16773         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16774         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16775         <math_private.h> and <stdint.h>.
16776         (__llrint): Avoid conversions to long long int where those might
16777         raise spurious exceptions.
16778         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16779         <math_private.h> and <stdint.h>.
16780         (__llrintf): Avoid conversions to long long int where those might
16781         raise spurious exceptions.
16782
16783 2015-10-12  Andreas Schwab  <schwab@suse.de>
16784
16785         [BZ #18969]
16786         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16787         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16788         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16789         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16790         $(gen-locales).
16791         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16792         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16793         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16794         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16795         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16796         $(gen-locales).
16797         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16798         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16799         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16800         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16801         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16802         ($(objpfx)tst-ftell-active-handler.out)
16803         ($(objpfx)tst-ftell-append.out)
16804         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16805         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16806         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16807         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16808         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16809         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16810         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16811         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16812         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16813         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16814         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16815         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16816         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16817         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16818         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16819         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16820         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16821         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16822         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16823         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16824         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16825         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16826         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16827         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16828         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16829         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16830         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16831         $(gen-locales).
16832         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16833         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16834         $(gen-locales).
16835         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16836         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16837         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16838         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16839         $(gen-locales).
16840         * libio/tst_wprintf2.c (main): Use explicit locale.
16841         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16842
16843 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16844
16845         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16846         __msg_sig_post.
16847         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16848
16849 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16850
16851         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16852         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16853
16854         * sysdeps/arm/libm-test-ulps: Regenerated.
16855
16856         [BZ #15470]
16857         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16858
16859         [BZ #16399]
16860         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16861         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16862         and <fix-fp-int-convert-overflow.h>.
16863         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16864         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16865         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16866         and <fix-fp-int-convert-overflow.h>.
16867         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16868         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16869         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16870         <fix-fp-int-convert-overflow.h>.
16871         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16872         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16873         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16874         <fix-fp-int-convert-overflow.h>.
16875         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16876         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16877         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16878         and <fix-fp-int-convert-overflow.h>.
16879         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16880         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16881         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16882         <limits.h> and <fix-fp-int-convert-overflow.h>.
16883         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16884         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16885         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16886         and <fix-fp-int-convert-overflow.h>.
16887         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16888         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16889         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16890         and <fix-fp-int-convert-overflow.h>.
16891         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16892         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16893         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16894
16895 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16896
16897         [BZ #18589]
16898         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16899         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16900         $(gen-locales).
16901
16902 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16903             Phil Blundell <pb@pbcl.net>
16904
16905         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16906         * nptl/tst-cancel26.c: New file.
16907         * nptl/tst-cancel27.c: Likewise.
16908
16909 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16910
16911         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16912         __ILP32__ isn't defined.
16913         (lrint): Likewise.
16914         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16915         (lrintf): Likewise.
16916         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16917         (lrintl): Likewise.
16918         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16919         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16920         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16921
16922 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16923
16924         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16925         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16926
16927         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16928         file.
16929         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16930         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16931
16932 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16933
16934         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16935         configure test.
16936         * sysdeps/i386/configure: Regenerated.
16937         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16938         configure test.
16939         * sysdeps/x86_64/configure: Regenerated.
16940         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16941         Make code unconditional.
16942
16943         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16944         test.
16945         * sysdeps/i386/configure: Regenerated.
16946         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16947         test.
16948         * sysdeps/x86_64/configure: Regenerated.
16949         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16950         Make code unconditional.
16951         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16952         Likewise.
16953         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16954         Likewise.
16955         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16956         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16957         code unconditional.
16958         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16959         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16960         code unconditional.
16961         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16962         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16963         code unconditional.
16964         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16965         code unconditional.
16966         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16967         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16968         code unconditional.
16969         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16970         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16971         code unconditional.
16972         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16973         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16974         code unconditional.
16975         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16976         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16977         code unconditional.
16978         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16979         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16980
16981         [BZ #19095]
16982         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16983         mantissa to long int before shifting left.
16984
16985 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16986
16987         [BZ #19094]
16988         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16989         <limits.h>.
16990         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16991         when result overflows but exception would not result from cast.
16992         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
16993         <limits.h>.
16994         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16995         when result overflows but exception would not result from cast.
16996         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16997         <limits.h>.
16998         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16999         when result overflows but exception would not result from cast.
17000         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
17001         <limits.h>.
17002         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17003         when result overflows but exception would not result from cast.
17004         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
17005         <limits.h>.
17006         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17007         when result overflows but exception would not result from cast.
17008         * math/libm-test.inc (lrint_test_data): Add more tests.
17009         (llrint_test_data): Likewise.
17010
17011 2015-10-08  Roland McGrath  <roland@hack.frob.com>
17012
17013         [BZ #18872]
17014         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
17015         Move out from under [$(run-built-tests) = yes] conditional.
17016         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
17017         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
17018
17019 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
17020
17021         [BZ #18589]
17022         * string/Makefile (tests): Add bug-strcoll2.
17023         (LOCALES): Add cs_CZ.UTF-8.
17024         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
17025
17026         [BZ #18589]
17027         * string/bug-strcoll2.c: New file.
17028         * locale/categories.def: Revert commit
17029         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
17030         * locale/langinfo.h: Likewise.
17031         * locale/localeinfo.h: Likewise.
17032         * locale/C-collate.c: Likewise.
17033         * locale/programs/ld-collate.c (collate_output): Likewise.
17034         * string/strcoll_l.c (STRDIFF): Likewise.
17035         (STRCOLL): Likewise.
17036         * wcsmbs/wcscoll_l.c: Likewise.
17037
17038 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
17039
17040         * math/libm-test.inc (lround_test_data): Do not expect the absence
17041         of "inexact" for some tests with non-integer arguments.
17042         (llround_test_data): Likewise.
17043
17044         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
17045         test.
17046         (libc_cv_cc_sse2avx): Likewise.
17047         * sysdeps/i386/configure: Regenerated.
17048         * sysdeps/i386/i686/multiarch/Makefile
17049         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
17050         [$(subdir) = math].
17051         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
17052         code unconditional.
17053         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
17054         Likewise.
17055         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
17056         Likewise.
17057         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
17058         Likewise.
17059         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
17060         test.
17061         (libc_cv_cc_sse2avx): Likewise.
17062         * sysdeps/x86_64/configure: Regenerated.
17063         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
17064         unconditional.
17065         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
17066         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
17067         unconditional.
17068         (_dl_runtime_profile)
17069         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
17070         conditional code.
17071         * sysdeps/x86_64/fpu/multiarch/Makefile
17072         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
17073         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
17074         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17075         * sysdeps/x86_64/fpu/multiarch/e_exp.c
17076         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17077         * sysdeps/x86_64/fpu/multiarch/e_log.c
17078         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17079         * sysdeps/x86_64/fpu/multiarch/s_atan.c
17080         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17081         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
17082         Likewise.
17083         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
17084         Likewise.
17085         * sysdeps/x86_64/fpu/multiarch/s_sin.c
17086         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17087         * sysdeps/x86_64/fpu/multiarch/s_tan.c
17088         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17089         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
17090         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
17091         (HAVE_SSE2AVX_SUPPORT): Likewise.
17092
17093 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
17094
17095         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
17096         instead of #pragma optimize.
17097
17098 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
17099
17100         [BZ #17195]
17101         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
17102         as is similarly done in systrim and _int_free already.
17103
17104 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17105
17106         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
17107
17108 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17109
17110         [BZ #19088]
17111         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
17112         <limits.h>.
17113         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
17114         overflows but exception would not result from cast.
17115         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
17116         and <limits.h>.
17117         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
17118         overflows but exception would not result from cast.
17119         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
17120         <limits.h>.
17121         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
17122         overflows but exception would not result from cast.
17123         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
17124         <limits.h>.
17125         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
17126         overflows but exception would not result from cast.
17127         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
17128         <limits.h>.
17129         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
17130         overflows but exception would not result from cast.
17131         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
17132         <limits.h>.
17133         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
17134         overflows but exception would not result from cast.
17135         * math/libm-test.inc (lround_test_data): Add more tests.
17136         (llround_test_data): Likewise.
17137
17138 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
17139
17140         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
17141         (CFLAGS-ialloc.c): Ditto.
17142         (CFLAGS-scheck.c): Ditto.
17143
17144 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
17145
17146         [BZ #19086]
17147         * manual/filesys.texi (Storage Allocation): Fix argument order for
17148         posix_fallocate64.
17149
17150 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17151
17152         [BZ #19085]
17153         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
17154         exponent below 48 inside case for non-overflowing exponent.
17155         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
17156
17157 2015-10-07  Florian Weimer  <fweimer@redhat.com>
17158
17159         * iconvdata/cp737.h (from_idx): Add const.
17160         * iconvdata/cp775.h (from_idx): Likewise.
17161
17162 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17163
17164         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
17165         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
17166         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
17167
17168         [BZ #19079]
17169         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
17170         file, conditioned on [!_LP64].
17171         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
17172         [!_LP64] (__lround): Do not define as function or alias.
17173         [!_LP64] (lround): Likewise.
17174         [!_LP64] (__lroundl): Likewise.
17175         [!_LP64] (lroundl): Likewise.
17176         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
17177         macro.
17178         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
17179         Likewise.
17180
17181 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
17182
17183         * math/libm-test.inc (lrint_test_data): Add more tests.
17184         (llrint_test_data): Likewise.
17185         (lround_test_data): Likewise.
17186         (llround_test_data): Likewise.
17187
17188         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
17189         (llrint_test_data): Add tests used for lrint.
17190
17191         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
17192         test.
17193         * sysdeps/i386/configure: Regenerated.
17194         * sysdeps/i386/i686/multiarch/Makefile
17195         [$(config-cflags-sse4) = yes]: Make code unconditional.
17196         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
17197         Likewise.
17198         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
17199         Likewise.
17200         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
17201         test.
17202         * sysdeps/x86_64/configure: Regenerated.
17203         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
17204         Make code unconditional.
17205         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
17206         Likewise.
17207         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
17208         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
17209
17210         * scripts/rpm2dynsym.sh: Remove file.
17211
17212 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17213
17214         * configure.ac (libc_cv_cxx_thread_local): Define.
17215         * configure: Regenerate.
17216         * config.make.in (have-cxx-thread_local): Define.
17217         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
17218         (LDLIBS-tst-thread_local1): Define.
17219         (tests): Add tst-thread_local1.
17220         [have-cxx-thread_local != yes] (tests-unsupported): Add
17221         tst-thread_local1.
17222         * nptl/tst-thread_local1.cc: New file.
17223
17224 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
17225
17226         [BZ #19078]
17227         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
17228         (u_thres): Likewise.
17229         (__expl): Determine whether to call __kernel_standard_l based on
17230         value of result, not argument.
17231
17232         * math/libm-test.inc (scalb_test_data): Add more expectations for
17233         the "inexact" exception.
17234
17235         [BZ #19077]
17236         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
17237         0.0L for argument 1.0L.
17238
17239         [BZ #19076]
17240         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
17241         constant 0.0L when computing infinite result.
17242
17243 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17244
17245         [BZ #10432]
17246         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
17247         malloc_usable_size.
17248
17249 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17250
17251         [BZ #19018]
17252         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
17253         Mangle function pointer before storing it.
17254         (__call_tls_dtors): Demangle function pointer before calling it.
17255
17256 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17257
17258         [BZ #19012]
17259         * iconv/gconv_db.c (gen_steps): Check for additional errors.
17260         Clean up on failure.
17261
17262 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
17263
17264         [BZ #19071]
17265         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
17266         long int variable to store possibly incremented high part of
17267         mantissa.
17268         * math/libm-test.inc (lround_test_data): Add tests used for
17269         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
17270         for tests requiring 64-bit long.  Do not condition tests on
17271         [TEST_FLOAT] unnecessarily.
17272         (llround_test_data): Add tests used for lround.  Add another
17273         expectation for the "inexact" exception.  Do not condition tests
17274         on [TEST_FLOAT] unnecessarily.
17275
17276         [BZ #887]
17277         [BZ #19049]
17278         [BZ #19050]
17279         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
17280         * sysdeps/ieee754/dbl-64/e_log10.c: Include
17281         <fix-int-fp-convert-zero.h>.
17282         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17283         * sysdeps/ieee754/dbl-64/e_log2.c: Include
17284         <fix-int-fp-convert-zero.h>.
17285         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17286         * sysdeps/ieee754/dbl-64/s_erf.c: Include
17287         <fix-int-fp-convert-zero.h>.
17288         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17289         * sysdeps/ieee754/dbl-64/s_logb.c: Include
17290         <fix-int-fp-convert-zero.h>.
17291         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17292         * sysdeps/ieee754/flt-32/e_log10f.c: Include
17293         <fix-int-fp-convert-zero.h>.
17294         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17295         * sysdeps/ieee754/flt-32/e_log2f.c: Include
17296         <fix-int-fp-convert-zero.h>.
17297         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17298         * sysdeps/ieee754/flt-32/s_erff.c: Include
17299         <fix-int-fp-convert-zero.h>.
17300         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17301         * sysdeps/ieee754/flt-32/s_logbf.c: Include
17302         <fix-int-fp-convert-zero.h>.
17303         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17304         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
17305         <fix-int-fp-convert-zero.h>.
17306         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17307         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
17308         <fix-int-fp-convert-zero.h>.
17309         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17310         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
17311         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
17312         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
17313         file.
17314         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
17315
17316 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17317
17318         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17319
17320 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
17321
17322         [BZ #19059]
17323         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
17324         overflowing computation.
17325         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17326         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17327         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17328         Likewise.
17329         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17330         Likewise.
17331         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17332         Likewise.
17333         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17334         Likewise.
17335         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17336         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17337         Likewise.
17338         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17339         Likewise.
17340         * math/libm-test.inc (nexttoward_test_data): Add more tests.
17341
17342         * nss/rewrite_field.c (__nss_rewrite_field): Use
17343         internal_function.
17344         * nss/valid_field.c (__nss_valid_field): Likewise.
17345         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
17346
17347 2015-10-02  Florian Weimer  <fweimer@redhat.com>
17348
17349         [BZ #18724]
17350         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
17351         (__nss_invalid_field_characters, __nss_valid_field)
17352         (__nss_valid_list_field, __nss_rewrite_field): Declare.
17353         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
17354         tst-field.c: New file.
17355         * nss/Makefile (routines): Add valid_field, rewrite_field.
17356         (tests-static): Define unconditionally.
17357         (tests): Include tests-static.
17358         [build-static-nss] (tests-static): Use append.
17359         [build-static-nss] (tests): Remove modification.
17360         * nss/getent.c (print_group): Call putgrent.  Report error.
17361         (print_gshadow): Call putsgent.  Report error.
17362         (print_passwd): Call putpwent.  Report error.
17363         (print_shadow): Call putspent.  Report error.
17364         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
17365         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
17366         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
17367         name, password, directory, shell fields for valid syntax.  Rewrite
17368         GECOS field to match syntax.
17369         * pwd/Makefile (tests): Add tst-putpwent.
17370         * pwd/tst-putpwent.c: New file.
17371         * grp/putgrent.c (putgrent): Convert to ISO function definition.
17372         Check grName, grpasswd, gr_mem fields for valid syntax.
17373         Change loop variable i to size_t.
17374         * grp/Makefile (tests): Add tst-putgrent.
17375         * grp/tst-putgrent.c: New file.
17376         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
17377         valid syntax.
17378         * shadow/Makefile (tests): Add tst-putspent.
17379         * shadow/tst-putspent.c: New file.
17380         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
17381         sg_mem fields for valid syntax.
17382         * gshadow/Makefile (tests): Add tst-putsgent.
17383         * gshadow/tst-putsgent.c: New file.
17384
17385 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17386
17387         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
17388         assembly instructions.
17389
17390 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17391
17392         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
17393         prefix from operands.
17394
17395 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
17396
17397         [BZ #16347]
17398         [BZ #19046]
17399         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
17400         <libc-internal.h>.
17401         (MAXLGM): Do not use diagnostic control macros.
17402         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
17403         threshold for ldbl-128ibm.
17404         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
17405         instead of multiplying by log then subtracting.
17406         * math/auto-libm-test-in: Add more tests of lgamma.
17407         * math/auto-libm-test-out: Regenerated.
17408
17409         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
17410         (TYPE_HEX_DIG): Likewise.
17411         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
17412         precisions when printing floating-point numbers.
17413         (check_float_internal): Likewise.
17414
17415 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17416
17417         [BZ #16620]
17418         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
17419         of log (10) rounded downward to 48 bits.
17420         (log10_low): Use corresponding low part of log (10).
17421
17422         [BZ #19032]
17423         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
17424         compute result as (x - x) / (x - x) not as 0 / 0.
17425         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
17426         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
17427
17428         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
17429         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
17430         and expm1.
17431         * math/auto-libm-test-out: Regenerated.
17432         * math/libm-test.inc (acos_test_data): Add more tests.
17433         (asin_test_data): Likewise.
17434         (asinh_test_data): Likewise.
17435         (atan_test_data): Likewise.
17436         (atanh_test_data): Likewise.
17437         (atan2_test_data): Likewise.
17438         (cbrt_test_data): Likewise.
17439         (ceil_test_data): Likewise.
17440         (copysign_test_data): Likewise.
17441         (cos_test_data): Likewise.
17442         (cosh_test_data): Likewise.
17443         (erf_test_data): Likewise.
17444         (erfc_test_data): Likewise.
17445         (exp_test_data): Likewise.
17446         (exp10_test_data): Likewise.
17447         (exp2_test_data): Likewise.
17448         (expm1_test_data): Likewise.
17449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17450
17451 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
17452
17453         [BZ #19006]
17454         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
17455         to ...
17456         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
17457         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
17458         to ...
17459         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
17460         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
17461         to ...
17462         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
17463         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
17464         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
17465         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
17466         to ...
17467         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
17468         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
17469         Moved to ...
17470         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
17471         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
17472         Moved to ...
17473         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
17474         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
17475         to ...
17476         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
17477         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
17478         Moved to ...
17479         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
17480         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
17481         to ...
17482         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
17483         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
17484         Removed.
17485         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
17486         Likewise.
17487         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
17488         Likewise.
17489         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
17490         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
17491         Likewise.
17492         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
17493         Likewise.
17494         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
17495         Likewise.
17496         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
17497         Likewise.
17498         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
17499         Likewise.
17500         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
17501         Likewise.
17502         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
17503         Likewise.
17504         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
17505         Likewise.
17506         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
17507         Likewise.
17508         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
17509         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
17510         Likewise.
17511         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
17512         Likewise.
17513         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
17514         Likewise.
17515         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
17516         Likewise.
17517         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
17518         Likewise.
17519         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
17520         Replace ../i486/pthread_cond_timedwait.S with
17521         ../pthread_cond_timedwait.S.
17522
17523 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17524
17525         * math/libm-test.inc (acos_test_data): Refine expectations for
17526         errno and "inexact" exceptions.
17527         (acosh_test_data): Likewise.
17528         (asin_test_data): Likewise.
17529         (asinh_test_data): Likewise.
17530         (atan_test_data): Likewise.
17531         (atanh_test_data): Likewise.
17532         (atan2_test_data): Likewise.
17533         (cbrt_test_data): Likewise.
17534         (ceil_test_data): Likewise.
17535         (copysign_test_data): Likewise.
17536         (cosh_test_data): Likewise.
17537         (erf_test_data): Likewise.
17538         (erfc_test_data): Likewise.
17539         (exp_test_data): Likewise.
17540         (exp10_test_data): Likewise.
17541         (exp2_test_data): Likewise.
17542         (expm1_test_data): Likewise.
17543         (fabs_test_data): Likewise.
17544         (floor_test_data): Likewise.
17545         (fma_test_data): Likewise.
17546         (fmax_test_data): Likewise.
17547         (fmin_test_data): Likewise.
17548         (fmod_test_data): Likewise.
17549         (fpclassify_test_data): Likewise.
17550         (frexp_test_data): Likewise.
17551         (hypot_test_data): Likewise.
17552         (ilogb_test_data): Likewise.
17553         (isgreater_test_data): Likewise.
17554         (isgreaterequal_test_data): Likewise.
17555         (isinf_test_data): Likewise.
17556         (isless_test_data): Likewise.
17557         (islessequal_test_data): Likewise.
17558         (islessgreater_test_data): Likewise.
17559         (isnan_test_data): Likewise.
17560         (isnormal_test_data): Likewise.
17561         (issignaling_test_data): Likewise.
17562         (isunordered_test_data): Likewise.
17563         (j0_test_data): Likewise.
17564         (j1_test_data): Likewise.
17565         (jn_test_data): Likewise.
17566         (lgamma_test_data): Likewise.
17567         (lrint_test_data): Likewise.
17568         (llrint_test_data): Likewise.
17569         (log_test_data): Likewise.
17570         (log10_test_data): Likewise.
17571         (log1p_test_data): Likewise.
17572         (log2_test_data): Likewise.
17573         (logb_test_data): Likewise.
17574         (lround_test_data): Likewise.
17575         (llround_test_data): Likewise.
17576         (modf_test_data): Likewise.
17577         (nearbyint_test_data): Likewise.
17578         (nextafter_test_data): Likewise.
17579         (nexttoward_test_data): Likewise.
17580         (pow_test_data): Likewise.
17581         (remainder_test_data): Likewise.
17582         (remquo_test_data): Likewise.
17583         (rint_test_data): Likewise.
17584         (round_test_data): Likewise.
17585         (signbit_test_data): Likewise.
17586         (sinh_test_data): Likewise.
17587         (sqrt_test_data): Likewise.
17588         (tanh_test_data): Likewise.
17589         (tgamma_test_data): Likewise.
17590         (trunc_test_data): Likewise.
17591         (y0_test_data): Likewise.
17592         (y1_test_data): Likewise.
17593         (yn_test_data): Likewise.
17594         (significand_test_data): Likewise.
17595
17596 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17597
17598         * manual/filesys.texi (Storage Allocation): Document that
17599         posix_fallocate emulation fails when fd is open with O_WRONLY.
17600
17601 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17602
17603         [BZ #19016]
17604         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17605         allow more cases with X^2 + Y^2 >= 0.5.
17606         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17607         normal element in sum instead of special-casing based on values of
17608         arguments.
17609         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17610         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17611         -1 as normal element in sum instead of special-casing based on
17612         values of arguments.
17613         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17614         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17615         (__x2y2m1): Update comment.
17616         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17617         as normal element in sum instead of special-casing based on values
17618         of arguments.
17619         * math/s_clog.c (__clog): Handle more cases using log1p without
17620         hypot.
17621         * math/s_clog10.c (__clog10): Likewise.
17622         * math/s_clog10f.c (__clog10f): Likewise.
17623         * math/s_clog10l.c (__clog10l): Likewise.
17624         * math/s_clogf.c (__clogf): Likewise.
17625         * math/s_clogl.c (__clogl): Likewise.
17626         * math/auto-libm-test-in: Add more tests of clog and clog10.
17627         * math/auto-libm-test-out: Regenerated.
17628         * sysdeps/i386/fpu/libm-test-ulps: Update.
17629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17630
17631 2015-09-28  Martin Sebor  <msebor@redhat.com>
17632
17633         [BZ #18969]
17634         * string/Makefile (LOCALES): Define.
17635         (gen-locales.mk): Include.
17636         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17637         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17638         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17639         on setlocale failure.
17640
17641 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17642
17643         [BZ #18985]
17644         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17645         (__strftime_internal): Likewise.
17646         * time/tst-strftime.c (do_bz18985): New test.
17647         (do_test): Call it.
17648
17649 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17650
17651         [BZ #18956]
17652         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17653         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17654         extracting high part.
17655         * math/auto-libm-test-in: Add another test of pow.
17656         * math/auto-libm-test-out: Regenerated.
17657         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17658
17659 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17660
17661         [BZ #18825]
17662         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17663         New macro.
17664         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17665         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17666         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17667         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17668         DBL_NARROW_EVAL, reloading the PIC register as needed.
17669         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17670         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17671         FLT_NARROW_EVAL.  Use separate return path for case when first
17672         argument is NaN.
17673         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17674         DEFINE_LDBL_MIN.
17675         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17676         PIC register.
17677         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17678         math_check_force_underflow_nonneg.
17679         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17680         underflow for subnormal result.
17681         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17682         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17683         math_check_force_underflow_nonneg.
17684         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17685         math_check_force_underflow.
17686         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17687         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17688         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17689         DEFINE_LDBL_MIN.
17690         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17691         * math/auto-libm-test-in: Add more tests of pow.
17692         * math/auto-libm-test-out: Regenerated.
17693
17694 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17695
17696         * nss/bug17079.c (init_test_items): Add diagnostic for
17697         inconsistent entries.
17698         (test_buffer_size): Skip inconsistent entries.
17699
17700 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17701
17702         [BZ #13304]
17703         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17704         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17705         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17706
17707         [BZ #13304]
17708         * sysdeps/microblaze/s_fma.c: New file.
17709         * sysdeps/microblaze/s_fmaf.c: Likewise.
17710         * sysdeps/microblaze/sfp-machine.h: Likewise.
17711
17712 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17713
17714         [BZ #17250]
17715         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17716         member.
17717
17718 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17719
17720         [BZ #18803]
17721         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17722         (MO): New macro.
17723         (__ieee754_hypot) [PIC]: Load PIC register.
17724         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17725         DBL_NARROW_EVAL.
17726         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17727         math_check_force_underflow_nonneg in case where result might be
17728         tiny.
17729         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17730         Likewise.
17731         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17732         Likewise.
17733         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17734         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17735         * math/auto-libm-test-in: Add more tests of hypot.
17736         * math/auto-libm-test-out: Regenerated.
17737
17738 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17739
17740         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17741
17742 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17743
17744         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17745         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17746         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17747         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17748         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17749         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17750         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17751
17752         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17753         LOAD_PIC_REG.
17754
17755         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17756         (FLT_CHECK_FORCE_UFLOW): Likewise.
17757         (DBL_CHECK_FORCE_UFLOW): Likewise.
17758         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17759         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17760         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17761         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17762         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17763         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17764         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17765         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17766         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17767         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17768         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17769         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17770         (flt_min): Replace with use of DEFINE_FLT_MIN.
17771         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17772         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17773         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17774         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17775         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17776         (flt_min): Replace with use of DEFINE_FLT_MIN.
17777         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17778         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17779         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17780         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17781         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17782         (flt_min): Replace with use of DEFINE_FLT_MIN.
17783         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17784         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17785         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17786         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17787         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17788         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17789         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17790         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17791         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17792         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17793         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17794         (flt_min): Replace with use of DEFINE_FLT_MIN.
17795         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17796         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17797         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17798         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17799         main computation.
17800         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17801         (flt_min): Replace with use of DEFINE_FLT_MIN.
17802         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17803         main computation.
17804         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17805         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17806         (MO): New macro.
17807         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17808         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17809         (flt_min): Replace with use of DEFINE_FLT_MIN.
17810         (MO): New macro.
17811         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17812         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17813         (__log1pl): Use MO.
17814
17815         [BZ #19003]
17816         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17817         $(config-cflags-nofma).
17818
17819 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17820
17821         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17822
17823 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17824
17825         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17826         (TWO127): Likewise.
17827
17828         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17829         (min_of_type): Likewise.
17830         (math_check_force_underflow): Likewise.
17831         (math_check_force_underflow_nonneg): Likewise.
17832         (math_check_force_underflow_complex): Likewise.
17833         * math/e_exp2l.c (__ieee754_exp2l): Use
17834         math_check_force_underflow_nonneg.
17835         * math/k_casinh.c (__kernel_casinh): Likewise.
17836         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17837         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17838         * math/s_catan.c (__catan): Use
17839         math_check_force_underflow_complex.
17840         * math/s_catanf.c (__catanf): Likewise.
17841         * math/s_catanh.c (__catanh): Likewise.
17842         * math/s_catanhf.c (__catanhf): Likewise.
17843         * math/s_catanhl.c (__catanhl): Likewise.
17844         * math/s_catanl.c (__catanl): Likewise.
17845         * math/s_ccosh.c (__ccosh): Likewise.
17846         * math/s_ccoshf.c (__ccoshf): Likewise.
17847         * math/s_ccoshl.c (__ccoshl): Likewise.
17848         * math/s_cexp.c (__cexp): Likewise.
17849         * math/s_cexpf.c (__cexpf): Likewise.
17850         * math/s_cexpl.c (__cexpl): Likewise.
17851         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17852         * math/s_clog10.c (__clog10): Likewise.
17853         * math/s_clog10f.c (__clog10f): Likewise.
17854         * math/s_clog10l.c (__clog10l): Likewise.
17855         * math/s_clogf.c (__clogf): Likewise.
17856         * math/s_clogl.c (__clogl): Likewise.
17857         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17858         * math/s_csinf.c (__csinf): Likewise.
17859         * math/s_csinh.c (__csinh): Likewise.
17860         * math/s_csinhf.c (__csinhf): Likewise.
17861         * math/s_csinhl.c (__csinhl): Likewise.
17862         * math/s_csinl.c (__csinl): Likewise.
17863         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17864         * math/s_csqrtf.c (__csqrtf): Likewise.
17865         * math/s_csqrtl.c (__csqrtl): Likewise.
17866         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17867         * math/s_ctanf.c (__ctanf): Likewise.
17868         * math/s_ctanh.c (__ctanh): Likewise.
17869         * math/s_ctanhf.c (__ctanhf): Likewise.
17870         * math/s_ctanhl.c (__ctanhl): Likewise.
17871         * math/s_ctanl.c (__ctanl): Likewise.
17872         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17873         instead of volatile.
17874         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17875         math_check_force_underflow.
17876         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17877         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17878         volatile when forcing underflow.
17879         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17880         math_check_force_underflow_nonneg.
17881         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17882         Likewise.
17883         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17884         math_check_force_underflow.
17885         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17886         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17887         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17888         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17889         math_check_force_underflow_nonneg.
17890         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17891         math_check_force_underflow.
17892         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17893         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17894         instead of volatile.
17895         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17896         math_check_force_underflow.
17897         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17898         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17899         math_check_force_underflow_nonneg.
17900         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17901         math_check_force_underflow.
17902         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17903         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17904         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17905         math_check_force_underflow_nonneg.
17906         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17907         Likewise.
17908         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17909         math_check_force_underflow.
17910         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17911         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17912         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17913         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17914         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17915         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17916         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17917         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17918         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17919         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17920         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17921         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17922         Likewise.
17923         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17924         math_check_force_underflow_nonneg.
17925         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17926         Likewise.
17927         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17928         math_check_force_underflow.
17929         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17930         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17931         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17932         Likewise.
17933         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17934         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17935         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17936         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17937         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17938         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17939         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17940         instead of volatile.
17941         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17942         math_check_force_underflow.
17943         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17944         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17945         math_check_force_underflow.
17946         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17947         Likewise.
17948         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17949         Use math_check_force_underflow_nonneg.
17950         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17951         math_check_force_underflow.
17952         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17953         Likewise.
17954         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17955         Likewise.
17956         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17957         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17958         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17959         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17960         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17961         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17962         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17963         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17964         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17965         math_check_force_underflow_nonneg.
17966         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17967         math_check_force_underflow.
17968         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17969         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17970         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17971         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17972         math_check_force_underflow_nonneg.
17973         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17974         math_check_force_underflow.
17975         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17976         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17977         instead of volatile.
17978         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17979         math_check_force_underflow.
17980
17981         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17982         * stdlib/strtod_l.c: Include <math_private.h>.
17983         (overflow_value): Use math_narrow_eval.
17984         (underflow_value): Likewise.
17985         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17986         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17987         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17988         (__ieee754_gamma_r): Likewise.
17989         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17990         Likewise.
17991         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17992         Likewise.
17993         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17994         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17995         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17996         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17997         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17998         (__ieee754_gammaf_r): Likewise.
17999         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
18000         Likewise.
18001         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
18002         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
18003         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
18004         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
18005         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
18006         volatile.
18007         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
18008         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
18009         math_narrow_eval.
18010         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
18011         Likewise.
18012         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
18013         Likewise.
18014         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
18015         Likewise.
18016         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
18017         volatile.
18018         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
18019         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
18020         math_narrow_eval.
18021         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
18022         Likewise.
18023         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
18024         Likewise.
18025
18026 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
18027
18028         * nptl/Versions: Remove ignored symbols.
18029
18030 2015-09-22  Florian Weimer  <fweimer@redhat.com>
18031
18032         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
18033         * nss/Makefile (tests): Update.
18034
18035 2015-09-22  Florian Weimer  <fweimer@redhat.com>
18036
18037         * nss/bug18287.c: New file.
18038         * nss/Makefile (tests): Add bug18287.
18039
18040 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18041
18042         * mach/Versions (__mach_host_self_): Add symbol.
18043
18044 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18045
18046         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
18047         vm_page_size.
18048
18049 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18050
18051         Really fix sysdeps/i386/fpu/s_scalbn.S build
18052
18053         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
18054         (libc: GLIBC_2_22): Remove unused version set.
18055
18056 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
18057
18058         * config.make.in (enable-timezone-tools): New variable.
18059         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
18060         (enable_timezone_tools): Export to generated files.
18061         * configure: Regenerate.
18062         * INSTALL: Regenerate.
18063         * manual/install.texi (--disable-timezone-tools): Document new flag.
18064         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
18065         ifeq ($(enable-timezone-tools),yes) check.
18066
18067 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18068
18069         * timezone/Makefile: Revert previous change.
18070
18071         [BZ #18980]
18072         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
18073         (DEFINE_DBL_MIN): Likewise.
18074         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
18075         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
18076         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
18077         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
18078         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
18079         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18080         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18081         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
18082         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
18083         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18084         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18085         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
18086         (flt_min): Replace with use of DEFINE_FLT_MIN.
18087         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18088         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
18089         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18090         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18091         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
18092         (flt_min): Replace with use of DEFINE_FLT_MIN.
18093         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18094         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
18095         (flt_min): Replace with use of DEFINE_FLT_MIN.
18096         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18097         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
18098         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
18099         (__ieee754_hypot): Use DBL_NARROW_EVAL.
18100         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
18101         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
18102         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
18103         (__ieee754_pow): Use DBL_NARROW_EVAL.
18104         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
18105         (__ieee754_powf): Use FLT_NARROW_EVAL.
18106         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
18107         (__ieee754_expf_sse2): Convert double-precision result to single
18108         precision.
18109         * sysdeps/i386/fpu/libm-test-ulps: Update.
18110
18111 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18112
18113         * timezone/Makefile: Ignore unused variable errors due to private.h
18114         (time_t_min) and (time_t_max).
18115         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
18116         Likewise.
18117
18118 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18119
18120         [BZ #18981]
18121         * sysdeps/i386/fpu/i386-math-asm.h: New file.
18122         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
18123         (__ieee754_scalb): Use DBL_NARROW_EVAL.
18124         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
18125         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
18126         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
18127         (__scalbn): Use DBL_NARROW_EVAL.
18128         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
18129         (__scalbnf): Use FLT_NARROW_EVAL.
18130
18131 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18132
18133         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
18134         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
18135         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
18136         * stdio-common/printf_fp.c (___printf_fp):
18137         Use signbit to get the sign. Use isinf macro to allow inlining.
18138         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
18139         * stdio-common/printf_size.c (__printf_size): Likewise.
18140
18141 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
18142
18143         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
18144
18145 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18146
18147         [BZ #18980]
18148         * sysdeps/generic/math_private.h: Include <float.h>.
18149         (math_narrow_eval): New macro.
18150         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18151         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
18152         math_narrow_eval on overflowing return value.
18153         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
18154         Likewise.
18155         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
18156         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
18157         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
18158         Likewise.
18159         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
18160
18161 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18162
18163         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
18164         * math/Makefile: Remove isinf_ns.c.
18165         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
18166         * math/multc3.c (__multc3): Likewise.
18167         * math/s_casin.c (__casin): Likewise.
18168         * math/s_casinf.c (__casinf): Likewise.
18169         * math/s_casinl.c (__casinl): Likewise.
18170         * math/s_cproj.c (__cproj): Likewise.
18171         * math/s_cprojf.c (__cprojf): Likewise.
18172         * math/s_cprojl.c (__cprofl): Likewise.
18173         * math/s_ctan.c (__ctan): Likewise.
18174         * math/s_ctanf.c (__ctanf): Likewise.
18175         * math/s_ctanh.c (__ctanh): Likewise.
18176         * math/s_ctanhf.c (__ctanhf): Likewise.
18177         * math/s_ctanhl.c (__ctanhl): Likewise.
18178         * math/s_ctanl.c (__ctanl): Likewise.
18179         * math/w_fmod.c (__fmod): Likewise.
18180         * math/w_fmodf.c (__fmodf): Likewise.
18181         * math/w_fmodl.c (_fmodl): Likewise.
18182         * math/w_remainder.c (__remainder): Likewise.
18183         * math/w_remainderf.c (__remainderf): Likewise.
18184         * math/w_remainderl.c (__remainderl): Likewise.
18185         * math/w_scalb.c (__scalb): Likewise.
18186         * math/w_scalbf.c (__scalbf): Likewise.
18187         * math/w_scalbl.c (__scalbl): Likewise.
18188         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
18189         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
18190         with isinf.
18191         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
18192         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
18193         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
18194         __isinf_nsf with isinf.
18195         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
18196         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
18197         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
18198         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
18199         with isinf.
18200         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
18201         __isinf_nsl with isinf.
18202         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
18203         with isinf.
18204         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
18205         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
18206         __isinf_nsl with isinf.
18207         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
18208         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
18209         with isinf.
18210
18211 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18212
18213         * resolv/base64.c (rcsid): Remove unused static.
18214         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
18215         static.  (tqpi1): Likewise.
18216         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
18217         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
18218         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
18219         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
18220         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
18221         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
18222         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
18223         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
18224         Likewise.
18225
18226 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
18227
18228         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
18229         <nptl/pthreadP.h>.
18230         (_longjmp_unwind): Use __libc_ptf_call.
18231         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
18232
18233 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
18234
18235         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
18236         * sysdeps/arm/__longjmp.S: Likewise.
18237
18238 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18239
18240         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
18241         Use __builtin_signbit.
18242         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
18243         Use __builtin_signbitf.
18244         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
18245         Use __builtin_signbitl.
18246         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
18247         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
18248
18249 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18250
18251         [BZ #15367]
18252         [BZ #17441]
18253
18254         * math/Makefile: Build test-snan.c with -fsignaling-nans.
18255         * math/math.h (fpclassify): Use __builtin_fpclassify when
18256         available.  (signbit): Use __builtin_signbit(f/l).
18257         (isfinite): Use__builtin_isfinite.  (isnormal): Use
18258         __builtin_isnormal.  (isnan): Use __builtin_isnan.
18259         (isinf): Use __builtin_isinf_sign.
18260
18261 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18262
18263         * benchtests/Makefile: Add bench-math-inlines, link with libm.
18264         * benchtests/bench-math-inlines.c: New benchmark.
18265         * benchtests/bench-util.h: New file.
18266         * benchtests/bench-util.c: New file.
18267         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
18268
18269 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
18270
18271         * elf/tst-dlmopen1.c: Define TEST_SO.
18272         (do_test): Use TEST_SO.
18273
18274         * elf/dl-load.c: Include libc-internal.h.
18275         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
18276
18277 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18278
18279         [BZ #17887]
18280         * time/strptime_l.c (__strptime_internal): Make %z accept
18281         [+-]HH:MM time zones.
18282
18283 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18284
18285         [BZ #17886]
18286         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
18287         valid time zone.
18288
18289 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
18290
18291         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
18292         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
18293         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18294         (__ASSUME_FDATASYNC): Delete.
18295
18296 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18297
18298         * conform/linknamespace.pl: Require weak undefined symbols to be
18299         in the standard namespace.
18300         (%strong_syms): Rename to %seen_syms.
18301         (%strong_seen): Rename to %seen_where.
18302
18303 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
18304
18305         [BZ #18970]
18306         * misc/error.c (error): Replace pthread_setcancelstate with
18307         __pthread_setcancelstate.
18308         (error_at_line): Likewise.
18309         * posix/wordexp.c (parse_comm): Likewise.
18310         * stdlib/fmtmsg.c (fmtmsg): Likewise.
18311         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
18312         (__pthread_setcancelstate): This.
18313         (pthread_setcancelstate): Add an alias.
18314         * nptl/nptl-init.c (pthread_functions): Replace
18315         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
18316         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
18317         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
18318         hidden_proto.
18319         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
18320         it with hidden_def.
18321         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
18322         (pthread_setcancelstate): Renamed to ...
18323         (__pthread_setcancelstate): This.
18324         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
18325         __libc_ptf_call with __pthread_setcancelstate.
18326
18327 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18328             Andreas Schwab  <schwab@suse.de>
18329
18330         [BZ #17118]
18331         * math/s_ctan.c (__ctan): Determine sign of zero real part of
18332         result when imaginary part of argument is infinite using sine and
18333         cosine.
18334         * math/s_ctanf.c (__ctanf): Likewise.
18335         * math/s_ctanl.c (__ctanl): Likewise.
18336         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
18337         of result when real part of argument is infinite using sine and
18338         cosine.
18339         * math/s_ctanhf.c (__ctanhf): Likewise.
18340         * math/s_ctanhl.c (__ctanhl): Likewise.
18341         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
18342         (ctanh_test_data): Add more tests of ctanh.
18343
18344 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18345
18346         [BZ #15384]
18347         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
18348         bit-mask as in subtraction.
18349         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
18350         Likewise.
18351         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18352         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18353         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
18354
18355         [BZ #18951]
18356         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
18357         underflow exception for small results.
18358         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18359         Likewise.
18360         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18361         Likewise.
18362         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18363         Likewise.
18364         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18365         Likewise.
18366         * math/auto-libm-test-in: Add more tests of tgamma.
18367         * math/auto-libm-test-out: Regenerated.
18368
18369 2015-09-17  Andreas Schwab  <schwab@suse.de>
18370
18371         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
18372
18373 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18374
18375         [BZ #18977]
18376         * math/bits/mathcalls.h
18377         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
18378         not declare.
18379         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
18380         Likewise.
18381         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
18382         Likewise.
18383         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
18384         Likewise.
18385         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
18386         Likewise.
18387         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
18388         Likewise.
18389         * conform/data/math.h-data
18390         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
18391         function.
18392         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
18393         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
18394         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
18395         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
18396         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
18397         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
18398         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
18399         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
18400         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
18401         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
18402         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
18403
18404         [BZ #6803]
18405         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
18406         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
18407         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
18408         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
18409         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
18410         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
18411         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
18412         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
18413         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18414         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
18415         Likewise.
18416         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18417         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
18418         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
18419         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
18420         long_double_symbol calls.
18421         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
18422         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
18423         strong alias of __ldexpl.
18424         (scalbnl): Define using long_double_symbol.
18425         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
18426         Remove alias.
18427         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
18428         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
18429         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
18430         (scalbln_test_data): Add more errno expectations.
18431
18432 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
18433
18434         Cache the host port like we cache the task port.  This way we do not
18435         need to call the kernel just to get the port.  Furthermore, we no
18436         longer increase the reference count on every invocation of
18437         `mach_host_self'.
18438
18439         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
18440         Protect declarations against the macro expansion.
18441         * mach/mach_init.c (__mach_host_self_): New variable.
18442         (mach_init): Initialize `__mach_host_self_'.
18443         * mach/mach_init.h (__mach_host_self_): New declaration.
18444         (__mach_host_self, mach_host_self): New macros.
18445         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
18446         Release reference.
18447
18448 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18449
18450         [BZ #4404]
18451         * po/de.po: Update from Translation Project.
18452
18453         [BZ #16415]
18454         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
18455         (__expm1l): Remove code to handle positive infinity and overflow.
18456         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
18457         variable.
18458         (__expm1l): Remove code to handle positive infinity and overflow.
18459
18460 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18461             Paul Pluzhnikov  <ppluzhnikov@google.com>
18462
18463         [BZ #18872]
18464         * stdio-common/Makefile (tst-printf-bz18872): New test.
18465         (tst-printf-bz18872-mem.out): Likewise.
18466         * stdio-common/tst-printf-bz18872.sh: Generate new test.
18467         * stdio-common/vfprintf.c: Fix memory leaks.
18468
18469 2015-09-16  Andreas Schwab  <schwab@suse.de>
18470
18471         [BZ #17244]
18472         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
18473         Remove extra va_start/va_end calls.
18474
18475         [BZ #17243]
18476         * posix/execl.c (execl): Add missing va_end.
18477         * posix/execle.c (execle): Likewise.
18478         * posix/execlp.c (execlp): Likewise.
18479
18480 2015-09-15  Roland McGrath  <roland@hack.frob.com>
18481
18482         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
18483         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
18484
18485 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
18486
18487         [BZ #18967]
18488         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
18489         undefine around includes of <bits/mathcalls.h>.
18490         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
18491         not declare function.
18492         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
18493         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
18494         (scalb): Likewise.
18495         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
18496         not define macro.
18497         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
18498         variable.
18499         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
18500         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
18501         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
18502
18503         [BZ #18857]
18504         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
18505         return non-finite argument without doing ordered comparisons on
18506         it.
18507
18508         [BZ #16296]
18509         * math/fenv.h (fegetround): Use __attribute_pure__.
18510         * include/fenv.h (__fegetround): Likewise.
18511
18512         [BZ #18595]
18513         * math/s_ctan.c (__ctan): Force underflow exception for results
18514         whose real or imaginary part has small absolute value.
18515         * math/s_ctanf.c (__ctanf): Likewise.
18516         * math/s_ctanh.c (__ctanh): Likewise.
18517         * math/s_ctanhf.c (__ctanhf): Likewise.
18518         * math/s_ctanhl.c (__ctanhl): Likewise.
18519         * math/s_ctanl.c (__ctanl): Likewise.
18520         * math/auto-libm-test-in: Do not allow missing underflow for ctan
18521         and ctanh.  Add more tests of ctan and ctanh.
18522
18523         [BZ #15918]
18524         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
18525         handling of cases where one argument is an infinity.
18526
18527         [BZ #18875]
18528         [BZ #18966]
18529         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
18530         (MO): New macro.
18531         (__ieee754_exp10): For small results, force underflow exception
18532         and remove excess range and precision from return value.
18533         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
18534         (MO): New macro.
18535         (__ieee754_exp10f): For small results, force underflow exception
18536         and remove excess range and precision from return value.
18537         * math/auto-libm-test-in: Add more tests of exp10.
18538         * math/auto-libm-test-out: Regenerated.
18539
18540 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
18541
18542         [BZ #18875]
18543         [BZ #18961]
18544         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
18545         (MO): New macro.
18546         (__ieee754_exp): For small results, force underflow exception and
18547         remove excess range and precision from return value.
18548         (__exp_finite): Likewise.
18549         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
18550         (MO): New macro.
18551         (__ieee754_expf): For small results, force underflow exception and
18552         remove excess range and precision from return value.
18553         (__expf_finite): Likewise.
18554         * math/auto-libm-test-in: Add more tests of exp.
18555         * math/auto-libm-test-out: Regenerated.
18556
18557         [BZ #16521]
18558         [BZ #18875]
18559         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18560         small results.
18561         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18562         (MO): New macro.
18563         (__ieee754_exp2): For small results, force underflow exception and
18564         remove excess range and precision from return value.
18565         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18566         (MO): New macro.
18567         (__ieee754_exp2f): For small results, force underflow exception
18568         and remove excess range and precision from return value.
18569         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18570         (MO): New macro.
18571         (__ieee754_exp2l): Force underflow exception for small results.
18572         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18573         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18574         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18575         (MO): New macro.
18576         (__ieee754_exp2l): Force underflow exception for small results.
18577         * math/auto-libm-test-in: Add more tests or exp2.
18578         * math/auto-libm-test-out: Regenerated.
18579
18580 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18581
18582         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18583
18584         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18585         /dev/null.
18586
18587 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18588
18589         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18590         io fs process)): Drop spurious backslash.
18591
18592 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18593
18594         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18595         Use sysinfo system call instead of parsing /proc/meminfo.
18596         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18597         Likewise.
18598
18599 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18600
18601         [BZ #16985]
18602         * programs/localedef.c (main): Display argv[remaining] when
18603         output_path is NULL.
18604
18605 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18606
18607         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18608         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18609         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18610         tanh.
18611         * math/auto-libm-test-out: Regenerated.
18612         * sysdeps/i386/fpu/libm-test-ulps: Update.
18613         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18614         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18616
18617 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18618
18619         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18620         Use 'override' keyword to freeze the value here, preventing
18621         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18622
18623 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18624
18625         [BZ #14912]
18626         * sysdeps/aarch64/bits/atomic.h: Move to ...
18627         * sysdeps/aarch64/atomic-machine.h: ...here.
18628         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18629         _AARCH64_ATOMIC_MACHINE_H.
18630         * sysdeps/alpha/bits/atomic.h: Move to ...
18631         * sysdeps/alpha/atomic-machine.h: ...here.
18632         * sysdeps/arm/bits/atomic.h: Move to ...
18633         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18634         * bits/atomic.h: Move to ...
18635         * sysdeps/generic/atomic-machine.h: ...here.
18636         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18637         * sysdeps/i386/bits/atomic.h: Move to ...
18638         * sysdeps/i386/atomic-machine.h: ...here.
18639         * sysdeps/ia64/bits/atomic.h: Move to ...
18640         * sysdeps/ia64/atomic-machine.h: ...here.
18641         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18642         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18643         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18644         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18645         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18646         * sysdeps/microblaze/bits/atomic.h: Move to ...
18647         * sysdeps/microblaze/atomic-machine.h: ...here.
18648         * sysdeps/mips/bits/atomic.h: Move to ...
18649         * sysdeps/mips/atomic-machine.h: ...here.
18650         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18651         * sysdeps/powerpc/bits/atomic.h: Move to ...
18652         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18653         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18654         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18655         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18656         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18657         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18658         <atomic-machine.h> instead of <bits/atomic.h>.
18659         * sysdeps/s390/bits/atomic.h: Move to ...
18660         * sysdeps/s390/atomic-machine.h: ...here.
18661         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18662         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18663         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18664         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18665         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18666         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18667         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18668         * sysdeps/tile/bits/atomic.h: Move to ...
18669         * sysdeps/tile/atomic-machine.h: ...here.
18670         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18671         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18672         <sysdeps/tile/atomic-machine.h> instead of
18673         <sysdeps/tile/bits/atomic.h>.
18674         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18675         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18676         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18677         <sysdeps/tile/atomic-machine.h> instead of
18678         <sysdeps/tile/bits/atomic.h>.
18679         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18680         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18681         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18682         <sysdeps/arm/atomic-machine.h> instead of
18683         <sysdeps/arm/bits/atomic.h>.
18684         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18685         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18686         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18687         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18688         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18689         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18690         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18691         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18692         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18693         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18694         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18695         * sysdeps/x86_64/bits/atomic.h: Move to ...
18696         * sysdeps/x86_64/atomic-machine.h: ...here.
18697         * include/atomic.h: Include <atomic-machine.h> instead of
18698         <bits/atomic.h>.
18699
18700         * sysdeps/mips/mips32/libm-test-ulps: Update.
18701         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18702
18703         [BZ #18952]
18704         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18705         not convert non-integer negative arguments to int to determine the
18706         value of signgam.
18707         * math/auto-libm-test-in: Add more tests of lgamma.
18708         * math/auto-libm-test-out: Regenerated.
18709
18710         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18711         cosh, csqrt, erfc, expm1 and lgamma.
18712         * math/auto-libm-test-out: Regenerated.
18713         * sysdeps/i386/fpu/libm-test-ulps: Update.
18714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18715
18716 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18717
18718         [BZ #2542]
18719         [BZ #2543]
18720         [BZ #2558]
18721         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18722         __lgamma_neg for arguments from -28.0 to -2.0.
18723         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18724         __lgamma_negf for arguments from -15.0 to -2.0.
18725         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18726         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18727         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18728         Call __lgamma_negl for arguments from -33.0 to -2.0.
18729         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18730         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18731         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18732         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18733         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18734         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18735         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18736         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18737         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18738         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18739         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18740         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18741         (__lgamma_neg): Likewise.
18742         (__lgamma_negl): Likewise.
18743         (__lgamma_product): Likewise.
18744         (__lgamma_productl): Likewise.
18745         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18746         * math/auto-libm-test-in: Add more tests of lgamma.
18747         * math/auto-libm-test-out: Regenerated.
18748         * sysdeps/i386/fpu/libm-test-ulps: Update.
18749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18750
18751 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18752
18753         [BZ #18675]
18754         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18755
18756 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18757
18758         [BZ #14912]
18759         * bits/libc-lock.h: Move to ...
18760         * sysdeps/generic/libc-lock.h: ...here.
18761         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18762         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18763         * sysdeps/mach/hurd/libc-lock.h: ...here.
18764         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18765         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18766         * sysdeps/mach/bits/libc-lock.h: Move to ...
18767         * sysdeps/mach/libc-lock.h: ...here.
18768         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18769         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18770         * sysdeps/nptl/libc-lock.h: ...here.
18771         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18772         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18773         * sysdeps/nptl/libc-lockP.h: ...here.
18774         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18775         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18776         <bits/libc-lock.h>.
18777         * dirent/scandir-tail.c: Likewise.
18778         * dlfcn/dlerror.c: Likewise.
18779         * elf/dl-close.c: Likewise.
18780         * elf/dl-iteratephdr.c: Likewise.
18781         * elf/dl-lookup.c: Likewise.
18782         * elf/dl-open.c: Likewise.
18783         * elf/dl-support.c: Likewise.
18784         * elf/dl-writev.h: Likewise.
18785         * elf/rtld.c: Likewise.
18786         * grp/fgetgrent.c: Likewise.
18787         * gshadow/fgetsgent.c: Likewise.
18788         * gshadow/sgetsgent.c: Likewise.
18789         * iconv/gconv_conf.c: Likewise.
18790         * iconv/gconv_db.c: Likewise.
18791         * iconv/gconv_dl.c: Likewise.
18792         * iconv/gconv_int.h: Likewise.
18793         * iconv/gconv_trans.c: Likewise.
18794         * include/link.h: Likewise.
18795         * inet/getnameinfo.c: Likewise.
18796         * inet/getnetgrent.c: Likewise.
18797         * inet/getnetgrent_r.c: Likewise.
18798         * intl/bindtextdom.c: Likewise.
18799         * intl/dcigettext.c: Likewise.
18800         * intl/finddomain.c: Likewise.
18801         * intl/gettextP.h: Likewise.
18802         * intl/loadmsgcat.c: Likewise.
18803         * intl/localealias.c: Likewise.
18804         * intl/textdomain.c: Likewise.
18805         * libidn/idn-stub.c: Likewise.
18806         * libio/libioP.h: Likewise.
18807         * locale/duplocale.c: Likewise.
18808         * locale/freelocale.c: Likewise.
18809         * locale/newlocale.c: Likewise.
18810         * locale/setlocale.c: Likewise.
18811         * login/getutent_r.c: Likewise.
18812         * login/getutid_r.c: Likewise.
18813         * login/getutline_r.c: Likewise.
18814         * login/utmp-private.h: Likewise.
18815         * login/utmpname.c: Likewise.
18816         * malloc/mtrace.c: Likewise.
18817         * misc/efgcvt.c: Likewise.
18818         * misc/error.c: Likewise.
18819         * misc/fstab.c: Likewise.
18820         * misc/getpass.c: Likewise.
18821         * misc/mntent.c: Likewise.
18822         * misc/syslog.c: Likewise.
18823         * nis/nis_call.c: Likewise.
18824         * nis/nis_callback.c: Likewise.
18825         * nis/nss-default.c: Likewise.
18826         * nis/nss_compat/compat-grp.c: Likewise.
18827         * nis/nss_compat/compat-initgroups.c: Likewise.
18828         * nis/nss_compat/compat-pwd.c: Likewise.
18829         * nis/nss_compat/compat-spwd.c: Likewise.
18830         * nis/nss_nis/nis-alias.c: Likewise.
18831         * nis/nss_nis/nis-ethers.c: Likewise.
18832         * nis/nss_nis/nis-grp.c: Likewise.
18833         * nis/nss_nis/nis-hosts.c: Likewise.
18834         * nis/nss_nis/nis-network.c: Likewise.
18835         * nis/nss_nis/nis-proto.c: Likewise.
18836         * nis/nss_nis/nis-pwd.c: Likewise.
18837         * nis/nss_nis/nis-rpc.c: Likewise.
18838         * nis/nss_nis/nis-service.c: Likewise.
18839         * nis/nss_nis/nis-spwd.c: Likewise.
18840         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18841         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18842         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18843         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18844         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18845         * nis/nss_nisplus/nisplus-network.c: Likewise.
18846         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18847         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18848         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18849         * nis/nss_nisplus/nisplus-service.c: Likewise.
18850         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18851         * nis/ypclnt.c: Likewise.
18852         * nptl/libc_pthread_init.c: Likewise.
18853         * nss/getXXbyYY.c: Likewise.
18854         * nss/getXXent.c: Likewise.
18855         * nss/getXXent_r.c: Likewise.
18856         * nss/nss_db/db-XXX.c: Likewise.
18857         * nss/nss_db/db-netgrp.c: Likewise.
18858         * nss/nss_db/nss_db.h: Likewise.
18859         * nss/nss_files/files-XXX.c: Likewise.
18860         * nss/nss_files/files-alias.c: Likewise.
18861         * nss/nsswitch.c: Likewise.
18862         * posix/regex_internal.h: Likewise.
18863         * posix/wordexp.c: Likewise.
18864         * pwd/fgetpwent.c: Likewise.
18865         * resolv/res_hconf.c: Likewise.
18866         * resolv/res_libc.c: Likewise.
18867         * shadow/fgetspent.c: Likewise.
18868         * shadow/lckpwdf.c: Likewise.
18869         * shadow/sgetspent.c: Likewise.
18870         * socket/opensock.c: Likewise.
18871         * stdio-common/reg-modifier.c: Likewise.
18872         * stdio-common/reg-printf.c: Likewise.
18873         * stdio-common/reg-type.c: Likewise.
18874         * stdio-common/vfprintf.c: Likewise.
18875         * stdio-common/vfscanf.c: Likewise.
18876         * stdlib/abort.c: Likewise.
18877         * stdlib/cxa_atexit.c: Likewise.
18878         * stdlib/fmtmsg.c: Likewise.
18879         * stdlib/random.c: Likewise.
18880         * stdlib/setenv.c: Likewise.
18881         * string/strsignal.c: Likewise.
18882         * sunrpc/auth_none.c: Likewise.
18883         * sunrpc/bindrsvprt.c: Likewise.
18884         * sunrpc/create_xid.c: Likewise.
18885         * sunrpc/key_call.c: Likewise.
18886         * sunrpc/rpc_thread.c: Likewise.
18887         * sysdeps/arm/backtrace.c: Likewise.
18888         * sysdeps/generic/ldsodefs.h: Likewise.
18889         * sysdeps/generic/stdio-lock.h: Likewise.
18890         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18891         * sysdeps/i386/backtrace.c: Likewise.
18892         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18893         * sysdeps/m68k/backtrace.c: Likewise.
18894         * sysdeps/mach/hurd/cthreads.c: Likewise.
18895         * sysdeps/mach/hurd/dirstream.h: Likewise.
18896         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18897         * sysdeps/nptl/malloc-machine.h: Likewise.
18898         * sysdeps/nptl/stdio-lock.h: Likewise.
18899         * sysdeps/posix/dirstream.h: Likewise.
18900         * sysdeps/posix/getaddrinfo.c: Likewise.
18901         * sysdeps/posix/system.c: Likewise.
18902         * sysdeps/pthread/aio_suspend.c: Likewise.
18903         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18904         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18905         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18906         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18907         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18908         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18909         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18910         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18911         * sysdeps/unix/sysv/linux/system.c: Likewise.
18912         * sysdeps/x86_64/backtrace.c: Likewise.
18913         * time/alt_digit.c: Likewise.
18914         * time/era.c: Likewise.
18915         * time/tzset.c: Likewise.
18916         * wcsmbs/wcsmbsload.c: Likewise.
18917         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18918         instead of <bits/libc-lock.h> in comment.
18919
18920 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18921
18922         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18923         Only use .set mips2 if the current ISA is below mips2.
18924         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18925         Likewise.
18926         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18927         mips32r2 if the current ISA is below mips32r2.
18928         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18929         (TLS_IE): Updated to use the TLD_RDHWR macro.
18930         (TLS_LE): Likewise.
18931         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18932         __ASSEMBLER__ condition.
18933
18934 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18935
18936         Fix parallel build of before-compile targets.
18937
18938         * sysdeps/mach/Makefile ($(patsubst
18939         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18940         mach-before-compile target.
18941         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18942         io fs process)): Move rule to dedicated hurd-before-compile target.
18943
18944 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18945
18946         Fix rules generating headers in hurd/ and mach/ when initial make call
18947         has subdir= explicitly set.
18948
18949         * sysdeps/mach/Makefile ($(patsubst
18950         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18951         calling $(MAKE).
18952         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18953         io fs process)): Force subdir to hurd when calling $(MAKE).
18954         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18955         subdir to mach when calling $(MAKE).
18956
18957 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18958
18959         Check sysheaders when looking for Mach and Hurd headers
18960
18961         * sysdeps/mach/configure.ac: Add sysheaders check.
18962         * sysdeps/mach/configure: Regenerate.
18963         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18964         * sysdeps/mach/hurd/configure: Regenerate.
18965
18966 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18967
18968         [BZ #18921]
18969         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18970         Fix inverted sense of test of 'o_directory_works' value.
18971         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18972         Bernhard Voelker <mail@bernhard-voelker.de>.
18973
18974 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18975
18976         [BZ #14912]
18977         * bits/linkmap.h: Move to ...
18978         * sysdeps/generic/linkmap.h: ...here.
18979         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18980         * sysdeps/aarch64/linkmap.h: ...here.
18981         * sysdeps/arm/bits/linkmap.h: Move to ...
18982         * sysdeps/arm/linkmap.h: ...here.
18983         * sysdeps/hppa/bits/linkmap.h: Move to ...
18984         * sysdeps/hppa/linkmap.h: ...here.
18985         * sysdeps/ia64/bits/linkmap.h: Move to ...
18986         * sysdeps/ia64/linkmap.h: ...here.
18987         * sysdeps/mips/bits/linkmap.h: Move to ...
18988         * sysdeps/mips/linkmap.h: ...here.
18989         * sysdeps/s390/bits/linkmap.h: Move to ...
18990         * sysdeps/s390/linkmap.h: ...here.
18991         * sysdeps/sh/bits/linkmap.h: Move to ...
18992         * sysdeps/sh/linkmap.h: ...here.
18993         * sysdeps/x86/bits/linkmap.h: Move to ...
18994         * sysdeps/x86/linkmap.h: ...here.
18995         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18996
18997 2015-09-04  Andreas Schwab  <schwab@suse.de>
18998
18999         [BZ #18635]
19000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
19001         (__makecontext): Terminate FDE before return label.
19002         (__novec_makecontext): Likewise.
19003
19004 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19005
19006         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
19007         first member of struct sv in syscall macro.
19008
19009 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
19010
19011         [BZ #14912]
19012         * bits/stdio-lock.h: Move to ...
19013         * sysdeps/generic/stdio-lock.h: ...here.
19014         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
19015         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
19016         * sysdeps/nptl/stdio-lock.h: ...here.
19017         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
19018         * include/libio.h: Include <stdio-lock.h> instead of
19019         <bits/stdio-lock.h>.
19020         * sysdeps/nptl/fork.c: Likewise.
19021         * sysdeps/pthread/flockfile.c: Likewise.
19022         * sysdeps/pthread/ftrylockfile.c: Likewise.
19023         * sysdeps/pthread/funlockfile.c: Likewise.
19024
19025         [BZ #14912]
19026         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
19027         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
19028         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
19029         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
19030         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
19031         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
19032         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
19033
19034 2015-09-03  Roland McGrath  <roland@hack.frob.com>
19035
19036         * elf/Makefile (test-xfail-tst-protected1a): New variable.
19037         (test-xfail-tst-protected1b): New variable.
19038
19039 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
19040
19041         [BZ #14912]
19042         * bits/libc-tsd.h: Move to ...
19043         * sysdeps/generic/libc-tsd.h: ...here.
19044         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
19045         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
19046         * sysdeps/mach/hurd/libc-tsd.h: ...here.
19047         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
19048         * include/ctype.h: Include <libc-tsd.h> instead of
19049         <bits/libc-tsd.h>.
19050         * include/rpc/rpc.h: Likewise.
19051         * locale/localeinfo.h: Likewise.
19052         * sunrpc/rpc_thread.c: Likewise.
19053         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
19054         * sysdeps/nptl/malloc-machine.h: Likewise.
19055
19056         * Makefile (headers): Remove bits/libc-lock.h.
19057         * libio/Makefile (headers): Remove bits/stdio-lock.h.
19058
19059         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
19060         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
19061         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
19062         <bits/stdio-lock.h>.
19063         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
19064         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
19065
19066 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
19067
19068         [BZ #18757]
19069         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
19070         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
19071         BZ #18757.
19072
19073 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
19074
19075         * malloc/mtrace.pl: Filter out NULL entries.
19076
19077 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
19078
19079         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
19080         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
19081         macro.
19082
19083         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
19084         (TCP_CC_INFO): Likewise.
19085         (TCP_SAVE_SYN): Likewise.
19086         (TCP_SAVED_SYN): Likewise.
19087
19088 2015-08-31  Brett Neumeier <brett@neumeier.us>
19089
19090         [BZ #18870]
19091         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
19092
19093 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         [BZ #18873]
19096         Fix broken overflow check in posix_fallocate
19097         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
19098         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
19099         Fix parenthesization typo.
19100
19101 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
19102
19103         [BZ #18887]
19104         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
19105         tst-mntent-blank-passno.
19106         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
19107         * misc/tst-mntent-blank-corrupt.c: New test.
19108         * misc/tst-mntent-blank-passno.c: New test ripped from ...
19109         * misc/tst-mntent.c (do_test): ... here.
19110
19111 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
19112
19113         [BZ #4404]
19114         * po/de.po: Fix SIGALRM typo.
19115
19116 2015-08-28  James Perkins  <james@loowit.net>
19117
19118         * time/tst-strptime2.c (tests): Replace short list of test
19119         strings for strptime %z specifier with code which exhaustively
19120         tests every combination of sign and 0 to 5 digits. Tests for
19121         rejection of invalid strings.
19122
19123 2015-08-28  James Perkins  <james@loowit.net>
19124
19125         [BZ #16141]
19126         * time/strptime_l.c (__strptime_internal): Fix %z minutes
19127         calculation, removing incorrect decimal time rounding, so that
19128         all minute values result in a valid seconds value.
19129         * time/strptime_l.c (__strptime_internal): Extend %z time zone
19130         offset range limits to UTC-99:59 through UTC+99:59 to parse
19131         current and historical use cases.
19132         * time/tst-strptime2.c (tests): Modify and add tests for the
19133         strptime %z input field descriptor, specifically conversion of
19134         minutes to seconds and validating an offset range of -9959 to
19135         +9959.
19136
19137 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19138             Dmitry V. Levin  <ldv@altlinux.org>
19139
19140         [BZ #18877]
19141         * posix/Makefile (tests): Add tst-mmap-offset.
19142         * posix/tst-mmap.c: New file.
19143         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
19144         offset calculation for negative values.
19145
19146 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19147
19148         * sysdeps/i386/init-arch.h: New file.
19149         * sysdeps/i386/i586/init-arch.h: Likewise.
19150         * sysdeps/i386/i686/init-arch.h: Likewise.
19151         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
19152         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
19153         * sysdeps/x86/cpu-features.h (bit_I586): New.
19154         (bit_I686): Likewise.
19155         (bit_CX8): Likewise.
19156         (bit_CMOV): Likewise.
19157         (index_CX8): Likewise.
19158         (index_CMOV): Likewise.
19159         (index_I586): Likewise.
19160         (index_I686): Likewise.
19161         (reg_CX8): Likewise.
19162         (reg_CMOV): Likewise.
19163         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
19164         available at compile-time.
19165         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
19166         available at compile-time.
19167         * sysdeps/x86/init-arch.h (USE_I586): New macro.
19168         (USE_I686): Likewise.
19169
19170 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19171
19172         * sysdeps/i386/bcopy.S: New file.
19173         * sysdeps/i386/bzero.S: Likewise.
19174         * sysdeps/i386/memcpy.S: Likewise.
19175         * sysdeps/i386/memmove.S: Likewise.
19176         * sysdeps/i386/mempcpy.S: Likewise.
19177         * sysdeps/i386/memset.S: Likewise.
19178         * sysdeps/i386/bzero.c: Removed.
19179         * sysdeps/i386/memset.c: Likewise.
19180         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
19181         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
19182         * sysdeps/i386/i586/memset_chk.S: Likewise.
19183         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
19184         * sysdeps/i386/memcpy_chk.S: Here.
19185         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
19186         * sysdeps/i386/memmove_chk.S: Here.
19187         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
19188         * sysdeps/i386/mempcpy_chk.S: Likewise.
19189         * sysdeps/i386/i686/memset_chk.S: Moved to ...
19190         * sysdeps/i386/memset_chk.S: Likewise.
19191
19192 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
19193
19194         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
19195         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
19196         file, move DIAG_POP_NEEDS_COMMENT to end of file.
19197         * soft-fp/fmadf4.c: Ditto.
19198         * soft-fp/fmatf4.c: Ditto.
19199
19200 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19201
19202         * sysdeps/i386/i586/Implies: Removed.
19203         * sysdeps/i386/i686/Implies: Likewise.
19204
19205 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19206
19207         * sysdeps/i386/i486/strlen.S: Moved to ...
19208         * sysdeps/i386/strlen.S: Here.
19209
19210 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19211
19212         * sysdeps/i386/i486/strcat.S: Moved to ...
19213         * sysdeps/i386/strcat.S: Here.
19214
19215 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19216
19217         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
19218         * sysdeps/i386/pthread_spin_trylock.S: Here.
19219         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
19220         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
19221
19222 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19223
19224         * sysdeps/i386/i486/string-inlines.c: Moved to ...
19225         * sysdeps/i386/string-inlines.c: Here.
19226
19227 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19228
19229         * sysdeps/i386/i486/htonl.S: Moved ...
19230         * sysdeps/i386/htonl.S: here.
19231
19232 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19233
19234         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
19235         * sysdeps/i386/bits/atomic.h: Here.
19236
19237 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19238
19239         * sysdeps/i386/i486/Versions: Removed.
19240
19241 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
19242
19243         [BZ #2898]
19244         * misc/mktemp.c: Add mkdtemp to the link_warning message.
19245         Based on patch by Aurelien Jarno.
19246
19247 2015-08-26  Stan Shebs  <stanshebs@google.com>
19248
19249         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
19250         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
19251
19252 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19253
19254         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
19255         * sysdeps/powerpc/dl-procinfo.c:
19256         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
19257         feature so it shows when LD_SHOW_AUXV=1.
19258
19259 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19260
19261         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
19262         (__arch_compare_and_exchange_val_32_acq): Remove and use common
19263         definition.  ISA 2.07B no longer requires full sync.
19264
19265 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
19266
19267         [BZ #18863]
19268         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
19269         (si_call_addr): Define.
19270         (si_syscall): Define.
19271         (si_arch): Define.
19272
19273 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19274
19275         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
19276         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
19277         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
19278         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19279         (__memset_zero_constant_len_parameter): New.
19280         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
19281         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19282         (__memset_zero_constant_len_parameter): Don't define if
19283         __memset_chk or USE_AS_BZERO are defined.
19284
19285         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
19286         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
19287         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
19288
19289         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
19290         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
19291         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
19292         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
19293         comments.
19294         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
19295         -mno-mmx for $(all-rtld-routines).
19296         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
19297         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
19298         i386.
19299
19300 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
19301
19302         * sysdeps/generic/unwind.h
19303         (_Unwind_Word): Use __mode__(__unwind_word__)
19304         instead of __mode__(__word__).
19305         (_Unwind_Sword): Likewise.
19306
19307         * sysdeps/s390/s390-64/utf8-utf16-z9.c
19308         (MAX_NEEDED_INPUT): New define.
19309         (MAX_NEEDED_OUTPUT): New define.
19310
19311         * NEWS: New item for IBM z13 string optimizations.
19312
19313         * sysdeps/s390/multiarch/memrchr-c.c: New File.
19314         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
19315         * sysdeps/s390/multiarch/memrchr.c: Likewise.
19316         * sysdeps/s390/multiarch/Makefile
19317         (sysdep_routines): Add memrchr functions.
19318         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19319         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
19320
19321         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
19322         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
19323         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
19324         * sysdeps/s390/multiarch/Makefile
19325         (sysdep_routines): Add wmemcmp functions.
19326         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19327         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
19328         * benchtests/bench-wmemcmp.c: New File.
19329         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
19330
19331         * sysdeps/s390/multiarch/wmemset-c.c: New File.
19332         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
19333         * sysdeps/s390/multiarch/wmemset.c: Likewise.
19334         * sysdeps/s390/multiarch/Makefile
19335         (sysdep_routines): Add wmemset functions.
19336         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19337         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
19338         * wcsmbs/wmemset.c: Use WMEMSET if defined.
19339         * string/test-memset.c: Add wmemset support.
19340         * wcsmbs/test-wmemset.c: New File.
19341         * wcsmbs/Makefile (strop-tests): Add wmemset.
19342         * benchtests/bench-memset.c: Add wmemset support.
19343         * benchtests/bench-wmemset.c: New File.
19344         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
19345
19346         * sysdeps/s390/multiarch/memccpy-c.c: New File.
19347         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
19348         * sysdeps/s390/multiarch/memccpy.c: Likewise.
19349         * sysdeps/s390/multiarch/Makefile
19350         (sysdep_routines): Add memccpy functions.
19351         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19352         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
19353         * string/memccpy.c: Use MEMCCPY if defined.
19354
19355         * sysdeps/s390/multiarch/memchr-vx.S: New File.
19356         * sysdeps/s390/multiarch/memchr.c: Likewise.
19357         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
19358         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
19359         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
19360         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
19361         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
19362         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
19363         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
19364         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
19365         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
19366         and rawmemchr functions.
19367         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19368         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
19369         and wmemchr.
19370         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
19371         * string/test-memchr.c: Add wmemchr support.
19372         * wcsmbs/test-wmemchr.c: New File.
19373         * wcsmbs/Makefile (strop-tests): Add wmemchr.
19374         * benchtests/bench-memchr.c: Add wmemchr support.
19375         * benchtests/bench-wmemchr.c: New File.
19376         * benchtests/Makefile (wcsmbs-bench): wmemchr.
19377
19378         * sysdeps/s390/multiarch/strcspn-c.c: New File.
19379         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
19380         * sysdeps/s390/multiarch/strcspn.c: Likewise.
19381         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
19382         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
19383         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
19384         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
19385         wcscspn functions.
19386         * sysdeps/s390/multiarch/ifunc-impl-list.c
19387         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
19388         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
19389         * string/test-strcspn.c: Add wcscspn support.
19390         * wcsmbs/test-wcscspn.c: New File.
19391         * wcsmbs/Makefile (strop-tests): Add wcscspn.
19392         * benchtests/bench-strcspn.c: Add wcscspn support.
19393         * benchtests/bench-wcscspn.c: New File.
19394         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
19395
19396         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
19397         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
19398         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
19399         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
19400         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
19401         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
19402         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
19403         wcspbrk functions.
19404         * sysdeps/s390/multiarch/ifunc-impl-list.c
19405         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
19406         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
19407         * string/test-strpbrk.c: Add wcspbrk support.
19408         * wcsmbs/test-wcspbrk.c: New File.
19409         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
19410         * benchtests/bench-strpbrk.c: Add wcspbrk support.
19411         * benchtests/bench-wcspbrk.c: New File.
19412         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
19413
19414         * sysdeps/s390/multiarch/strspn-c.c: New File.
19415         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
19416         * sysdeps/s390/multiarch/strspn.c: Likewise.
19417         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
19418         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
19419         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
19420         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
19421         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
19422         wcsspn functions.
19423         * sysdeps/s390/multiarch/ifunc-impl-list.c
19424         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
19425         * string/test-strspn.c: Add wcsspn support.
19426         * wcsmbs/test-wcsspn.c: New File.
19427         * wcsmbs/Makefile (strop-tests): Add wcsspn.
19428         * benchtests/bench-strspn.c: Add wcsspn support.
19429         * benchtests/bench-wcsspn.c: New File.
19430         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
19431
19432         * sysdeps/s390/multiarch/strrchr-c.c: New File.
19433         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
19434         * sysdeps/s390/multiarch/strrchr.c: Likewise.
19435         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
19436         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
19437         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
19438         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
19439         wcsrchr functions.
19440         * sysdeps/s390/multiarch/ifunc-impl-list.c
19441         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
19442         * benchtests/bench-wcsrchr.c: New File.
19443         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
19444
19445         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
19446         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
19447         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
19448         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
19449         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
19450         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
19451         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
19452         wcschrnul functions.
19453         * sysdeps/s390/multiarch/ifunc-impl-list.c
19454         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
19455         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
19456         * string/test-strchr.c: Add wcschrnul support.
19457         * wcsmbs/test-wcschrnul.c: New File.
19458         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
19459         * benchtests/bench-strchr.c: Add wcschrnul support.
19460         * benchtests/bench-wcschrnul.c: New File.
19461         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
19462
19463         * sysdeps/s390/multiarch/strchr-c.c: New File.
19464         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
19465         * sysdeps/s390/multiarch/strchr.c: Likewise.
19466         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
19467         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
19468         * sysdeps/s390/multiarch/wcschr.c: Likewise.
19469         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
19470         wcschr functions.
19471         * sysdeps/s390/multiarch/ifunc-impl-list.c
19472         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
19473         * string/strchr.c (STRCHR): Define and use macro.
19474         * benchtests/bench-wcschr.c: New File.
19475         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
19476
19477         * sysdeps/s390/multiarch/strncmp-c.c: New File.
19478         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
19479         * sysdeps/s390/multiarch/strncmp.c: Likewise.
19480         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
19481         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
19482         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
19483         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
19484         wcsncmp functions.
19485         * sysdeps/s390/multiarch/ifunc-impl-list.c
19486         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
19487         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
19488         * benchtests/bench-strncmp.c: Add wcsncmp support.
19489         * benchtests/bench-wcsncmp.c: New File.
19490         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
19491
19492         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
19493         * sysdeps/s390/multiarch/strcmp.c: Likewise.
19494         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
19495         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
19496         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
19497         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
19498         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
19499         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
19500         wcscmp functions.
19501         * sysdeps/s390/multiarch/ifunc-impl-list.c
19502         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
19503         * string/strcmp.c (STRCMP): Define and use macro.
19504         * benchtests/bench-wcscmp.c: New File.
19505         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
19506         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
19507         instead of _HAVE_STRING_ARCH_memchr.
19508
19509         * sysdeps/s390/multiarch/strncat-c.c: New File.
19510         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
19511         * sysdeps/s390/multiarch/strncat.c: Likewise.
19512         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
19513         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
19514         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
19515         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
19516         wcsncat functions.
19517         * sysdeps/s390/multiarch/ifunc-impl-list.c
19518         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
19519         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
19520         * string/test-strncat.c: Add wcsncat support.
19521         * wcsmbs/test-wcsncat.c: New File.
19522         * wcsmbs/Makefile (strop-tests): Add wcsncat.
19523         * benchtests/bench-strncat.c: Add wcsncat support.
19524         * benchtests/bench-wcsncat.c: New File.
19525         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
19526
19527         * sysdeps/s390/multiarch/strcat-c.c: New File.
19528         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
19529         * sysdeps/s390/multiarch/strcat.c: Likewise.
19530         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
19531         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
19532         * sysdeps/s390/multiarch/wcscat.c: Likewise.
19533         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
19534         wcscat functions.
19535         * sysdeps/s390/multiarch/ifunc-impl-list.c
19536         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
19537         * string/strcat.c (STRCAT): Define and use macro.
19538         * wcsmbs/wcscat.c: Use WCSCAT if defined.
19539         * string/test-strcat.c: Add wcscat support.
19540         * wcsmbs/test-wcscat.c: New File.
19541         * wcsmbs/Makefile (strop-tests): Add wcscat.
19542         * benchtests/bench-strcat.c: Add wcscat support.
19543         * benchtests/bench-wcscat.c: New File.
19544         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
19545
19546         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
19547         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
19548         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
19549         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
19550         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19551         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19552         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19553         wcpncpy functions.
19554         * sysdeps/s390/multiarch/ifunc-impl-list.c
19555         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19556         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19557         * string/test-stpncpy.c: Add wcpncpy support.
19558         * wcsmbs/test-wcpncpy.c: New File.
19559         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19560         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19561         * benchtests/bench-wcpncpy.c: New File.
19562         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19563
19564         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19565         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19566         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19567         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19568         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19569         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19570         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19571         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19572         wcsncpy functions.
19573         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19574         * sysdeps/s390/multiarch/ifunc-impl-list.c
19575         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19576         * string/test-strncpy.c: Add wcsncpy support.
19577         * wcsmbs/test-wcsncpy.c: New File.
19578         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19579         * benchtests/bench-strncpy.c: Add wcsncpy support.
19580         * benchtests/bench-wcsncpy.c: New File.
19581         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19582
19583         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19584         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19585         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19586         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19587         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19588         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19589         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19590         wcpcpy functions.
19591         * string/stpcpy.c: Use STPCPY if defined.
19592         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19593         * sysdeps/s390/multiarch/ifunc-impl-list.c
19594         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19595         * string/test-stpcpy.c: Add wcpcpy support.
19596         * wcsmbs/test-wcpcpy.c: New File.
19597         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19598         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19599         * benchtests/bench-wcpcpy.c: New File.
19600         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19601
19602         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19603         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19604         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19605         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19606         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19607         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19608         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19609         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19610         wcscpy functions.
19611         * sysdeps/s390/multiarch/ifunc-impl-list.c
19612         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19613         * benchtests/bench-wcscpy.c: New File.
19614         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19615
19616         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19617         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19618         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19619         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19620         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19621         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19622         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19623         wcsnlen functions.
19624         * sysdeps/s390/multiarch/ifunc-impl-list.c
19625         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19626         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19627         * string/test-strnlen.c: Add wcsnlen support.
19628         * wcsmbs/test-wcsnlen.c: New File.
19629         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19630         * benchtests/bench-strnlen.c: Add wcsnlen support.
19631         * benchtests/bench-wcsnlen.c: New File.
19632         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19633
19634         * sysdeps/s390/multiarch/Makefile: New File.
19635         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19636         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19637         * sysdeps/s390/multiarch/strlen.c: Likewise.
19638         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19639         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19640         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19641         * string/strlen.c (STRLEN): Define and use macro.
19642         * sysdeps/s390/multiarch/ifunc-impl-list.c
19643         (IFUNC_VX_IMPL): New macro function.
19644         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19645         * benchtests/Makefile (wcsmbs-bench): New variable.
19646         (string-bench-all): Added wcsmbs-bench.
19647         * benchtests/bench-wcslen.c: New File.
19648
19649         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19650         s390_vx_libc_ifunc2): New macro function.
19651
19652         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19653         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19654         assembler support.
19655         * sysdeps/s390/configure: Regenerated.
19656
19657         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19658         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19659
19660         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19661         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19662         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19663
19664         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19665         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19666         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19667         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19668         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19669         (memcmp, bcmp): Use __memcmp_default as alias source.
19670         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19671         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19672         Rename to __memcmp_default.
19673         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19674         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19675         (memcpy): Use __memcpy_default as alias source.
19676         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19677         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19678         Rename to __memcpy_default.
19679         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19680         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19681         (memset): Use __memset_default as alias source.
19682         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19683         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19684         Rename to __memset_default.
19685         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19686         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19687         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19688         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19689         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19690         (memcmp, bcmp): Use __memcmp_default as alias source.
19691         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19692         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19693         Rename to __memcmp_default.
19694         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19695         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19696         (memcpy): Use __memcpy_default as alias source.
19697         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19698         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19699         Rename to __memcpy_default.
19700         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19701         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19702         (memset): Use __memset_default as alias source.
19703         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19704         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19705         Rename to __memset_default.
19706         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19707         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19708
19709         [BZ #18610]
19710         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19711         __ieee_instruction_pointer to __unused.
19712         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19713         __ieee_instruction_pointer.
19714         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19715         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19716         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19717         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19718         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19719         Mark dxc-field as reserved.
19720
19721 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19722
19723         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19724         if the weak reference is not null.
19725
19726 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19727
19728         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19729
19730         [BZ #11214]
19731         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19732
19733 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19734
19735         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19736         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19737         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19738         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19739         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19740         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19741         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19742         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19743         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19744         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19745         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19746         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19747         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19748         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19749         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19750         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19751         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19752         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19753
19754 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19755
19756         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19757         register other than r0 for tabort, it has special meaning.
19758         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19759         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19760         transaction before starting syscall.
19761
19762 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19763
19764         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19765
19766 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19767
19768         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19769
19770         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19771         * sysdeps/x86_64/rtld-memset.S: Likewise.
19772         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19773         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19774         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19775         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19776
19777         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19778
19779 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19780
19781         * debug/strcpy_chk.c: Improve performance.
19782         * debug/stpcpy_chk.c: Likewise.
19783         * sysdeps/x86_64/strcpy_chk.S: Remove.
19784         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19785
19786         [BZ #18240]
19787         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19788
19789 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19790
19791         [BZ #15128]
19792         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19793         ifuncmain8.
19794         (modules-names): Add ifuncmod8.
19795         ($(objpfx)ifuncmain8): New rule.
19796         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19797         <cpuid.h>.
19798         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19799         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19800         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19801         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19802         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19803         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19804         * sysdeps/x86_64/ifuncmain8.c: New file.
19805         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19806         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19807         Removed.
19808         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19809         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19810         Change rtld_savespace_sse to __glibc_unused2.
19811         (RTLD_CHECK_FOREIGN_CALL): Removed.
19812         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19813         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19814         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19815
19816 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19817
19818         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19819
19820 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19821
19822         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19823         Unconditionally set __fpcr to avoid uninialized warning.
19824         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19825
19826 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19827
19828         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19829         is corrupt.
19830
19831         * malloc/arena.c (arena_get2): Drop unused argument.
19832         (arena_lock): Adjust.
19833         (arena_get_retry): Likewise.
19834
19835 2015-08-24  Andreas Schwab  <schwab@suse.de>
19836
19837         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19838         Don't define.
19839         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19840         (__ASSUME_IPC64): Don't undef.
19841         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19842         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19843         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19844         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19845         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19846         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19847         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19848         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19849         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19850         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19851         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19852         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19853         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19854         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19855         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19856         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19857         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19858         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19859         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19860         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19861         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19862
19863 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19864
19865         * manual/Makefile (install): Only build manual when perl is available.
19866
19867 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19868
19869         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19870         '#undef memcpy' by '#undef memchr'.
19871
19872 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19873
19874         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19875         memchr not point to the internal __GI_memchr implementation.
19876
19877 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19878
19879         * timezone/Makefile (CFLAGS-zdump.c): Remove
19880         -Wno-strict-prototypes.
19881         (CFLAGS-zic.c): Likewise.
19882         (CFLAGS-ialloc.c): Likewise.
19883         (CFLAGS-scheck.c): Likewise.
19884
19885         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19886         -Wno-error=undef.
19887
19888 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19889
19890         * i386/i686/multiarch/strcasestr-c.c: Removed.
19891         * x86_64/multiarch/strcasestr.c: Likewise.
19892         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19893         Remove strcasestr.
19894
19895 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19896
19897         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19898
19899         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19900         variables for high and low parts before possibly modifying them.
19901
19902 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19903
19904         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19905         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19906         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19907         of "multiarch/init-arch.h".
19908         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19909         * sysdeps/x86/init-arch.h: This.
19910
19911 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19912
19913         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19914         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19915
19916 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19917
19918         [BZ #17787]
19919         * manual/macros.texi: Add twoexp macro.
19920         * manual/filesys.texi: Fix exponents.
19921         * manual/llio.texi: Likewise.
19922         * manual/stdio.texi: Likewise.
19923
19924 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19925
19926         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19927         incorrect use.
19928
19929 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19930
19931         [BZ #18370]
19932         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19933         whose real or imaginary part has small absolute value.
19934         * math/s_csqrtf.c (__csqrtf): Likewise.
19935         * math/s_csqrtl.c (__csqrtl): Likewise.
19936         * math/auto-libm-test-in: Add more tests of csqrt.
19937         * math/auto-libm-test-out: Regenerated.
19938         * sysdeps/i386/fpu/libm-test-ulps: Update.
19939
19940 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19941
19942         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19943         __ppc_set_ppr_very_low): New functions.
19944         * manual/platform.texi: Add documentation about
19945         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19946
19947 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19948
19949         * string/stpncpy.c (stpncpy): Improve performance using
19950         __strnlen/memcpy/memset.
19951
19952 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19953
19954         [BZ #18796]
19955         * scripts/test-installation.pl: Don't add -lmvec to build options if
19956         libmvec wasn't built.
19957
19958 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19959
19960         [BZ #14341]
19961         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19962         case when there is a gap between DT_REL and DT_JMPREL sections.
19963         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19964         (LDFLAGS-tst-split-dynreloc): New.
19965         (tst-split-dynreloc-ENV): Likewise.
19966         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19967         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19968
19969 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19970
19971         [BZ #18822]
19972         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19973         attribute_hidden.
19974         (__xstat64_conv): Likewise.
19975         (__xstat32_conv): Likewise.
19976
19977 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19978
19979         [BZ #18822]
19980         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19981         Don't load %ebx when calling __setcontext.  Call __setcontext
19982         with HIDDEN_JUMPTARGET.
19983         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19984         libc_hidden_def.
19985
19986 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19987
19988         * sysdeps/i386/i686/Makefile
19989         [$(subdir) == string] (sysdep_routines): Moved to ...
19990         * sysdeps/i386/Makefile: Here.
19991         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19992         * sysdeps/i386/cacheinfo.c: Here.
19993         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19994         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19995         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19996         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19997
19998 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19999
20000         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
20001         __i586__ is defined.
20002         (HAS_I686): Defined to 1 if __i686__ is defined.
20003
20004 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
20005
20006         * elf/Makefile [$(have-z-execstack) = yes]
20007         (CPPFLAGS-tst-execstack.c): New variable.
20008
20009         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
20010         conditional to [defined UTMPX || _HAVE_UT_TYPE].
20011         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
20012         UTMPX || _HAVE_UT_TV].
20013         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
20014         UTMPX || _HAVE_UT_TV - 0].
20015
20016 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
20017
20018         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
20019         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
20020         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
20021
20022 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20023
20024         * sysdeps/powerpc/dl-procinfo.c:
20025         (_dl_powerpc_cap_flags): Added missing strings for some
20026         hwcap features.
20027         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
20028
20029 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20030
20031         Port the 0x7efe...feff pattern to GCC 6.
20032         See Steve Ellcey's bug report in:
20033         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
20034         * string/memrchr.c (MEMRCHR):
20035         * string/rawmemchr.c (RAWMEMCHR):
20036         * string/strchr.c (strchr):
20037         * string/strchrnul.c (STRCHRNUL):
20038         Rewrite code to avoid issues with signed shift overflow.
20039
20040 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
20041
20042         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
20043         whether cpuid is available only if HAS_CPUID is 0.
20044         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
20045         (HAS_I586): Likewise.
20046         (HAS_I686): Likewise.
20047
20048 2015-08-18  Zack Weinberg  <zackw@panix.com>
20049
20050         * misc/Versions (libc): Add GLIBC_2.23.
20051
20052 2015-08-18  Alan Modra  <amodra@gmail.com>
20053
20054         [BZ #18421]
20055         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
20056         .Lp__global.
20057         (_start): Load %dp via .Lp__global.
20058         [!SHARED]: Use .section .rodata.
20059
20060 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20061
20062         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
20063         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
20064
20065 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20066
20067         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
20068         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
20069
20070 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20071
20072         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
20073         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
20074
20075 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20076
20077         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
20078         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
20079
20080 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20081
20082         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
20083         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
20084
20085 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20086
20087         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
20088         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
20089
20090 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20091
20092         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
20093
20094 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20095
20096         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
20097         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
20098         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20099         (__ASSUME_LWS_CAS): Delete.
20100
20101 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20102
20103         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
20104         * sysdeps/hppa/configure: Regenerated.
20105         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
20106         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
20107         * sysdeps/hppa/nptl/tls.h: Likewise.
20108
20109 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
20110
20111         [BZ #18823]
20112         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
20113         for scaling up small arguments.
20114         * math/s_csqrtf.c (__csqrtf): Likewise.
20115         * math/s_csqrtl.c (__csqrtl): Likewise.
20116         * math/auto-libm-test-in: Add more tests of csqrt.
20117         * math/auto-libm-test-out: Regenerated.
20118
20119 2015-08-17  Andreas Schwab  <schwab@suse.de>
20120
20121         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
20122         version set GLIBC_2.19.
20123
20124 2015-08-16  Zack Weinberg  <zackw@panix.com>
20125
20126         [BZ #18681]
20127         * misc/regexp.h: This interface is no longer supported.
20128         Remove all contents, leaving only an #error directive.
20129         * misc/regexp.c (loc1, loc2, locs, step, advance):
20130         Demote to compatibility symbols.
20131
20132 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
20133
20134         [BZ #18084]
20135         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
20136         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
20137         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
20138         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
20139         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
20140         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
20141         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
20142         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
20143         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
20144
20145 2015-08-15  Zack Weinberg  <zackw@panix.com>
20146
20147         [BZ #18795]
20148         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
20149         buffer length is known to be too large, not if it's known to be
20150         small enough.
20151         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
20152         overflow at runtime, involving a length parameter, twice: once
20153         with a compile-time constant length parameter, once without.
20154
20155 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
20156
20157         [BZ #18824]
20158         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
20159         scaling x * y up instead of down.
20160         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
20161         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
20162         * math/auto-libm-test-in: Add more tests of fma.
20163         * math/auto-libm-test-out: Regenerated.
20164
20165 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
20166
20167         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20168
20169 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20170
20171         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
20172         unnecessary movq.
20173         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
20174         Likewise.
20175
20176 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
20177
20178         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
20179         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
20180         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
20181         and tgamma.
20182         * math/auto-libm-test-out: Regenerated.
20183         * sysdeps/i386/fpu/libm-test-ulps: Update.
20184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20185
20186         [BZ #16520]
20187         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
20188         (__tanh): Force underflow exception for arguments with small
20189         absolute value.
20190         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
20191         (__tanhf): Force underflow exception for arguments with small
20192         absolute value.
20193         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
20194         (__tanhl): Force underflow exception for arguments with small
20195         absolute value.
20196         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
20197         (__tanhl): Force underflow exception for arguments with small
20198         absolute value.
20199         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
20200         (__tanhl): Force underflow exception for arguments with small
20201         absolute value.
20202         * math/auto-libm-test-in: Add more tests of tanh.
20203         * math/auto-libm-test-out: Regenerated.
20204         * sysdeps/i386/fpu/libm-test-ulps: Update.
20205
20206 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20207
20208         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
20209         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
20210
20211 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20212
20213         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
20214         <cpuid.h>.
20215
20216 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20217
20218         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
20219         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
20220
20221 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20222
20223         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
20224         Remove $(objpfx)init-arch.o.
20225         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
20226         init-arch.
20227         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
20228         (INIT_ARCH_EXT): Defined as empty.
20229         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
20230         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
20231         __init_cpu_features call.  Replace HAS_XXX with
20232         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20233         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
20234         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
20235         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
20236         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
20237         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20238         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
20239         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
20240         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20241         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
20242         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
20243         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20244         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
20245         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
20246         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20247         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
20248         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
20249         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20250         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20251         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
20252         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
20253         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20254         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
20255         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
20256         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20257         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
20258         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
20259         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20260         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
20261         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
20262         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20263         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
20264         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
20265         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20266         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
20267         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
20268
20269 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20270
20271         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
20272         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20273         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20274         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20275         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
20276         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
20277         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
20278         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
20279         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
20280         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
20281         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
20282         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
20283         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20284         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20285         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20286         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20287         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20288         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20289         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20290         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20291         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20292         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20293         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20294         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20295         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20296         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20297         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20298         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20299         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20300         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20301         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20302         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20303         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20304         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20305         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20306         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20307         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20308         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20309         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20310         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20311         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20312         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20313         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20314
20315 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20316
20317         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
20318         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20319         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20320         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20321         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20322         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
20323         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20324         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
20325         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20326         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20327         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20328         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
20329         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
20330         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
20331         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
20332         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
20333         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
20334         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
20335         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
20336         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
20337         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
20338         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
20339         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
20340         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
20341         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20342         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
20343         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
20344         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
20345         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20346         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
20347         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
20348         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
20349         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
20350         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20351         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20352         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
20353         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
20354         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
20355         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
20356         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
20357         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20358         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
20359         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
20360
20361 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20362
20363         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
20364         (dl_platform_init): Call init_cpu_features.
20365         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
20366         * sysdeps/i386/i686/cacheinfo.c
20367         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
20368         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
20369         * sysdeps/i386/i686/multiarch/Versions: Removed.
20370         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
20371         Removed.
20372         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
20373         * sysdeps/unix/sysv/linux/x86/Makefile
20374         (libpthread-sysdep_routines): Remove init-arch.
20375         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
20376         <sysdeps/x86_64/dl-procinfo.c> instead of
20377         sysdeps/generic/dl-procinfo.c>.
20378         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
20379         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
20380         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
20381         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
20382         [$(subdir) == elf] (tests-static): Add
20383         tst-get-cpu-features-static.
20384         * sysdeps/x86/Versions: New file.
20385         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
20386         * sysdeps/x86/cpu-features.c: Likewise.
20387         * sysdeps/x86/cpu-features.h: Likewise.
20388         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
20389         * sysdeps/x86/libc-start.c: Likewise.
20390         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
20391         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
20392         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
20393         * sysdeps/x86_64/dl-procinfo.c: Likewise.
20394         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
20395         Assume USE_MULTIARCH is defined and don't check it.
20396         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
20397         (is_amd): Likewise.
20398         (max_cpuid): Likewise.
20399         (intel_check_word): Likewise.
20400         (__cache_sysconf): Don't call __init_cpu_features.
20401         (__x86_preferred_memory_instruction): Removed.
20402         (init_cacheinfo): Don't call __init_cpu_features. Replace
20403         __cpu_features with GLRO(dl_x86_cpu_features).
20404         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
20405         (dl_platform_init): Call init_cpu_features.
20406         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
20407         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
20408         * sysdeps/x86_64/multiarch/Versions: Removed.
20409         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
20410         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
20411         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
20412         Removed.
20413         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
20414
20415 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20416
20417         [BZ #18820]
20418         * libio/Makefile (test-fmemopen-mem): New test.
20419         * libio/test-fmemopen.c (do_bz18820): New test.
20420         * libio/fmemopen.c (__fmemopen): Fix memory leak.
20421         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
20422
20423 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20424
20425         [BZ #16734]
20426         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
20427         (FREE_BUF): Delete.
20428         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
20429         * libio/genops.c (_IO_setb): Use malloc and free directly.
20430         (_IO_default_doallocate, _IO_default_finish): Likewise.
20431         ( _IO_unbuffer_all): Likewise.
20432         ( libc_freeres_fn): Likewise.
20433         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
20434         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
20435         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
20436         (_IO_wdefault_doallocate): Likewise.
20437
20438 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
20439
20440         [BZ #18086]
20441         * sysdeps/posix/nice.c (nice): Restore old errno.
20442         * posix/tst-nice.c (do_test): Add test for BZ #18086.
20443
20444 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
20445
20446         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
20447
20448 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20449
20450         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
20451         __bcopy and add a weak_alias to bcopy.
20452         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
20453         for static build.
20454
20455         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
20456         cleanup macro usage.
20457         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
20458         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
20459         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
20460         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
20461         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
20462         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
20463         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
20464         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20465         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20466         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
20467         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20468         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
20469         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20470         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
20471         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
20472         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
20473         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
20474         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
20475         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20476
20477         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
20478         libc_hidden_def.
20479         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
20480
20481         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
20482         (sysdep_routines): Add strstr-ppc64.
20483         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
20484
20485 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
20486
20487         [BZ #18778]
20488         * elf/Makefile (tests): Add Add tst-nodelete2.
20489         (modules-names): Add tst-nodelete2mod.
20490         (tst-nodelete2mod.so-no-z-defs): New.
20491         ($(objpfx)tst-nodelete2): Likewise.
20492         ($(objpfx)tst-nodelete2.out): Likewise.
20493         (LDFLAGS-tst-nodelete2): Likewise.
20494         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
20495         out of loop through all loaded libraries.
20496         * elf/tst-nodelete2.c: New file.
20497         * elf/tst-nodelete2mod.c: Likewise.
20498         * elf/tst-znodelete-zlib.cc: Delete.
20499
20500 2015-08-11  Andreas Schwab  <schwab@suse.de>
20501
20502         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
20503         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
20504         (__openat64_nocancel): Likewise.
20505
20506 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
20507
20508         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
20509         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
20510         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
20511         * math/auto-libm-test-out: Regenerated.
20512         * sysdeps/i386/fpu/libm-test-ulps: Update.
20513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20514
20515 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20516
20517         [BZ #18790]
20518         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
20519         threshold for returning +/- 1.
20520         * math/auto-libm-test-in: Add more tests of tanh.
20521         * math/auto-libm-test-out: Regenerated.
20522         * sysdeps/i386/fpu/libm-test-ulps: Update.
20523
20524 2015-08-10  Andreas Schwab  <schwab@suse.de>
20525
20526         [BZ #18781]
20527         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
20528         MORE_OFLAGS to oflag.
20529         * io/test-lfs.c (do_test): Test openat64.
20530
20531 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20532
20533         [BZ #18789]
20534         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
20535         smaller threshold for returning the argument.
20536         * math/auto-libm-test-in: Add more tests of sinh.
20537         * math/auto-libm-test-out: Regenerated.
20538         * sysdeps/i386/fpu/libm-test-ulps: Update.
20539
20540 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20541
20542         [BZ #18674]
20543         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
20544         break.
20545
20546 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
20547
20548         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
20549         (generated): Don't add $(addprefix z.,$(tzfiles)).
20550
20551 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20552
20553         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20554         * scripts/sysd-rules.awk: Likewise.
20555
20556 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20557
20558         * iconvdata/tst-tables.sh: Change echo -n to printf.
20559         * nss/db-Makefile: Likewise.
20560         * posix/tst-getconf.sh: Likewise.
20561         * stdio-common/tst-unbputc.sh: Likewise.
20562
20563 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20564
20565         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20566         MADV_*_PAGES defines behind this feature check.
20567
20568 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20569
20570         [BZ #18480]
20571         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20572         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20573         Define.
20574         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20575         LOAD_REGS_5, LOAD_REGS_6): Update.
20576         (INTERNAL_SYSCALL): Update using new LOAD defines.
20577         (INTERNAL_SYSCALL_NCS): Likewise.
20578         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20579
20580 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20581
20582         [BZ #16734]
20583         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20584
20585 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20586
20587         [BZ #17905]
20588         * catgets/Makefile (tst-catgets-mem): New test.
20589         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20590         * catgets/open_catalog.c (__open_catalog): Likewise.
20591         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20592
20593 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20594
20595         [BZ #18787]
20596         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20597         clobber registers.
20598         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20599         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20600         Cast return to __typeof (oldval).
20601
20602 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20603
20604         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20605         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20606         and delete sys/syscall.h include.
20607
20608 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20609
20610         [BZ #16517]
20611         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20612         (tan): Force underflow exception for arguments with small absolute
20613         value.
20614         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20615         (__kernel_tanf): Force underflow exception for arguments with
20616         small absolute value.
20617         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20618         (__kernel_tanl): Force underflow exception for arguments with
20619         small absolute value.
20620         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20621         (__kernel_tanl): Force underflow exception for arguments with
20622         small absolute value.
20623         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20624         (__kernel_tanl): Force underflow exception for arguments with
20625         small absolute value.
20626         * math/auto-libm-test-in: Add more tests of tan.
20627         * math/auto-libm-test-out: Regenerated.
20628
20629 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20630
20631         Fix sysdeps/i386/fpu/s_scalbn.S build
20632
20633         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20634
20635 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20636
20637         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20638
20639 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20640
20641         Fix gcrt0.o compilation
20642
20643         When static-start-installed-name is different from
20644         start-installed-name, we must not use the shared objects.
20645
20646         * csu/Makefile
20647         (extra-objs): Add gmon-start.o when building shared library and
20648         $(static-start-installed-name) is different from
20649         $(start-installed-name).
20650         $(objpfx)g$(static-start-installed-name): When building shared
20651         library and $(static-start-installed-name) is different from
20652         $(static-start-installed-name), revert to non-shared rule,
20653         i.e. using $(objpfx)% and gmon-start.o.
20654
20655 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20656
20657         [BZ #16519]
20658         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20659         (__ieee754_sinh): Force underflow exception for arguments with
20660         small absolute value.
20661         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20662         (__ieee754_sinhf): Force underflow exception for arguments with
20663         small absolute value.
20664         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20665         (__ieee754_sinhl): Force underflow exception for arguments with
20666         small absolute value.
20667         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20668         (__ieee754_sinhl): Force underflow exception for arguments with
20669         small absolute value.
20670         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20671         (__ieee754_sinhl): Force underflow exception for arguments with
20672         small absolute value.
20673         * math/auto-libm-test-in: Add more tests of sinh.
20674         * math/auto-libm-test-out: Regenerated.
20675         * sysdeps/i386/fpu/libm-test-ulps: Update.
20676
20677 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20678
20679         * libio/oldfileops.c: Include unistd.h.
20680
20681 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20682
20683         * stdlib/isomac.c: Include ctype.h.
20684
20685 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20686
20687         * dirent/tst-seekdir.c (main): Converted to ...
20688         (do_test): ... this.
20689         (TEST_FUNCTION): New macro.
20690         Include test-skeleton.c.
20691         * elf/tst-dlmodcount.c (main): Converted to ...
20692         (do_test): ... this.
20693         (TEST_FUNCTION): New macro.
20694         Include test-skeleton.c.
20695         * elf/tst-order-main.c (main): Converted to ...
20696         (do_test): ... this.
20697         (TEST_FUNCTION): New macro.
20698         Include test-skeleton.c.
20699         * elf/tst-pie2.c (main): Converted to ...
20700         (do_test): ... this.
20701         (TEST_FUNCTION): New macro.
20702         Include test-skeleton.c.
20703         * inet/tst-ether_aton.c (main): Converted to ...
20704         (do_test): ... this.
20705         (TEST_FUNCTION): New macro.
20706         Include test-skeleton.c.
20707         * misc/tst-mntent.c (main): Converted to ...
20708         (do_test): ... this.
20709         (TEST_FUNCTION): New macro.
20710         Include test-skeleton.c.
20711         * misc/tst-tsearch.c (main): Converted to ...
20712         (do_test): ... this.
20713         (TEST_FUNCTION): New macro.
20714         Include test-skeleton.c.
20715         * posix/tst-regexloc.c (main): Converted to ...
20716         (do_test): ... this.
20717         (TEST_FUNCTION): New macro.
20718         Include test-skeleton.c.
20719         * resolv/tst-aton.c (main): Converted to ...
20720         (do_test): ... this.
20721         (TEST_FUNCTION): New macro.
20722         Include test-skeleton.c.
20723         * stdio-common/test-fwrite.c (main): Converted to ...
20724         (do_test): ... this.
20725         (TEST_FUNCTION): New macro.
20726         Include test-skeleton.c.
20727         * stdio-common/tst-ferror.c (main): Converted to ...
20728         (do_test): ... this.
20729         (TEST_FUNCTION): New macro.
20730         Include test-skeleton.c.
20731         * stdio-common/tst-printf.c (main): Converted to ...
20732         (do_test): ... this.
20733         (TEST_FUNCTION): New macro.
20734         Include test-skeleton.c.
20735         * stdio-common/tst-printfsz.c (main): Converted to ...
20736         (do_test): ... this.
20737         (TEST_FUNCTION): New macro.
20738         Include test-skeleton.c.
20739         * stdlib/tst-strtod.c (main): Converted to ...
20740         (do_test): ... this.
20741         (TEST_FUNCTION): New macro.
20742         Include test-skeleton.c.
20743         * string/tst-strlen.c (main): Converted to ...
20744         (do_test): ... this.
20745         (TEST_FUNCTION): New macro.
20746         Include test-skeleton.c.
20747         * string/tst-svc.c (main): Converted to ...
20748         (do_test): ... this.
20749         (TEST_FUNCTION): New macro.
20750         Include test-skeleton.c.
20751         * time/tst-strptime.c (main): Converted to ...
20752         (do_test): ... this.
20753         (TEST_FUNCTION): New macro.
20754         Include test-skeleton.c.
20755         * timezone/tst-timezone.c (main): Converted to ...
20756         (do_test): ... this.
20757         (TEST_FUNCTION): New macro.
20758         Include test-skeleton.c.
20759
20760 2015-08-05  Zack Weinberg  <zackw@panix.com>
20761
20762         * misc/regexp.h: Update comments.
20763
20764 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20765
20766         [BZ #18635]
20767         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20768         before return label.
20769
20770 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20771
20772         [BZ #18661]
20773         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20774         when calling __errno_location.
20775         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20776         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20777
20778 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20779
20780         [BZ #18661]
20781         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20782         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20783         __gettimeofday.
20784
20785 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20786
20787         [BZ #18661]
20788         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20789         (__start_context): Don't use pop to restore %rdi so that stack
20790         is aligned to 16 bytes when calling __setcontext.
20791
20792 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20793
20794         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20795         only for libc.
20796         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20797
20798 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20799
20800         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20801         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20802         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20803
20804 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20805
20806         * string/memccpy.c (memccpy):
20807         Improve performance by using memchr/memcpy/__mempcpy.
20808
20809 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20810
20811         * string/strncpy.c (strncpy):
20812         Improve performance by using __strnlen/memcpy.
20813
20814 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20815
20816         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20817         Optimize to avoid an unnecessary FPCR read.
20818
20819 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20820
20821         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20822         Optimize to reduce FPCR/FPSR accesses.
20823
20824 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20825
20826         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20827         dead->data[category] != NULL.
20828
20829 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20830
20831         [BZ #18647]
20832         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20833         and |x| close to 1, use absolute value of x when computing log.
20834         * math/auto-libm-test-in: Add more tests of pow.
20835         * math/auto-libm-test-out: Regenerated.
20836
20837 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20838
20839         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20840         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20841         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20842
20843 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20844
20845         [BZ #18525]
20846         * locales/km_KH: Remove timezone definition.
20847         * locales/lo_LA: Likewise.
20848         * locales/my_MM: Likewise.
20849         * locales/nan_TW@latin: Likewise.
20850         * locales/th_TH: Likewise.
20851         * locales/uk_UA: Likewise.
20852
20853 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20854
20855         [BZ #18265]
20856         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20857         (wcsncat): Likewise.
20858         (wcscmp): Likewise.
20859         (wcsncmp): Likewise.
20860
20861 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20862
20863         * test-skeleton.c (usage): New function.
20864         (main): Call usage when opt is '?'.
20865
20866 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20867
20868         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20869         before first use.
20870
20871 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20872
20873         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20874         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20875         in there too.
20876
20877 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20878
20879         * version.h (RELEASE): Set to "development".
20880         (VERSION): Set to "2.22.90"
20881
20882         * version.h (RELEASE): Set to "stable".
20883         (VERSION): Set to "2.22"
20884         * include/features.h (__GLIBC_MINOR__): Set to 22.
20885
20886 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20887
20888         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20889         Restructure macro to avoid "value computed is not used" warning.
20890         (atomic_compare_and_exchange_val_acq): Likewise.
20891
20892 2015-08-04  Andreas Schwab  <schwab@suse.de>
20893
20894         [BZ #18635]
20895         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20896         ret.
20897         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20898
20899 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20900
20901         * po/pl.po: Updated translation.
20902         * po/uk.po: Likewise.
20903         * po/fi.po: Likewise.
20904         * po/ko.po: Likewise.
20905         * po/ru.po: Likewise.
20906         * po/vi.po: Likewise.
20907
20908 2015-07-31  Zack Weinberg  <zackw@panix.com>
20909
20910         [BZ #18681]
20911         * regexp.h: Add unconditional #warning stating that this header
20912         will be removed soon.  Revise banner comment to match.
20913         (compile): Consistently use ERROR instead of RETURN to report
20914         errors (partial fix for bz#18681).
20915         * regexp.c: Don't include regexp.h. Remove some unnecessary
20916         declarations.
20917
20918 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20919
20920         * po/libc.pot: Regenerated.
20921
20922 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20923
20924         [BZ #18740]
20925         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20926         float-vlen4-arch-ext-cflags): Removed.
20927         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20928         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20929
20930 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20931
20932         [BZ #14113]
20933         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20934         aligned to __aligned__.
20935         (pthread_cond_t, pthread_rwlock_t): Likewise.
20936
20937 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20938
20939         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20940
20941 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20942
20943         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20944         (struct sigaction): Change sa_flags from a long to an int, and add
20945         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20946
20947 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20948
20949         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20950         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20951         sysdeps/generic/sysdep.h include.
20952         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20953         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20954         sysdeps/hppa/sysdep.h.
20955         (ENTRY, PSEUDO): Undefine before defining.
20956
20957 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20958
20959         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20960         from scratch to use INTERNAL_SYSCALL.
20961
20962 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20963
20964         [BZ #18078]
20965         * scripts/check-localplt.awk: Support alternate relocations.
20966         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20967         sections.
20968         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20969         malloc entries with + REL R_386_GLOB_DAT.
20970         * sysdeps/x86_64/localplt.data: New file.
20971
20972 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20973
20974         [BZ #18731]
20975         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20976         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20977         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20978
20979 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20980
20981         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20982
20983 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20984
20985         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20986         directly in terms of __sync_fetch_and_add and delete (int) cast.
20987
20988 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20989
20990         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20991         the -D_ASM_IA64_CURRENT_H flag.
20992
20993 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20994
20995         [BZ #18641]
20996         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20997
20998 2015-07-27  Andreas Schwab  <schwab@suse.de>
20999
21000         * conform/conformtest.pl (checknamespace): Filter out string
21001         literals while tokenizing.
21002
21003 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
21004
21005         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21006         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
21007         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21008
21009 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
21010
21011         * nptl/tst-join7mod.c: Add #include <string.h>.
21012
21013 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
21014
21015         * sysdeps/nios2/libm-test-ulps: Update.
21016
21017 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
21018
21019         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
21020         Fix order of arguments to the rt_sigprocmask syscall.
21021         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
21022         Likewise.
21023
21024 2015-07-24  Roland McGrath  <roland@hack.frob.com>
21025
21026         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
21027
21028 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21029
21030         [BZ #18457]
21031         * nptl/Makefile (tests): New test case tst-join7.
21032         (modules-names): New test case module tst-join7mod.
21033         * nptl/tst-join7.c: New file.
21034         * nptl/tst-join7mod.c: New file.
21035         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
21036         all translation units in libc.so, libpthread.so and rtld.
21037
21038 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21039
21040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21041
21042 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
21043
21044         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
21045         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
21046         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
21047         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
21048         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
21049         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
21050         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
21051         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
21052         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
21053         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
21054         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
21055         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
21056         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
21057         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
21058         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
21059         implementation.
21060
21061 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21062
21063         [BZ #17711]
21064         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21065         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
21066         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21067         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21068         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
21069         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21070
21071 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21072
21073         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
21074         instead of just saying load lock in the comments.
21075
21076 2015-07-23  Roland McGrath  <roland@hack.frob.com>
21077
21078         * sysdeps/unix/Subdirs: Moved ...
21079         * sysdeps/posix/Subdirs: ... here.
21080         * login/pty.h (struct termios, struct winsize): Add forward decls.
21081         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
21082         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
21083         * sysdeps/arm/nacl/libc.abilist: Updated.
21084         * sysdeps/nacl/libutil.abilist: New file.
21085
21086         * bits/signum.h: Update comments to mention 1003.1-2013 too.
21087         (SIGWINCH): New macro.
21088
21089         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
21090         * sysdeps/arm/nacl/libc.abilist: Add it.
21091
21092 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
21093
21094         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
21095
21096 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
21097
21098         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
21099         Swap __glibc_reserved0 and sa_flags order.
21100
21101 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
21102
21103         [BZ #18657]
21104         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
21105         are pending TLS destructor calls.
21106         * include/link.h (struct link_map): Add concurrency note for
21107         L_TLS_DTOR_COUNT.
21108         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
21109         Don't touch the link map flag.  Atomically increment
21110         l_tls_dtor_count.
21111         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
21112         Avoid taking the load lock and don't touch the link map flag.
21113         * stdlib/tst-tls-atexit-nodelete.c: New test case.
21114         * stdlib/Makefile (tests): Use it.
21115         * stdlib/tst-tls-atexit.c (do_test): dlopen
21116         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
21117         to allow tst-tls-atexit-nodelete test case to use it.
21118
21119 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21120
21121         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
21122         to bits/types.h.
21123         (msgqnum_t): New typedef.
21124         (msglen_t): Likewise.
21125         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
21126         and msg_qbytes type to msglen_t.
21127
21128 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21129
21130         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
21131         pad0 to __glibc_reserved0.
21132         (struct stat64): Likewise.
21133
21134 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21135
21136         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
21137         Change sa_flags from a long to an int and add __glibc_reserved0 before
21138         it for padding.
21139
21140 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21141
21142         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
21143         anonymous by deleting "siginfo" name.
21144
21145 2015-07-21  Roland McGrath  <roland@hack.frob.com>
21146
21147         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
21148         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
21149         rather than __nacl_irt_filename.
21150         * sysdeps/nacl/xstat.c (__xstat): Likewise.
21151
21152         * NEWS: New item for arm-nacl port.
21153         * sysdeps/arm/nacl/libc.abilist: New file.
21154         * sysdeps/nacl/ld.abilist: New file.
21155         * sysdeps/nacl/libBrokenLocale.abilist: New file.
21156         * sysdeps/nacl/libanl.abilist: New file.
21157         * sysdeps/nacl/libcrypt.abilist: New file.
21158         * sysdeps/nacl/libdl.abilist: New file.
21159         * sysdeps/nacl/libm.abilist: New file.
21160         * sysdeps/nacl/libpthread.abilist: New file.
21161         * sysdeps/nacl/libresolv.abilist: New file.
21162         * sysdeps/nacl/librt.abilist: New file.
21163
21164 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
21165
21166         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
21167         __startcontext to initialize the new context.
21168         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
21169         up CFI directive to forbid further backtracing.
21170
21171 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
21172
21173         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
21174         reference.
21175         * charmaps/ANSI_X3.4-1968: Likewise.
21176         * charmaps/BS_4730: Likewise.
21177         * charmaps/BS_VIEWDATA: Likewise.
21178         * charmaps/CP1250: Likewise.
21179         * charmaps/CP1251: Likewise.
21180         * charmaps/CP1252: Likewise.
21181         * charmaps/CP1253: Likewise.
21182         * charmaps/CP1254: Likewise.
21183         * charmaps/CP1255: Likewise.
21184         * charmaps/CP1256: Likewise.
21185         * charmaps/CSN_369103: Likewise.
21186         * charmaps/EBCDIC-DK-NO: Likewise.
21187         * charmaps/GB_1988-80: Likewise.
21188         * charmaps/GREEK-CCITT: Likewise.
21189         * charmaps/GREEK7: Likewise.
21190         * charmaps/INIS-8: Likewise.
21191         * charmaps/ISIRI-3342: Likewise.
21192         * charmaps/ISO_2033-1983: Likewise.
21193         * charmaps/ISO_5427-EXT: Likewise.
21194         * locales/POSIX: Likewise.
21195         * locales/ar_SA: Likewise.
21196         * locales/be_BY: Likewise.
21197         * locales/be_BY@latin: Likewise.
21198         * locales/ca_ES: Likewise.
21199         * locales/cs_CZ: Likewise.
21200         * locales/da_DK: Likewise.
21201         * locales/de_BE: Likewise.
21202         * locales/de_CH: Likewise.
21203         * locales/de_LU: Likewise.
21204         * locales/en_AU: Likewise.
21205         * locales/en_BW: Likewise.
21206         * locales/en_CA: Likewise.
21207         * locales/en_DK: Likewise.
21208         * locales/en_GB: Likewise.
21209         * locales/en_IE: Likewise.
21210         * locales/en_NZ: Likewise.
21211         * locales/en_ZA: Likewise.
21212         * locales/en_ZW: Likewise.
21213         * locales/es_AR: Likewise.
21214         * locales/es_BO: Likewise.
21215         * locales/es_CL: Likewise.
21216         * locales/es_CO: Likewise.
21217         * locales/es_DO: Likewise.
21218         * locales/es_EC: Likewise.
21219         * locales/es_ES: Likewise.
21220         * locales/es_HN: Likewise.
21221         * locales/es_MX: Likewise.
21222         * locales/es_PA: Likewise.
21223         * locales/es_PE: Likewise.
21224         * locales/es_PY: Likewise.
21225         * locales/es_SV: Likewise.
21226         * locales/es_US: Likewise.
21227         * locales/es_UY: Likewise.
21228         * locales/es_VE: Likewise.
21229         * locales/et_EE: Likewise.
21230         * locales/fa_IR: Likewise.
21231         * locales/fo_FO: Likewise.
21232         * locales/fr_CA: Likewise.
21233         * locales/fr_CH: Likewise.
21234         * locales/gv_GB: Likewise.
21235         * locales/he_IL: Likewise.
21236         * locales/hr_HR: Likewise.
21237         * locales/id_ID: Likewise.
21238         * locales/is_IS: Likewise.
21239         * locales/it_CH: Likewise.
21240         * locales/iw_IL: Likewise.
21241         * locales/kl_GL: Likewise.
21242         * locales/ko_KR: Likewise.
21243         * locales/kw_GB: Likewise.
21244         * locales/lg_UG: Likewise.
21245         * locales/lt_LT: Likewise.
21246         * locales/lv_LV: Likewise.
21247         * locales/mi_NZ: Likewise.
21248         * locales/nhn_MX: Likewise.
21249         * locales/nl_BE: Likewise.
21250         * locales/pl_PL: Likewise.
21251         * locales/sk_SK: Likewise.
21252         * locales/sl_SI: Likewise.
21253         * locales/sv_FI: Likewise.
21254         * locales/tl_PH: Likewise.
21255         * locales/tr_TR: Likewise.
21256         * locales/vi_VN: Likewise.
21257
21258 2015-07-21  Khem Raj  <raj.khem@gmail.com>
21259
21260         [BZ #17475]
21261         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
21262         of tu_IN and bh_IN.
21263
21264 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21265
21266         [BZ #18694]
21267         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
21268         bits/wordsize.h.
21269         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
21270
21271 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21272
21273         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
21274         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
21275         (spawn_thread): New function.
21276         (load): Rename to reg_dtor_and_close.  Move dlopen to...
21277         (do_test): ... here.  Use IS_LOADED to test for its
21278         availability.
21279
21280 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
21281
21282         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
21283
21284 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
21285
21286         [BZ #18696]
21287         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
21288         si_addr_bnd.
21289         (si_lower): New.
21290         (si_upper): Likewise.
21291
21292 2015-07-16  David S. Miller  <davem@davemloft.net>
21293
21294         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
21295
21296 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21297
21298         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
21299         buffer.
21300         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
21301         fail output information.
21302
21303 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21304
21305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
21306         and strstr-ppc64..
21307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
21308         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
21309         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
21310         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
21311         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
21312
21313 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21314
21315         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21316         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21317         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21318         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21319
21320 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21321
21322         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21323         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
21324         rtld_hidden_proto.
21325         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
21326
21327 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21328
21329         * tst-nodelete-opened.c (do_test): Add comment to clarify how
21330         the test can fail.
21331
21332         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
21333
21334         [BZ #18676]
21335         * elf/tst-nodelete-opened.c: New test case.
21336         * elf/tst-nodelete-opened-lib.c: New test case module.
21337         * elf/Makefile (tests, modules-names): Use them.
21338         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
21339         early.
21340
21341 2015-07-15  David S. Miller  <davem@davemloft.net>
21342
21343         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
21344         futex-intenal.h
21345         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
21346         * sysdeps/sparc/sparc64/Makefile: Likewise.
21347         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21348         Remove space from macro define.
21349         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
21350
21351 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
21352
21353         [BZ #17475]
21354         * locale/iso-639.def: Update Bhili and Tulu language codes as
21355         per iso639-3.
21356
21357 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
21358
21359         * elf/tst-leaks1.c (main): Converted to ...
21360         (do_test): ... this.
21361         (TEST_FUNCTION): New macro.
21362         Include test-skeleton.c.
21363         * localedata/tst-langinfo.c (main): Converted to ...
21364         (do_test): ... this.
21365         (TEST_FUNCTION): New macro.
21366         Include test-skeleton.c.
21367         * math/test-fpucw.c (main): Converted to ...
21368         (do_test): ... this.
21369         (TEST_FUNCTION): New macro.
21370         Include test-skeleton.c.
21371         * math/test-tgmath.c (main): Converted to ...
21372         (do_test): ... this.
21373         (TEST_FUNCTION): New macro.
21374         Include test-skeleton.c.
21375         * math/test-tgmath2.c (main): Converted to ...
21376         (do_test): ... this.
21377         (TEST_FUNCTION): New macro.
21378         Include test-skeleton.c.
21379         * setjmp/tst-setjmp.c (main): Converted to ...
21380         (do_test): ... this.
21381         (TEST_FUNCTION): New macro.
21382         Include test-skeleton.c.
21383         * stdio-common/tst-sscanf.c (main): Converted to ...
21384         (do_test): ... this.
21385         (TEST_FUNCTION): New macro.
21386         Include test-skeleton.c.
21387         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
21388         (do_test): ... this.
21389         (TEST_FUNCTION): New macro.
21390         Include test-skeleton.c.
21391
21392         * elf/tst-audit9.c (main): Converted to ...
21393         (do_test): ... this.
21394         (TEST_FUNCTION): New macro.
21395         Include test-skeleton.c.
21396
21397 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
21398
21399         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
21400
21401 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21402
21403         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
21404         New variable.
21405
21406 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21407
21408         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21409
21410 2015-07-14  Roland McGrath  <roland@hack.frob.com>
21411
21412         * sysdeps/generic/dl-fileid.h: New file.
21413         * sysdeps/posix/dl-fileid.h: New file.
21414         * sysdeps/nacl/dl-fileid.h: New file.
21415         * include/link.h: Include <dl-fileid.h>.
21416         (struct link_map): Replace l_dev and l_ino with l_file_id.
21417         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
21418         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
21419         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
21420
21421 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21422
21423         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
21424
21425 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21426
21427         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
21428         Add iff $CXX is set.
21429         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
21430         Likewise.
21431         (tst-nodelete-zmodiff): Likewise.
21432         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
21433
21434 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21435
21436         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
21437
21438 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21439
21440         * sysdeps/aarch64/fpu/math_private.h
21441         (define math_opt_barrier): Add AArch64 version.
21442         (math_force_eval): Likewise.
21443
21444 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21445
21446         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
21447
21448 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
21449
21450         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
21451         %ld with %jd and cast to intmax_t.
21452         (do_test_length_zero): Likewise.
21453
21454 2015-07-10  Roland McGrath  <roland@hack.frob.com>
21455
21456         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
21457
21458 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
21459
21460         * sysdeps/tile/libm-test-ulps: Regenerated.
21461
21462         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
21463         Comment out the whole function, not just its body.
21464
21465 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21466
21467         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
21468         locks.
21469
21470         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
21471
21472 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21473
21474         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
21475         (sem_assume_only_signals_cause_futex_EINTR): Remove.
21476
21477 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21478
21479         * sysdeps/nptl/futex-internal.h: New file.
21480         * sysdeps/nacl/futex-internal.h: New file.
21481         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
21482         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
21483         error checking.
21484         (setxid_unmark_thread): Likewise.
21485         (__nptl_setxid): Likewise.
21486         (__wait_lookup_done): Likewise.
21487         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21488         * nptl/nptl-init.c (sighandler_setxid): Likewise.
21489         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
21490         * nptl/pthread_once.c (clear_once_control): Likewise.
21491         (__pthread_once_slow): Likewise.
21492         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
21493         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
21494         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
21495         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21496         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
21497         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
21498         Likewise.
21499         (__pthread_rwlock_rdlock): Likewise.
21500         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21501         Likewise.
21502         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21503         Likewise.
21504         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
21505         Likewise.
21506         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
21507         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
21508         Likewise.
21509         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
21510         __ASSUME_PRIVATE_FUTEX check.
21511         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
21512         Check that shared futexes are supported.
21513         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
21514         wrappers with error checking.
21515         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
21516         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
21517         * nptl/pthread_barrierattr_setpshared.c
21518         (pthread_barrierattr_setpshared): Check that shared futexes are
21519         supported.
21520         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
21521         Likewise.
21522         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
21523         Likewise.
21524         * nptl/sem_init.c (futex_private_if_supported): Remove.
21525         (__new_sem_init): Adapt and check that shared futexes are supported.
21526         * nptl/sem_open.c (sem_open): Likewise.
21527         * nptl/sem_post.c (futex_wake): Remove.
21528         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
21529         (do_futex_wait): Use futex wrappers with error checking.
21530         * nptl/sem_wait.c: Include lowlevellock.h.
21531         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
21532         Use futex_supports_pshared.
21533         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
21534         Use futex wrappers with error checking.
21535         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
21536         Likewise.
21537         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
21538         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
21539         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
21540         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
21541         (futex_wake): Likewise.
21542         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
21543         (do_futex_wait): Use futex wrappers with error checking.
21544         (__new_sem_wait_slow): Update EINTR handling.
21545         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
21546
21547 2015-07-09  Martin Sebor  <msebor@redhat.com>
21548
21549         [BZ #18435]
21550         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21551         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21552         * nptl/Makefile (test-xfail-tst-once5): Define.
21553
21554 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21555
21556         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21557         * elf/dl-minimal.c: For readability, reorder some definitions and
21558         introduce more page breaks.  Include <stdio.h>.
21559         (__libc_fatal): New function.
21560
21561         * include/unistd.h: Add rtld_hidden_proto for _exit.
21562         * posix/_exit.c: Add rtld_hidden_def.
21563         * sysdeps/mach/hurd/_exit.c: Likewise.
21564         * sysdeps/nacl/_exit.c: Likewise.
21565         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21566         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21567
21568 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21569
21570         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21571         bndmov encoding with zero displacement.
21572
21573 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21574             H.J. Lu  <hongjiu.lu@intel.com>
21575
21576         [BZ #18134]
21577         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21578         * sysdeps/i386/configure: Regenerated.
21579         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21580         (_dl_runtime_profile): Save and restore Intel MPX return bound
21581         registers when calling _dl_call_pltexit.  Add
21582         PRESERVE_BND_REGS_PREFIX before return.
21583         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21584         (LRV_BND1_OFFSET): Likewise.
21585         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21586         lrv_bnd1.
21587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21588         typo in bndmov encoding.
21589         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21590         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21591         branch instructions to preserve bounds.
21592
21593 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21594
21595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21596         [GLIBC_2.22]: Add fmemopen.
21597
21598 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21599
21600         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21601         returns an error, also try to use host port from __mach_host_self for
21602         the __vm_wire call.
21603         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21604
21605 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21606
21607         [BZ #18400]
21608         [BZ #18648]
21609         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21610         Fix pr_uid and pr_gid members.
21611         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21612         definition to elf_greg_t.
21613
21614 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21615
21616         [BZ #18383]
21617         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21618         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21619         * sysdeps/arm/configure: Regenerated.
21620         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21621         (test-xfail-tst-tlsalign-static): Variable removed.
21622
21623         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21624         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21625         rather than explicit 'ln -s'.
21626
21627         * resolv/rpc/netdb.h: New file.
21628         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21629
21630 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21631
21632         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21633         length buffers.
21634         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21635         test-skeleton.c.
21636
21637         [BZ #6544]
21638         [BZ #11216]
21639         [BZ #12836]
21640         [BZ #13151]
21641         [BZ #13152]
21642         [BZ #14292]
21643         * include/stdio.h (fmemopen): Remove hidden prototype.
21644         (__fmemopen): Add new hidden prototype.
21645         * libio/Makefile: Add oldfmemopen object.
21646         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21647         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21648         compliance.
21649         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21650         symbol compatibility.
21651         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21652         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21653         fmemopen.
21654         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21655         on append and read mode.
21656         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21657         fmemopen.
21658         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21659         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21660         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21661         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21662         Likewise.
21663         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21664         [GLIBC_2.22]: Likewise.
21665         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21666         Likewise.
21667         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21668         Likewise.
21669         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21670         [GLIBC_2.22]: Likewise.
21671         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21672         [GLIBC_2.22]: Likewise.
21673         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21674         [GLIBC_2.22]: Likewise.
21675         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21676         [GLIBC_2.22]: Likewise.
21677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21678         [GLIBC_2.22]: Likewise.
21679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21680         [GLIBC_2.22]: Likewise.
21681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21682         [GLIBC_2.22]: Likewise.
21683         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21684         Likewise.
21685         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21686         Likewise.
21687         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21688         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21689         [GLIBC_2.22]: Likewise.
21690         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21691         [GLIBC_2.22]: Likewise.
21692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21693         [GLIBC_2.22]: Likewise.
21694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21695         [GLIBC_2.22]: Likewise.
21696         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21697         Likewise.
21698         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21699         Likewise.
21700         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21701         Likewise.
21702         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21703         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21704
21705 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21706
21707         [BZ #18643]
21708         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21709         IPV6_PATHMTU, and IPV6_DONTFRAG.
21710
21711 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21712
21713         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21714         and _IO_UNBUFFERED.
21715         * libio/oldfileops.c: Likewise.
21716         * libio/wfileops.c: Likewise.
21717
21718 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21719
21720         * nscd/selinux.c: Delete selinux/flask.h include.
21721
21722 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21723
21724         [BZ #18641]
21725         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21726         (putpwent): Likewise.
21727         (getpwnam): Likewise.
21728         (getpwent_r): Likewise.
21729         (getpwuid_r): Likewise.
21730         (getpwnam_r): Likewise.
21731         (fgetpwent_r): Likewise.
21732
21733 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21734
21735         [BZ #18557]
21736         * inet/rcmd.c (__validuser2_sa): Check user first to
21737         short-circuit host check.
21738
21739 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21740             Mikhail Ilin  <m.ilin@samsung.com>
21741
21742         [BZ #17833]
21743         * elf/Makefile (tests): Add tst-nodelete.
21744         (modules-names): Add tst-nodelete-uniquemod.
21745         (tst-nodelete-uniquemod.so-no-z-defs): New.
21746         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21747         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21748         ($(objpfx)tst-nodelete): Likewise.
21749         ($(objpfx)tst-nodelete.out): Likewise.
21750         (LDFLAGS-tst-nodelete): Likewise.
21751         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21752         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21753         implement forced object deletion.
21754         (_dl_close): Pass false to _dl_close_worker.
21755         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21756         * elf/tst-nodelete.cc: New file.
21757         * elf/tst-nodeletelib.cc: Likewise.
21758         * elf/tst-znodeletelib.cc: Likewise.
21759         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21760
21761 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21762
21763         [BZ #18508]
21764         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21765         Depend on $(libdl).
21766         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21767         is not called infinitely times.
21768         (backtrace_helper): New function.
21769         (trace_arg): New struct.
21770         (st1): Enlarge stack size.
21771         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21772         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21773         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21774         Likewise.
21775
21776 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21777
21778         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21779
21780 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21781
21782         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21783         Include sys/types.h instead of bits/types.h.
21784         Remove inclusion of bits/wordsize.h.
21785
21786 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21787
21788         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21789         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21790         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21791         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21792         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21793         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21794
21795 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21796
21797         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21798         link-defines.sym.
21799         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21800         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21801         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21802         and LR_SIZE.
21803         * sysdeps/i386/link-defines.sym: New file.
21804
21805 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21806
21807         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21808         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21809         ($(objpfx)tst-audit3): New rule.
21810         ($(objpfx)tst-audit3.out): Likewise.
21811         * sysdeps/i386/tst-audit3.c: New file.
21812         * sysdeps/i386/tst-audit3.h: Likewise.
21813         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21814         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21815
21816 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21817
21818         [BZ #18633]
21819         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21820         pointer in C code.
21821         (__strcat_c): Likewise.
21822         (__strcat_g): Likewise.
21823
21824 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21825
21826         [BZ #18592]
21827         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21828
21829 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21830
21831         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21832         New function.  (__ieee754_sqrtf): New function.
21833         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21834         New function.
21835         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21836         New function.
21837
21838 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21839
21840         * sysdeps/ieee754/support.c: Remove unused file.
21841
21842 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21843
21844         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21845         registers instead of d ones so the layout is kernel abi compatible.
21846         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21847         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21848         Likewise.
21849
21850 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21851
21852         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21853
21854 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21855
21856         [BZ #18619]
21857         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21858         and return argument in case of subnormal argument.
21859
21860 2015-07-01  Martin Sebor  <msebor@redhat.com>
21861
21862         [BZ #18435]
21863         * nptl/Makefile: Add tst-once5.cc.
21864         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21865         Remove macro redefinitions.
21866         * nptl/tst-once5.cc: New test.
21867
21868 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21869
21870         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21871
21872         * sysdeps/arm/libm-test-ulps: Regenerated.
21873
21874         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21875         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21876
21877 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21878
21879         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21880         lll_lock_wait_private and lll_futex_wake probes.
21881
21882         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21883         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21884         Likewise.
21885         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21886         atomic_spin_nop.
21887         * sysdeps/x86_64/bits/atomic.h: Likewise.
21888         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21889         to atomic_spin_nop and move ...
21890         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21891         ... here and ...
21892         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21893         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21894         atomic_spin_nop instead of BUSY_WAIT_NOP.
21895         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21896         Likewise.
21897         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21898         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21899         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21900         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21901         instead of atomic_delay.
21902
21903 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21904
21905         [BZ #18613]
21906         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21907         X_ADJ not X when adjusting exponent.
21908         (__ieee754_gamma_r): Do intermediate computations in
21909         round-to-nearest then adjust overflowing and underflowing results
21910         as needed.
21911         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21912         of X_ADJ not X when adjusting exponent.
21913         (__ieee754_gammaf_r): Do intermediate computations in
21914         round-to-nearest then adjust overflowing and underflowing results
21915         as needed.
21916         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21917         log of X_ADJ not X when adjusting exponent.
21918         (__ieee754_gammal_r): Do intermediate computations in
21919         round-to-nearest then adjust overflowing and underflowing results
21920         as needed.  Use 1.0L not 1.0f as numerator of division.
21921         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21922         log of X_ADJ not X when adjusting exponent.
21923         (__ieee754_gammal_r): Do intermediate computations in
21924         round-to-nearest then adjust overflowing and underflowing results
21925         as needed.  Use 1.0L not 1.0f as numerator of division.
21926         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21927         of X_ADJ not X when adjusting exponent.
21928         (__ieee754_gammal_r): Do intermediate computations in
21929         round-to-nearest then adjust overflowing and underflowing results
21930         as needed.  Use 1.0L not 1.0f as numerator of division.
21931         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21932         to auto-libm-test-in.
21933         (tgamma_test): Use ALL_RM_TEST.
21934         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21935         tests of tgamma with spurious-overflow.
21936         * math/auto-libm-test-out: Regenerated.
21937         * math/gen-libm-have-vector-test.sh: Do not check for START.
21938         * sysdeps/i386/fpu/libm-test-ulps: Update.
21939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21940
21941         [BZ #18612]
21942         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21943         arguments, just return 0.5 times the argument, with underflow
21944         forced as needed.
21945         * math/auto-libm-test-in: Add more tests of j1.
21946         * math/auto-libm-test-out: Regenerated.
21947
21948         [BZ #16559]
21949         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21950         (__ieee754_j1): Force underflow exception for small results.
21951         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21952         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21953         (__ieee754_j1f): Force underflow exception for small results.
21954         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21955         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21956         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21957         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21958         (__ieee754_j1l): Force underflow exception for small results.
21959         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21960         * math/auto-libm-test-in: Add more tests of j1 and jn.
21961         * math/auto-libm-test-out: Regenerated.
21962
21963         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21964         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21965         (PF_MPLS): Likewise.
21966         (AF_IB): Likewise.
21967         (AF_MPLS): Likewise.
21968         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21969         value and macro.
21970         (MS_RMT_MASK): Include MS_LAZYTIME.
21971
21972 2015-06-26  Mel Gorman  <mgorman@suse.de>
21973
21974         [BZ #18502]
21975         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21976         already minimal.
21977
21978 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21979
21980         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21981         (DT_MIPS_NUM): Update.
21982         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21983         DT_MIPS_RLD_MAP_REL.
21984
21985 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21986
21987         [BZ #16559]
21988         [BZ #18602]
21989         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21990         round-to-nearest internally then recompute results that
21991         underflowed to zero in the original rounding mode.
21992         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21993         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21994         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21995         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21996         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21997         * sysdeps/i386/fpu/libm-test-ulps: Update.
21998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21999
22000 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
22001
22002         * NEWS: Fixed description of link with vector math library.
22003
22004 2015-06-25  Andreas Schwab  <schwab@suse.de>
22005
22006         [BZ #18549]
22007         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
22008         * libio/test-fmemopen.c (do_test): Add test for it.
22009
22010 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22011
22012         [BZ #17841]
22013         * Makeconfig (no-pie-ldflag): New.
22014         (+link): Set to $(+link-pie) if default to PIE.
22015         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
22016         * config.make.in (build-pie-default): New.
22017         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
22018         is default.  AC_SUBST.
22019         * configure: Regenerated.
22020         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
22021
22022 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22023
22024         * nptl/descr.h (struct pthread): Change type of field setxid_futex
22025         to 'unsigned int'.
22026
22027         * resolv/gai_misc.h (struct waitlist): Change type of field
22028         counterp to 'volatile unsigned int *'.
22029         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
22030         FUTEXADDR and OLDVAL.
22031         * resolv/getaddrinfo_a.c (getaddrinfo_a):
22032         Give local variable TOTAL type 'volatile unsigned int'.
22033         (struct async_waitlist): Change type of field counter to 'unsigned int'.
22034         * resolv/gai_suspend.c (gai_suspend):
22035         Give local variable CNTR type 'unsigned int'.
22036
22037         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
22038         counterp to 'volatile unsigned int *'.
22039         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
22040         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
22041         (aio_suspend): Give local variable CNTR type 'unsigned int'.
22042         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
22043         Give local variable TOTAL type 'volatile unsigned int'.
22044         (struct async_waitlist): Change type of field counter to 'unsigned int'.
22045
22046 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22047
22048         [BZ #18383]
22049         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
22050         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
22051         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
22052         comment for i386/x86-64.
22053         (test-xfail-tst-tlsalign-extern-static): Removed.
22054
22055 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22056
22057         * math/test-double.h: New file.
22058         * math/test-float.h: Likewise.
22059         * math/test-ldouble.h: Likewise.
22060         * math/test-math-inline.h: Likewise.
22061         * math/test-math-no-inline.h: Likewise.
22062         * math/test-math-scalar.h: Likewise.
22063         * math/test-math-vector.h: Likewise.
22064         * math/test-vec-loop.h: Remove file.  Contents moved into
22065         test-math-vector.h.
22066         * math/libm-test.inc (MATHCONST): Do not document macro.
22067         * math/test-double.c: Include test-double.h, test-math-no-inline.h
22068         and test-math-scalar.h.
22069         (FUNC): Remove macro.
22070         (FUNC_TEST): Likewise.
22071         (FLOAT): Likewise.
22072         (MATHCONST): Likewise.
22073         (PRINTF_EXPR): Likewise.
22074         (PRINTF_XEXPR): Likewise.
22075         (PRINTF_NEXPR): Likewise.
22076         (TEST_DOUBLE): Likewise.
22077         (TEST_MATHVEC): Likewise.
22078         (__NO_MATH_INLINES): Likewise.
22079         * math/test-float.c: Include test-float.h, test-math-no-inline.h
22080         and test-math-scalar.h.
22081         (FUNC): Remove macro.
22082         (FUNC_TEST): Likewise.
22083         (FLOAT): Likewise.
22084         (MATHCONST): Likewise.
22085         (PRINTF_EXPR): Likewise.
22086         (PRINTF_XEXPR): Likewise.
22087         (PRINTF_NEXPR): Likewise.
22088         (TEST_FLOAT): Likewise.
22089         (TEST_MATHVEC): Likewise.
22090         (__NO_MATH_INLINES): Likewise.
22091         * math/test-idouble.c: Include test-double.h, test-math-inline.h
22092         and test-math-scalar.h.
22093         (FUNC): Remove macro.
22094         (FUNC_TEST): Likewise.
22095         (FLOAT): Likewise.
22096         (MATHCONST): Likewise.
22097         (PRINTF_EXPR): Likewise.
22098         (PRINTF_XEXPR): Likewise.
22099         (PRINTF_NEXPR): Likewise.
22100         (TEST_DOUBLE): Likewise.
22101         (TEST_MATHVEC): Likewise.
22102         (TEST_INLINE): Likewise.
22103         (__NO_MATH_INLINES): Likewise.
22104         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
22105         test-math-scalar.h.
22106         (FUNC): Remove macro.
22107         (FUNC_TEST): Likewise.
22108         (FLOAT): Likewise.
22109         (MATHCONST): Likewise.
22110         (PRINTF_EXPR): Likewise.
22111         (PRINTF_XEXPR): Likewise.
22112         (PRINTF_NEXPR): Likewise.
22113         (TEST_FLOAT): Likewise.
22114         (TEST_MATHVEC): Likewise.
22115         (TEST_INLINE): Likewise.
22116         (__NO_MATH_INLINES): Likewise.
22117         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
22118         and test-math-scalar.h.
22119         (FUNC): Remove macro.
22120         (FUNC_TEST): Likewise.
22121         (FLOAT): Likewise.
22122         (MATHCONST): Likewise.
22123         (PRINTF_EXPR): Likewise.
22124         (PRINTF_XEXPR): Likewise.
22125         (PRINTF_NEXPR): Likewise.
22126         (TEST_LDOUBLE): Likewise.
22127         (TEST_MATHVEC): Likewise.
22128         (TEST_INLINE): Likewise.
22129         (__NO_MATH_INLINES): Likewise.
22130         * math/test-ldouble.c: Include test-ldouble.h,
22131         test-math-no-inline.h and test-math-scalar.h.
22132         (FUNC): Remove macro.
22133         (FUNC_TEST): Likewise.
22134         (FLOAT): Likewise.
22135         (MATHCONST): Likewise.
22136         (PRINTF_EXPR): Likewise.
22137         (PRINTF_XEXPR): Likewise.
22138         (PRINTF_NEXPR): Likewise.
22139         (TEST_LDOUBLE): Likewise.
22140         (TEST_MATHVEC): Likewise.
22141         (__NO_MATH_INLINES): Likewise.
22142         * math/test-double-vlen2.h: Include test-double.h,
22143         test-math-no-inline.h and test-math-vector.h.
22144         (FLOAT): Remove macro.
22145         (FUNC): Likewise.
22146         (MATHCONST): Likewise.
22147         (PRINTF_EXPR): Likewise.
22148         (PRINTF_XEXPR): Likewise.
22149         (PRINTF_NEXPR): Likewise.
22150         (TEST_DOUBLE): Likewise.
22151         (TEST_MATHVEC): Likewise.
22152         (__NO_MATH_INLINES): Likewise.
22153         (CNCT): Likewise.
22154         (CONCAT): Likewise.
22155         (WRAPPER_NAME): Likewise.
22156         (WRAPPER_DECL): Likewise.
22157         (WRAPPER_DECL_ff): Likewise.
22158         (WRAPPER_DECL_fFF): Likewise.
22159         (VECTOR_WRAPPER): Likewise.
22160         (VECTOR_WRAPPER_ff): Likewise.
22161         (VECTOR_WRAPPER_fFF): Likewise.
22162         (VEC_LEN): New macro.
22163         * math/test-double-vlen4.h: Include test-double.h,
22164         test-math-no-inline.h and test-math-vector.h.
22165         (FLOAT): Remove macro.
22166         (FUNC): Likewise.
22167         (MATHCONST): Likewise.
22168         (PRINTF_EXPR): Likewise.
22169         (PRINTF_XEXPR): Likewise.
22170         (PRINTF_NEXPR): Likewise.
22171         (TEST_DOUBLE): Likewise.
22172         (TEST_MATHVEC): Likewise.
22173         (__NO_MATH_INLINES): Likewise.
22174         (CNCT): Likewise.
22175         (CONCAT): Likewise.
22176         (WRAPPER_NAME): Likewise.
22177         (WRAPPER_DECL): Likewise.
22178         (WRAPPER_DECL_ff): Likewise.
22179         (WRAPPER_DECL_fFF): Likewise.
22180         (VECTOR_WRAPPER): Likewise.
22181         (VECTOR_WRAPPER_ff): Likewise.
22182         (VECTOR_WRAPPER_fFF): Likewise.
22183         (VEC_LEN): New macro.
22184         * math/test-double-vlen8.h: Include test-double.h,
22185         test-math-no-inline.h and test-math-vector.h.
22186         (FLOAT): Remove macro.
22187         (FUNC): Likewise.
22188         (MATHCONST): Likewise.
22189         (PRINTF_EXPR): Likewise.
22190         (PRINTF_XEXPR): Likewise.
22191         (PRINTF_NEXPR): Likewise.
22192         (TEST_DOUBLE): Likewise.
22193         (TEST_MATHVEC): Likewise.
22194         (__NO_MATH_INLINES): Likewise.
22195         (CNCT): Likewise.
22196         (CONCAT): Likewise.
22197         (WRAPPER_NAME): Likewise.
22198         (WRAPPER_DECL): Likewise.
22199         (WRAPPER_DECL_ff): Likewise.
22200         (WRAPPER_DECL_fFF): Likewise.
22201         (VECTOR_WRAPPER): Likewise.
22202         (VECTOR_WRAPPER_ff): Likewise.
22203         (VECTOR_WRAPPER_fFF): Likewise.
22204         (VEC_LEN): New macro.
22205         * math/test-float-vlen4.h: Include test-float.h,
22206         test-math-no-inline.h and test-math-vector.h.
22207         (FLOAT): Remove macro.
22208         (FUNC): Likewise.
22209         (MATHCONST): Likewise.
22210         (PRINTF_EXPR): Likewise.
22211         (PRINTF_XEXPR): Likewise.
22212         (PRINTF_NEXPR): Likewise.
22213         (TEST_FLOAT): Likewise.
22214         (TEST_MATHVEC): Likewise.
22215         (__NO_MATH_INLINES): Likewise.
22216         (CNCT): Likewise.
22217         (CONCAT): Likewise.
22218         (WRAPPER_NAME): Likewise.
22219         (WRAPPER_DECL): Likewise.
22220         (WRAPPER_DECL_ff): Likewise.
22221         (WRAPPER_DECL_fFF): Likewise.
22222         (VECTOR_WRAPPER): Likewise.
22223         (VECTOR_WRAPPER_ff): Likewise.
22224         (VECTOR_WRAPPER_fFF): Likewise.
22225         (VEC_LEN): New macro.
22226         * math/test-float-vlen8.h: Include test-float.h,
22227         test-math-no-inline.h and test-math-vector.h.
22228         (FLOAT): Remove macro.
22229         (FUNC): Likewise.
22230         (MATHCONST): Likewise.
22231         (PRINTF_EXPR): Likewise.
22232         (PRINTF_XEXPR): Likewise.
22233         (PRINTF_NEXPR): Likewise.
22234         (TEST_FLOAT): Likewise.
22235         (TEST_MATHVEC): Likewise.
22236         (__NO_MATH_INLINES): Likewise.
22237         (CNCT): Likewise.
22238         (CONCAT): Likewise.
22239         (WRAPPER_NAME): Likewise.
22240         (WRAPPER_DECL): Likewise.
22241         (WRAPPER_DECL_ff): Likewise.
22242         (WRAPPER_DECL_fFF): Likewise.
22243         (VECTOR_WRAPPER): Likewise.
22244         (VECTOR_WRAPPER_ff): Likewise.
22245         (VECTOR_WRAPPER_fFF): Likewise.
22246         (VEC_LEN): New macro.
22247         * math/test-float-vlen16.h: Include test-float.h,
22248         test-math-no-inline.h and test-math-vector.h.
22249         (FLOAT): Remove macro.
22250         (FUNC): Likewise.
22251         (MATHCONST): Likewise.
22252         (PRINTF_EXPR): Likewise.
22253         (PRINTF_XEXPR): Likewise.
22254         (PRINTF_NEXPR): Likewise.
22255         (TEST_FLOAT): Likewise.
22256         (TEST_MATHVEC): Likewise.
22257         (__NO_MATH_INLINES): Likewise.
22258         (CNCT): Likewise.
22259         (CONCAT): Likewise.
22260         (WRAPPER_NAME): Likewise.
22261         (WRAPPER_DECL): Likewise.
22262         (WRAPPER_DECL_ff): Likewise.
22263         (WRAPPER_DECL_fFF): Likewise.
22264         (VECTOR_WRAPPER): Likewise.
22265         (VECTOR_WRAPPER_ff): Likewise.
22266         (VECTOR_WRAPPER_fFF): Likewise.
22267         (VEC_LEN): New macro.
22268         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
22269         test-vec-loop.h.
22270         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22271         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22272         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22273         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22274         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22275         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22276         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22277
22278 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22279
22280         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
22281         (__getlogin_r): ... this.
22282
22283 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22284
22285         [BZ #18594]
22286         * math/s_ccosh.c (__ccosh): Compare with least normal value
22287         instead of comparing class with FP_SUBNORMAL.
22288         * math/s_ccoshf.c (__ccoshf): Likewise.
22289         * math/s_ccoshl.c (__ccoshl): Likewise.
22290         * math/s_cexp.c (__cexp): Likewise.
22291         * math/s_cexpf.c (__cexpf): Likewise.
22292         * math/s_cexpl.c (__cexpl): Likewise.
22293         * math/s_csin.c (__csin): Likewise.
22294         * math/s_csinf.c (__csinf): Likewise.
22295         * math/s_csinh.c (__csinh): Likewise.
22296         * math/s_csinhf.c (__csinhf): Likewise.
22297         * math/s_csinhl.c (__csinhl): Likewise.
22298         * math/s_csinl.c (__csinl): Likewise.
22299         * math/s_ctan.c (__ctan): Likewise.
22300         * math/s_ctanf.c (__ctanf): Likewise.
22301         * math/s_ctanh.c (__ctanh): Likewise.
22302         * math/s_ctanhf.c (__ctanhf): Likewise.
22303         * math/s_ctanhl.c (__ctanhl): Likewise.
22304         * math/s_ctanl.c (__ctanl): Likewise.
22305         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
22306         csin, csinh, ctan and ctanh.
22307         * math/auto-libm-test-out: Regenerated.
22308         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
22309         * sysdeps/i386/fpu/libm-test-ulps: Update.
22310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22311
22312 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22313
22314         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
22315         return value is wrong, print the expected value too.
22316
22317 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22318
22319         [BZ #18585]
22320         * elf/readlib.c (is_gdb_python_file): New.
22321         (process_file): Don't issue errors on filenames with -gdb.py
22322         suffix.
22323
22324 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22325
22326         * math/auto-libm-test-in: Add more tests of csin and csinh.
22327         * math/auto-libm-test-out: Regenerated.
22328         * math/libm-test.inc (csin_test_data): Remove tests moved to
22329         auto-libm-test-in.
22330         (csinh_test_data): Likewise.
22331
22332         [BZ #18593]
22333         * math/s_csin.c (__csin): Negate before rather than after possibly
22334         overflowing multiplication.
22335         * math/s_csinf.c (__csinf): Likewise.
22336         * math/s_csinh.c (__csinh): Likewise.
22337         * math/s_csinhf.c (__csinhf): Likewise.
22338         * math/s_csinhl.c (__csinhl): Likewise.
22339         * math/s_csinl.c (__csinl): Likewise.
22340         * math/auto-libm-test-in: Add some tests of csin and csinh.
22341         * math/auto-libm-test-out: Regenerated.
22342         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
22343         (csinh_test_data): Likewise.
22344         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22345
22346         [BZ #18586]
22347         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
22348         underflow exception for small results.
22349
22350 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
22351
22352         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22353         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
22354         variable and included header.
22355         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
22356         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
22357         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
22358         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
22359         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
22360         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
22361         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
22362         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
22363         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
22364         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
22365         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
22366         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
22367         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
22368         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
22369         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
22370         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
22371
22372 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22373
22374         [BZ #16526]
22375         [BZ #16538]
22376         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
22377         (__sin): Force underflow exception for arguments with small
22378         absolute value.
22379         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
22380         (__kernel_sinf): Force underflow exception for arguments with
22381         small absolute value.
22382         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
22383         (__kernel_sincosl): Force underflow exception for arguments with
22384         small absolute value.
22385         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
22386         (__kernel_sinl): Force underflow exception for arguments with
22387         small absolute value.
22388         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
22389         (__kernel_sincosl): Force underflow exception for arguments with
22390         small absolute value.
22391         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
22392         (__kernel_sinl): Force underflow exception for arguments with
22393         small absolute value.
22394         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
22395         (__kernel_sinl): Force underflow exception for arguments with
22396         small absolute value.
22397         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
22398         (__kernel_sinf): Force underflow exception for arguments with
22399         small absolute value.
22400         * math/auto-libm-test-in: Add more tests of sin and sincos.
22401         * math/auto-libm-test-out: Regenerated.
22402
22403         [BZ #18245]
22404         [BZ #18583]
22405         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
22406         (__kernel_standard_l): Use feholdexcept and fesetenv around
22407         conversion to double instead of special-casing overflow and
22408         underflow.
22409         * math/libm-test.inc (fmod_test_data): Add more tests.
22410         (remainder_test_data): Likewise.
22411         (sqrt_test_data): Likewise.
22412
22413 2015-06-23  Torvald Riegel  <triegel@redhat.com>
22414
22415         [BZ #17403]
22416         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
22417         atomic_read_barrier, atomic_write_barrier): Define.
22418         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
22419         atomic_read_barrier, atomic_write_barrier): Define.
22420
22421 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22422
22423         * math/Makefile [$(PERL) != no]
22424         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
22425         dependency on libm-test.stmp below the inclusion of Rules.
22426
22427 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
22428
22429         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22430         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
22431         and included header.
22432         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
22433         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
22434         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
22435         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
22436         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
22437         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
22438         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
22439         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
22440         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
22441         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
22442         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
22443         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
22444         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
22445         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
22446         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
22447         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
22448         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
22449         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
22450         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
22451
22452 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22453
22454         [BZ #18371]
22455         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
22456         intermediate but not final result might underflow.
22457         * math/s_csqrtf.c (__csqrtf): Likewise.
22458         * math/s_csqrtl.c (__csqrtl): Likewise.
22459         * math/auto-libm-test-in: Add more tests of csqrt.
22460         * math/auto-libm-test-out: Regenerated.
22461         * sysdeps/i386/fpu/libm-test-ulps: Update.
22462
22463         [BZ #18219]
22464         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
22465         threshold on absolute value of exponent for which scaling is used.
22466         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
22467         * math/auto-libm-test-in: Add more tests of exp2.
22468         * math/auto-libm-test-out: Regenerated.
22469
22470 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
22471
22472         [BZ #17977]
22473         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
22474         when initializing interface list, based on the bug analysis
22475         and the patch proposed by Eric Newton.
22476         * resolv/tst-res_hconf_reorder.c: New test.
22477         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
22478         tst-res_hconf_reorder.
22479         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
22480         and $(shared-thread-library).
22481         (tst-res_hconf_reorder-ENV): New variable.
22482
22483         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
22484         in comment.
22485
22486 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
22487
22488         [BZ #16353]
22489         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
22490         (__expm1): Force underflow exception for arguments with small
22491         absolute value.
22492         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
22493         (__expm1f): Force underflow exception for arguments with small
22494         absolute value.
22495         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
22496         (__expm1): Force underflow exception for arguments with small
22497         absolute value.
22498         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
22499         (__expm1f): Force underflow exception for arguments with small
22500         absolute value.
22501         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22502         Check for small arguments before calling __expm1.
22503         * math/auto-libm-test-in: Do not mark underflow exceptions as
22504         possibly missing for bug 16353.
22505         * math/auto-libm-test-out: Regenerated.
22506
22507 2015-06-22  Andreas Schwab  <schwab@suse.de>
22508
22509         [BZ #18513]
22510         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
22511         PTR queries.
22512
22513 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
22514
22515         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
22516
22517         * string/strcoll_l.c: Remove unused struct element idxnow.
22518
22519 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
22520
22521         [BZ #18569]
22522         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
22523         underflow and return argument in case of subnormal argument.
22524         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
22525         Likewise.
22526         * math/auto-libm-test-in: Add more tests of expm1.
22527         * math/auto-libm-test-out: Regenerated.
22528
22529         [BZ #16361]
22530         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22531         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22532         tiny results.
22533         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22534         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22535         tiny results.
22536         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
22537         mark underflow exceptions as possibly missing for bug 16361.
22538         * math/auto-libm-test-out: Regenerated.
22539
22540 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
22541
22542         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
22543         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
22544         Remove variable.
22545         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
22546         (test-xfail-XOPEN2K8/utmpx.h/conform).
22547
22548         * conform/conformtest.pl ($xerrors): New variable.
22549         (note_error): New function.
22550         (compiletest): New argument $xfail.  Use not_error.
22551         (runtest): Likewise.
22552         (top level): Handle xfail- lines.  Update calls to compiletest and
22553         runtest.  Handle xfail- and optional- in headers listed with
22554         allow-header.
22555         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22556         (O_EXEC): Likewise.
22557         (O_SEARCH): Likewise.
22558         * conform/data/stropts.h-data (ioctl): Likewise.
22559         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22560         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22561         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22562         (msghdr.msg_controllen): Likewise.
22563         (cmsghdr.cmsg_len): Likewise.
22564         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22565         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22566         variable.
22567         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22568         (test-xfail-XPG4/stropts.h/conform): Likewise.
22569         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22570         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22571         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22572         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22573         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22574         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22575         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22576         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22577         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22578         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22579         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22580         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22581         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22582         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22583         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22584         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22585         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22586         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22587         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22588
22589 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22590
22591         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22592         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22593         definitions for proper unfolding of __MATHDECL_VEC.
22594
22595 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22596
22597         * benchtests/bench-strcoll.c:
22598         Include string.h.
22599         (main): Remove unused variable res.
22600
22601 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22602
22603         * timezone/Makefile (%/UTC %/Universal):
22604         Generate test-result files for UTC and Universal.
22605
22606 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22607
22608         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22609
22610 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22611
22612         [BZ #16350]
22613         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22614         for arguments with small absolute value.
22615         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22616         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22617         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22618         (__asinh): Force underflow exception for arguments with small
22619         absolute value.
22620         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22621         (__asinhf): Force underflow exception for arguments with small
22622         absolute value.
22623         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22624         (__asinhl): Force underflow exception for arguments with small
22625         absolute value.
22626         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22627         (__asinhl): Force underflow exception for arguments with small
22628         absolute value.
22629         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22630         (__asinhl): Force underflow exception for arguments with small
22631         absolute value.
22632         * math/auto-libm-test-in: Do not mark underflow exceptions as
22633         possibly missing for bug 16350.
22634         * math/auto-libm-test-out: Regenerated.
22635
22636         * include/bits/ipc.h: Remove file.
22637         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22638         variable.
22639         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22640         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22641         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22642         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22643         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22644         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22645         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22646         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22647         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22648
22649         * math/auto-libm-test-in: Remove spurious underflow allowance for
22650         tests of cexp.
22651         * math/auto-libm-test-out: Regenerated.
22652
22653         [BZ #18558]
22654         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22655         unconditional definition.
22656         (MCAST_BLOCK_SOURCE): Likewise.
22657         (MCAST_UNBLOCK_SOURCE): Likewise.
22658         (MCAST_LEAVE_GROUP): Likewise.
22659         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22660         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22661         (MCAST_MSFILTER): Likewise.
22662         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22663         Remove variable.
22664         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22665         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22666         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22667         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22668         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22669
22670 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22671
22672         * NEWS: Mention addition of x86_64 vector sincosf.
22673         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22674         * math/test-float-vlen4.h: Likewise.
22675         * math/test-float-vlen8.h: Likewise.
22676         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22677         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22678         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22679         * sysdeps/x86_64/fpu/Versions: New versions added.
22680         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22681         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22682         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22683         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22684         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22685         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22686         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22687         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22688         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22689         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22690         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22691         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22692         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22693         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22694         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22695         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22696         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22697         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22698         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22699         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22700         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22701         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22702         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22703         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22704
22705         * NEWS: Mention addition of x86_64 vector sincos.
22706         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22707         * math/math.h (__MATHDECL_VEC): New macro.
22708         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22709         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22710         declaration under condition.
22711         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22712         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22713         TEST_VEC_LOOP change.
22714         * math/test-double-vlen4.h: Likewise.
22715         * math/test-double-vlen8.h: Likewise.
22716         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22717         * math/test-float-vlen4.h: Likewise.
22718         * math/test-float-vlen8.h: Likewise.
22719         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22720         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22721         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22722         * sysdeps/x86_64/fpu/Versions: New versions added.
22723         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22724         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22725         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22726         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22727         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22728         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22729         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22730         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22731         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22732         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22733         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22734         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22735         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22736         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22737         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22738         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22739         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22740         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22741         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22742         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22743         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22744         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22745         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22746         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22747
22748         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22749         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22750         redirections for powf.
22751         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22752         * sysdeps/x86_64/fpu/Versions: New versions added.
22753         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22754         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22755         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22756         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22757         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22758         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22759         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22760         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22761         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22762         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22763         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22764         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22765         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22766         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22767         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22768         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22769         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22770         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22771         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22772         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22773         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22774         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22775         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22776         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22777         * math/test-float-vlen16.h: Fixed 2 argument macro.
22778         * math/test-float-vlen4.h: Likewise.
22779         * math/test-float-vlen8.h: Likewise.
22780         * NEWS: Mention addition of x86_64 vector powf.
22781
22782 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22783
22784         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22785         and redefine.
22786         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22787         and redefine.
22788         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22789         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22790         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22791
22792         [BZ #18553]
22793         * resource/getpriority.c (getpriority): Rename to __getpriority
22794         and define as weak alias of __getpriority.
22795         * resource/setpriority.c (setpriority): Rename to __setpriority
22796         and define as weak alias of __setpriority.
22797         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22798         __getpriority and define as weak alias of __getpriority.
22799         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22800         __setpriority and define as weak alias of __setpriority.
22801         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22802         strong name.
22803         (setpriority): Use __setpriority as strong name.
22804         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22805         __getpriority and define as weak alias of __getpriority.
22806         * include/sys/resource.h (__getpriority): Declare.  Use
22807         libc_hidden_proto.
22808         (__setpriority): Likewise.
22809         (getpriority): Don't use libc_hidden_proto.
22810         (setpriority): Likewise.
22811         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22812         getpriority.  Call __setpriority instead of setpriority.
22813         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22814         Remove variable.
22815
22816         [BZ #18547]
22817         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22818         as weak alias of __getttynam.  Use prototype function definition.
22819         Call __setttyent, __getttyent and __endttyent instead of
22820         setttyent, getttyent and endttyent.
22821         (getttyent): Rename to __getttyent and define as weak alias of
22822         __getttyent.  Call __setttyent instead of setttyent.  Call
22823         __fgets_unlocked instead of fgets_unlocked.
22824         (setttyent): Rename to __setttyent and define as weak alias of
22825         __setttyent.
22826         (endttyent): Rename to __endttyent and define as weak alias of
22827         __endttyent.
22828         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22829         (__setttyent): Likewise.
22830         (__endttyent): Likewise.
22831         (getttyent): Don't use libc_hidden_proto.
22832         (setttyent): Likewise.
22833         (endttyent): Likewise.
22834         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22835         __endttyent instead of setttyent, getttyent and endttyent.
22836         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22837         Remove variable.
22838
22839         [BZ #18546]
22840         * socket/recv.c (__recv): Use libc_hidden_def.
22841         * socket/socket.c (__socket): Likewise.
22842         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22843         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22844         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22845         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22846         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22847         libc_hidden_def.
22848         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22849         libc_hidden_weak.
22850         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22851         Use libc_hidden_proto.
22852         (__recv): Likewise.
22853         * socket/Versions (libc): Export __recv and __socket at version
22854         GLIBC_PRIVATE.
22855         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22856         instead of recv.
22857         (init_mq_netlink): Call __socket instead of socket.
22858         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22859         Remove variable.
22860
22861         [BZ #18545]
22862         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22863         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22864         hidden_weak.
22865         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22866         define as alias of __mq_timedsend.  Use hidden_weak.
22867         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22868         __mq_timedsend as strong name.
22869         (mq_timedreceive): Use __mq_timedreceive as strong name.
22870         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22871         (__mq_timedreceive): Likewise.
22872         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22873         __mq_timedreceive instead of mq_timedreceive.
22874         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22875         instead of mq_timedsend.
22876         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22877         Remove variable.
22878
22879         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22880         hidden_def and hidden_weak instead of libc_hidden_def and
22881         libc_hidden_weak.
22882         (top level): Refer to hidden_def in comment.
22883         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22884         macro.  Use it instead of libc_hidden_def.
22885         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22886         specify __GI_* name explicitly.
22887         (mq_timedreceive): Likewise.
22888         (mq_setattr): Likewise.
22889
22890         [BZ #18544]
22891         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22892         __pthread_barrier_init and define as weak alias of
22893         __pthread_barrier_init.
22894         * sysdeps/sparc/nptl/pthread_barrier_init.c
22895         (pthread_barrier_init): Likewise.
22896         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22897         __pthread_barrier_wait and define as weak alias of
22898         __pthread_barrier_wait.
22899         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22900         (pthread_barrier_wait): Likewise.
22901         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22902         (pthread_barrier_wait): Likewise.
22903         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22904         (pthread_barrier_wait): Likewise.
22905         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22906         (pthread_barrier_wait): Likewise.
22907         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22908         __pthread_barrier_wait at version GLIBC_PRIVATE.
22909         * include/pthread.h (__pthread_barrier_init): Declare.
22910         (__pthread_barrier_wait): Likewise.
22911         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22912         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22913         (helper_thread): Likewise.
22914         (init_mq_netlink): Call __pthread_barrier_init instead of
22915         pthread_barrier_init.
22916
22917         [BZ #18542]
22918         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22919         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22920         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22921         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22922         vswscanf.
22923         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22924         Remove variable.
22925
22926         [BZ #18540]
22927         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22928         strong alias of _IO_fflush.  Use libc_hidden_def.
22929         * libio/iofflush_u.c (fflush_unlocked): Rename to
22930         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22931         Use libc_hidden_weak.
22932         * include/stdio.h (__fflush_unlocked): Declare.  Use
22933         libc_hidden_proto.
22934         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22935         fflush_unlocked.
22936         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22937         Remove variable.
22938
22939         [BZ #18539]
22940         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22941         define as weak alias of __addseverity.
22942         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22943         Remove variable.
22944         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22945         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22946         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22947
22948         [BZ #18536]
22949         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22950         (__tfind): Likewise.
22951         (__tdelete): Likewise.
22952         (__twalk): Likewise.
22953         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22954         __twalk to GLIBC_PRIVATE.
22955         * include/search.h (__tsearch): Use libc_hidden_proto.
22956         (__tfind): Likewise.
22957         (__tdelete): Likewise.
22958         (__twalk): Likewise.
22959         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22960         Call __tdelete instead of tdelete.
22961         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22962         tfind.  Call __tsearch instead of tsearch.
22963         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22964         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22965         Remove variable.
22966         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22967
22968         [BZ #18534]
22969         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22970         (dprintf): Define as a weak alias of __dprintf, not a strong
22971         alias.
22972         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22973         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22974         dprintf.
22975         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22976         Remove variable.
22977         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22978         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22979
22980         [BZ #18533]
22981         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22982         not a strong alias.
22983         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22984         Remove variable.
22985
22986         [BZ #18532]
22987         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22988         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22989         (in6addr_loopback): Rename to __in6addr_loopback and define as
22990         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22991         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22992         libc_hidden_proto.
22993         (__in6addr_any): Likewise.
22994         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22995         in6addr_any.
22996         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22997         variable.
22998         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22999
23000 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
23001
23002         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
23003         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
23004         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23005         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23006         redirections for pow.
23007         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23008         * sysdeps/x86_64/fpu/Versions: New versions added.
23009         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23010         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23011         build of SSE, AVX2 and AVX512 IFUNC versions.
23012         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
23013         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
23014         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
23015         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
23016         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
23017         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
23018         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
23019         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
23020         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
23021         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
23022         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
23023         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
23024         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
23025         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
23026         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23027         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23028         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23029         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23030         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23031         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23032         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23033         * NEWS: Mention addition of x86_64 vector pow.
23034
23035         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23036         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23037         redirections for expf.
23038         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23039         * sysdeps/x86_64/fpu/Versions: New versions added.
23040         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23041         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23042         build of SSE, AVX2 and AVX512 IFUNC versions.
23043         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
23044         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
23045         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
23046         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
23047         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
23048         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
23049         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
23050         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
23051         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
23052         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
23053         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
23054         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
23055         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
23056         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23057         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23058         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23059         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23060         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23061         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23062         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23063         * NEWS: Mention addition of x86_64 vector expf.
23064
23065         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
23066         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
23067         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23068         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23069         redirections for exp.
23070         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23071         * sysdeps/x86_64/fpu/Versions: New versions added.
23072         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23073         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23074         build of SSE, AVX2 and AVX512 IFUNC versions.
23075         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
23076         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
23077         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
23078         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
23079         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
23080         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
23081         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
23082         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
23083         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
23084         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
23085         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
23086         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
23087         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
23088         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23089         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23090         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23091         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23092         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23093         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23094         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23095         * NEWS: Mention addition of x86_64 vector exp.
23096
23097         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23098         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23099         redirections for logf.
23100         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23101         * sysdeps/x86_64/fpu/Versions: New versions added.
23102         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23103         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23104         build of SSE, AVX2 and AVX512 IFUNC versions.
23105         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
23106         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
23107         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
23108         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
23109         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
23110         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
23111         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
23112         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
23113         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
23114         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
23115         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
23116         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
23117         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
23118         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23119         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23120         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23121         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23122         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23123         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23124         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23125         * NEWS: Mention addition of x86_64 vector logf.
23126
23127         * bits/libm-simd-decl-stubs.h: Added stubs for log.
23128         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
23129         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23130         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23131         redirections for log.
23132         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23133         * sysdeps/x86_64/fpu/Versions: New versions added.
23134         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23135         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23136         build of SSE, AVX2 and AVX512 IFUNC versions.
23137         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
23138         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
23139         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
23140         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
23141         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
23142         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
23143         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
23144         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
23145         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
23146         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
23147         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
23148         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
23149         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
23150         test.
23151         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23152         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23153         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23154         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23155         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23156         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23157         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23158         * NEWS: Mention addition of x86_64 vector log.
23159
23160 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23161
23162         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
23163         cfi_adjust_cfa_offset argument.
23164         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
23165         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
23166
23167         [BZ #18034]
23168         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
23169         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
23170         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
23171         ordering using ldar.
23172         (_dl_tlsdesc_dynamic): Likewise.
23173         (_dl_tlsdesc_return_lazy): Likewise.
23174         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
23175         relaxed atomics instead of volatile and synchronize with release store.
23176         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
23177         volatile.
23178         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
23179
23180 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
23181
23182         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23183         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
23184         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23185         * sysdeps/x86_64/fpu/Versions: New versions added.
23186         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23187         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23188         build of SSE, AVX2 and AVX512 IFUNC versions.
23189         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
23190         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
23191         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
23192         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
23193         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
23194         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
23195         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
23196         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
23197         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
23198         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
23199         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
23200         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
23201         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
23202         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23203         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23204         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23205         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23206         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23207         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23208         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23209         * NEWS: Mention addition of x86_64 vector sinf.
23210
23211 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
23212
23213         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
23214         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
23215         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
23216         Remove variable.
23217         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
23218         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
23219
23220 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23221
23222         [BZ #18530]
23223         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
23224         strong alias of _IO_fputs.  Use libc_hidden_def.
23225         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
23226         and define as weak alias of __fputs_unlocked.  Use
23227         libc_hidden_weak.
23228         * include/stdio.h (__fputs_unlocked): Declare.  Use
23229         libc_hidden_proto.
23230         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
23231         fputs_unlocked.
23232
23233         [BZ #18529]
23234         * resolv/netdb.h [__USE_POSIX]: Change condition to
23235         [__USE_XOPEN2K].
23236         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
23237         not expect.
23238         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
23239         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
23240         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
23241         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
23242         [XPG4 || UNIX98] (AI_ALL): Likewise.
23243         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
23244         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
23245         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
23246         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
23247         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
23248         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
23249         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
23250         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
23251         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
23252         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
23253         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
23254         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
23255         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
23256         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
23257         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
23258         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23259         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23260         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
23261         [XPG4 || UNIX98] (gai_strerror): Likewise.
23262         [XPG4 || UNIX98] (getaddrinfo): Likewise.
23263         [XPG4 || UNIX98] (getnameinfo): Likewise.
23264
23265         [BZ #18528]
23266         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
23267         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
23268         __USE_XOPEN2K8].
23269         (getgrent): Likewise.
23270         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
23271         expect.
23272         [XPG3 || POSIX2008] (endgrent): Likewise.
23273         [XPG3] (setgrent): Likewise.
23274         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
23275         variable.
23276         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
23277
23278         [BZ #18527]
23279         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
23280         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
23281         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
23282         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
23283         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
23284         * include/unistd.h (__getlogin_r): Declare.  Use
23285         libc_hidden_proto.
23286         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
23287         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
23288         variable.
23289         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
23290         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
23291         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
23292
23293 2015-06-12  Martin Sebor  <msebor@redhat.com>
23294
23295         [BZ #18512]
23296         * Makerules (check-install-supported): New target.
23297         (install): Add check-install-supported as a dependency.
23298         * manual/install.texi (Installing the C Library): Document
23299         that overriding prefix and exec_prefix is not supported.
23300         Mention DESTDIR.
23301         * INSTALL: Regenerate from the above.
23302
23303 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23304
23305         [BZ #18519]
23306         * posix/Versions (libc): Export __libc_pread at version
23307         GLIBC_PRIVATE.
23308         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
23309         instead of pread.
23310         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
23311         variable.
23312
23313         [BZ #18522]
23314         * misc/efgcvt_r.c
23315         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
23316         (cvt_symbol): Use weak_alias instead of strong_alias.
23317         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
23318         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
23319         Remove variable.
23320         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
23321         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
23322
23323         [BZ #18520]
23324         * inet/herrno.c (h_errno): Rename to __h_errno.
23325         (__libc_h_errno): Define as alias of __h_errno not h_errno.
23326         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
23327         to __h_errno instead of h_errno.
23328         * nptl/herrno.c (h_errno): Rename to __h_errno.
23329         (__h_errno_location): Refer to __h_errno not h_errno.
23330         * resolv/Versions (h_errno): Rename to __h_errno.
23331         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
23332         Remove variable.
23333         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
23334
23335 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
23336
23337         * configure.ac: More strict check for AVX512 assembler support.
23338         * configure: Regenerated.
23339
23340         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
23341         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
23342         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23343         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
23344         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23345         * sysdeps/x86_64/fpu/Versions: New versions added.
23346         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23347         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23348         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23349         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
23350         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
23351         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
23352         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
23353         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
23354         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
23355         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
23356         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
23357         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
23358         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
23359         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
23360         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
23361         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
23362         test.
23363         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23364         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23365         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23366         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23367         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23368         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23369         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23370         * NEWS: Mention addition of x86_64 vector sin.
23371
23372 2015-06-11  Florian Weimer  <fweimer@redhat.com>
23373
23374         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
23375         comment.
23376
23377 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23378
23379         [BZ #18479]
23380         * nptl/pt-interp.c: New file.
23381         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
23382         Add pt-interp.
23383         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
23384         $(common-objpfx)runtime-linker.h.
23385
23386 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
23387
23388         * Makeconfig (+interp): Remove unused variable.
23389         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
23390         only.  Depend on $(common-objpfx)runtime-linker.h instead of
23391         $(elf-objpfx)runtime-linker.h.
23392         ($(elf-objpfx)runtime-linker.h): Rename to
23393         $(common-objpfx)runtime-linker.h and move ...
23394         * Makerules [$(build-shared) = yes]: ... here.
23395         * elf/interp.c: Include <runtime-linker.h> instead of
23396         <elf/runtime-linker.h>.
23397
23398 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23399
23400         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
23401         (__gettimeofday_syscall): Remove vsyscall fallback.
23402         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
23403         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
23404         Add syscall fallback function.
23405         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
23406         if vDSO is not present.
23407         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
23408         fallback function.
23409         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
23410         present.
23411         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
23412         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23413
23414 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23415
23416         [BZ #18497]
23417         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
23418         of wcscmp.
23419         (wcscmp): Define as weak alias of WCSCMP.
23420         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
23421         wcscoll.
23422         (USE_HIDDEN_DEF): Define.
23423         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
23424         __wcscoll.  Don't use libc_hidden_weak.
23425         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
23426         wcscmp.
23427         * sysdeps/i386/i686/multiarch/wcscmp-c.c
23428         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
23429         __GI_wcscmp.
23430         (weak_alias): Undefine and redefine.
23431         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
23432         __wcscmp and define as weak alias of __wcscmp.
23433         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
23434         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
23435         (__wcscoll): Likewise.
23436         (wcscmp): Don't use libc_hidden_proto.
23437         (wcscoll): Likewise.
23438         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
23439         wcscoll.
23440         * posix/regexec.c (check_node_accept_bytes): Likewise.
23441         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
23442         variable.
23443         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
23444         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
23445
23446         [BZ #18507]
23447         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
23448         __fstatvfs and define as weak alias of __fstatvfs.  Use
23449         libc_hidden_weak.
23450         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
23451         and define as weak alias of __statvfs.  Use libc_hidden_weak.
23452         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
23453         Define as alias of __fstatvfs, not fstatvfs.
23454         (fstatvfs64): Likewise.
23455         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
23456         Define as alias of __statvfs, not statvfs.
23457         (statvfs64): Likewise.
23458         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
23459         Remove variable.
23460
23461 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23462
23463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23464         (HAVE_GETCPU_VSYSCALL): Define.
23465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23466         (HAVE_GETCPU_VSYSCALL): Likewise.
23467         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
23468         * sysdeps/unix/sysv/linux/sched_getcpu.c
23469         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
23470         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
23471         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
23472         prototype.
23473         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23474         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
23475         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
23476         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
23477         Define.
23478         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
23479         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23480         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
23481         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23482
23483 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
23484
23485         * sysdeps/x86_64/fpu/Makefile: New file.
23486         * sysdeps/x86_64/fpu/Versions: New file.
23487         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
23488         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
23489         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
23490         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
23491         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
23492         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
23493         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
23494         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
23495         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
23496         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
23497         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
23498         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
23499         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
23500         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23501         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23502         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
23503         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
23504         * sysdeps/x86_64/configure.ac: Options for libmvec build.
23505         * sysdeps/x86_64/configure: Regenerated.
23506         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
23507         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
23508         * manual/install.texi (Configuring and compiling): Document
23509         --disable-mathvec.
23510         * INSTALL: Regenerated.
23511         * NEWS: Mention addition of libmvec and x86_64 vector cos.
23512
23513         * math/Makefile: Added rules for vector tests.
23514         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
23515         declaration under condition.
23516         * math/test-double-vlen2.h: New file.
23517         * math/test-double-vlen4.h: New file.
23518         * math/test-double-vlen8.h: New file.
23519         * math/test-vec-loop.h: Added initialization macro.
23520         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
23521         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
23522         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
23523         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
23524         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
23525         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
23526         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
23527         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
23528         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
23529         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
23530         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
23531
23532         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23533         * sysdeps/x86_64/fpu/Versions: New versions added.
23534         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
23535         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
23536         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
23537         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
23538         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
23539         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
23540         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
23541         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
23542         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
23543         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
23544         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
23545         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
23546         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
23547         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23548         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23549         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23550         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23551         * NEWS: Mention addition of x86_64 vector cosf.
23552
23553         * math/Makefile: Added CFLAGS for new tests.
23554         * math/test-float-vlen16.h: New file.
23555         * math/test-float-vlen4.h: New file.
23556         * math/test-float-vlen8.h: New file.
23557         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23558         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23559         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23560         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23561         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23562         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23563         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23564         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23565         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23566         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23567         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23568
23569 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23570
23571         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23572         * locale/programs/ld-ctype.c: Likewise.
23573
23574 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23575
23576         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23577         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23578         bit_ZMM16_31_state): New macro.
23579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23580         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23581
23582 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23583
23584         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23585
23586 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23587
23588         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23589
23590 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23591
23592         [BZ #18498]
23593         * libio/memstream.c (open_memstream): Rename to __open_memstream
23594         and define as weak alias of __open_memstream.
23595         * include/stdio.h (__open_memstream): Declare.  Use
23596         libc_hidden_proto.
23597         (open_memstream): Don't use libc_hidden_proto.
23598         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23599         open_memstream.
23600         * posix/getopt.c (_getopt_internal_r): Likewise.
23601         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23602         variable.
23603         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23604         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23605         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23606
23607         [BZ #18496]
23608         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23609         instead of wcrtomb.
23610
23611         [BZ #18483]
23612         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23613         [__USE_XOPEN2K8].  Remove redundant #endif.
23614         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23615         Remove redundant #if.
23616         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23617         Remove variable.
23618         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23619         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23620
23621         [BZ #18495]
23622         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23623         (__iswlower): Likewise.
23624         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23625         (__iswlower): Likewise.
23626         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23627         instead of towlower.
23628         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23629         instead of iswlower.  Call __towupper instead of towupper.
23630         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23631         instead of iswalnum.
23632
23633 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23634
23635         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23636         errors to stderr.
23637
23638 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23639
23640         [BZ #15661]
23641         [BZ #17322]
23642         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23643         Check for overflow properly.  Check for O_APPEND.  Ignore large
23644         file system block sizes.  Add comments about problems.
23645         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23646         * manual/filesys.texi (Storage Allocation): New node.
23647
23648 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23649
23650         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23651         cancellable syscalls.
23652         (SYS_ify): Add guard to no redefine it.
23653         (INLINE_SYSCALL): Likewise.
23654         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23655         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23656         SYSCALL_CANCEL instead.
23657         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23658         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23659         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23660         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23661         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23662         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23663         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23664         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23665         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23666         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23667         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23668         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23669         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23670         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23671         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23672         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23673         Likewise.
23674         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23675         (__libc_pread64): Likewise.
23676         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23677         (__libc_preadv): Likewise.
23678         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23679         (__libc_readv64): Likewise.
23680         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23681         (__libc_pwrite): Likewise.
23682         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23683         (__libc_pwrite64): Likewise.
23684         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23685         (__libc_pwritev): Likewise.
23686         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23687         (__libc_pwritev64): Likewise.
23688         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23689         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23690         (sync_file_range): Likewise.
23691         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23692         Likewise.
23693         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23694         Likewise.
23695         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23696         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23697         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23698         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23699         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23700         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23701         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23702         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23704         Likewise.
23705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23706         (__libc_read64): Likewise.
23707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23708         Likewise.
23709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23710         Likewise.
23711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23712         Likewise.
23713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23714         Likewise.
23715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23716         (__libc_pread64): Likewise.
23717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23718         Likewise.
23719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23720         (__libc_pwrite64): Likewise.
23721         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23722         (sync_file_range): Likewise.
23723         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23724         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23725         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23726         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23727         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23728         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23729         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23730         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23731         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23732         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23733         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23734         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23735         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23736         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23737         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23738         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23739         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23740         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23741         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23742         Likewise.
23743         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23744         Likewise.
23745         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23746         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23747         Likewise.
23748         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23749         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23750         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23751         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23752         Likewise.
23753         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23754         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23755         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23756         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23757         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23758
23759 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23760
23761         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23762         Include dl-vdso.
23763         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23764         Use VDSO routines for gettimeofday, clock_gettime if
23765         available.
23766         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23767         Declare VDSO symbols.
23768         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23769         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23770         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23771         * sysdeps/unix/sysv/linux/arm/Versions: Add
23772         __vdso_clock_gettime.
23773
23774 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23775
23776         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23777         be an inline implementation regardless of library is built within.
23778         (open_not_cancel_2): Likewise.
23779         (__read_nocancel): Likewise.
23780         (__write_nocancel): Likewise.
23781         (openat_not_cancel): Likewise.
23782         (openat_not_cancel_3): Likewise.
23783         (openat64_not_cancel): Likewise.
23784         (openat64_not_cancel_3): Likewise.
23785         (__close_nocancel): Likewise.
23786         (pause_not_cancel): Likewise.
23787         (nanosleep_not_cancel): Likewise.
23788         (sigsuspend_not_cancel): Likewise.
23789
23790 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23791
23792         [BZ #14958]
23793         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23794         wake-up.
23795         (__pthread_rwlock_rdlock_slow): Likewise.
23796         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23797         Likewise.
23798         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23799         Likewise.
23800         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23801         * nptl/tst-rwlock16.c: New file.
23802         * nptl/Makefile (tests): Add new test.
23803
23804 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23805
23806         [BZ #18324]
23807         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23808         missing wake-up of readers.
23809         * nptl/tst-rwlock15.c: New file.
23810         * nptl/Makefile (tests): Add new test.
23811
23812 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23813
23814         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23815         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23816         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23817         and __nacl_supply_interface_rtld.
23818         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23819         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23820         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23821         Add __nacl_supply_interface_rtld.
23822         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23823
23824 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23825
23826         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23827         isfinite.
23828         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23829         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23830
23831 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23832
23833         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23834         __signbit* with standard C99 macros.
23835         * math/e_exp10l.c: Likewise.
23836         * math/e_exp2l.c: Likewise.
23837         * math/e_scalb.c: Likewise.
23838         * math/e_scalbf.c: Likewise.
23839         * math/e_scalbl.c: Likewise.
23840         * math/s_ldexp.c: Likewise.
23841         * math/s_ldexpf.c: Likewise.
23842         * math/s_ldexpl.c: Likewise.
23843         * math/w_atan2.c: Likewise.
23844         * math/w_atan2f.c: Likewise.
23845         * math/w_atan2l.c: Likewise.
23846         * math/w_cosh.c: Likewise.
23847         * math/w_coshf.c: Likewise.
23848         * math/w_coshl.c: Likewise.
23849         * math/w_exp10.c: Likewise.
23850         * math/w_exp10f.c: Likewise.
23851         * math/w_exp10l.c: Likewise.
23852         * math/w_exp2.c: Likewise.
23853         * math/w_exp2f.c: Likewise.
23854         * math/w_exp2l.c: Likewise.
23855         * math/w_fmod.c: Likewise.
23856         * math/w_fmodf.c: Likewise.
23857         * math/w_fmodl.c: Likewise.
23858         * math/w_hypot.c: Likewise.
23859         * math/w_hypotf.c: Likewise.
23860         * math/w_hypotl.c: Likewise.
23861         * math/w_jnl.c: Likewise.
23862         * math/w_lgamma.c: Likewise.
23863         * math/w_lgamma_r.c: Likewise.
23864         * math/w_lgammaf.c: Likewise.
23865         * math/w_lgammaf_r.c: Likewise.
23866         * math/w_lgammal.c: Likewise.
23867         * math/w_lgammal_r.c: Likewise.
23868         * math/w_pow.c: Likewise.
23869         * math/w_powf.c: Likewise.
23870         * math/w_powl.c: Likewise.
23871         * math/w_remainder.c: Likewise.
23872         * math/w_remainderf.c: Likewise.
23873         * math/w_remainderl.c: Likewise.
23874         * math/w_scalb.c: Likewise.
23875         * math/w_scalbf.c: Likewise.
23876         * math/w_scalbl.c: Likewise.
23877         * math/w_scalbln.c: Likewise.
23878         * math/w_scalblnf.c: Likewise.
23879         * math/w_scalblnl.c: Likewise.
23880         * math/w_sinh.c: Likewise.
23881         * math/w_sinhf.c: Likewise.
23882         * math/w_sinhl.c: Likewise.
23883         * math/w_tgamma.c: Likewise.
23884         * math/w_tgammaf.c: Likewise.
23885         * math/w_tgammal.c: Likewise.
23886         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23887         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23888         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23889         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23890         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23891         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23892         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23893         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23894         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23895         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23896         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23897         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23898         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23899         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23900         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23901         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23902         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23903         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23904         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23905         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23906         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23907         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23908         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23909         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23910         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23911         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23912         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23913         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23914         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23915         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23916         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23917         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23918         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23919         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23920         * stdio-common/printf_fp.c: Likewise.
23921         * stdio-common/printf_fphex.c: Likewise.
23922         * stdio-common/printf_size.c: Likewise.
23923
23924 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23925
23926         [BZ #18470]
23927         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23928         strnlen.
23929         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23930         Remove variable.
23931         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23932         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23933         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23934         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23935         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23936         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23937         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23938         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23939         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23940         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23941
23942         [BZ #18468]
23943         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23944         weak alias of __wmemchr.  Use libc_hidden_weak.
23945         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23946         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23947         instead of wmemchr.
23948
23949 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23950
23951         [BZ #18383]
23952         * elf/tst-tlsalign-extern.c: New file.
23953         * elf/tst-tlsalign-extern-static.c: New file.
23954         * elf/tst-tlsalign-vars.c: New file.
23955         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23956         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23957         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23958         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23959         (test-xfail-tst-tlsalign-extern-static): New variable.
23960
23961 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23962
23963         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23964         Use variable name _sc_err instead of err.
23965         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23966         instead of ret.
23967         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23968         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23969         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23970         (INLINE_SYSCALL): Likewise.
23971
23972         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23973         * include/string.h (__strnlen): Use libc_hidden_proto.
23974         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23975         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23976         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23977         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23978         (libc_hidden_def): Undefine and redefine.
23979         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23980         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23981         __GI_strnlen.
23982         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23983         libc_hidden_def.
23984         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23985
23986         [BZ #18469]
23987         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23988         weak alias of __towlower.  Use libc_hidden_weak.
23989         (towupper): Rename to __towupper and define as weak alias of
23990         __towupper.  Use libc_hidden_weak.
23991         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23992         (__towupper): Likewise.
23993         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23994         __towlower instead of towlower.
23995
23996 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23997
23998         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23999         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
24000
24001 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24002
24003         * sysdeps/aarch64/libm-test-ulps: Update.
24004
24005 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24006
24007         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
24008         Define.
24009         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24010         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
24011         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
24012         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24013         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
24014         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
24015         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
24016
24017 2015-06-01  Martin Sebor  <msebor@redhat.com>
24018
24019         [BZ #18116]
24020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
24021         (__setcontext): Use extended four-operand version of mtsf whenever
24022         possible.
24023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
24024         (__novec_swapcontext): Likewise.
24025
24026 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
24027
24028         * benchtests/scripts/compare_bench.py: New file.
24029         * benchtests/scripts/import_bench.py (mean): New function.
24030         (split_list): Likewise.
24031         (do_for_all_timings): Likewise.
24032         (compress_timings): Likewise.
24033
24034         * benchtests/scripts/import_bench.py: New file.
24035         * benchtests/scripts/validate_benchout.py: Import import_bench
24036         instead of jsonschema.
24037         (validate_bench): Remove function.
24038         (main): Use import_bench.
24039
24040 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
24041
24042         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
24043         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
24044
24045 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24046
24047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24048
24049 2015-05-28  Roland McGrath  <roland@hack.frob.com>
24050
24051         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
24052         set THREAD_SELF->tid to a magic value and futex-wake it.
24053         Pass its address to the thread_exit system call.
24054         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
24055         bit is clear.
24056         * sysdeps/nacl/lowlevellock.h: New file.
24057         * sysdeps/nacl/lll_timedwait_tid.c: New file.
24058
24059         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
24060         Add TIMEOUT to current time, don't subtract it.
24061
24062 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
24063
24064         [BZ #2981]
24065         [BZ #18422]
24066         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
24067         ($(objpfx)tst-audit2.out): Also depend on
24068         $(objpfx)tst-auditmod9b.so.
24069         * elf/tst-audit2.c: Include <dlfcn.h>.
24070         (calloc_called): New.
24071         (calloc): Allow to be called more than once.
24072         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
24073
24074 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
24075
24076         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
24077         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
24078
24079 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
24080
24081         * stdlib/monetary.h: Fix comment.
24082
24083 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
24084
24085         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
24086         Avoid using variables in #defines that might cause shadowing.
24087         (INTERNAL_VSYSCALL_CALL): Likewise.
24088
24089 2015-05-26  Roland McGrath  <roland@hack.frob.com>
24090
24091         * sysdeps/nacl/lll_timedlock_wait.c: New file.
24092
24093         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
24094         * nptl/lll_timedlock_wait.c: ... to this new file.
24095         * nptl/Makefile (libpthread-routines): Add it.
24096         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
24097         * nptl/lll_timedwait_tid.c: ... to this new file.
24098         * nptl/Makefile (libpthread-routines): Add it.
24099         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
24100         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
24101         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
24102         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
24103         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
24104         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
24105         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
24106         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
24107         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
24108         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
24109
24110 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24111
24112         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
24113         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
24114         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
24115         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
24116         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
24117         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24118         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24119         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24120         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24121         * sysdeps/unix/sysv/linux/tile/sysdep.h
24122         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24123         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
24124         using vDSO syscall macro.
24125
24126 2015-05-26  Andriy Rysin  <arysin@gmail.com>
24127
24128         [BZ #17293]
24129         * uk_UA: Fix sorting order for Ukrainian locale
24130
24131 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
24132
24133         * stdlib/monetary.h: Fix comment.
24134
24135 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24136
24137         [BZ #18234]
24138         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
24139         st_mtim and st_ctim members.
24140         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
24141         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
24142         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
24143         (struct stat64): Likewise.
24144         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
24145         (struct stat64): Likewise.
24146         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
24147         (struct stat64): Likewise.
24148
24149 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24150
24151         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
24152         Define and include sysdep-vdso.h.
24153         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
24154         Likewise.
24155         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
24156         Likewise.
24157         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
24158         Define with VDSO_SYMBOL and use PTR_MANGLE.
24159         (__vdso_clock_gettime): Likewise.
24160         (__vdso_clock_getres): Likewise.
24161         (_libc_vdso_platform_setup): Likewise.
24162         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
24163         Likewise.
24164         (_libc_vdso_platform_setup): Likewise.
24165         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
24166         Likewise.
24167         (__vdso_clock_gettime): Likewise.
24168         (__vdso_clock_getres): Likewise.
24169         (__vdso_get_tbfreq): Likewise.
24170         (__vdso_getcpu): Likewise.
24171         (__vdso_time): Likewise.
24172         (__vdso_sigtramp_rt64): Likewise.
24173         (__vdso_signtramp32): Likewise.
24174         (__vdso_sigtramp_rt32): Likewise.
24175         (_libc_vdso_platform_setup): Likewise.
24176         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
24177         Likewise.
24178         (__vdso_clock_gettime): Likewise.
24179         (__vdso_clock_getres): Likewise.
24180         (_libc_vdso_platform_setup): Likewise.
24181         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
24182         Likewise.
24183         (__vdso_clock_gettime): Likewise.
24184         (_libc_vdso_platform_setup): Likewise.
24185         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
24186         Likewise.
24187         (__vdso_getcpu): Likewise.
24188         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
24189         Use VDSO_SYMBOL macro to define.
24190         (__vdso_clock_gettime): Likewise.
24191         (__vdso_clock_getres): Likewise.
24192         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
24193         Likewise.
24194         (__vdso_clock_gettime): Likewise.
24195         (__vdso_clock_getres): Likewise.
24196         (__vdso_get_tbfreq): Likewise.
24197         (__vdso_getcpu): Likewise.
24198         (__vdso_time): Likewise.
24199         (__vdso_sigtramp_rt64): Likewise.
24200         (__vdso_signtramp32): Likewise.
24201         (__vdso_sigtramp_rt32): Likewise.
24202         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
24203         Likewise.
24204         (__vdso_clock_gettime): Likewise.
24205         (__vdso_clock_getres): Likewise.
24206         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
24207         Likewise.
24208         (__vdso_clock_gettime): Likewise.
24209         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
24210         Likewise.
24211         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
24212         macro.
24213         (INTERNAL_VSYSCALL): Likewise.
24214         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
24215         Remove macro.
24216         (INTERNAL_VSYSCALL): Likewise.
24217         (INTERNAL_VSYSCALL_NCS): Likewise.
24218         (INTERNAL_VSYSCALL_CALL): New macro.
24219         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24220         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
24221         Likewise.
24222         (INTERNAL_VSYSCALL): Likewise.
24223         (INTERNAL_VSYSCALL_NCS): Likewise.
24224         (INTERNAL_VSYSCALL_CALL): New macro.
24225         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24227         (INLINE_VSYSCALL): Remove macro.
24228         (INTERNAL_VSYSCALL): Remove macro.
24229         (INTERNAL_VSYSCALL_NCS): Remove macro.
24230         (INTERNAL_VSYSCALL_CALL): New macro.
24231         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
24232         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
24233         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24234         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
24235         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
24236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24237         (INLINE_VSYSCALL): Remove macro.
24238         (INTERNAL_VSYSCALL): Likewise.
24239         (INTERNAL_VSYSCALL_NCS): Likewise.
24240         (INTERNAL_VSYSCALL_CALL): New macro.
24241         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
24242         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
24243         PTR_DEMANGLE on vDSO pointer.
24244         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24245         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
24246         macro.
24247         (INTERNAL_SYSCALL): Likewise.
24248         (INTERNAL_VSYSCALL_NCS): Remove macro.
24249         (INTERNAL_VSYSCALL_CALL): New macro.
24250         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
24251         Remove macro.
24252         (INTERNAL_VSYSCALL): Likewise.
24253         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
24254         sysdep-vdso.h instead of libc-vdso.h.
24255         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
24256         definition.
24257         (INLINE_VSYSCALL): Likewise.
24258         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
24259         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
24260         definition.
24261         (INLINE_VSYSCALL): Likewise.
24262         (INTERNAL_VSYSCALL): Likewise.
24263         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24264         * sysdeps/unix/sysv/linux/timespec_get.c
24265         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24266         (timespec_get): Use ANSI prototype.
24267         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
24268         and definition for Linux.
24269
24270 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
24271
24272         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
24273         * include/libc-symbols.h: libmvec_hidden_* macro series added.
24274
24275 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
24276
24277         [BZ #2981]
24278         [BZ #18410]
24279         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
24280         for missing DT_PLTRELSZ.
24281
24282 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24283
24284         Remove obsolete aliases that broke 'locale -a'
24285         [BZ #18412]
24286         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
24287         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
24288         breaking some applications that use 'locale -a' output.
24289         Change the encoding of this file from Latin-1 to ASCII to avoid
24290         other potential problems with people grepping this file.
24291
24292 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24293
24294         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
24295         -fasynchronous-unwind-tables.
24296         (CFLAGS-sendto.c): Likewise.
24297         (CFLAGS-sendmsg.c): Likewise.
24298         (CFLAGS-connect.c): Likewise.
24299         (CFLAGS-recvmsg.c): Likewise.
24300         (CFLAGS-recvfrom.c): Likewise.
24301         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
24302         (SOCKETCALL): New macro: non-cancellable socketcall.
24303         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
24304         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
24305         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
24306         * sysdeps/unix/sysv/linux/accept.c: New file.
24307         * sysdeps/unix/sysv/linux/bind.c: Likewise.
24308         * sysdeps/unix/sysv/linux/connect.c: Likewise.
24309         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
24310         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
24311         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
24312         * sysdeps/unix/sysv/linux/listen.c: Likewise.
24313         * sysdeps/unix/sysv/linux/recv.c: Likewise.
24314         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
24315         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
24316         * sysdeps/unix/sysv/linux/send.c: Likewise.
24317         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
24318         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
24319         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
24320         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
24321         * sysdeps/unix/sysv/linux/socket.c: Likewise.
24322         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
24323         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
24324         prototype.
24325         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
24326         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24327         instead of __internal_xxx function.
24328         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
24329         prototype.
24330         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
24331         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24332         instead of __internal_xxx function.
24333         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
24334         prototype.
24335         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
24336         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24337         instead of __internal_xxx function.
24338         * sysdeps/unix/sysv/linux/accept.S: Remove file.
24339         * sysdeps/unix/sysv/linux/bind.S: Likewise.
24340         * sysdeps/unix/sysv/linux/connect.S: Likewise.
24341         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
24342         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
24343         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
24344         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
24345         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
24346         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
24347         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
24348         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
24349         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
24350         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
24351         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
24352         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
24353         * sysdeps/unix/sysv/linux/listen.S: Likewise.
24354         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
24355         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
24356         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
24357         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
24358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
24359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
24360         * sysdeps/unix/sysv/linux/recv.S: Likewise.
24361         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
24362         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
24363         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
24364         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
24365         * sysdeps/unix/sysv/linux/send.S: Likewise.
24366         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
24367         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
24368         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
24369         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
24370         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
24371         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
24372         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
24373         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
24374         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
24375         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
24376         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
24377         socketcall is implemented in GLIBC.
24378
24379 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24380
24381         * soft-fp/fmadf4.c: Include <libc-internal.h>.
24382         (__fma): Ignore uninitialized warnings around packing.
24383         * soft-fp/fmasf4.c: Include <libc-internal.h>.
24384         (__fmaf): Ignore uninitialized warnings around packing.
24385         * soft-fp/fmatf4.c: Include <libc-internal.h>.
24386         (__fmal): Ignore uninitialized warnings around packing.
24387
24388         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
24389         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24390         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
24391         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24392
24393         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
24394         switch statement into default case.
24395         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
24396
24397         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
24398         a conditional in forcing "inexact".
24399         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
24400         Likewise.
24401
24402 2015-05-22  Roland McGrath  <roland@hack.frob.com>
24403
24404         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24405         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
24406         for each INTERNAL_SYSCALL use.
24407
24408 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24409
24410         [BZ #438]
24411         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
24412         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
24413         variable.
24414
24415         [BZ #18444]
24416         * string/basename.c (basename): Rename to __basename and define as
24417         weak alias of __basename.  Use libc_hidden_weak.
24418         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
24419         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
24420         __basename instead of basename.
24421         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
24422         Remove variable.
24423         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24424
24425 2015-05-18  Florian Weimer  <fweimer@redhat.com>
24426
24427         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
24428         (_IO_JUMPS_FILE_plus): New.
24429         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
24430         _IO_CAST_FIELD_ACCESS.
24431         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
24432         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
24433         * libio/freopen.c (freopen): Likewise.
24434         * libio/freopen64.c (freopen64): Likewise.
24435         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
24436         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
24437         * libio/iofwide.c (_IO_fwide): Likewise.
24438         * libio/memstream.c (open_memstream): Likewise.
24439         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24440         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
24441         * libio/oldiopopen.c (_IO_old_popen): Likewise.
24442
24443 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
24444
24445         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
24446         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
24447         NADJ.
24448         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
24449         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
24450         NADJ.
24451         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
24452         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
24453         NADJ.
24454
24455         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
24456         (p == 4) case.
24457
24458         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
24459         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
24460         Remove variable.
24461         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24462         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24463         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24464
24465 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24466
24467         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
24468         Adjust jump table label generation macros.
24469
24470 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24471
24472         * stdio-common/vfprintf.c (vfprintf): Move local variables
24473         args_malloced, specs, specs_malloced, and the code after
24474         do_positional to the printf_positional function.
24475         (printf_positional): New function.
24476
24477 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24478
24479         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
24480         function.
24481         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
24482         STEP4_TABLE, process_arg): Move macro definitions
24483         out of the vfprintf function.  (Cosmetic change only.)
24484
24485 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
24486
24487         * benchtests/Makefile (stdio-common-bench): Define.
24488         (benchset): Add stdio-common-bench.
24489         * sprintf-inputs: New file.
24490         * sprintf-source.c: New file.
24491
24492 2015-05-21  Andreas Schwab  <schwab@suse.de>
24493
24494         [BZ #13028]
24495         [BZ #17053]
24496         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
24497         of struct __res_state.
24498         * resolv/res_send.c (__libc_res_nsend): Likewise.
24499         (get_nsaddr): New function.
24500         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
24501         statp directly.
24502
24503 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
24504
24505         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
24506         -D_POSIX_C_SOURCE=199506L.
24507
24508         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
24509
24510         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
24511         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
24512         Do not mention otherwise.
24513         [POSIX] (_XOPEN_VERSION): Do not expect.
24514         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
24515         [POSIX] (_POSIX2_C_BIND): Likewise.
24516         [POSIX] (_POSIX2_VERSION): Likewise.
24517         [POSIX] (_XOPEN_XPG2): Likewise.
24518         [POSIX] (_XOPEN_XPG3): Likewise.
24519         [POSIX] (_XOPEN_XPG4): Likewise.
24520         [POSIX] (_XOPEN_UNIX): Likewise.
24521         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
24522         [POSIX] (_POSIX_BARRIERS): Likewise.
24523         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
24524         [POSIX] (_POSIX_CPUTIME): Likewise.
24525         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
24526         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
24527         [POSIX] (_POSIX_SHELL): Likewise.
24528         [POSIX] (_POSIX_SPAWN): Likewise.
24529         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
24530         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
24531         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
24532         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
24533         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
24534         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
24535         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
24536         [POSIX] (_XBS5_LP64_OFF64): Likewise.
24537         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
24538         [POSIX] (_POSIX_TIMEOUTS): Likewise.
24539         [POSIX] (_POSIX2_PBS): Likewise.
24540         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
24541         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
24542         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
24543         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
24544         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
24545         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
24546         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
24547         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
24548         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
24549         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
24550         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24551         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24552         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24553         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24554         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24555         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24556         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24557         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24558         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24559         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24560         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24561         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24562         [POSIX] (_SC_2_C_BIND): Likewise.
24563         [POSIX] (_SC_2_C_VERSION): Likewise.
24564         [POSIX] (_SC_2_PBS): Likewise.
24565         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24566         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24567         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24568         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24569         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24570         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24571         [POSIX] (_SC_BARRIERS): Likewise.
24572         [POSIX] (_SC_BASE): Likewise.
24573         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24574         [POSIX] (_SC_DEVICE_IO): Likewise.
24575         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24576         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24577         [POSIX] (_SC_FD_MGMT): Likewise.
24578         [POSIX] (_SC_FIFO): Likewise.
24579         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24580         [POSIX] (_SC_FILE_LOCKING): Likewise.
24581         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24582         [POSIX] (_SC_IOV_MAX): Likewise.
24583         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24584         [POSIX] (_SC_NETWORKING): Likewise.
24585         [POSIX] (_SC_PAGE_SIZE): Likewise.
24586         [POSIX] (_SC_PASS_MAX): Likewise.
24587         [POSIX] (_SC_PIPE): Likewise.
24588         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24589         [POSIX] (_SC_REGEXP): Likewise.
24590         [POSIX] (_SC_SHELL): Likewise.
24591         [POSIX] (_SC_SIGNALS): Likewise.
24592         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24593         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24594         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24595         [POSIX] (_SC_USER_GROUPS): Likewise.
24596         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24597         [POSIX] (_SC_STREAMS): Likewise.
24598         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24599         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24600         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24601         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24602         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24603         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24604         [POSIX] (_PC_FILESIZEBITS): Likewise.
24605         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24606         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24607         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24608         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24609         [POSIX] (uid_t): Likewise.
24610         [POSIX] (gid_t): Likewise.
24611         [POSIX] (off_t): Likewise.
24612         [POSIX] (pid_t): Likewise.
24613         [POSIX] (cuserid): Allow.
24614         (_SC_2_CHAR_TERM): Require constant.
24615         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24616         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24617         variable.
24618
24619 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24620
24621         * sysdeps/nacl/pthread-pids.h: New file.
24622         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24623         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24624
24625         * nptl/pthread-pids.h: New file.
24626         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24627         * nptl/nptl-init.c: Include <pthread-pids.h>.
24628         (__pthread_initialize_minimal_internal):
24629         Call __pthread_initialize_pids instead of set_tid_address syscall.
24630
24631         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24632         * sysdeps/posix/usleep.c: ... here.
24633
24634 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24635
24636         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24637         call_pselect6 object.
24638         [$(subdir) = io]: Remove call_sync_file_range object.
24639         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24640         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24641         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24642         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24643
24644 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24645
24646         * math/s_cproj.c: Add include "math_private.h".
24647         * math/s_cprojf.c: Likewise.
24648         * math/s_cprojl.c: Likewise.
24649
24650 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24651
24652         [BZ #18244]
24653         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24654         high mantissa bit when testing whether P is a NaN.
24655         * math/libm-test.inc (remainder_test_data): Add more tests.
24656         (remquo_test_data): Likewise.
24657
24658         [BZ #18049]
24659         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24660         below -32, return the argument, with underflow if subnormal.
24661         * math/auto-libm-test-in: Add more tests of atanh.
24662         * math/auto-libm-test-out: Regenerated.
24663
24664 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24665
24666         [BZ #18434]
24667         * nptl/tst-sem15.c: New file.
24668         * nptl/Makefile (tests): Add it.
24669         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24670         s/<</>>/ to fix typo in EOVERFLOW check.
24671         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24672
24673 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24674
24675         * manual/strings.texi (envz_remove): Fix typo in safety
24676         annotations.
24677
24678 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24679             Steve Ellcey  <sellcey@imgtec.com>
24680
24681         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24682         in order to avoid strict alias warnings.
24683         (iruserok_af): Ditto for ra.
24684
24685 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24686
24687         [BZ #17581]
24688         * malloc/hooks.c
24689         (magicbyte): Convert to a function and avoid returning 0x01.
24690         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24691         (mem2chunk_check): Fix unsigned comparisons to zero.
24692         Hoist defs of sz and magic.
24693
24694 2015-05-19  Richard Henderson  <rth@redhat.com>
24695
24696         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24697
24698         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24699
24700 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24701
24702         [BZ #16159]
24703         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24704         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24705         (reused_arena): Find a non-corrupt arena.
24706         (heap_trim): Pass arena to unlink.
24707         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24708         malloc_printerr.
24709         (top_check): Likewise.
24710         (free_check): Likewise.
24711         (realloc_check): Likewise.
24712         * malloc/malloc.c (malloc_printerr): Add arena argument.
24713         (unlink): Likewise.
24714         (munmap_chunk): Adjust.
24715         (ARENA_CORRUPTION_BIT): New macro.
24716         (arena_is_corrupt): Likewise.
24717         (set_arena_corrupt): Likewise.
24718         (sysmalloc): Use mmap if there are no usable arenas.
24719         (_int_malloc): Likewise.
24720         (__libc_malloc): Don't fail if arena_get returns NULL.
24721         (_mid_memalign): Likewise.
24722         (__libc_calloc): Likewise.
24723         (__libc_realloc): Adjust for additional argument to
24724         malloc_printerr.
24725         (_int_free): Likewise.
24726         (malloc_consolidate): Likewise.
24727         (_int_realloc): Likewise.
24728         (_int_memalign): Don't touch corrupt arenas.
24729         * malloc/tst-malloc-backtrace.c: New test case.
24730
24731         * Makefile (summarize-tests): Fix return value on success.
24732
24733         * manual/string.texi (Envz Functions): Add envz_remove.
24734
24735 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24736
24737         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24738         (invalid_name): New function, broken out of ...
24739         (__opendirat): ... here.  Call it.
24740         (need_isdir_precheck): New function, broken out of ...
24741         (__opendirat): ... here.  Call it.
24742         Use __fxstatat64, not __xstatat64.
24743         (opendir_oflags): New function, broken out of ...
24744         (__opendirat): ... here.  Call it.
24745         (opendir_tail): New function, broken out of ...
24746         (__opendirat): ... here.  Call it.
24747         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24748         opendir_tail, rather than punting to __opendirat.
24749         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24750
24751 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24752
24753         * .gitignore: Ignore generated *.pyc.
24754
24755 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24756
24757         * include/stdio.h: Define __need_wint_t.
24758         * test-skeleton.c: Avoid `for' loop initial declaration.
24759         * nptl/tst-initializers1.c: Use test-skeleton.c.
24760
24761 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24762
24763         [BZ #18418]
24764         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24765
24766 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24767
24768         [BZ #16352]
24769         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24770         (__ieee754_atanh): Force underflow exception for results with
24771         small absolute value.
24772         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24773         (__ieee754_atanhf): Force underflow exception for results with
24774         small absolute value.
24775         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24776         (__ieee754_atanh): Force underflow exception for results with
24777         small absolute value.
24778         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24779         (__ieee754_atanhf): Force underflow exception for results with
24780         small absolute value.
24781         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24782         (__ieee754_atanhl): Force underflow exception for results with
24783         small absolute value.
24784         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24785         (__ieee754_atanhl): Force underflow exception for results with
24786         small absolute value.
24787         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24788         (__ieee754_atanhl): Force underflow exception for results with
24789         small absolute value.
24790         * math/auto-libm-test-in: Do not allow missing underflow
24791         exceptions from atanh.
24792         * math/auto-libm-test-out: Regenerated.
24793
24794         [BZ #18221]
24795         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24796         2**-28 as threshold for returning x or +/- 1/x.
24797         * math/auto-libm-test-in: Add more tests of tan.
24798         * math/auto-libm-test-out: Regenerated.
24799
24800         [BZ #18220]
24801         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24802         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24803         * math/auto-libm-test-in: Add another test of lgamma.
24804         * math/auto-libm-test-out: Regenerated.
24805
24806 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24807
24808         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24809         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24810         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24811         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24812         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24813         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24814         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24815         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24816         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24817         (log1): Use fabs.  (my_log2): Use fabs.
24818         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24819         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24820         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24821         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24822         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24823         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24824         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24825         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24826         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24827         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24828         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24829
24830 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24831
24832         [BZ #18217]
24833         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24834         as threshold for returning 1 - x.
24835         * math/auto-libm-test-in: Add more tests of erfc.
24836         * math/auto-libm-test-out: Regenerated.
24837
24838 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24839
24840         [BZ #18196]
24841         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24842         threshold for large arguments.
24843         * math/auto-libm-test-in: Add another test of atan.
24844         * math/auto-libm-test-out: Regenerated.
24845
24846         [BZ #16339]
24847         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24848         (__log1p): Force underflow exception for results with small
24849         absolute value.
24850         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24851         (__log1pf): Force underflow exception for results with small
24852         absolute value.
24853         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24854         (__log1p): Force underflow exception for results with small
24855         absolute value.
24856         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24857         (__log1pf): Force underflow exception for results with small
24858         absolute value.
24859         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24860         (__log1pl): Force underflow exception for results with small
24861         absolute value.
24862         * math/auto-libm-test-in: Do not allow missing underflow
24863         exceptions from log1p.
24864         * math/auto-libm-test-out: Regenerated.
24865
24866 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24867             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24868
24869         [BZ #16704]
24870         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24871
24872 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24873
24874         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24875         (libmvec): New variable.
24876         * configure.ac: Added option for mathvec build.
24877         * configure: Regenerated.
24878         * mathvec/Depend: New file.
24879         * mathvec/Makefile: New file.
24880         * shlib-versions: Added libmvec.
24881         * math/Makefile: Added rule for libm.so installation.
24882
24883         * bits/math-vector.h: New file.
24884         * bits/libm-simd-decl-stubs.h: New header.
24885         * math/Makefile (headers): Added new header
24886         libm-simd-decl-stubs.h.
24887         * math/math.h (__MATHCALL_VEC): New macro.
24888
24889         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24890         for conditions in testing functions.
24891         * math/Makefile: Added call of libm-have-vector-test.sh.
24892         * math/libm-test.inc (HAVE_VECTOR): New macros.
24893
24894         * math/libm-test.inc: START refactored.
24895         * math/test-double.c (TEST_MATHVEC): Add define.
24896         * math/test-float.c: Likewise.
24897         * math/test-idouble.c: Likewise.
24898         * math/test-ifloat.c: Likewise.
24899         * math/test-ildoubl.c: Likewise.
24900         * math/test-ldouble.c: Likewise.
24901         * sysdeps/generic/math-tests-arch.h
24902         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24903         architecture check.
24904
24905         * math/test-double.c (FUNC_TEST): New macro.
24906         * math/test-float.c: Likewise.
24907         * math/test-idouble.c: Likewise.
24908         * math/test-ifloat.c: Likewise.
24909         * math/test-ildoubl.c: Likewise.
24910         * math/test-ldouble.c: Likewise.
24911         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24912
24913 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24914
24915         * sysdeps/nacl/fdopendir.c: New file.
24916
24917         * dirent/scandir-tail.c: New file.
24918         * dirent/scandir64-tail.c: New file.
24919         * dirent/Makefile (routines): Add them.
24920         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24921         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24922         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24923         [!SCANDIR] (SCANDIR_TAIL): New macro.
24924         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24925         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24926         (SCANDIRAT): Macro removed.
24927         (SCANDIR_TAIL): New macro.
24928         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24929         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24930         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24931         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24932         (READDIR): Macro removed.
24933         (SCANDIR_TAIL): New macro.
24934         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24935         (SCANDIR_TAIL): New macro.
24936
24937         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24938         * dirent/scandir-cancel.c: ... to this new file.
24939         * dirent/Makefile (routines): Add it.
24940         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24941         * sysdeps/unix/sysv/linux/i386/scandir64.c
24942         (SKIP_SCANDIR_CANCEL): Macro removed.
24943         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24944
24945         * dirent/tst-scandir.c: New file.
24946         * dirent/tst-scandir64.c: New file.
24947         * dirent/Makefile (tests): Add them.
24948
24949 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24950
24951         [BZ #18409]
24952         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24953
24954 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24955
24956         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24957         list.
24958
24959 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24960
24961         * benchtests/bench-strcoll.c: New benchmark.
24962         * benchtests/Makefile: Generate locales and run benchmark.
24963         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24964         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24965         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24966         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24967         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24968         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24969         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24970         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24971         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24972         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24973         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24974         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24975         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24976         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24977         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24978         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24979         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24980         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24981         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24982         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24983         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24984         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24985         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24986         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24987
24988 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24989
24990         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24991         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24992
24993 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24994
24995         * posix/uname-values.h: New file.
24996         * posix/uname.c: Include that instead of <config-name.h>.
24997         * sysdeps/nacl/uname-values.h: New file.
24998         * sysdeps/arm/nacl/uname-values.h: New file.
24999
25000 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
25001
25002         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
25003         splitting into fields.
25004
25005 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
25006
25007         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
25008         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
25009         * locale/localeinfo.h: Add enum collation_encoding_type.
25010         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
25011         * programs/ld-collate.c (collate_output): Add encoding type info.
25012         * string/strcoll_l.c (STRDIFF): New function.
25013         * (STRCOLL): Use STRDIFF to skip over equal prefix.
25014         * wcsmbs/wcscoll_l.c: Define STRDIFF.
25015
25016 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
25017
25018         [BZ #18397]
25019         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
25020         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
25021         <fpu_control.h> instead of <math/fpu_control.c>.
25022         * sysdeps/mips/mips32/fpu/Makefile: New file.
25023
25024 2015-05-11  Andreas Schwab  <schwab@suse.de>
25025
25026         [BZ #18007]
25027         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
25028         nss_endgrent.
25029         (_nss_compat_endgrent): Call nss_endgrent.
25030         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
25031         nss_endpwent.
25032         (_nss_compat_endpwent): Call nss_endpwent.
25033         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
25034         needent, call nss_setspent only if non-zero.
25035         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
25036         (internal_endspent): Don't call nss_endspent.
25037         (_nss_compat_endspent): Call nss_endspent.
25038         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
25039         Remove.  All uses removed.
25040         (internal_setent): Remove parameter stayopen, add parameter
25041         stream.  Use it instead of global variable.
25042         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
25043         (internal_endent, internal_getent): Add parameter stream.  Use it
25044         instead of global variable.
25045         (CONCAT(_nss_files_end,ENTNAME))
25046         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
25047         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
25048         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
25049         uses removed.
25050         (internal_setent, internal_endent): Add parameter stream.  Use it
25051         instead of global variable.
25052         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
25053         stream.
25054         (get_next_alias): Add parameter stream.
25055         (_nss_files_getaliasent_r): Pass global stream.
25056         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
25057         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
25058         (_nss_files_gethostbyname4_r): Pass local stream to
25059         internal_setent, internal_getent and internal_endent.  Remove
25060         locking.
25061
25062 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
25063
25064         * tst-strfmon1.c (tests): Update expected currency symbol.
25065
25066 2015-05-08  Roland McGrath  <roland@hack.frob.com>
25067
25068         * sysdeps/nacl/gethostname.c: New file.
25069
25070 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
25071
25072         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
25073         and sinh.
25074         * math/auto-libm-test-out: Regenerated.
25075         * sysdeps/i386/fpu/libm-test-ulps: Update.
25076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25077
25078 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
25079
25080         [BZ #18125]
25081         * stdlib/tst-setcontext3.c: New file.
25082         * stdlib/tst-setcontext3.sh: New file.
25083         * stdlib/Makefile (tests): Add tst-setcontext3.
25084         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
25085         to verify test program created output file.
25086         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
25087         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
25088         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
25089         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
25090
25091 2015-05-06  Roland McGrath  <roland@hack.frob.com>
25092
25093         [BZ #18383]
25094         * elf/tst-tlsalign.c: New file.
25095         * elf/tst-tlsalign-static.c: New file.
25096         * elf/tst-tlsalign-lib.c: New file.
25097         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
25098         (tests-static): Add tst-tlsalign-static.
25099         (modules-names): Add tst-tlsalign-lib.
25100         (test-xfail-tst-tlsalign): New variable.
25101         (test-xfail-tst-tlsalign-static): New variable.
25102
25103         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
25104         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
25105
25106 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
25107
25108         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
25109         csqrt, erfc, sin and sincos.
25110         * math/auto-libm-test-out: Regenerated.
25111         * sysdeps/i386/fpu/libm-test-ulps: Update.
25112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25113
25114 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25115
25116         * sysdeps/aarch64/libm-test-ulps: Update.
25117
25118 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
25119
25120         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
25121         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
25122         * math/auto-libm-test-out: Regenerated.
25123         * sysdeps/i386/fpu/libm-test-ulps: Update.
25124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25125
25126 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
25127
25128         [BZ #18265]
25129         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
25130         (wcsncpy): Likewise.
25131
25132 2015-05-05  Florian Weimer  <fweimer@redhat.com>
25133
25134         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
25135         Assume __ASSUME_FALLOCATE is always true.
25136         * sysdeps/unix/sysv/linux/posix_fallocate64.c
25137         (__posix_fallocate64_l64): Likweise.
25138         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
25139         (posix_fallocate): Likewise.
25140         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
25141         (__posix_fallocate64_l64): Likewise.
25142         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
25143         [!__ASSUME_FALLOCATE]: Add comment.
25144
25145 2015-05-05  Florian Weimer  <fweimer@redhat.com>
25146
25147         * sysdeps/unix/sysv/linux/i386/Makefile
25148         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
25149         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
25150         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
25151         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
25152         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
25153         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
25154         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
25155
25156 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
25157
25158         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
25159         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
25160         tgamma.
25161         * math/auto-libm-test-out: Regenerated.
25162         * sysdeps/i386/fpu/libm-test-ulps: Update.
25163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25164
25165 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
25166
25167         * math/auto-libm-test-in: Add more tests of tgamma.
25168         * math/auto-libm-test-out: Regenerated.
25169         * sysdeps/i386/fpu/libm-test-ulps: Update.
25170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25171
25172         * math/auto-libm-test-in: Add more tests of tanh.
25173         * math/auto-libm-test-out: Regenerated.
25174         * sysdeps/i386/fpu/libm-test-ulps: Update.
25175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25176
25177         * math/auto-libm-test-in: Add more tests of tan.
25178         * math/auto-libm-test-out: Regenerated.
25179         * sysdeps/i386/fpu/libm-test-ulps: Update.
25180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25181
25182         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
25183         * math/auto-libm-test-out: Regenerated.
25184         * sysdeps/i386/fpu/libm-test-ulps: Update.
25185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25186
25187         * math/auto-libm-test-in: Add another test of pow.
25188         * math/auto-libm-test-out: Regenerated.
25189         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25190
25191         * math/auto-libm-test-in: Add more tests of lgamma.
25192         * math/auto-libm-test-out: Regenerated.
25193         * sysdeps/i386/fpu/libm-test-ulps: Update.
25194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25195
25196         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
25197         log1p.
25198         * math/auto-libm-test-out: Regenerated.
25199         * sysdeps/i386/fpu/libm-test-ulps: Update.
25200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25201
25202 2015-05-01  Mark Wielaard  <mjw@redhat.com>
25203
25204         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
25205         Elf64_Chdr structs and ELFCOMPRESS constants.
25206
25207 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
25208
25209         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
25210         expm1.
25211         * math/auto-libm-test-out: Regenerated.
25212         * sysdeps/i386/fpu/libm-test-ulps: Update.
25213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25214
25215         * math/auto-libm-test-in: Add more tests of erf and erfc.
25216         * math/auto-libm-test-out: Regenerated.
25217         * sysdeps/i386/fpu/libm-test-ulps: Update.
25218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25219
25220 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25221
25222         * config.h.in (HAVE_AARCH64_BE): Add.
25223
25224 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
25225
25226         * math/auto-libm-test-in: Add more tests of csqrt.
25227         * math/auto-libm-test-out: Regenerated.
25228         * sysdeps/i386/fpu/libm-test-ulps: Update.
25229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25230
25231         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25232         * math/auto-libm-test-out: Regenerated.
25233         * sysdeps/i386/fpu/libm-test-ulps: Update.
25234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25235
25236         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
25237
25238 2015-04-29  Roland McGrath  <roland@hack.frob.com>
25239
25240         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
25241         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
25242
25243         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
25244         (euidaccess, eaccess): Define as weak aliases.
25245
25246         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
25247         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
25248         but __suseconds_t is often 'long int' so some sources assume that
25249         type is being used (e.g. they use %ld to print tv_usec).
25250
25251 2015-04-29  Florian Weimer  <fweimer@redhat.com>
25252
25253         [BZ #18007]
25254         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
25255         (CVE-2014-8121)
25256         * nss/tst-nss-getpwent.c: New file.
25257         * nss/Makefile (tests): Add new test.
25258
25259 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
25260
25261         [BZ #18346]
25262         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
25263         exponents less than 48 as cases where high part of mantissa needs
25264         examining to determine whether argument is integral.
25265         * math/libm-test.inc (round_test_data): Add more tests.
25266
25267 2015-04-28  Mark Wielaard  <mjw@redhat.com>
25268
25269         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
25270
25271 2015-04-27  David S. Miller  <davem@davemloft.net>
25272
25273         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
25274         __tls_get_addr.
25275         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25276
25277 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25278
25279         [BZ#18333]
25280         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
25281
25282 2015-04-27  Florian Weimer  <fweimer@redhat.com>
25283
25284         [BZ#18333]
25285         * time/tzset.c (parse_tzname): Return error on memory allocation
25286         failure.
25287         * test-skeleton.c (struct temp_name_list): Change type of name
25288         member to non-const.
25289         (add_temp_file): Create a copy of the file name.
25290         (delete_temp_files): Deallocate memory.
25291         (create_temp_file): Add comment.
25292
25293 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25294
25295         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
25296         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
25297
25298 2015-04-24  Roland McGrath  <roland@hack.frob.com>
25299
25300         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
25301         * sysdeps/arm/configure: Regenerated.
25302
25303 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25304
25305         [BZ #17715]
25306         * time/tzfile.c (__tzfile_read): Check for large values of
25307         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
25308         * time/tzset.c (__tzstring_len): New function, based on the old
25309         __tzstring function.
25310         (__tzstring): Call __tzstring_len.
25311         (parse_tzname): New helper function extracted from
25312         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
25313         the input string.
25314         (parse_offset): New helper function extracted from
25315         __tzset_parse_tz.  Replace switch with fallthrough with
25316         initialization before sscanf.
25317         (parse_rule): Likewise.
25318         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
25319         new-style function definition.
25320         * timezone/Makefile (tests): Add tst-tzset.
25321         (tst-tzset.out): Dependencies on time zone files.
25322         (tst-tzset-ENV): Set TZDIR.
25323         (testdata/XT%): Copy crafted time zone files.
25324         * timezone/README: Mention crafted time zone files.
25325         * timezone/testdata/XT1, timezone/testdata/XT2,
25326         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
25327         files.
25328         * timezone/tst-tzset.c: New test.
25329
25330 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25331
25332         * Makeconfig (+gccwarn): Remove -Winline.
25333
25334 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25335
25336         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
25337
25338 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25339
25340         * NEWS: Mention sysconf() cache information support for s390.
25341         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
25342
25343 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
25344
25345         * math/k_casinh.c (__kernel_casinh): Use __copysign.
25346         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
25347         (__nearbyint): Likewise.
25348         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
25349         (copysignl): Likewise.
25350
25351 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
25352
25353         [BZ #18287]
25354         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
25355         based on padding.  (CVE-2015-1781)
25356
25357 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25358
25359         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
25360         libc-vdso.h.
25361         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
25362         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
25363         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
25364         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
25365         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
25366         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
25367         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
25368         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
25369         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
25370         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
25371         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
25372         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25373         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
25374         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
25375         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
25376         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
25377         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
25378         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
25379         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
25380         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
25381         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
25382         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
25383         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
25384
25385 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25386
25387         * stdlib/setenv.c (__add_to_environ):
25388         Dump core quickly if setenv (..., NULL, ...) is called.
25389         This time, do it the right way, and pacify GCC with a pragma.
25390
25391 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25392
25393         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
25394         IMAP->l_prev cannot be null, and #if out the code for the contrary
25395         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
25396         believe that NS (&_dl_ns[NSID]) could point outside the array.
25397
25398         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
25399         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
25400         before using NSID as an index.
25401
25402 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
25403
25404         [BZ #17825]
25405         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
25406         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
25407         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
25408
25409 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25410
25411         Add preliminary port to Google Native Client on ARM.
25412         * abi-tags (.*-.*-nacl.*): New entry.
25413         * sysdeps/arm/nacl: New directory.
25414         * sysdeps/nacl: New directory.
25415
25416 2015-04-16  David S. Miller  <davem@davemloft.net>
25417
25418         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
25419         lowlevellock-futex.h
25420
25421 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
25422
25423         * sysdeps/tile/configure.ac: New file.
25424         * sysdeps/tile/configure: Regenerated.
25425
25426 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25427
25428         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
25429         conditionals for weak_alias and libc_hidden_weak.
25430         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
25431         libc_hidden_weak and weak_alias.
25432         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
25433         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
25434         and weak_alias for static one.
25435
25436 2015-04-15  David S. Miller  <davem@davemloft.net>
25437
25438         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
25439
25440 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25441
25442         [BZ #18206]
25443         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
25444           Use signed comparision instead of substraction to avoid
25445           overflow bug.
25446         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
25447           Take the sign of ret.
25448         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
25449           Do not expect precise return values. Only the sign matters.
25450         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
25451         * wcsmbs/test-wcsncmp.c: New File.
25452         * string/test-strncmp.c: Add wcsncmp support.
25453
25454 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25455
25456         [BZ #6792]
25457         * math/w_log1p.c: New file.
25458         * math/w_log1pf.c: Likewise.
25459         * math/w_log1pl.c: Likewise.
25460         * math/Makefile (libm-calls): Add w_log1p.
25461         * math/s_log1pl.c (log1pl): Remove weak_alias.
25462         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
25463         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
25464         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
25465         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
25466         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
25467         [NO_LONG_DOUBLE] (log1pl): Likewise.
25468         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
25469         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
25470         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
25471         (log1p): Remove long_double_symbol.
25472         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
25473         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
25474         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
25475         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
25476         remove weak_alias for corresponding log1p function.
25477         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
25478         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
25479         * sysdeps/ia64/fpu/w_log1p.c: New file.
25480         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
25481         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
25482         * math/libm-test.inc (log1p_test_data): Add errno expectations.
25483
25484 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
25485
25486         [BZ #18247]
25487         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
25488         decimal exponent by 1.
25489         * stdlib/tst-strtod-round-data: Add more tests.
25490         * stdlib/tst-strtod-round.c (tests): Regenerated.
25491
25492 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
25493
25494         * math/auto-libm-test-in: Add more tests of clog and clog10.
25495         * math/auto-libm-test-out: Regenerated.
25496         * sysdeps/i386/fpu/libm-test-ulps: Update.
25497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25498
25499 2015-04-09  Roland McGrath  <roland@hack.frob.com>
25500
25501         * Makeconfig (module-cppflags): Exclude all .v.i files.
25502         (skip-module-cppflags): Variable removed.
25503
25504         * configure.ac (libc_config_ok): Initialize before reading
25505         preconfigure scripts, not after.
25506         * configure: Regenerated.
25507
25508         * test-skeleton.c (TIMEOUT): Move #define to top level.
25509         (main): Grok environment variable TEST_DIRECT.  If set, print
25510         test expectation details into that file and then behave as if
25511         given --direct.
25512
25513 2015-04-09  Florian Weimer  <fweimer@redhat.com>
25514
25515         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
25516         warning on 32-bit.
25517
25518 2015-04-08  David S. Miller  <davem@davemloft.net>
25519
25520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25521
25522 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25523
25524         * math/auto-libm-test-in: Add more tests of atanh.
25525         * math/auto-libm-test-out: Regenerated.
25526         * sysdeps/i386/fpu/libm-test-ulps: Update.
25527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25528
25529         * math/auto-libm-test-in: Add more tests of atan.
25530         * math/auto-libm-test-out: Regenerated.
25531         * sysdeps/i386/fpu/libm-test-ulps: Update.
25532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25533
25534 2015-04-08  Florian Weimer  <fweimer@redhat.com>
25535
25536         * elf/pldd.c (main): Rewrite to use struct
25537         scratch_buffer instead of extend_alloca.
25538         * elf/pldd-xx.c (find_maps): Likewise.
25539         * grp/initgroups.c: Include <scratch_buffer.h> instead of
25540         <alloca.h>.
25541         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
25542         scratch_buffer instead of extend_alloca.
25543         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
25544         grp/compat-initgroups.c.
25545         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
25546         Rewrite to use struct scratch_buffer instead of extend_alloca.
25547         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
25548         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25549
25550 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25551
25552         * math/auto-libm-test-in: Add more tests of cbrt.
25553         * math/auto-libm-test-out: Regenerated.
25554         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25555
25556         * math/auto-libm-test-in: Add more tests of cabs.
25557         * math/auto-libm-test-out: Regenerated.
25558         * sysdeps/i386/fpu/libm-test-ulps: Update.
25559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25560
25561         [BZ #18210]
25562         [BZ #18211]
25563         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25564         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25565         computations.
25566         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25567         clog10.
25568         * math/auto-libm-test-out: Regenerated.
25569         * sysdeps/i386/fpu/libm-test-ulps: Update.
25570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25571
25572         [BZ #18197]
25573         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25574         (atan): Set FE_TONEAREST mode for internal computations.
25575         * math/auto-libm-test-in: Add more tests of atan.
25576         * math/auto-libm-test-out: Regenerated.
25577
25578 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25579
25580         [BZ #17930]
25581         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25582
25583 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25584
25585         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25586
25587 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25588
25589         * include/scratch_buffer.h: New file.
25590         * malloc/scratch_buffer_grow.c: Likewise.
25591         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25592         * malloc/scratch_buffer_set_array_size.c: Likewise.
25593         * malloc/tst-scratch_buffer.c: Likewise.
25594         * malloc/Makefile (routines): Add scratch_buffer_grow.
25595         (tests): Add test case.
25596         * malloc/Versions (GLIBC_PRIVATE): Export
25597         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25598         __libc_scratch_buffer_set_array_size.
25599
25600 2015-04-06  Richard Henderson  <rth@redhat.com>
25601
25602         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25603         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25604
25605         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25606         unsigned int before printing.
25607
25608 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25609
25610         [BZ #17596]
25611         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25612         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25613
25614 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25615
25616         * include/libc-internal.h (libc_max_align_t): Define.
25617
25618 2015-04-02  Andreas Schwab  <schwab@suse.de>
25619
25620         [BZ #16850]
25621         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25622
25623 2015-04-02  Mel Gorman  <mgorman@suse.de>
25624
25625         [BZ #17195]
25626         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25627         as well as the main arena.
25628
25629 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25630
25631         [BZ #18185]
25632         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25633         sharing L2 cache to 2 for Silvermont/Knights Landing.
25634
25635 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25636
25637         [BZ #17711]
25638         * config.make.in (have-protected-data): New.
25639         * configure.ac: Check linker support for protected data symbol.
25640         * configure: Regenerated.
25641         * elf/Makefile (modules-names): Add tst-protected1moda and
25642         tst-protected1modb if $(have-protected-data) is yes.
25643         (tests): Add tst-protected1a and tst-protected1b if
25644         $(have-protected-data) is yes.
25645         ($(objpfx)tst-protected1a): New.
25646         ($(objpfx)tst-protected1b): Likewise.
25647         (tst-protected1modb.so-no-z-defs): Likewise.
25648         * elf/tst-protected1a.c: New file.
25649         * elf/tst-protected1b.c: Likewise.
25650         * elf/tst-protected1mod.h: Likewise.
25651         * elf/tst-protected1moda.c: Likewise.
25652         * elf/tst-protected1modb.c: Likewise.
25653
25654 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25655
25656         [BZ #17711]
25657         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25658         indicates it is called from do_lookup_x on relocation against
25659         protected data, skip the data definion in the executable from
25660         copy reloc.
25661         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25662         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25663         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25664         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25665         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25666         otherwise to 0.
25667         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25668         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25669         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25670         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25671         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25672         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25673
25674 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25675
25676         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25677         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25678
25679 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25680
25681         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25682         THREAD_SETMEM_NC.
25683         * sysdeps/x86_64/nptl/tls.h: Ditto.
25684
25685 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25686
25687         * dlfcn/tststatic.c (main): Converted to ...
25688         (do_test): ... this.
25689         (TEST_FUNCTION): New macro.
25690         Include test-skeleton.c.
25691
25692 2015-03-26  Alan Modra  <amodra@gmail.com>
25693
25694         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25695         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25696         zero for undefined weak.
25697         (elf_machine_plt_conflict): Similarly.
25698
25699 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25700
25701         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25702         atanh.
25703         * math/auto-libm-test-out: Regenerated.
25704         * sysdeps/i386/fpu/libm-test-ulps: Update.
25705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25706
25707         * math/auto-libm-test-in: Add another test of asin.
25708         * math/auto-libm-test-out: Regenerated.
25709         * sysdeps/i386/fpu/libm-test-ulps: Update.
25710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25711
25712         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25713         Remove macro.
25714         (LLL_EBX_REG): Likewise.
25715         (LLL_ENTER_KERNEL): Likewise.
25716
25717         * math/auto-libm-test-in: Add more tests of asin.
25718         * math/auto-libm-test-out: Regenerated.
25719         * sysdeps/i386/fpu/libm-test-ulps: Update.
25720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25721
25722         [BZ #18138]
25723         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25724         libc_do_syscall_args): New structure.
25725         (INTERNAL_SYSCALL_MAIN_0): New macro.
25726         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25727         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25728         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25729         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25730         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25731         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25732         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25733         Replace conditional definitions by conditional definitions of ....
25734         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25735         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25736         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25737         (libpthread-sysdep_routines): Add libc-do-syscall.
25738         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25739         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25740         to __NR_futex not 240.
25741
25742 2015-03-25  Alan Modra  <amodra@gmail.com>
25743
25744         * NEWS: Advertise TLS optimization.
25745         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25746         (DT_PPC_NUM): Increment.
25747         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25748         (CHECK_STATIC_TLS): Use here.
25749         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25750         TLS descriptors.
25751         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25752         * sysdeps/powerpc/dl-tls.c: New file.
25753         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25754         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25755         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25756         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25760
25761 2015-03-25  Alan Modra  <amodra@gmail.com>
25762
25763         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25764         for overlapping .opd entries" to "support...".
25765         * sysdeps/powerpc/powerpc64/configure: Regenerate
25766
25767 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25768
25769         * math/auto-libm-test-in: Add more tests of acos.
25770         * math/auto-libm-test-out: Regenerated.
25771         * sysdeps/i386/fpu/libm-test-ulps: Update.
25772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25773
25774         * math/auto-libm-test-in: Add more tests of expm1.
25775         * math/auto-libm-test-out: Regenerated.
25776         * sysdeps/i386/fpu/libm-test-ulps: Update.
25777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25778
25779 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25780
25781         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25782         * math/auto-libm-test-out: Regenerated.
25783         * sysdeps/i386/fpu/libm-test-ulps: Update.
25784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25785
25786         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25788
25789         * math/auto-libm-test-in: Add more tests of log2.
25790         * math/auto-libm-test-out: Regenerated.
25791         * sysdeps/i386/fpu/libm-test-ulps: Update.
25792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25793
25794 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25795
25796         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25797         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25798         _IO_IS_APPENDING bit in READ_WRITE instead.
25799
25800 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25801
25802         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25803         (__determine_cpumask_size): Replace extend_alloca with a
25804         variable-length array.  Do not treat res == 0 as an error.
25805
25806 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25807
25808         [BZ #18100]
25809         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25810         and integer overflow.
25811         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25812         (main): Add integer overflow tests.
25813         * manual/pattern.texi (Calling Wordexp): Document additional use
25814         for WRDE_SYNTAX.
25815
25816 2015-03-23  Alan Modra  <amodra@gmail.com>
25817
25818         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25819         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25820         and false branch of conditional.
25821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25822         Likewise.
25823
25824 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25825
25826         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25827         libc-modules.h
25828         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25829         unused declaration of _hurd_intr_rpc_msg_in_trap.
25830         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25831         defined instead of whether it is non-zero.
25832         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25833         input constraint instead of both input and output constraint.  Use ecx
25834         clobber instead of %ecx.
25835         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25836         mutex_unlock): Use a statement expression instead of an expression list.
25837         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25838         type to vm_size_t instead of vm_address_t.
25839         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25840         defined instead of whether it is non-zero.
25841         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25842         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25843         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25844         comparisons with mapaddr.
25845         * nscd/nscd-client.h: Include <time.h>.
25846         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25847         9th parameter to __vm_region instead of int.
25848         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25849         * scripts/check-local-headers.sh (exclude): Add device/,
25850         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25851         cthreads.h.
25852
25853 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25854
25855         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25856         to account for alignment padding.
25857         * sysdeps/arm/memmove.S: Likewise.
25858
25859 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25860
25861         * sysdeps/unix/sysv/linux/generic/README: New file.
25862
25863 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25864
25865         [BZ #18138]
25866         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25867         (futex_abstimed_wait)
25868         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25869         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25870         of lll_futex_timed_wait.
25871
25872 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25873
25874         [BZ #17542]
25875         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25876
25877 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25878
25879         [BZ #17090]
25880         [BZ #17620]
25881         [BZ #17621]
25882         [BZ #17628]
25883         * NEWS: Update.
25884         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25885         entries with Static TLS too.  Skip entries past the end of the
25886         allocated DTV, from Alan Modra.
25887         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25888         Static TLS DTV entry set up from...
25889         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25890         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25891         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25892         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25893         for Static TLS.
25894         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25895         that the slot we find is associated with the given map before
25896         using its generation count.
25897         * nptl_db/db_info.c: Include ldsodefs.h.
25898         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25899         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25900         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25901         (link_map::l_tls_offset): New struct field.
25902         (dtv_t::counter): Likewise.
25903         (rtld_global): New struct.
25904         (_rtld_global): New rtld variable.
25905         (dl_tls_dtv_slotinfo_list): New rtld global field.
25906         (dtv_slotinfo_list): New struct.
25907         (dtv_slotinfo): Likewise.
25908         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25909         (td_lookup): Rename to...
25910         (td_mod_lookup): ... this.  Use new mod parameter instead of
25911         LIBPTHREAD_SO.
25912         * nptl_db/td_thr_tlsbase.c: Include link.h.
25913         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25914         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25915         addresses even if the DTV is out of date or missing them.
25916         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25917         index zero-length arrays.
25918         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25919         (td_lookup): Make it a macro implemented in terms of...
25920         (td_mod_lookup): ... this declaration.
25921         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25922         (DB_MAIN_VARIABLE): Likewise.
25923
25924 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25925
25926         [BZ #18134]
25927         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25928
25929 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25932
25933 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25934
25935         [BZ #18128]
25936         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25937         (atomic_add, atomic_increment_and_test)
25938         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25939
25940 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25941
25942         * stdlib/setenv.c (__add_to_environ):
25943         Dump core quickly if setenv (..., NULL, ...) is called.
25944
25945 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25946
25947         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25948         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25949         all the necessary asm magic in one place.
25950         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25951         using those.
25952
25953 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25954
25955         [BZ #14906]
25956         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25957         traced file mtime. Use consistent log message.
25958         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25959         (register_traced_file): Call install_watches. Always set mtime.
25960         (invalidate_cache): Iterate over all trace files. Call install_watches.
25961         (inotify_check_files): Don't inline. Handle watching parent
25962         directories and configuration file movement in and out.
25963         (handle_inotify_events): New function.
25964         (main_loop_poll): Call handle_inotify_events.
25965         (main_loop_epoll): Likewise.
25966         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25967         (struct traced_file): Use array of inotify fds. Add parent directory,
25968         and basename.
25969         (struct database_dyn): Remove unused file_mtime.
25970         (init_traced_file): New inline function.
25971         (define_traced_file): New macro.
25972         * nss/nss_db/db-init.c: Use define_traced_file.
25973         (_nss_db_init): Use init_traced_file.
25974         * nss/nss_files/files-init.c: Use define_traced_file.
25975         (_nss_files_init): Use init_traced_file.
25976
25977 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25978
25979         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25980         [_LIBC]: Do not include <stdlib.h>.
25981         [!_LIBC] (abort): Remove declaration.
25982         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25983         _FP_STATIC_ASSERT instead of conditionally calling abort.
25984         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25985         (_FP_EXTEND_CNAN): Likewise.
25986         (FP_TRUNC): Likewise.
25987         (__FP_CLZ): Likewise.
25988         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25989
25990 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25991
25992         * manual/string.texi (XPG basename): Fix prototype.
25993
25994 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25995
25996         [BZ #18080]
25997         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25998         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25999         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
26000         (__setcontext): Likewise.
26001         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
26002         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
26003         Call rt_sigprocmask syscall one time to set new signal mask
26004         and retrieve the current signal mask instead of two calls.
26005         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
26006         (__swapcontext): Likewise.
26007         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
26008         * stdlib/tst-setcontext2.c: New file.
26009
26010 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26011
26012         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
26013
26014 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
26015
26016         [BZ #18093]
26017         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
26018         the wrong size.
26019
26020 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
26021
26022         [BZ #18043]
26023         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
26024
26025 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26026
26027         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
26028         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
26029         Remove define.
26030         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
26031         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
26032         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
26033         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
26034         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
26035         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
26036         define.
26037         * nptl_db/td_symbol_list.c (td_lookup): Remove
26038         HAVE_ASM_GLOBAL_DOT_NAME code.
26039         * sysdeps/powerpc/powerpc64/configure.ac: Remove
26040         HAVE_ASM_GLOBAL_DOT_NAME check.
26041         * sysdeps/powerpc/powerpc64/configure: Regenerate.
26042         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
26043         (DOT_LABEL): Remove define.
26044         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
26045         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
26046         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
26047         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
26048         (__TLS_GET_ADDR): Likewise.
26049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
26050         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
26051
26052 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
26053
26054         [BZ #18111]
26055         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
26056         (_FPU_SETCW): Initialize cw from fpsr before storing.
26057         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
26058         (fesetexceptflag): Rewrite using fpu_control.h.
26059         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
26060
26061 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
26062
26063         [BZ #18110]
26064         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
26065         asms.
26066         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
26067
26068 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
26069
26070         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
26071         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
26072         abort.
26073         (_FP_FMA): Likewise.
26074         (_FP_DIV): Likewise.
26075
26076 2015-03-10  Roland McGrath  <roland@hack.frob.com>
26077
26078         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
26079         with 0 in that case.
26080         * Makefile (summarize-tests): New canned sequence, factored out of
26081         commands for targets tests and xtests.  Display summary lines that
26082         don't start with PASS: or XFAIL: rather than ones that do start with
26083         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
26084         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
26085         do start with ERROR: or FAIL:.
26086         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
26087         (except for [$(build-shared) = yes]).
26088         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
26089         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
26090         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
26091         * nptl/Makefile: Revert 2015-03-04 changes.
26092         [$(CXX) empty] (tests-unsupported): New variable.
26093         * debug/Makefile: Likewise.
26094
26095         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
26096         gnulib file.  Replace __attribute with __attribute__ throughout.
26097
26098 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
26099
26100         * sysdeps/hppa/fpu/libm-test-ulps: Update.
26101
26102 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
26103
26104         [BZ #18104]
26105         * math/auto-libm-test-in: Add another test of pow.
26106         * math/auto-libm-test-out: Regenerated.
26107
26108 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26109
26110         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
26111         $(config-cflags-nofma).
26112
26113 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
26114
26115         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
26116         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
26117         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
26118         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
26119         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
26120         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
26121         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
26122         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
26123         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
26124         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
26125         Add comment on closing #endif.
26126
26127 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26128
26129         * posix/wordexp.c (CHAR_IN_SET): New macro.
26130         (parse_param): Use it.
26131
26132 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26133
26134         * sysdeps/powerpc/fpu/libm-test-ulps: update.
26135
26136 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26137
26138         [BZ #18043]
26139         * posix/wordexp.c (parse_param): Fix buffer overflow.
26140         * posix/wordexp-test.c (test_case): Add test case.
26141
26142 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26143
26144         [BZ #18042]
26145         * posix/wordexp.c (parse_backtick): Fix off-by-one.
26146         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
26147
26148 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26149
26150         [BZ #18043]
26151         * posix/wordexp-test.c (test_case): Add test for BZ #18043
26152         (do_bz18043): Delete.
26153         (at_page_end): New.
26154         (testit): Refactor to have words at the edge of unreadable page.
26155
26156 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
26157
26158         [BZ #16734]
26159         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
26160         Cleanup read-only streams as well.
26161         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
26162
26163 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26164
26165         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
26166         <bits/libc-lockP.h>
26167
26168 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
26169
26170         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
26171         on [__KERNEL__].
26172         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
26173         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
26174         * soft-fp/op-common.h (_FP_DECL): Likewise.
26175
26176 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
26177
26178         * elf/ifuncdep2.c (global): Replace
26179         __attribute__((visibility("protected"))) with
26180         asm (".protected global").
26181         * elf/ifuncmod1.c (global): Likewise.
26182         * elf/ifuncmod5.c (global): Likewise.
26183
26184 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
26185
26186         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
26187         <asm/sfp-machine.h> instead of <sfp-machine.h>.
26188
26189 2015-03-06  Roland McGrath  <roland@hack.frob.com>
26190
26191         * manual/install.texi (Configuring and compiling):
26192         Document test-wrapper-env-only.
26193         * INSTALL: Regenerated.
26194
26195 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26196
26197         [BZ #18043]
26198         * posix/wordexp.c (parse_param): Fix buffer overflow.
26199         * posix/wordexp-test.c (do_bz18043): Add test case.
26200
26201 2015-03-06  Vincent Bernat  <vincent@bernat.im>
26202
26203         * time/tst-strptime2.c (do_test): Ensure failing tests are
26204         reported correctly.
26205         * time/tst-strptime3.c (do_test): Likewise.
26206
26207 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
26208
26209         Fix aio_error thread-safety.
26210         * sysdeps/pthread/aio_error.c: New file
26211         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
26212         synchronization.
26213
26214 2015-03-06  Florian Weimer  <fweimer@redhat.com>
26215
26216         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
26217         (group_number, vfprintf): Use it.
26218         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
26219         (JUMP, REF): Use it.
26220         (WORK_BUFFER_SIZE): New enum constant.
26221         (process_arg, vfprintf): Use it.
26222
26223 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
26224
26225         * manual/errno.texi (Error Messages): Complete example function
26226         by adding missing #define.
26227         (program_invocation_name): Add statement indicating GNU
26228         extension and reference which header file declares the variable.
26229         (program_invocation_short_name): Likewise.
26230
26231 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
26232
26233         * manual/errno.texi (Error Messages): Delete strerror ISO C89
26234         compatibility note.
26235
26236 2015-03-05  Roland McGrath  <roland@hack.frob.com>
26237
26238         * Makeconfig (test-wrapper-env-only): New variable.
26239         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
26240         then use that with $(test-wrapper-env-only) rather than using
26241         $(test-wrapper-env) $(run-program-env) $($*-ENV).
26242
26243 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
26244
26245         [BZ #18082]
26246         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
26247         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
26248         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
26249         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
26250         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
26251         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
26252         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
26253         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
26254         Likewise.
26255         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
26256         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
26257         Likewise.
26258         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
26259         Likewise.
26260         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
26261         Likewise.
26262         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
26263         Likewise.
26264         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
26265         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
26266         Likewise.
26267         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
26268         Likewise.
26269         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
26270         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
26271
26272 2015-03-04  Roland McGrath  <roland@hack.frob.com>
26273
26274         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
26275         (ETH_ALEN): New macro.
26276         (struct ether_addr): Use it for length of ether_addr_octet.
26277
26278         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
26279         (setdb): Don't call __nss_configure_lookup for "rpc".
26280         (do_test): Don't call test_rpc.
26281         (output_rpcent, test_rpc): Functions moved ...
26282         * sunrpc/test-rpcent.c: ... to this new file.
26283         * sunrpc/Makefile (tests): Add it.
26284
26285         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
26286         __xpg_sigpause.
26287         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
26288         * nptl/tst-signal6.c: Likewise.
26289         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
26290         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
26291
26292         * configure.ac (libc_cv_cxx_link_ok): New check.
26293         Reset CXX to empty if it fails to link.
26294         * configure: Regenerated.
26295         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
26296         bug-atexit3-lib only if $(CXX) is nonempty.
26297         * nptl/Makefile (tests): Likewise for tst-cancel24.
26298         (tests, tests-static): Likewise for tst-cancel24-static.
26299         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
26300         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
26301         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
26302         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
26303
26304 2015-03-04  Andreas Schwab  <schwab@suse.de>
26305
26306         [BZ #17631]
26307         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
26308         for non-GCC compilers.
26309         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
26310         Likewise.
26311
26312 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26313
26314         [BZ #17776]
26315         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
26316         integer before bitwise and assembly operations.
26317         (feclearexcept): Likewise.
26318         * math/test-fenvinline.c: New file.
26319         * math/Makefile: Add test-fenvinline test.
26320
26321 2015-03-03  Alan Modra  <amodra@gmail.com>
26322
26323         [BZ #16512]
26324         * scripts/localplt.awk: Strip off symbol version.
26325         * NEWS: Mention bug fix.
26326
26327 2015-03-02  Roland McGrath  <roland@hack.frob.com>
26328
26329         * sysdeps/pthread/timer_routines.c
26330         (timer_free_list, thread_free_list, thread_active_list): Make static.
26331
26332 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
26333
26334         [BZ #17779]
26335         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26336         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26337         Undefine.
26338         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26339         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26340         Likewise.
26341         * sysdeps/unix/sysv/linux/sh/kernel-features.h
26342         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26343         Likewise.
26344
26345 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26346
26347         [BZ #18036]
26348         * posix/fnmatch_loop.c (END): Detect invalid pattern.
26349         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
26350
26351 2015-03-02  Andreas Schwab  <schwab@suse.de>
26352
26353         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
26354         variable name.
26355
26356 2015-03-02  Florian Weimer  <fweimer@redhat.com>
26357
26358         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
26359         Return error status.
26360
26361 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
26362
26363         [BZ #15969]
26364         * locale/findlocale.c (_nl_find_locale): Introduce const
26365         version of loc_name and drop unsafe type casts.
26366
26367 2015-02-27  Roland McGrath  <roland@hack.frob.com>
26368
26369         * dlfcn/tststatic2.c (main): Converted to ...
26370         (do_test): ... this.
26371         (TEST_FUNCTION): New macro.
26372         Include test-skeleton.c.
26373
26374 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26375
26376         [BZ #17711]
26377         * elf/Makefile (tests): Add vismain only if PIE is enabled.
26378         (tests-pie): Add vismain.
26379         (CFLAGS-vismain.c): New.
26380         * elf/vismain.c: Add comments for PIE requirement.
26381
26382 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26383
26384         [BZ #18046]
26385         [BZ #18047]
26386         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
26387         0x1p-56L as threshold for just returning the argument.
26388         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
26389         0x1p-32L as threshold for just returning the argument.
26390         * math/auto-libm-test-in: Add more tests of atanh.
26391         * math/auto-libm-test-out: Regenerated.
26392         * sysdeps/i386/fpu/libm-test-ulps: Update.
26393         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
26394
26395 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26396
26397         * string/bcopy.c (bcopy): Call memmove for performance.
26398
26399 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26400
26401         * string/bzero.c (__bzero): Call memset for performance.
26402
26403 2015-02-27  John David Anglin  <dave.anglin@bell.net>
26404
26405         [BZ #18068]
26406         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
26407         to 00100000.
26408
26409 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26410
26411         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
26412
26413 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26414
26415         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
26416         (__kernel_standard): Use CSTR macro when setting exc.name.
26417         * sysdeps/ieee754/Makefile [$(subdir) = math]
26418         (CFLAGS-k_standard.c): Remove variable.
26419
26420         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
26421         setting p and q from "else if" to "else".
26422         (qzero): Likewise.
26423         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
26424         (qone): Likewise.
26425         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
26426         (qzerof): Likewise.
26427         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
26428         (qonef): Likewise.
26429         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
26430         (qzero): Likewise.
26431         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
26432         (qone): Likewise.
26433
26434         [BZ #18038]
26435         [BZ #18039]
26436         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
26437         return pi/2 for arguments below 0x1p-113L.
26438         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
26439         return pi/2 for arguments below 0x1p-106L.
26440         * math/auto-libm-test-in: Add more tests of acos.
26441         * math/auto-libm-test-out: Regenerated.
26442
26443         [BZ #16351]
26444         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
26445         (MO): New macro.
26446         (__ieee754_asin): Force underflow exception for results with small
26447         absolute value.
26448         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
26449         (MO): New macro.
26450         (__ieee754_asinf): Force underflow exception for results with
26451         small absolute value.
26452         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
26453         (__ieee754_asin): Force underflow exception for results with small
26454         absolute value.
26455         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
26456         (__ieee754_asinf): Force underflow exception for results with
26457         small absolute value.
26458         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
26459         (__ieee754_asinl): Force underflow exception for results with
26460         small absolute value.
26461         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
26462         (__ieee754_asinl): Force underflow exception for results with
26463         small absolute value.
26464         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
26465         (__ieee754_asinl): Force underflow exception for results with
26466         small absolute value.
26467         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
26468         Include <math.h>.
26469         * math/auto-libm-test-in: Do not mark underflow exceptions as
26470         possibly missing for bug 16351.
26471         * math/auto-libm-test-out: Regenerated.
26472
26473         [BZ #18030]
26474         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
26475         of power of 2 down when low part has opposite sign.
26476         * math/libm-test.inc (logb_test_data): Add more tests.
26477
26478 2015-02-26  Andreas Schwab  <schwab@suse.de>
26479
26480         [BZ #18032]
26481         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
26482         over collating symbol inside a bracket expression.  Minor cleanup.
26483         * posix/tst-fnmatch3.c (do_test): Add test case.
26484
26485 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26486
26487         [BZ #18029]
26488         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
26489         Adjust exponent of power of 2 down when low part has opposite
26490         sign.
26491         * math/libm-test.inc (ilogb_test_data): Add more tests.
26492
26493 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
26494
26495         [BZ #15969]
26496         * locale/findlocale.c (_nl_find_locale): Fix constness error in
26497         the previous change.
26498
26499         [BZ #15969]
26500         * locale/findlocale.c (_nl_find_locale): Retry archive search
26501         after alias expansion.
26502
26503 2015-02-25  Roland McGrath  <roland@hack.frob.com>
26504
26505         * iconv/tst-iconv3.c (main): Converted to ...
26506         (do_test): ... this.
26507         (TEST_FUNCTION): New macro.
26508         Include test-skeleton.c.
26509
26510         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
26511         (convert): Make function static.
26512         (test_unalign): Likewise.  Add const to argument pointee types.
26513         (main): Replace with static function do_test.
26514         Print "Succeeded." only if RET is zero.
26515         (TEST_FUNCTION): New macro.
26516         Include test-skeleton.c.
26517
26518         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
26519         returns a null pointer.
26520
26521 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26522
26523         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
26524         to __memcpy_ppc only for static builds.
26525
26526 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
26527
26528         [BZ #18020]
26529         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
26530         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
26531         * math/auto-libm-test-in: Add more tests of asinh.
26532         * math/auto-libm-test-out: Regenerated.
26533         * sysdeps/i386/fpu/libm-test-ulps: Update.
26534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26535
26536 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
26537
26538         [BZ #15850]
26539         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
26540         and ip6_mtuinfo definitions here.
26541         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
26542         in this define too.  Update comment.
26543
26544 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
26545
26546         * elf/sprof.c (load_shobj): Tweak error message to match others.
26547
26548 2015-02-24  Kevin Easton  <kevin@guarana.org>
26549
26550         [BZ #16145] (partial fix)
26551         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26552         to reduce lock contention.
26553
26554 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26555
26556         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26557         (struct timex): Update time comment.
26558         (ADJ_SETOFFSET): Define.
26559
26560 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26561
26562         [BZ #18019]
26563         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26564         2**56 not 2**28 as threshold for log (2x) formula.
26565         * math/auto-libm-test-in: Add more tests of acosh.
26566         * math/auto-libm-test-out: Regenerated.
26567         * sysdeps/i386/fpu/libm-test-ulps: Update.
26568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26569
26570 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26571
26572         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26573         parenthesis around the buf assignment.
26574         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26575
26576 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26577
26578         [BZ #16783]
26579         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26580         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26581         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26582         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26583         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26584         * math/libm-test.inc (scalb_test_data): Add more tests.
26585
26586 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26587
26588         [BZ #17916]
26589         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26590         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26591
26592 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26593
26594         [BZ #17523]
26595         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26596         * io/bits/fcntl2.h (open): Use it.
26597         (openat): Likewise.
26598         * io/open.c (__libc_open): Likewise.
26599         * io/open64.c (__libc_open64): Likewise.
26600         * io/open64_2.c (__open64_2): Likewise.
26601         * io/open_2.c (__open_2): Likewise.
26602         * io/openat.c (__openat): Likewise.
26603         * io/openat64.c (__openat64): Likewise.
26604         * io/openat64_2.c (__openat64_2): Likewise.
26605         * io/openat_2.c (__openat_2): Likewise.
26606         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26607         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26608         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26609         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26610         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26611         (__open_nocancel): Likewise.
26612         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26613         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26614         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26615
26616 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26617
26618         [BZ #14841]
26619         * resolv/gethnamaddr.c (getanswer): Skip logging if
26620         RES_USE_DNSSEC is set.
26621         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26622
26623 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26624
26625         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26626
26627 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26628
26629         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26630         201304L, for Unicode 7.
26631
26632 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26633
26634         [BZ #17836]
26635         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26636         shared library.  Add gmon-start.os otherwise.
26637         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26638         $(objpfx)gmon-start.os if builing shared library.
26639         ($(objpfx)g$(static-start-installed-name)): Likewise.
26640
26641 2015-02-23  Andreas Schwab  <schwab@suse.de>
26642
26643         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26644
26645 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26646
26647         [BZ #17269]
26648         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26649         (enlarge_userbuf): Likewise.
26650
26651 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26652
26653         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26654         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26655         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26656         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26657
26658 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26659
26660         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26661         expression inside statement expression.
26662
26663 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26664
26665         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26666         <sysdeps/nptl/lowlevellock.h> and remove macros and
26667         functions that are now defined there.
26668         (SYS_futex): Remove.
26669         (lll_compare_and_swap): Remove.
26670         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26671
26672 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26673
26674         [BZ #17999]
26675         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26676         instead of scandirat.
26677         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26678         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26679         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26680         __scandirat.
26681         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26682         (__scandirat): Declare.  Use libc_hidden_proto.
26683         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26684         Remove variable.
26685         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26686
26687 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26688
26689         [BZ #15319]
26690         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26691         (MO): New macro.
26692         (__ieee754_atan2): For results with small absolute value, force
26693         underflow exception and remove excess range and precision from
26694         return value.
26695         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26696         (MO): New macro.
26697         (__ieee754_atan2f): For results with small absolute value, force
26698         underflow exception and remove excess range and precision from
26699         return value.
26700         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26701         (MO): New macro.
26702         (__atan): For results with small absolute value, force underflow
26703         exception and remove excess range and precision from return value.
26704         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26705         (MO): New macro.
26706         (__atanf): For results with small absolute value, force underflow
26707         exception and remove excess range and precision from return value.
26708         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26709         <math.h>.
26710         (__ieee754_atan2): Force underflow exception for results with
26711         small absolute value.
26712         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26713         <math_private.h>.
26714         (atan): Force underflow exception for results with small absolute
26715         value.
26716         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26717         (__atanf): Force underflow exception for results with small
26718         absolute value.
26719         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26720         <math.h>.
26721         (__atanl): Force underflow exception for results with small
26722         absolute value.
26723         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26724         (__atanl): Force underflow exception for results with small
26725         absolute value.
26726         * sysdeps/x86/fpu/bits/mathinline.h
26727         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26728         (__ieee754_atan2): Only define inline for long double.
26729         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26730         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26731         * math/auto-libm-test-in: Do not mark underflow exceptions as
26732         possibly missing for bug 15319.  Add more tests of atan2.
26733         * math/auto-libm-test-out: Regenerated.
26734         * math/libm-test.inc (casin_test_data): Do not mark underflow
26735         exceptions as possibly missing for bug 15319.
26736         (casinh_test_data): Likewise.
26737         * sysdeps/i386/fpu/libm-test-ulps: Update.
26738
26739 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26740
26741         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26742         * sysdeps/mips/bits/endian.h: Fix comments.
26743
26744 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26745
26746         [BZ #17996]
26747         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26748         (hdestroy_r): Likewise.
26749         (hsearch_r): Likewise.
26750         (__hcreate_r): Declare and use libc_hidden_proto.
26751         (__hdestroy_r): Likewise.
26752         (__hsearch_r): Likewise.
26753         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26754         (hcreate): Call __hcreate_r instead of hcreate_r.
26755         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26756         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26757         as weak alias of __hcreate_r.
26758         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26759         __hdestroy_r.
26760         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26761         __hsearch_r.
26762         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26763         Remove variable.
26764         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26765         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26766         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26767         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26768
26769 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26770
26771         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26772         arena_lock into a single arena_get.
26773
26774 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26775
26776         * dl-reloc.c: Inlucde libc-internal.h.
26777         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26778         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26779         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26780         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26781         (grow_heap): Likewise.
26782         * malloc/malloc.c: Include libc-internal.h.
26783         (do_check_malloc): Call powerof2.
26784         (sysmalloc): Use pagesize. Call ALIGN_UP.
26785         (systrim): Use pagesize.
26786         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26787         (__libc_valloc): Use pagesize.
26788         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26789
26790 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26791
26792         [BZ #17991]
26793         * include/sys/resource.h (__getrlimit64): Declare.  Use
26794         libc_hidden_proto.
26795         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26796         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26797         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26798         getrlimit64.
26799         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26800         __getrlimit64.
26801         [!getrlimit64] (getrlimit64): Define as weak alias of
26802         __getrlimit64.  Use libc_hidden_weak.
26803         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26804         using __getrlimit64 not __new_getrlimit64.
26805         (__GI_getrlimit64): Likewise.
26806         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26807         Likewise.
26808         (__GI_getrlimit64): Likewise.
26809         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26811         (getrlimit): Add __getrlimit64 alias.
26812         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26813         Likewise.
26814         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26815         Remove variable.
26816         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26817         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26818
26819 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26820
26821         * libio/fileops.c: Add missing sys/mman.h
26822         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26823
26824 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26825
26826         * manual/math.texi (Errors in Math Functions): Clarify goals
26827         regarding inexact and underflow exceptions.
26828
26829 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26830
26831         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26832         * sysdeps/mips/memset.S: Ditto.
26833
26834 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26835
26836         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26837
26838 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26839
26840         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26841         (__v1longjmp): Remove versioned symbol.
26842         (__v1siglongjmp): Remove alias and versioned symbol.
26843         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26844         (__v2siglongjmp): Likewise.
26845
26846 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26847
26848         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26849
26850 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26851
26852         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26853
26854 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26855
26856         [BZ #17987]
26857         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26858         zero result does not depend on the sign resulting from
26859         subtraction.
26860         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26861         Likewise.
26862         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26863         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26864         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26865         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26866         * math/libm-test.inc (remquo_test_data): Add more tests.
26867
26868 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26869
26870         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26871         Problem reported by J William Piggott.
26872
26873 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26874
26875         [BZ #17978]
26876         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26877         products 4 * y and 2 * y where those would overflow.
26878         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26879         Likewise.
26880         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26881         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26882         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26883         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26884         * math/libm-test.inc (remquo_test_data): Add more tests.
26885
26886         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26887
26888         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26889         [defined _COMPILING_NEWLIB].
26890         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26891         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26892
26893         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26894         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26895
26896 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26897
26898         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26899         acquired.
26900
26901 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26902
26903         [BZ #17792]
26904         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26905         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26906         HOST_STACK_END_ADDR): Likewise.
26907
26908 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26909
26910         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26911         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26912         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26913
26914 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26915
26916         * sysdeps/generic/c++-types.data: New file.
26917         * sysdeps/generic/ld.abilist: New file.
26918         * sysdeps/generic/libBrokenLocale.abilist: New file.
26919         * sysdeps/generic/libanl.abilist: New file.
26920         * sysdeps/generic/libc.abilist: New file.
26921         * sysdeps/generic/libcrypt.abilist: New file.
26922         * sysdeps/generic/libdl.abilist: New file.
26923         * sysdeps/generic/libm.abilist: New file.
26924         * sysdeps/generic/libpthread.abilist: New file.
26925         * sysdeps/generic/libresolv.abilist: New file.
26926         * sysdeps/generic/librt.abilist: New file.
26927
26928 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26929
26930         [BZ #17569]
26931         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26932         Compute absolute value of x as modified by fmod, not original
26933         value of x.
26934         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26935         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26936         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26937         RUN_TEST_ffI_f1_mod8.
26938         (remquo_test_data): Add more tests.
26939
26940 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26941
26942         * sysdeps/init_array/pt-crti.S: New file.
26943
26944 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26945
26946         [BZ #17967]
26947         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26948         __builtin_fmaf instead of relying on contraction of a * b + c.
26949
26950 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26951
26952         [BZ #17969]
26953         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26954         node.
26955
26956 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26957
26958         [BZ #17964]
26959         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26960         __builtin_fma instead of relying on contraction of a * b + c.
26961
26962 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26963
26964         * Makeconfig (ASFLAGS): Add -Werror=undef.
26965         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26966         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26967         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26968
26969         * Makeconfig (after-link): New variable.
26970         (+link-pie, +link-pie-tests): Use it.
26971         (+link-static, +link-static-tests): Likewise.
26972         (+link, +link-tests): Likewise.
26973         * Makerules (build-module, build-module-asneeded): Likewise.
26974         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26975         Likewise.
26976         * elf/Makefile ($(objpfx)ld.so): Likewise.
26977
26978 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26979
26980         [BZ #17965]
26981         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26982         both struct timeval and struct timespec.
26983
26984 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26985
26986         [BZ #16560]
26987         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26988         and redefine.
26989         (__ieee754_exp2l): Do not multiply small fractional parts by
26990         M_LN2l.
26991         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26992         small argument.
26993         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26994         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26995         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26996         * math/auto-libm-test-in: Add more tests of exp2.
26997         * math/auto-libm-test-out: Regenerated.
26998
26999 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27000
27001         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
27002         unaligned path.
27003
27004 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27005
27006         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
27007         little endian.
27008
27009 2015-02-12  Andreas Schwab  <schwab@suse.de>
27010
27011         [BZ #15790]
27012         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
27013         Filter out elision flags from value returned in kind.
27014         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
27015         * nptl/tst-pthread-mutexattr.c: New file.
27016
27017 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27018
27019         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
27020         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
27021         into gnu-gnu, and update comment to refer to abi-tags.
27022
27023 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
27024
27025         [BZ #15467]
27026         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
27027         (__sincos): Set errno to EDOM for infinite argument.
27028         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
27029         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
27030         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
27031         (__sincosl): Set errno to EDOM for infinite argument.
27032         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
27033         (__sincosl): Set errno to EDOM for infinite argument.
27034         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
27035         (__sincosl): Set errno to EDOM for infinite argument.
27036         * math/libm-test.inc (sincos_test_data): Test errno setting.
27037
27038 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
27039
27040         * string/strxfrm_l.c: Remove #define STRCMP.
27041         * string/strcoll_l.c: Remove #define STRLEN.
27042         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
27043         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
27044
27045 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
27046
27047         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
27048         * sysdeps/mips/mips32/sfp-machine.h: ... here.
27049         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
27050         * sysdeps/mips/mips64/Makefile: ... here.
27051         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
27052         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
27053         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
27054         * sysdeps/mips/mips64/sfp-machine.h: ... here.
27055         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
27056         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
27057         * sysdeps/mips/mips64/n64/Implies: Likewise.
27058
27059 2015-02-10  Roland McGrath  <roland@hack.frob.com>
27060
27061         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
27062         <sys/time.h>, <string.h>, and <errno.h>.
27063         (dest_offset, dest_address, value, zero): Remove unused variables.
27064         (ldouble): Remove typedef.
27065         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
27066         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
27067         1).  Fix code style.
27068         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
27069         (check): Function removed.
27070         (CHECK): New macro.
27071         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
27072         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
27073         Don't call set_sigaction_FP and remove_sigaction_FP here.
27074         (ldouble_test): Just use 'long double' as macro argument, no need for
27075         the 'ldouble' typedef.
27076         (do_test): Set up SIGFPE handler at start, using plain signal rather
27077         than sigaction.  Fix code style.
27078
27079 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
27080
27081         [BZ #17949]
27082         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
27083         jump label.
27084
27085 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27086
27087         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
27088         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27089
27090         * sysdeps/powerpc/configure.ac: Remove file.
27091         * sysdeps/powerpc/configure: Likewise.
27092
27093         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
27094         [sysdep_routines]: Remove wordcopy-power6 object.
27095         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27096         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
27097         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
27098         (__memmove_ppc32): Likewise.
27099         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
27100         file.
27101         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
27102         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
27103         Remove preprocessor.
27104
27105         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
27106         [sysdep_routines]: Remove wide chars objects.
27107         [wcsmbs]: New rule for wide char objects.
27108
27109         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27110         Remove wordcopy-power6 obejct.
27111         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
27112         Use local call for wordcopy and memcpy symbols.
27113         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
27114         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
27115         implementation for loader.
27116         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
27117
27118         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27119         Remove wordcopy-power7 object.
27120         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
27121         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
27122         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
27123         (_wordcopy_fwd_dest_aligned): Likewise.
27124         (_wordcopy_bwd_aligned): Likewise.
27125         (_wordcopy_bwd_dest_aligned): Likewise.
27126
27127         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
27128         Rewrite to call __memmove_ppc instead of include default
27129         implementation.
27130
27131         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27132         Remove wide chars objects.
27133         [wcsmbs]: New rule for wide char objects.
27134
27135 2015-02-09  Andreas Schwab  <schwab@suse.de>
27136
27137         [BZ #17912]
27138         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
27139         in terms of __O_DIRECTORY.
27140
27141 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27142
27143         * time/getdate.c: Include <stdbool.h>.
27144         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
27145         call PTR_MANGLE.
27146         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
27147         PTR_DEMANGLE.
27148
27149 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27150
27151         Add ersatz _Static_assert on older C hosts
27152         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
27153         pre-C11 C platform that is not known to support _Static_assert.
27154
27155 2015-02-07  Richard Braun  <rbraun@sceen.net>
27156
27157         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
27158         sigstate.
27159         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
27160
27161 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27162
27163         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
27164         priority against unexistent AIO_PRIO_DELTA_MAX.
27165         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
27166         instead of int.
27167         * misc/fchflags.c (fchflags): Likewise.
27168         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
27169         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
27170         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
27171         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
27172         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
27173         Declare macros.
27174         [__USE_MISC] (chflags, fchflags): Declare functions.
27175         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
27176         EINVAL when nfds is greater than FD_SETSIZE.
27177         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
27178         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
27179         45.
27180         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
27181         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
27182         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
27183         MACH_RCV_TIMED_OUT.
27184         * hurd/hurd/signal.h (_hurd_self_sigstate,
27185         _hurd_critical_section_lock, _hurd_critical_section_unlock):
27186         Explicit casts from void *.
27187         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
27188         * abi-tags: Rename gnu-gnu os into gnu.
27189
27190         [BZ #4719]
27191         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
27192         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
27193         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
27194         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
27195         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
27196         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
27197
27198         [BZ #17944]
27199         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
27200         duplicates ADDR->sun_path with sockaddr LEN limitation.
27201         * sysdeps/mach/hurd/connect.c: Include <string.h>
27202         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
27203         * sysdeps/mach/hurd/sendmsg.c: Likewise.
27204         * sysdeps/mach/hurd/sendto.c: Likewise.
27205         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
27206         implementing it by hand.
27207
27208 2015-02-06  Roland McGrath  <roland@hack.frob.com>
27209
27210         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
27211         Use sfi_breg on ldr.
27212         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
27213         Likewise.
27214
27215         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
27216         it's defined.
27217         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
27218         Test SIGSETXID only if it's defined.
27219
27220         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
27221
27222         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
27223         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
27224
27225         * nptl/tst-align2.c: Moved ...
27226         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
27227         * nptl/Makefile (tests): Remove tst-align2.
27228         * sysdeps/unix/sysv/linux/Makefile
27229         [$(subdir) = nptl] (tests): Add tst-align-clone.
27230         * nptl/tst-getpid1.c: Moved ...
27231         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
27232         * nptl/tst-getpid2.c: Moved ...
27233         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
27234         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
27235         * sysdeps/unix/sysv/linux/Makefile
27236         [$(subdir) = nptl] (tests): ... here.
27237         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
27238         * sysdeps/unix/sysv/linux/Makefile
27239         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
27240
27241         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
27242         Drop trailing \n from perror argument.  Use return rather than exit.
27243
27244         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
27245         on [SA_SIGINFO].
27246         * nptl/tst-cancel21.c (do_test): Likewise.
27247         * debug/tst-backtrace6.c: Include <signal.h> first thing.
27248         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
27249         [!SA_SIGINFO]: Make it a stub test.
27250
27251         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
27252         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
27253
27254         * posix/tst-getlogin.c: Move to ...
27255         * login/tst-getlogin.c: ... here.
27256         * posix/Makefile (tests): Move tst-getlogin to ...
27257         * login/Makefile (tests): ... here.
27258
27259         * libio/tst-atime.c (do_test): Move local variables SV and E
27260         inside [ST_NOATIME] conditional.
27261
27262         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
27263
27264         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
27265
27266         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
27267         (wait_code): New function replaces macro.
27268         Call nanosleep rather than syscall.
27269
27270         * nptl/pt-system.c: Rewritten.  Put everything under
27271         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27272         Use IFUNC to redirect when possible.
27273
27274         * nptl/pt-longjmp.c: Rewritten.  Put everything under
27275         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27276         Use IFUNC to redirect when possible.
27277
27278         * nptl/pt-fork.c: Rewritten.  Put everything under
27279         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27280         Use IFUNC to redirect when possible.
27281         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
27282
27283         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
27284         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
27285         unconditionally nowadays.  This included the only reference to
27286         __vdso_clock_gettime that appears outside libc proper.
27287         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
27288         Remove version set (containing only __vdso_clock_gettime).
27289         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
27290         Add attribute_hidden.
27291         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
27292         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
27293         libc_hidden_data_def.
27294         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27295         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27296
27297         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
27298         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
27299         setrpcent, and getrpcport to ...
27300         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
27301         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
27302         getrpcbynumber_r, and getrpcent_r to ...
27303         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
27304         * inet/getrpcbyname.c: Moved ...
27305         * sunrpc/getrpcbyname.c: ... here.
27306         * inet/getrpcbyname_r.c: Moved ...
27307         * sunrpc/getrpcbyname_r.c: ... here.
27308         * inet/getrpcbynumber.c: Moved ...
27309         * sunrpc/getrpcbynumber.c: ... here.
27310         * inet/getrpcbynumber_r.c: Moved ...
27311         * sunrpc/getrpcbynumber_r.c: ... here.
27312         * inet/getrpcent.c: Moved ...
27313         * sunrpc/getrpcent.c: ... here.
27314         * inet/getrpcent_r.c: Moved ...
27315         * sunrpc/getrpcent_r.c: ... here.
27316         * inet/Makefile (routines): Move those to ...
27317         * sunrpc/Makefile (routines): ... here.
27318         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
27319         the $(subdirs) list.
27320         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
27321         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
27322         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
27323         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
27324
27325         * elf/Makefile (routines): Include $(all-dl-routines), not just
27326         $(dl-routines).
27327         (rtld-routines): Likewise.  Use = rather than :=.
27328         * sysdeps/aarch64/Makefile [$(subdir) = elf]
27329         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
27330         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
27331         * sysdeps/arm/Makefile: Likewise.
27332         * sysdeps/i386/Makefile: Likewise.
27333         * sysdeps/x86_64/Makefile: Likewise.
27334         * sysdeps/hppa/Makefile [$(subdir) = elf]
27335         (sysdep_routines, sysdep-rtld-routines): Don't add
27336         $(sysdep-dl-routines) to these.
27337         * sysdeps/ia64/Makefile: Likewise.
27338         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
27339         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
27340         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
27341         Don't add dl-static to these; sysdep-dl-routines alone is enough.
27342         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
27343         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
27344         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
27345         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
27346         * sysdeps/powerpc/Makefile [$(subdir) = elf]
27347         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
27348         these; sysdep-dl-routines alone is enough.
27349
27350 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
27351
27352         [BZ #17932]
27353         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
27354         where multiplication results in zero and third argument is finite
27355         and nonzero.
27356         * math/auto-libm-test-in: Add more tests of fma.
27357         * math/auto-libm-test-out: Regenerated.
27358
27359         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
27360         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
27361         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
27362         (_FP_CMP_EQ): Likewise.
27363         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
27364
27365         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
27366         extra argument CHECK_NAN.  Redefine as wrapper around
27367         _FP_EXTEND_CNAN.
27368
27369 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
27370
27371         * version.h (RELEASE): Set to "stable".
27372         (VERSION): Set to "2.21"
27373         * include/features.h (__GLIBC_MINOR__): Set to 21.
27374
27375         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
27376
27377 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27378             Paul Eggert  <eggert@cs.ucla.edu>
27379
27380         [BZ #16618]
27381         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
27382         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
27383         size in bytes. Store needed elements in wpmax. Use needed size
27384         in bytes for extend_alloca.
27385
27386 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
27387
27388         * manual/install.texi: Latest tested versions are GCC 4.9.2,
27389         binutls 2.25, and texinfo 5.2.
27390         * INSTALL: Regenerate.
27391         * sysdeps/nios2/configure: Regenerate.
27392         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
27393         * manual/contrib.texi: Update.
27394         * po/be.po: Update.
27395         * po/bg.po: Update.
27396         * po/ca.po: Update.
27397         * po/cs.po: Update.
27398         * po/da.po: Update.
27399         * po/de.po: Update.
27400         * po/el.po: Update.
27401         * po/eo.po: Update.
27402         * po/es.po: Update.
27403         * po/fi.po: Update.
27404         * po/fr.po: Update.
27405         * po/gl.po: Update.
27406         * po/hr.po: Update.
27407         * po/hu.po: Update.
27408         * po/ia.po: Update.
27409         * po/id.po: Update.
27410         * po/it.po: Update.
27411         * po/ja.po: Update.
27412         * po/ko.po: Update.
27413         * po/lt.po: Update.
27414         * po/nb.po: Update.
27415         * po/nl.po: Update.
27416         * po/pl.po: Update.
27417         * po/pt_BR.po: Update.
27418         * po/ru.po: Update.
27419         * po/rw.po: Update.
27420         * po/sk.po: Update.
27421         * po/sl.po: Update.
27422         * po/sv.po: Update.
27423         * po/tr.po: Update.
27424         * po/uk.po: Update.
27425         * po/vi.po: Update.
27426         * po/zh_CN.po: Update.
27427         * po/zh_TW.po: Update.
27428
27429         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
27430         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
27431         * sysdeps/hppa/dl-irel.h: Remove #warning.
27432         * sysdeps/hppa/entry.h: Provide prototype for
27433         __canonicalize_funcptr_for_compare and cast argument.
27434         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
27435         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
27436         * sysdeps/hppa/sotruss-lib.c: New file.
27437         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
27438         (atomic_compare_and_exchange_val_acq): Use __typeof__.
27439         (atomic_compare_and_exchange_bool_acq): Likewise.
27440         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
27441         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
27442
27443         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
27444         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
27445         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
27446
27447 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
27448
27449         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
27450         called function in non-PIC case.
27451
27452 2015-01-31  David S. Miller  <davem@davemloft.net>
27453
27454         * sysdeps/sparc/sparc32/bits/atomic.h
27455         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
27456         unlock not after it.
27457         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
27458         volatile register usage warnings from the compiler.
27459
27460         * sysdeps/sparc/nptl/sem_init.c: Delete.
27461         * sysdeps/sparc/nptl/sem_post.c: Delete.
27462         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
27463         * sysdeps/sparc/nptl/sem_wait.c: Delete.
27464         * sysdeps/sparc/sparc32/sem_init.c: New file.
27465         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
27466         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
27467         padding explicitly initialized.
27468         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
27469         padding for in-semaphore spinlock.
27470         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
27471         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
27472         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
27473         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
27474         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
27475         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
27476         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
27477         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
27478         version.
27479         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
27480         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
27481
27482 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
27483
27484         [BZ #17801]
27485         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27486         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
27487         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
27488         New.
27489         (index_AVX_Fast_Unaligned_Load): Likewise.
27490         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
27491         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
27492         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
27493         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
27494         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
27495         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
27496         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
27497         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
27498         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
27499
27500 2015-01-29  Andreas Schwab  <schwab@suse.de>
27501
27502         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
27503
27504 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
27505
27506         [BZ #17892]
27507         * nscd/nscd_stat.c (send_stats): Initialize DATA.
27508
27509 2015-01-28  Martin Sebor  <msebor@redhat.com>
27510
27511         * math/README.libm-test: Clarify. Add "How to read the test output."
27512
27513 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
27514
27515         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
27516         Define to 0.
27517
27518 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
27519
27520         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
27521         (__HAVE_64B_ATOMICS): Define to 0.
27522
27523 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27524
27525         [BZ #17885]
27526         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
27527         value to set as new flag.
27528
27529         [BZ #16576]
27530         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
27531         and use _ARCH_PPCSQ instead.
27532         (__ieee754_sqrt): Likewise.
27533         (__ieee754_sqrtf): Likewise.
27534         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
27535         _ARCH_PPCSQ is defined.
27536         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
27537         fsqrt instruction.
27538         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
27539         _ARCH_PPCSQ is defined.
27540         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
27541         fsqrts instruction.
27542         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
27543
27544 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27545
27546         * iconv/loop.c: Suppress array out of bound warning caused by GCC
27547         bug (GCC BZ #64739).
27548
27549 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
27550
27551         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27552         Mark _retval as used.
27553         (lll_futex_wake_unlock): Likewise.
27554         (lll_futex_timed_wait_requeue_pi): Likewise.
27555
27556         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27557         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27558         register variables.
27559
27560         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27561         libm_hidden_def.
27562
27563         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27564         (__bswap_64): Mark as __always_inline.
27565
27566 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27567
27568         [BZ #15378]
27569         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27570         when none of the search directories exist.
27571
27572 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27573
27574         [BZ #17869]
27575         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27576         power8 in .machine directive.
27577
27578         [BZ #17868]
27579         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27580         set dependency from opd value.
27581
27582 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27583
27584         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27585         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27586         architecture.
27587
27588 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27589
27590         [BZ #17870]
27591         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27592         with uint64_t.
27593         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27594         (uint64_t) 1.
27595         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27596         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27597         Replace 1UL with (uint64_t) 1.
27598         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27599         int with uint64_t.
27600
27601 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27602
27603         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27604         (if_freenameindex): Likewise.
27605
27606         * resource/getrlimit64.c: Add missing libc_hidden_def.
27607
27608 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27609
27610         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27611         __label__.
27612         (_FP_FMA): Likewise.
27613         (_FP_TO_INT_ROUND): Likewise.
27614         (_FP_FROM_INT): Likewise.
27615
27616 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27617
27618         [BZ #16418]
27619         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27620         Make code racy and cancel safe.
27621
27622 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27623
27624         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27625         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27626         attribution.
27627
27628         * pwd/tst-getpw.c: Rewrite.
27629
27630         [BZ #17702]
27631         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27632         (modules-names): Add moddummy1 and moddummy2.
27633         ($(objpfx)tst-rec-dlopen): Define.
27634         * dlfcn/moddummy1.c: New file.
27635         * dlfcn/moddummy2.c: New file.
27636         * dlfcn/tst-rec-dlopen.c: New file.
27637         * elf/dl-cache.c (_dl_load_cache_lookup):
27638         Return char*. Copy result with alloca/strcpy/strdup.
27639         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27640         returns char*. Free cached. If not saving realname
27641         free cached.
27642         * elf/dl-open.c (dl_open_worker): Do not assert that
27643         _r_debug->r_state is RT_CONSISTENT.
27644         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27645         returns char*.
27646
27647 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27648             Carlos O'Donell  <carlos@redhat.com>
27649
27650         [BZ #12674]
27651         * nptl/sem_waitcommon.c: New file.
27652         * nptl/sem_wait.c: Include sem_waitcommon.c.
27653         (__sem_wait_cleanup, do_futex_wait): Remove.
27654         (__new_sem_wait): Adapt.
27655         (__new_sem_trywait): New function.
27656         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27657         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27658         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27659         (sem_timedwait): Adapt.
27660         * nptl/sem_post.c (__new_sem_post): Adapt.
27661         (futex_wake): New function.
27662         (__old_sem_post): Add release MO fence.
27663         * nptl/sem_open.c (sem_open): Adapt.
27664         * nptl/sem_init.c (__new_sem_init): Adapt.
27665         (futex_private_if_supported): New function.
27666         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27667         (__old_sem_getvalue): Add using previous code.
27668         * sysdeps/nptl/internaltypes.h: Adapt.
27669         * nptl/tst-sem13.c (do_test): Adapt.
27670         * nptl/tst-sem11.c (main): Adapt.
27671         * nptl/sem_trywait.c: Remove.
27672         * nptl/DESIGN-sem.txt: Remove.
27673         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27674         (gen-as-const-headers): Remove structsem.sym.
27675         * nptl/structsem.sym: Remove.
27676         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27677         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27678         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27679         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27680         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27681         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27682         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27683         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27684         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27685         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27686         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27687         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27688         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27689         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27690         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27691         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27692         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27693         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27694         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27695         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27696         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27697         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27698
27699 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27700
27701         * INSTALL: Regenerated.
27702
27703         * po/libc.pot: Regenerated.
27704
27705 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27706             Sandra Loosemore  <sandra@codesourcery.com>
27707             Andrew Jenner  <andrew@codesourcery.com>
27708             Joseph Myers  <joseph@codesourcery.com>
27709             Nathan Sidwell  <nathan@codesourcery.com>
27710
27711         * NEWS: Mention new Nios II port.
27712         * sysdeps/nios2/Implies: New file.
27713         * sysdeps/nios2/Makefile: New file.
27714         * sysdeps/nios2/Subdirs: New file.
27715         * sysdeps/nios2/Versions: New file.
27716         * sysdeps/nios2/__longjmp.S: New file.
27717         * sysdeps/nios2/abort-instr.h: New file.
27718         * sysdeps/nios2/backtrace.c: New file.
27719         * sysdeps/nios2/bits/endian.h: New file.
27720         * sysdeps/nios2/bits/fenv.h: New file.
27721         * sysdeps/nios2/bits/link.h: New file.
27722         * sysdeps/nios2/bits/setjmp.h: New file.
27723         * sysdeps/nios2/bsd-_setjmp.S: New file.
27724         * sysdeps/nios2/bsd-setjmp.S: New file.
27725         * sysdeps/nios2/configure: New generated file.
27726         * sysdeps/nios2/configure.ac: New file.
27727         * sysdeps/nios2/crti.S: New file.
27728         * sysdeps/nios2/crtn.S: New file.
27729         * sysdeps/nios2/dl-init.c: New file.
27730         * sysdeps/nios2/dl-machine.h: New file.
27731         * sysdeps/nios2/dl-sysdep.h: New file.
27732         * sysdeps/nios2/dl-tls.h: New file.
27733         * sysdeps/nios2/dl-trampoline.S: New file.
27734         * sysdeps/nios2/gccframe.h: New file.
27735         * sysdeps/nios2/gmp-mparam.h: New file.
27736         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27737         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27738         * sysdeps/nios2/ldsodefs.h: New file.
27739         * sysdeps/nios2/libc-tls.c: New file.
27740         * sysdeps/nios2/libm-test-ulps: New file.
27741         * sysdeps/nios2/machine-gmon.h: New file.
27742         * sysdeps/nios2/math-tests.h: New file.
27743         * sysdeps/nios2/math_private.h: New file.
27744         * sysdeps/nios2/memusage.h: New file.
27745         * sysdeps/nios2/nptl/Makefile: New file.
27746         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27747         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27748         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27749         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27750         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27751         * sysdeps/nios2/nptl/tls.h: New file.
27752         * sysdeps/nios2/preconfigure: New file.
27753         * sysdeps/nios2/s_fma.c: New file.
27754         * sysdeps/nios2/s_fmaf.c: New file.
27755         * sysdeps/nios2/setjmp.S: New file.
27756         * sysdeps/nios2/sfp-machine.h: New file.
27757         * sysdeps/nios2/sotruss-lib.c: New file.
27758         * sysdeps/nios2/stackguard-macros.h: New file.
27759         * sysdeps/nios2/stackinfo.h: New file.
27760         * sysdeps/nios2/start.S: New file.
27761         * sysdeps/nios2/sysdep.h: New file.
27762         * sysdeps/nios2/tls-macros.h: New file.
27763         * sysdeps/nios2/tst-audit.h: New file.
27764         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27765         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27766         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27767         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27768         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27769         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27770         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27771         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27772         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27773         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27774         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27775         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27776         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27777         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27778         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27779         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27780         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27781         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27782         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27783         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27784         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27785         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27786         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27787         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27788         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27789         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27790         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27791         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27792         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27793         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27794         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27795         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27796         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27797         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27798         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27799         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27800         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27801         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27802         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27803         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27804         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27805         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27806         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27807         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27808
27809 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27810
27811         [BZ #17844]
27812         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27813         (getutent): Use weak_alias in non SHARED case
27814         and default_symbol_version in SHARED case.
27815         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27816         (getutent_r, pututline): Likewise.
27817         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27818         (getutid): Likewise.
27819         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27820         (getutid_r): Likewise.
27821         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27822         (getutline): Likewise.
27823         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27824         (getutline_r): Likewise.
27825         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27826         (updwtmp): Likewise.
27827
27828 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27829
27830         [BZ #17848]
27831         * sysdeps/s390/s390-32/memcmp.S
27832         (memcmp_g5): Rename to __memcmp_g5.
27833         * sysdeps/s390/s390-32/memcpy.S
27834         (memcpy_g5): Rename to __memcpy_g5.
27835         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27836         (memcpy_mvcle) Rename to __memcpy_mvcle.
27837         * sysdeps/s390/s390-32/memset.S
27838         (memset_g5): Rename to __memset_g5.
27839         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27840         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27841         and use prefixed functions.
27842         * sysdeps/s390/s390-32/multiarch/memcmp.S
27843         (memcmp_z196): Rename to __memcmp_z196.
27844         (memcmp_z10): Rename to __memcmp_z10.
27845         (memcmp): Set alias to __memcmp_g5.
27846         (bcmp): Set alias to __memcmp_g5.
27847         * sysdeps/s390/s390-32/multiarch/memcpy.S
27848         (memcpy_z196): Rename to __memcpy_z196.
27849         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27850         (memcpy_z10): Rename to __memcpy_z10.
27851         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27852         (memcpy): Set alias to __memcpy_g5.
27853         * sysdeps/s390/s390-32/multiarch/memset.S
27854         (memset_z196): Rename to __memset_z196.
27855         Jump to __memset_mvcle instead of memset_mvcle.
27856         (memset_z10): Rename to __memset_z10.
27857         Jump to __memset_mvcle instead of memset_mvcle.
27858         (memset_mvcle) Rename to __memset_mvcle.
27859         (memset): Set alias to __memset_g5.
27860         * sysdeps/s390/s390-64/memcmp.S
27861         (memcmp_z900): Rename to __memcmp_z900.
27862         * sysdeps/s390/s390-64/memcpy.S
27863         (memcpy_z900): Rename to __memcpy_z900.
27864         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27865         (memcpy_mvcle) Rename to __memcpy_mvcle.
27866         * sysdeps/s390/s390-64/memset.S
27867         (memset_z900): Rename to __memset_z900.
27868         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27869         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27870         and use prefixed functions.
27871         * sysdeps/s390/s390-64/multiarch/memcmp.S
27872         (memcmp_z196): Rename to __memcmp_z196.
27873         (memcmp_z10): Rename to __memcmp_z10.
27874         (memcmp): Set alias to __memcmp_z900.
27875         (bcmp): Set alias to __memcmp_z900.
27876         * sysdeps/s390/s390-64/multiarch/memcpy.S
27877         (memcpy_z196): Rename to __memcpy_z196.
27878         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27879         (memcpy_z10): Rename to __memcpy_z10.
27880         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27881         (memcpy): Set alias to __memcpy_z900.
27882         * sysdeps/s390/s390-64/multiarch/memset.S
27883         (memset_z196): Rename to __memset_z196.
27884         Jump to __memset_mvcle instead of memset_mvcle.
27885         (memset_z10): Rename to __memset_z10.
27886         Jump to __memset_mvcle instead of memset_mvcle.
27887         (memset_mvcle) Rename to __memset_mvcle.
27888         (memset): Set alias to __memset_z900.
27889
27890 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27891
27892         [BZ #17748]
27893         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27894         __fesetenv instead of fesetenv.
27895
27896 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27897
27898         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27899         macro.
27900
27901 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27902
27903         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27904         regression on LE.
27905
27906         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27907         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27908         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27909         strncmp-power8 object.
27910         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27911         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27912         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27913         * NEWS: Update.
27914
27915 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27916             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27917
27918         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27919         trailing byte check.
27920
27921 2015-01-13  David S. Miller  <davem@davemloft.net>
27922
27923         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27924
27925 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27926
27927         * login/logout.c (logout): Use memset rather than bzero.
27928         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27929         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27930         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27931         (_gethtbyaddr): Likewise.
27932         * locale/programs/simple-hash.c (bcopy): Macro removed.
27933
27934 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27935
27936         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27937         Add strcmp-power8 object.
27938         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27939         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27940         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27941         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27942         __strcmp_power8 implementation.
27943         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27944         * NEWS: Update.
27945
27946         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27947         Add strncpy-power8 and stpncpy-power8 objects.
27948         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27949         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27950         implementations.
27951         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27952         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27953         __stpncpy_power8 implementation.
27954         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27955         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27956         __strncpy_power8 implementation.
27957         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27958         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27959         * NEWS: Update.
27960
27961         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27962         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27963         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27964
27965         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27966         strncat-power8 object.
27967         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27968         __strcat_power8 implementation.
27969         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27970         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27971         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27972         optimized strcat for power8.
27973
27974         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27975         strcpy-power8 and stpcpy-power8 objects.
27976         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27977         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27978         implementations.
27979         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27980         multiarch stpcpy implementation for POWER8.
27981         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27982         multiarch strcpy implementation for POWER8.
27983         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27984         __strcpy_power8 function.
27985         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27986         stpcpy for POWER8.
27987         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27988         strcpy for POWER8.
27989         * NEWS: Update.
27990
27991 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27992
27993         [BZ #16009]
27994         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27995         weights and rules. Use do_xfrm_cached if data fits in cache,
27996         do_xfrm otherwise.  Moved former main loop to...
27997         * (do_xfrm_cached): New function.
27998         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27999         find_idx, find_position and stack_push.
28000         * (find_idx): New function.
28001         * (find_position): Likewise.
28002         * localedata/sort-test.sh: Added test run for do_xfrm.
28003         * localedata/xfrm-test.c (main): Added command line option
28004         -nocache to run the test with strings that are too large for
28005         the STRXFRM cache.
28006
28007 2015-01-13  Torvald Riegel  <triegel@redhat.com>
28008
28009         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
28010         variable to lll_futex_wake call, not the value itself.
28011
28012 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
28013
28014         [BZ #17803]
28015         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
28016         twom64.  Adjust value to 0x1p-64L.
28017         (__scalblnl): Only return standard underflowing result for K <=
28018         -64 not K <= -63; adjust exponent for underflowing result by 64
28019         not 63.
28020         * math/libm-test.inc (scalbn_test_data): Add more tests.
28021         (scalbln_test_data): Likewise.
28022
28023         [BZ #17834]
28024         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
28025         0x1p63L.
28026         (__scalblnl): Get new exponent of adjusted subnormal value from ES
28027         not HX.
28028         * math/libm-test.inc (scalbn_test_data): Add more tests.
28029         (scalbln_test_data): Likewise.
28030
28031 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28032             Stefani Seibold  <stefani@seibold.net>
28033
28034         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
28035         (sysdep_routines): Add dl-vdso here, ...
28036         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
28037         (sysdep_routines): ... not here.
28038         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
28039         fallback when vDSO is not presented.
28040         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
28041         Define with libc_hidden_proto/libc_hidden_data_def definitions.
28042         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
28043         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
28044         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
28045         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
28046         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
28047         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
28048         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
28049         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
28050         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
28051         fallback configurable symbol when vDSO is not available.
28052         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
28053         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
28054         be able to redefine fallback symbol when vDSO is not available.
28055         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
28056         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
28057
28058 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28059
28060         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
28061         (TLS_INIT_TP): Add tm_capable initialization.
28062         (TLS_DEFINE_INIT_TP): Likewise.
28063         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
28064         TCB.
28065         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
28066         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
28067         calculation.
28068         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
28069         transactoion is lock elision is built and TCB tm_capable is set.
28070         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
28071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
28072         (INTERNAL_SYSCALL_NCS): Likewise.
28073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
28074         (INTERNAL_SYSCALL_NCS): Likewise.
28075         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
28076
28077         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
28078         for powerpc.
28079         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
28080         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
28081         and remove it for 32 bits case.
28082         [pthread_rwlock_t] (__rwelision): New field for lock elision.
28083         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
28084         initialization.
28085         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
28086         Disable lock elision with rdlocks if elision is not available.
28087
28088         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
28089         (sysdep_routines): Add lock elision objects.
28090         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
28091         [pthread_mutex_t] (__spins): Rework to add lock elision field.
28092         [pthread_mutex_t] (__elision): Add field.
28093         [__PTHREAD_SPINS]: Adjust to init lock elision field.
28094         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
28095         elision definitions for powerpc.
28096         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
28097         implementation of lock elision for powerpc.
28098         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
28099         implementation of timed lock elision for powerpc.
28100         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
28101         implementation of trylock with lock elision for powerpc.
28102         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
28103         implementaion of unlock for lock elision for powerpc.
28104         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
28105         automatic enable lock elision for mutexes.
28106         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
28107         transaction execution definitions for powerpc.
28108         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
28109         definitions.
28110         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
28111         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
28112         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
28113         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
28114         * NEWS: Update.
28115
28116 2015-01-09  Roland McGrath  <roland@hack.frob.com>
28117
28118         * sysdeps/posix/shm-directory.c: Use <> rather than ""
28119         for #include of <shm-directory.h>.
28120
28121 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
28122
28123         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
28124         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
28125
28126 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
28127
28128         [BZ #17791]
28129         * NEWS: Mention bug fix.
28130         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
28131         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
28132         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
28133
28134 2015-01-09  Torvald Riegel <triegel@redhat.com>
28135
28136         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
28137
28138 2015-01-09  Torvald Riegel <triegel@redhat.com>
28139
28140         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
28141
28142 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28143
28144         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
28145         pointer and cast to uintptr_t.
28146
28147 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28148
28149         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
28150         removed.
28151         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
28152
28153 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28154
28155         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
28156         of 0.
28157
28158 2015-01-08  Roland McGrath  <roland@hack.frob.com>
28159
28160         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
28161         <nptl/pthreadP.h> instead.
28162         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
28163
28164         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
28165         already defined.
28166         [__SIGRTMIN] (init): Function removed.
28167         [__SIGRTMIN] (initialized): Variable removed.
28168         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
28169         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
28170         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
28171         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
28172         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
28173         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
28174         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
28175         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
28176         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
28177         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
28178         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
28179         * sysdeps/nptl/allocrtsig.c: New file.
28180         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
28181         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
28182         * sysdeps/generic/testrtsig.h: File removed.
28183
28184         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
28185         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
28186
28187         * nptl/nptl-init.c (pthread_functions): Conditionalize
28188         .ptr__nptl_setxid initialization on [SIGSETXID].
28189
28190         * sysdeps/nptl/sys/procfs.h: New file.
28191         * nptl_db/Makefile (headers): Add it.
28192         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
28193
28194         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
28195         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
28196         * nptl/pthread_attr_setaffinity.c: Include it.
28197         * nptl/pthread_setattr_default_np.c: Likewise.
28198         * nptl/check-cpuset.h: New file.
28199
28200 2015-01-08  Richard Henderson  <rth@redhat.com>
28201
28202         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
28203         (CFLAGS-tst-execstack-prog.c): Likewise.
28204         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
28205
28206 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
28207             Sandra Loosemore  <sandra@codesourcery.com>
28208             Andrew Jenner  <andrew@codesourcery.com>
28209             Joseph Myers  <joseph@codesourcery.com>
28210             Nathan Sidwell  <nathan@codesourcery.com>
28211
28212         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
28213         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
28214         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
28215         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
28216         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
28217         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
28218         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
28219         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
28220         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
28221         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
28222         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
28223         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
28224         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
28225         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
28226         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
28227         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
28228         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
28229
28230 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28231
28232         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
28233         timespec struct member in syscall macro.
28234         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
28235         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
28236         first timeval struct member in syscall macro.
28237         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
28238
28239 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
28240
28241         [BZ #17748]
28242         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
28243         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
28244         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
28245         __feupdateenv and define as weak alias of __feupdateenv.  Use
28246         libm_hidden_weak.
28247         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
28248         libm_hidden_def.
28249         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
28250         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
28251         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28252         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
28253         libm_hidden_def.
28254         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
28255         __feupdateenv and define as weak alias of __feupdateenv.  Use
28256         libm_hidden_weak.
28257         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
28258         libm_hidden_def.
28259         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
28260         __feupdateenv and define as weak alias of __feupdateenv.  Use
28261         libm_hidden_weak.
28262         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
28263         libm_hidden_def.
28264         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28265         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28266         (__feupdateenv): Likewise.
28267         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
28268         __feupdateenv and define as weak alias of __feupdateenv.  Use
28269         libm_hidden_weak.
28270         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28271         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
28272         libm_hidden_def.
28273         * sysdeps/tile/math_private.h (__feupdateenv): New inline
28274         function.
28275         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
28276         libm_hidden_def.
28277         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
28278         __feupdateenv instead of feupdateenv.
28279         (default_libc_feupdateenv_test): Likewise.
28280         (libc_feresetround_ctx): Likewise.
28281
28282 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28283
28284         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
28285         prototype.
28286
28287 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28288
28289         * posix/regcomp.c (parse_bracket_exp): Initialize type to
28290         COLL_SYM in a couple of places to avoid uninitialized variable
28291         wanings on tilegx gcc 4.8.2.
28292
28293 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28294
28295         * sysdeps/aarch64/strcpy.S: New file.
28296         * sysdeps/aarch64/stpcpy.S: New file.
28297         * NEWS: Updated.
28298
28299 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28300
28301         * sysdeps/aarch64/strrchr.S: New file.
28302         * NEWS: Updated.
28303
28304 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
28305
28306         [BZ #17658]
28307         * stdlib/setenv.c: Fix memory leak when setting large,
28308         duplicate string.
28309
28310 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
28311
28312         [BZ #17273]
28313         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
28314         and tabs from buffer before parsing fstab entry.
28315         * misc/tst-mntent.c (main): Add test for mount entry with
28316         trailing spaces and tabs.
28317
28318 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
28319
28320         [BZ #17748]
28321         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
28322         * math/fesetround.c (fesetround): Rename to __fesetround and
28323         define as weak alias of __fesetround.  Use libm_hidden_weak.
28324         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
28325         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
28326         * sysdeps/arm/fesetround.c (fesetround): Likewise.
28327         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
28328         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
28329         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
28330         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
28331         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
28332         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
28333         __fesetround_inline.
28334         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
28335         __fesetround_inline instead of __fesetround.
28336         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
28337         __fesetround and define as weak alias of __fesetround.  Use
28338         libm_hidden_weak.  Call __fesetround_inline instead of
28339         __fesetround.
28340         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
28341         __fesetround and define as weak alias of __fesetround.  Use
28342         libm_hidden_weak.
28343         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
28344         Likewise.
28345         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
28346         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28347         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
28348         * sysdeps/tile/math_private.h (__fesetround): New inline function.
28349         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
28350         __fesetround and define as weak alias of __fesetround.  Use
28351         libm_hidden_weak.
28352         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
28353         __fesetround instead of fesetround.
28354         (default_libc_feholdexcept_setround): Likewise.
28355         (libc_feholdsetround_ctx): Likewise.
28356         (libc_feholdsetround_noex_ctx): Likewise.
28357
28358         [BZ #17748]
28359         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
28360         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
28361         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28362         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28363         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28364         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
28365         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28366         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
28367         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28368         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28369         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28370         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28371         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28372         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28373         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
28374         libm_hidden_def.
28375         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
28376         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
28377         Likewise.
28378         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28379         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28380         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28381         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28382         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
28383         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28384         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28385         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
28386         __fesetenv instead of fesetenv.
28387         (libc_feresetround_noex_ctx): Likewise.
28388         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28389         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28390         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
28391         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28392         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28393         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28394         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28395         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28396         (__feupdateenv): Likewise.
28397         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28398         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28399         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28400         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
28401
28402 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28403
28404         [BZ #17806]
28405         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
28406         addresses have been freed.
28407
28408 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28409
28410         * resolv/res_init.c (__res_vinit): Improve comments about nserv
28411         and nservall.
28412
28413 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
28414
28415         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
28416         Clean up check_pf allocation pattern. addresses
28417
28418 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28419
28420         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
28421         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
28422         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
28423         * nptl/pthread_exit.c (__pthread_exit): Likewise.
28424         * nptl/pthread_join.c (pthread_join): Likewise.
28425         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
28426         * sysdeps/posix/waitid.c (__waitid): Likewise.
28427         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
28428         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
28429         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
28430         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
28431         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
28432         Likewise.
28433         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
28434         (__libc_pread64): Likewise.
28435         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
28436         (__libc_pwrite): Likewise.
28437         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
28438         (__libc_pwrite64): Likewsie.
28439         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
28440         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
28441         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
28442         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
28443         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
28444         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
28445         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
28446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
28447         Likewise.
28448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
28449         (__libc_pread64): Likewise.
28450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
28451         Likewise.
28452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
28453         (__libc_pwrite64): Likewise.
28454         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
28455         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
28456         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
28457         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
28458         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
28459         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
28460         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
28461         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
28462         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
28463         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
28464         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
28465         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
28466         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
28467         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
28468         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28469         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
28470         Likewise.
28471
28472 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28473
28474         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
28475         (CFLAGS-test-double.c): Likewise.
28476         (CFLAGS-test-ldouble.c): Likewise.
28477         (CPPFLAGS-test-ifloat.c): Likewise.
28478         (CPPFLAGS-test-idouble.c): Likewise.
28479         (CPPFLAGS-test-ildoubl.c): Likewise.
28480         (CFLAGS-test-test-fenv.c): Remove variable.
28481         (CFLAGS-test-misc.c): Likewise.
28482
28483 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28484
28485         [BZ #17797]
28486         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
28487         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
28488         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
28489         CLOCKS_PER_SEC == 1000000.
28490         * time/clocktest.c (main): Replace %ld with %jd and cast to
28491         intmax_t.
28492
28493 2015-01-05  Roland McGrath  <roland@hack.frob.com>
28494
28495         * sysdeps/generic/unwind-resume.h: New file.
28496         * sysdeps/gnu/unwind-resume.c: Include it.
28497         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
28498         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
28499         argument list.
28500         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
28501         global rather than static.
28502         (_Unwind_Resume): Update user.
28503         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
28504         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
28505         rather than static.  Add __attribute__ ((cold)).
28506         (_Unwind_Resume, __gcc_personality_v0): Update callers.
28507         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
28508         * sysdeps/arm/arm-unwind-resume.S: New file.
28509         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
28510         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
28511         * sysdeps/arm/Makefile [$(subdir) = csu]
28512         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
28513         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
28514         Add rt-arm-unwind-resume.
28515         [$(subdir) = nptl]
28516         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28517         Add pt-arm-unwind-resume.
28518         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
28519         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
28520
28521 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28522
28523         [BZ #17748]
28524         * include/fenv.h (__feholdexcept): Declare.  Use
28525         libm_hidden_proto.
28526         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
28527         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
28528         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28529         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
28530         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
28531         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
28532         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
28533         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28534         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
28535         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
28536         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28537         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
28538         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
28539         (feholdexcept): Likewise.
28540         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
28541         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28542         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28543         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28544         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
28545         __feholdexcept instead of feholdexcept.
28546         (default_libc_feholdexcept_setround): Likewise.
28547
28548 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28549
28550         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28551         to avoid using stl/str to align destination.
28552
28553 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28554
28555         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28556
28557 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28558
28559         [BZ #17796]
28560         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28561         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28562         Define as weak alias not strong alias.
28563
28564 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28565
28566         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28567         bltzal with addiupc.
28568         (RTLD_START): Ditto.
28569
28570 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28571
28572         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28573         for __vdso_* functions in declarations.
28574         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28575         definitions.
28576         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28577         INTERNAL_VSYSCALL): Use struct return types to check for error.
28578
28579         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28580         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28581         function with cast from llround().
28582         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28583         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28584         Define.
28585
28586 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28587
28588         [BZ #17793]
28589         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28590         Define as weak alias not strong alias.
28591
28592         [BZ #17635]
28593         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28594         ...
28595         * ctype/ctype-extn.c: ... here.
28596         (__isblank_l): Move to ...
28597         * ctype/ctype-c99_l.c: ... here.  New file.
28598         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28599         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28600         Remove variable.
28601         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28602         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28603         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28604         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28605         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28606
28607         [BZ #17777]
28608         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28609         (posix_fadvise64): Define as weak alias not strong alias.
28610         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28611         (posix_fallocate64): Likewise.
28612         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28613         Remove variable.
28614         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28615         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28616         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28617         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28618         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28619
28620 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28621
28622         [BZ #16191]
28623         * NEWS: Mention bug fix.
28624         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28625         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28626         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28627         (HOST_STACK_END_ADDR): Likewise.
28628
28629 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28630
28631         [BZ #17748]
28632         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28633         * math/fegetround.c (fegetround): Rename to __fegetround and
28634         define as weak alias of __fegetround.  Use libm_hidden_weak.
28635         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28636         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28637         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28638         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28639         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28640         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28641         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28642         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28643         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28644         Undefine after rather than before function definition; use
28645         parentheses around function name in definition.
28646         (__fegetround): Also undefine macro after function definition.
28647         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28648         __fegetround and define as weak alias of __fegetround.  Use
28649         libm_hidden_weak.  Do not undefine as macro.
28650         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28651         Likewise.
28652         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28653         __fegetround and define as weak alias of __fegetround.  Use
28654         libm_hidden_weak.
28655         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28656         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28657         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28658         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28659         __fegetround and define as weak alias of __fegetround.  Use
28660         libm_hidden_weak.
28661         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28662         __fegetround instead of fegetround.
28663
28664         [BZ #17782]
28665         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28666         Condition macro definition on [__USE_MISC].
28667
28668         [BZ #17781]
28669         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28670         (struct sigaction): Change type of sa_flags field to int.
28671
28672         [BZ #17780]
28673         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28674         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28675         __glibc_reserved0.
28676
28677         * nptl/version.c (banner): Use single year in copyright notice.
28678
28679         * NEWS: Update copyright dates.
28680         * catgets/gencat.c (print_version): Likewise.
28681         * csu/version.c (banner): Likewise.
28682         * debug/catchsegv.sh: Likewise.
28683         * debug/pcprofiledump.c (print_version): Likewise.
28684         * debug/xtrace.sh (do_version): Likewise.
28685         * elf/ldconfig.c (print_version): Likewise.
28686         * elf/ldd.bash.in: Likewise.
28687         * elf/pldd.c (print_version): Likewise.
28688         * elf/sotruss.sh: Likewise.
28689         * elf/sprof.c (print_version): Likewise.
28690         * iconv/iconv_prog.c (print_version): Likewise.
28691         * iconv/iconvconfig.c (print_version): Likewise.
28692         * locale/programs/locale.c (print_version): Likewise.
28693         * locale/programs/localedef.c (print_version): Likewise.
28694         * login/programs/pt_chown.c (print_version): Likewise.
28695         * malloc/memusage.sh (do_version): Likewise.
28696         * malloc/memusagestat.c (print_version): Likewise.
28697         * malloc/mtrace.pl: Likewise.
28698         * manual/libc.texinfo: Likewise.
28699         * nptl/version.c (banner): Likewise.
28700         * nscd/nscd.c (print_version): Likewise.
28701         * nss/getent.c (print_version): Likewise.
28702         * nss/makedb.c (print_version): Likewise.
28703         * posix/getconf.c (main): Likewise.
28704         * scripts/test-installation.pl: Likewise.
28705         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28706
28707 2015-01-02  Will Newton  <will.newton@linaro.org>
28708
28709         * sysdeps/arm/armv7/configure: Removed.
28710         * sysdeps/arm/armv7/configure.ac: Likewise.
28711
28712 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28713
28714         * All files with FSF copyright notices: Update copyright dates
28715         using scripts/update-copyrights.
28716         * intl/plural.c: Regenerated.
28717         * locale/programs/charmap-kw.h: Likewise.
28718         * locale/programs/locfile-kw.h: Likewise.
28719
28720 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28721
28722         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28723
28724 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28725
28726         [BZ #17748]
28727         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28728         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28729         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28730         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28731         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28732         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28733         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28734         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28735         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28736         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28737         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28738         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28739         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28740         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28741         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28742         libm_hidden_def.
28743         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28744         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28745         Likewise.
28746         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28747         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28748         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28749         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28750         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28751         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28752         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28753         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28754         __fegetenv instead of fegetenv.
28755         (libc_feholdsetround_noex_ctx): Likewise.
28756
28757 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28758
28759         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28760         (Elf_MIPS_ABIFlags_v0): New structure.
28761         (EF_MIPS_FP64): Define.
28762         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28763         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28764         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28765         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28766         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28767         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28768         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28769         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28770         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28771         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28772         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28773         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28774         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28775         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28776         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28777         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28778         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28779         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28780         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28781         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28782         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28783         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28784         field.
28785         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28786         EF_MIPS_FP64.
28787         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28788         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28789         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28790         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28791         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28792         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28793         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28794         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28795         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28796         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28797         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28798         record the current FP ABI extension.
28799         (mips-mode-switch): Define to show if kernel headers support mode
28800         switching.
28801         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28802         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28803         supported SYSV ABI version to 3.
28804         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28805         feature.
28806
28807 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28808             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28809
28810         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28811         path.
28812         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28813
28814 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28815
28816         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28817         __fegetround and redefine to call __fegetround.  Remove condition
28818         on [!__NO_MATH_INLINES].
28819         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28820         function.
28821         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28822         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28823         Remove macro.
28824         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28825         instead of <fenv_libc.h>.
28826         (__llrintl): Call fegetround instead of __fegetround.
28827         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28828         instead of <fenv_libc.h>.
28829         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28830         (__lrintl): Call fegetround instead of __fegetround.
28831         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28832         instead of <fenv_libc.h>.
28833         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28834         (__rintl): Call fegetround instead of __fegetround.
28835
28836 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28837
28838         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28839         arrays.
28840
28841 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28842
28843         [BZ #17775]
28844         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28845         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28846         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28847
28848 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28849
28850         * sysdeps/i386/tls-macros.h: Include <features.h>.
28851         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28852         (TLS_IE): Likewise.
28853         (TLS_LD): Likewise.
28854         (TLS_GD): Likewise.
28855         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28856         define for GCC >= 5.0.
28857
28858 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28859
28860         * math/test-fenv.c (test_single_exception, set_single_exc,
28861         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28862         feexcp_mask_test, feenable_test, fe_single_test): Add
28863         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28864         case where they are not used.
28865         * math/libm-test.inc: Likewise.
28866         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28867         unused in the absence of FP rounding/exception support.
28868         * stdio-common/tst-printf-round.c: Likewise.
28869         * stdlib/tst-strtod-round.c: Likewise.
28870         * stdlib/tst-strtod-underflow.c: Likewise.
28871
28872 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28873
28874         [BZ #17723]
28875         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28876         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28877         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28878         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28879         libm_hidden_weak.
28880         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28881         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28882         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28883         libm_hidden_def.
28884         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28885         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28886         libm_hidden_weak.
28887         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28888         Likewise.
28889         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28890         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28891         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28892         libm_hidden_weak.
28893         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28894         libm_hidden_def.
28895         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28896         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28897         (__feraiseexcept): Likewise.
28898         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28899         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28900         libm_hidden_weak.
28901         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28902         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28903         libm_hidden_def.
28904         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28905         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28906         Use libm_hidden_def.
28907         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28908         libm_hidden_def.
28909         (feraiseexcept): Define as weak not strong alias.  Use
28910         libm_hidden_weak.
28911         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28912         New inline function.  Factored out of ...
28913         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28914         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28915         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28916         feraiseexcept.
28917         * math/w_acos.c (__acos): Likewise.
28918         * math/w_asin.c (__asin): Likewise.
28919         * math/w_ilogb.c (__ilogb): Likewise.
28920         * math/w_j0.c (y0): Likewise.
28921         * math/w_j1.c (y1): Likewise.
28922         * math/w_jn.c (yn): Likewise.
28923         * math/w_log.c (__log): Likewise.
28924         * math/w_log10.c (__log10): Likewise.
28925         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28926         * sysdeps/aarch64/fpu/math_private.h
28927         (libc_feupdateenv_test_aarch64): Likewise.
28928         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28929         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28930         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28931         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28932         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28933         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28934         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28935         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28936         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28937         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28938
28939 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28940
28941         [BZ #17732]
28942         * io/test-utime.c (main): Replace %ld with %jd and cast to
28943         intmax_t.
28944         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28945         * nptl/tst-mutex5.c: Include <stdint.h>.
28946         (do_test): Replace %ld with %jd and cast to intmax_t.
28947         * posix/tst-regex.c (run_test): Likewise.
28948         (run_test_backwards): Likewise.
28949         * rt/tst-clock.c: Include <stdint.h>.
28950         (clock_test): Replace %ld with %jd and cast to intmax_t.
28951         * rt/tst-cpuclock1.c: Include <stdint.h>.
28952         (do_test): Replace %lu with %ju and cast to uintmax_t.
28953         * rt/tst-cpuclock2.c: Include <stdint.h>.
28954         (do_test): Replace %lu with %ju and cast to uintmax_t.
28955         * rt/tst-mqueue1.c: Include <stdint.h>.
28956         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28957         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28958         intmax_t.
28959         * rt/tst-mqueue4.c (do_test): Likewise.
28960         * rt/tst-timer4.c: Include <stdint.h>.
28961         (check_ts): Replace %ld with %jd and cast to intmax_t.
28962         (do_test): Likewise.
28963         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28964         and cast to intmax_t.
28965         * sysdeps/pthread/tst-timer.c (main): Likewise.
28966         * time/clocktest.c (main): Likewise.
28967         * time/tst-posixtz.c (do_test): Likewise.
28968         * timezone/tst-timezone.c (main): Likewise.
28969
28970 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28971             H.J. Lu  <hongjiu.lu@intel.com>
28972
28973         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28974         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28975         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28976         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28977         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28978         version if bit_Fast_Unaligned_Load is set.
28979         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28980         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28981         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28982         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28983         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28984         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28985         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28986         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28987         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28988         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28989         to 4.
28990         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28991         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28992         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28993         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28994
28995 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28996
28997         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28998         instead of #if to avoid a Wundef warning.
28999         * stdlib/tst-limits.c (do_test): Likewise.
29000
29001         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
29002         parallel other exception macros.
29003         (fegetenv): Convert from macro to extern inline so that it applies
29004         retroactively to inline functions already seen by the compiler.
29005         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
29006
29007         * posix/Makefile (before-compile): Use $(objpfx) for
29008         posix-conf-vars-def.h.
29009
29010 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
29011
29012         * posix/getconf.c (main): Use size_t for type of I.
29013         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
29014         NSPEC.
29015
29016         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
29017         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
29018         * posix/posix-envs.def: Likewise.
29019         * sysdeps/posix/sysconf.c: Likewise.
29020         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
29021         (specs): Remove array.
29022         * scripts/gen-posix-conf-vars.awk: Support generation of specs
29023         array.
29024
29025         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
29026         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
29027         (__sysconf): Use CONF_IS_* macros.
29028
29029         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
29030         ($(objpfx)posix-conf-vars-def.h): New target.
29031         * posix/posix-conf-vars.list: New file.
29032         * posix/posix-conf-vars.h: New file.
29033         * posix/confstr.c: Include posix-conf-vars.h.
29034         (confstr): Use CONF_IS_* macros.
29035         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
29036         CONF_IS_* macros.
29037         * scripts/gen-posix-conf-vars.awk: New file.
29038
29039 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
29040
29041         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
29042         fegetround): Add no-op macros to avoid linknamespace issues.
29043
29044         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
29045         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
29046
29047         * sysdeps/unix/sysv/linux/tile/sysdep.h
29048         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
29049         assembly-specific section to avoid a redefinition warning.
29050
29051         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
29052         long before casting to pointer to avoid a cast warning.
29053
29054 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
29055
29056         * sysdeps/tile/tilegx/Implies: New file.
29057
29058 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
29059
29060         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
29061
29062 2014-12-23  Florian Weimer  <fweimer@redhat.com>
29063
29064         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
29065
29066 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29067
29068         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
29069         not define.
29070         * sysdeps/unix/sysv/linux/utimes.c: Do not include
29071         <kernel-features.h>.
29072         (__utimes) [__NR_utimes]: Make code unconditional.
29073         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
29074         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
29075         (__ASSUME_UTIMES): Do not undefine.
29076         * sysdeps/unix/sysv/linux/tile/kernel-features.h
29077         (__ASSUME_UTIMES): Likewise.
29078         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29079         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
29080         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
29081         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
29082
29083 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
29084
29085         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
29086
29087 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
29088
29089         [BZ #17747]
29090         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
29091         alias to weak alias for j0l, y0l.
29092         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
29093         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
29094
29095         [BZ #17746]
29096         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
29097         conversion.
29098
29099 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
29100
29101         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
29102         to zero if not already defined.
29103
29104 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29105
29106         [BZ #17724]
29107         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
29108         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
29109         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
29110         (char *) casts added.
29111         * sysdeps/ieee754/k_standardf.c: New file.
29112         * sysdeps/ieee754/k_standardl.c: Likewise.
29113         * math/Makefile (libm-support): Remove k_standard.
29114         (libm-calls): Add k_standard.
29115
29116 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29117
29118         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
29119         Optimize to avoid an unnecessary FPCR read.
29120
29121 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29122
29123         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
29124         Optimize to reduce FPCR/FPSR accesses.
29125
29126 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29127
29128         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
29129         Call libc_fetestexcept_aarch64.
29130
29131 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29132
29133         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
29134         Call libc_fesetround_aarch64.
29135
29136 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29137
29138         [BZ #17733]
29139         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
29140         (__bind): Do not define as weak alias.
29141         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
29142         define.
29143         (__getsockname): Do not define as weak alias.
29144
29145 2014-12-22  Will Newton  <will.newton@linaro.org>
29146
29147         * manual/install.texi: Document that we require bison 2.7
29148         or above.
29149         * INSTALL: Regenerate.
29150         * configure.ac: Use AC_CHECK_PROG_VER instead of
29151         AC_PATH_PROG when checking for bison and check for
29152         version 2.7 or above.
29153         * configure: Regenerate.
29154
29155 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
29156
29157         [BZ #17745]
29158         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
29159         * sysdeps/tile/ffsll.c (ffsll): To here.
29160
29161         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
29162
29163 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
29164
29165         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
29166         if not defined.
29167         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
29168         definition.
29169         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
29170         hidden ___tls_get_addr.
29171         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
29172         hidden __tls_get_addr.
29173         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
29174         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
29175         Likewise.
29176
29177 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
29178
29179         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
29180         _dl_init call.
29181
29182 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
29183
29184         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
29185         from "call _dl_init@PLT".
29186         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
29187
29188 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
29189
29190         * manual/search.texi: (Array Sort Function): Clarify stable sorting
29191         guarantees.
29192
29193 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
29194
29195         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
29196
29197 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
29198
29199         [BZ #17744]
29200         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
29201         strnlen.
29202
29203 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29204
29205         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
29206         of multu on MIPSr6.
29207         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
29208         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
29209         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
29210         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
29211         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
29212
29213 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29214
29215         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
29216         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
29217         (PTR_SUBU): Use subu for mips32r6/mips64r6.
29218         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
29219         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
29220         mips32r6/mips64r6.
29221         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
29222
29223 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
29224
29225         * string/strncat.c (STRNCAT): Simplify implementation.
29226
29227 2014-12-19  David S. Miller  <davem@davemloft.net>
29228
29229         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
29230         access the quad as both a long double and as a series of 4 words.
29231
29232         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
29233         link_map->l_info array access.
29234
29235 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
29236
29237         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
29238
29239         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
29240         * math/atest-exp2.c (TIMEOUT): Likewise.
29241         * math/atest-sincos.c (TIMEOUT): Likewise.
29242
29243 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29244
29245         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
29246         -Wno-error with -fno-builtin-lround.
29247
29248 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29249
29250         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
29251         Contains futex constants and functions moved over from ...
29252         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
29253         <lowlevellock-futex.h>.
29254         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29255         (lll_timedwait_tid): Add comments and parentheses around macro
29256         arguments.
29257
29258 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29259
29260         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
29261         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
29262         (__lll_private_flag): Remove.
29263         (lll_futex_wait): Likewise.
29264         (lll_futex_timed_wait): Likewise.
29265         (lll_futex_wake): Likewise.
29266         (lll_futex_requeue): Likewise.
29267         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29268         (__lll_timedwait_tid): Spell out argument names.
29269         (lll_timedwait_tid): Add comments and parentheses around macro
29270         arguments.
29271         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
29272         LLL_SHARED and LLL_PRIVATE usable from assembly code.
29273
29274 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29275
29276         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
29277         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
29278         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
29279         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
29280         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
29281         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
29282         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
29283         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
29284         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
29285         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
29286         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
29287         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
29288         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
29289         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
29290         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
29291         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
29292         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
29293         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
29294         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
29295
29296 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29297
29298         * sysdeps/x86_64/x32/Makefile: New file.
29299
29300 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29301
29302         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
29303         1L with (mp_limb_t) 1.
29304
29305 2014-12-17  Roland McGrath  <roland@hack.frob.com>
29306
29307         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
29308         * nptl/libc_pthread_init.c: ... here.
29309         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
29310         * nptl/register-atfork.c: ... here.
29311
29312         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
29313         Use pthread_sigmask rather than INTERNAL_SYSCALL.
29314         Use assert_perror to check its return value.
29315         (__gai_create_helper_thread): Likewise.
29316
29317         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
29318
29319         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
29320
29321 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
29322
29323         [BZ #17725]
29324         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
29325         __profil_counter.
29326         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
29327         Likewise.
29328         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
29329         Likewise.
29330         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
29331         Likewise.
29332         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
29333         (profil_counter): Likewise.
29334         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
29335         (profil_counter): Likewise.
29336         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
29337         Likewise.
29338         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
29339         Likewise.
29340         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
29341         (profil_counter): Likewise.
29342         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
29343         Likewise.
29344         [!__profil_counter] (profil_counter): Define as weak alias of
29345         __profil_counter.
29346         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
29347         (profil_counter): Rename to __profil_counter.
29348         [!__profil_counter] (profil_counter): Define as weak alias of
29349         __profil_counter.
29350         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
29351         (profil_counter): Rename to __profil_counter.
29352         [!__profil_counter] (profil_counter): Define as weak alias of
29353         __profil_counter.
29354         * sysdeps/posix/profil.c: Update comment referring to
29355         profil_counter.
29356         (__profil): Use __profil_counter instead of profil_counter.
29357         * sysdeps/posix/sprofil.c (profil_counter): Rename to
29358         __profil_counter.  Use __profil_counter_ushort and
29359         __profil_counter_uint in definitions.
29360         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
29361         instead of profil_counter_uint and profil_counter_ushort.
29362
29363         [BZ #17722]
29364         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
29365         define as weak alias of __inet_makeaddr.
29366         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
29367         as weak alias of __inet_addr.
29368         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
29369         as weak alias of __inet_pton.  Use libc_hidden_weak.
29370         * include/arpa/inet.h (__inet_pton): Declare.  Use
29371         libc_hidden_proto.
29372         (inet_makeaddr): Don't use libc_hidden_proto.
29373         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
29374         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
29375         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
29376         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
29377         Remove variable.
29378         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
29379         (test-xfail-POSIX/time.h/linknamespace): Likewise.
29380
29381 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
29382
29383         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
29384
29385 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29386
29387         * stdio-common/bug-vfprintf-nargs.c (do_test):
29388         Cast value to intptr_t to avoid format warning
29389         for usage with PRIdPTR printing macro.
29390
29391 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29392
29393         * libio/tst-widetext.c (do_test):
29394         Use format type %td instead of %Zd for ptrdiff_t
29395         in order to avoid format warning.
29396
29397 2014-12-17  Andreas Schwab  <schwab@suse.de>
29398
29399         * nscd/mem.c (gc): Add size_t cast to match printf format.
29400
29401 2014-12-16  Roland McGrath  <roland@hack.frob.com>
29402
29403         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
29404         (init): Apply PTR_MANGLE to pointers before storing them.
29405         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
29406         before using them.
29407
29408 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
29409
29410         [BZ #17719]
29411         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
29412         define as weak alias of __memrchr.
29413         (__memrchr): Do not define as strong alias of memrchr.
29414         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
29415         Remove variable.
29416         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
29417         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
29418         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
29419
29420         [BZ #17717]
29421         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
29422         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
29423         (if_indextoname): Rename to __if_indextoname and define as weak
29424         alias of __if_indextoname.  Use libc_hidden_weak.
29425         (if_freenameindex): Rename to __if_freenameindex and define as
29426         weak alias of __if_freenameindex.
29427         (if_nameindex): Rename to __if_nameindex and define as weak alias
29428         of __if_nameindex.
29429         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
29430         __if_nametoindex and define as weak alias of __if_nametoindex.
29431         Use libc_hidden_weak.
29432         (if_freenameindex): Rename to __if_freenameindex and define as
29433         weak alias of __if_freenameindex.
29434         (if_nameindex): Rename to __if_nameindex and define as weak alias
29435         of __if_nameindex.
29436         (if_indextoname): Rename to __if_indextoname and define as weak
29437         alias of __if_indextoname.  Use libc_hidden_weak.
29438         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
29439         __if_nametoindex and define as weak alias of __if_nametoindex.
29440         Use libc_hidden_weak.
29441         (if_freenameindex): Rename to __if_freenameindex and define as
29442         weak alias of __if_freenameindex.  Use libc_hidden_weak.
29443         (if_nameindex_netlink): Use __if_freenameindex instead of
29444         if_freenameindex.
29445         (if_nameindex): Rename to __if_nameindex and define as weak alias
29446         of __if_nameindex.  Use libc_hidden_weak.
29447         (if_indextoname): Rename to __if_indextoname and define as weak
29448         alias of __if_indextoname.  Use libc_hidden_weak.
29449         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
29450         libc_hidden_proto.
29451         [!_ISOMAC] (__if_freenameindex): Likewise.
29452         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
29453         if_nametoindex.
29454         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
29455         variable.
29456         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
29457         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
29458         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
29459         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
29460         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
29461         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
29462         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
29463
29464         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
29465         Remove variable.
29466         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
29467         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
29468
29469 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29470
29471         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
29472         subscript above bounds'
29473
29474         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
29475         bounds.
29476
29477 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
29478
29479         * libio/tst-fopenloc.c: Use test-skeleton.c.
29480
29481         * stdlib/tst-bsearch.c: Use test-skeleton.c.
29482         (entry): Rename to ITEM.
29483         (do_test, comp): Adjust.
29484
29485         * stdio-common/tst-fseek.c: Use test-skeleton.c.
29486
29487 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29488
29489         * string/tester.c: Include <libc-internal.h>.
29490         (test_memset): Ignore -Wmemset-transposed-args.
29491
29492 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29493
29494         * misc/tst-mntent2.c (do_test): Fix warning.
29495
29496 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29497
29498         * elf/tst-unique4lib.cc(a): Mark as used.
29499
29500 2014-12-16  Florian Weimer  <fweimer@redhat.com>
29501
29502         [BZ #17630]
29503         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
29504         names.
29505
29506 2014-12-16  Allan McRae  <allan@archlinux.org>
29507
29508         * stdio-common/Makefile (tests): Re-add bug26.
29509
29510 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
29511
29512         [BZ #17657]
29513         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
29514         static array.
29515
29516 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
29517
29518         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
29519         (__lll_lock_wait): Likewise.
29520         (__lll_timedlock_wait): Likewise.
29521         (__lll_timedwait_tid): Likewise.
29522         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
29523         (__lll_robust_timedlock_wait): Likewise.
29524         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
29525         (lll_cond_trylock): Likewise.
29526         (__lll_lock): Likewise.
29527         (__lll_robust_lock): Likewise.
29528         (__lll_cond_lock): Likewise.
29529         (lll_robust_cond_lock): Likewise.
29530         (__lll_timedlock): Likewise.
29531         (__lll_robust_timedlock): Likewise.
29532         (__lll_unlock): Likewise.
29533         (__lll_robust_unlock): Likewise.
29534         (lll_wait_tid): Likewise.
29535         (lll_timedwait_tid): Likewise.
29536
29537 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29538
29539         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
29540
29541 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29542
29543         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
29544
29545 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29546
29547         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
29548         * stdio-common/tst-sprintf.c: Likewise.
29549
29550 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29551
29552         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29553
29554 2014-12-15  Jeff Law  <law@redhat.com>
29555
29556         [BZ #16617]
29557         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29558         on the heap.  (CVE-2012-3406)
29559         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29560         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29561         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29562
29563 2014-12-15  Will Newton  <will.newton@linaro.org>
29564
29565         * manual/install.texi: Bump required version of texinfo
29566         to 4.7 from 4.5.
29567         * INSTALL: Regenerated.
29568         * configure.ac: Check for makeinfo version 4.7 and above.
29569         * configure: Regenerated.
29570
29571 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29572
29573         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29574         PREFIX, string constant to insert between directory and name.
29575         * sysdeps/posix/shm_open.c: Update caller.
29576         * sysdeps/posix/shm_unlink.c: Likewise.
29577         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29578         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29579         (SEM_SHM_PREFIX): New macro.
29580         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29581         [$(have-thread-library) = no].
29582         * nptl/Makefile (libpthread-routines): Add shm-directory.
29583         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29584         * sysdeps/nptl/shm-directory.h: New file.
29585         * sysdeps/posix/shm-directory.c
29586         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29587         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29588         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29589         INTERNAL_SYSCALL.
29590         (__where_is_shmfs): Function removed.
29591         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29592         Variables removed.
29593         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29594         Use SHM_GET_NAME.
29595         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29596
29597         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29598         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29599         unconditional for use inside libpthread.
29600         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29601
29602 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29603
29604         * nptl/pthread_getaffinity.c: New file.
29605         * nptl/pthread_setaffinity.c: New file.
29606         * nptl/pthread_getname.c: New file.
29607         * nptl/pthread_setname.c: New file.
29608
29609         * nptl/pthread_create.c (START_THREAD_DEFN)
29610         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29611
29612 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29613             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29614
29615         * resolv/res_send.c (send_vc): Disable warning resplen may
29616         be used uninitialized.
29617
29618 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29619
29620         * nptl/tst-mutex6.c
29621         (ATTR_NULL): New define checks ATTR against NULL.
29622         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29623         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29624
29625 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29626
29627         [BZ #17581]
29628         * malloc/hooks.c
29629         (mem2mem_check): Revert my previous change.
29630         (malloc_check_get_size): Revert my previous change.
29631         (mem2chunk_check): Revert my previous change.
29632
29633 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29634
29635         * sysdeps/posix/shm-directory.c: New file.
29636         * sysdeps/posix/shm-directory.h: New file.
29637         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29638         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29639         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29640         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29641         Transmute EPERM to EACCES.
29642         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29643         from ...
29644         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29645         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29646
29647 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29648
29649         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29650         pointer and cast to uintptr_t.
29651         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29652         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29653         Add cast to avoid warning.
29654         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29655
29656 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29657
29658         * nptl/semaphore.h: Move to ...
29659         * sysdeps/pthread/semaphore.h: ... here.
29660         * Makefile (installed-headers): Change nptl/semaphore.h to
29661         sysdeps/pthread/semaphore.h.
29662
29663 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29664
29665         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29666         generated error format strings.
29667
29668         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29669         -Wformat-extra-args warnings for scanf formats.
29670         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29671         test of zero-length format (duh).
29672         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29673         corner-case scanf format test.
29674         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29675         generated fprintf format string.
29676         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29677         corner-case sprintf format tests.
29678         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29679         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29680         -Wformat-extra-args warnings throughout.
29681         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29682         (CFLAGS-scanf4.c): Likewise.
29683         (CFLAGS-scanf7.c): Likewise.
29684         (CFLAGS-tst-sprintf.c): Likewise.
29685         (CFLAGS-tst-printf.c): Likewise.
29686         (CFLAGS-tst-printfsz.c): Likewise.
29687
29688 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29689
29690         * include/cpio.h: New file.
29691         * include/fmtmsg.h: Likewise.
29692
29693         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29694         corresponding format argument to size_t.
29695         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29696         arguments.
29697         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29698         corresponding format argument to size_t.
29699         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29700         arguments.
29701         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29702         corresponding format argument to size_t.
29703         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29704         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29705         (CFLAGS-tst-mbswcs2.c): Likewise.
29706         (CFLAGS-tst-mbswcs3.c): Likewise.
29707         (CFLAGS-tst-mbswcs4.c): Likewise.
29708         (CFLAGS-tst-mbswcs5.c): Likewise.
29709         (CFLAGS-tst-trans.c): Likewise.
29710
29711 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29712
29713         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29714         rather than assuming they won't contain any '%'s.
29715
29716 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29717
29718         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29719         inhibit_loop_to_libcall to avoid recursive calls.
29720         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29721         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29722
29723 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29724
29725         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29726         prototype.
29727
29728 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29729
29730         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29731         integer value instead of boolean.
29732
29733 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29734
29735         * malloc/malloc.c: Fix powerof2 check.
29736
29737 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29738
29739         * locale/programs/locfile.h (maybe_swap_uint32):
29740         Remove inline and add unused attribute.
29741
29742 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29743
29744         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29745         Truncating assembler expression to a .long expression.
29746
29747 2014-12-11  Andreas Schwab  <schwab@suse.de>
29748
29749         * elf/rtld.c (struct map_args): Constify str member.
29750         (do_preload): Constify fname argument.
29751
29752 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29753
29754         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29755         constants definition.
29756
29757 2014-12-11  Andreas Schwab  <schwab@suse.de>
29758
29759         [BZ #16657]
29760         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29761         FORCE_ELISION instead of DO_ELISION.
29762         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29763         Remove.
29764         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29765         Likewise.
29766
29767         * iconvdata/gconv-modules: Remove duplicate entry.
29768
29769 2014-12-11  Will Newton  <will.newton@linaro.org>
29770
29771         Merge gettext 0.19.3 into intl/.
29772
29773         This involves a number of cosmetic changes to comments
29774         and ANSI function definitions and prototypes throughout
29775         all the files. The gettext copyright header is used but
29776         with the date ranges taken from the glibc copy.
29777
29778         * NEWS: Add gettext merge to 2.21.
29779         * intl/bindtextdom.c: Switch to gettext copyright.
29780         Use ANSI definitions and prototypes.
29781         Use gl_* locking primitives rather than __libc_* ones.
29782         Use __builtin_expect rather than __glibc_likely/unlikely.
29783         * intl/dcgettext.c: Switch to gettext copyright.
29784         Use ANSI definitions and prototypes.
29785         * intl/dcigettext.c: Switch to gettext copyright.
29786         Use ANSI definitions and prototypes.
29787         (INTDIV0_RAISES_SIGFPE): New define.
29788         Use gl_* locking primitives rather than __libc_* ones.
29789         Include eval-plural.h instead of plural-eval.c.
29790         Use __builtin_expect rather than __glibc_likely/unlikely.
29791         * intl/dcngettext.c: Switch to gettext copyright.
29792         Use ANSI definitions and prototypes.
29793         * intl/dgettext.c: Likewise.
29794         * intl/dngettext.c: Likewise.
29795         * intl/plural-eval.c: Renamed to...
29796         * intl/eval-plural.h: ...this.
29797         * intl/explodename.c: Switch to gettext copyright.
29798         Use ANSI definitions and prototypes.
29799         (_nl_explode_name): Use strchr instead of __rawmemchr.
29800         * intl/finddomain.c: Switch to gettext copyright.
29801         Use ANSI definitions and prototypes.
29802         Use gl_* locking primitives rather than __libc_* ones.
29803         (_nl_find_domain): Use malloc rather than alloca for
29804         allocation of temporary locale name.
29805         * intl/gettext.c: Switch to gettext copyright.
29806         Use ANSI definitions and prototypes.
29807         * intl/gettextP.h: Switch to gettext copyright.
29808         Use ANSI definitions and prototypes.
29809         Use gl_* locking primitives rather than __libc_* ones.
29810         * intl/gmo.h: Switch to gettext copyright.
29811         (struct sysdep_string): Move struct segment_pair outside of
29812         struct definition.
29813         * intl/hash-string.c: Use ANSI definitions and prototypes.
29814         * intl/hash-string.h: Switch to gettext copyright.
29815         Use ANSI definitions and prototypes.
29816         * intl/l10nflist.c: Switch to gettext copyright.
29817         Use ANSI definitions and prototypes.
29818         (_nl_normalize_codeset): Avoid integer overflow.
29819         * intl/loadinfo.h: Switch to gettext copyright.
29820         Use ANSI definitions and prototypes.
29821         (LIBINTL_DLL_EXPORTED): New define.
29822         (PATH_SEPARATOR): New define.
29823         * intl/loadmsgcat.c: Switch to gettext copyright.
29824         * intl/localealias.c: Switch to gettext copyright.
29825         Use ANSI definitions and prototypes.
29826         (_nl_expand_alias): Use PATH_SEPARATOR.
29827         * intl/ngettext.c: Switch to gettext copyright.
29828         Use ANSI definitions and prototypes.
29829         * intl/plural-exp.c: Likewise.
29830         * intl/plural-exp.h: Switch to gettext copyright.
29831         Use ANSI definitions and prototypes.
29832         (struct expression): Move definition of enum operator outside
29833         of struct definition.
29834         * intl/plural.c: Regenerate.
29835         * intl/plural.y: Switch to gettext copyright.
29836         Use ANSI definitions and prototypes.
29837         Port to bison 3.0.
29838         * intl/textdomain.c: Switch to gettext copyright.
29839         Use ANSI definitions and prototypes.
29840         Use gl_* locking primitives rather than __libc_* ones.
29841
29842 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29843
29844         * debug/warning-nop.c: Add used atrribute.
29845
29846 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29847
29848         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29849
29850         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29851         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29852         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29853
29854 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29855             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29856
29857         [BZ #17634]
29858         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29859         Undefine after defining function.  Define as weak alias of
29860         __wcschr.  Use libc_hidden_weak.
29861         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29862         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29863         (libc_hidden_def): Also define __GI___wcschr alias.
29864         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29865         __wcschr and define as weak alias of __wcschr.
29866         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29867         __wcschr.
29868         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29869         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29870         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29871         libc_hidden_weak.  Do not use libc_hidden_def.
29872         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29873         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29874         __GI___wcschr alias.
29875         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29876         [IS_IN (libc)] (wcschr): Define as macro expanding to
29877         __redirect_wcschr.
29878         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29879         [IS_IN (libc)] (__wcschr_power6): Likewise.
29880         [IS_IN (libc)] (__wcschr_power7): Likewise.
29881         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29882         instead of wcschr.
29883         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29884         __libc_wcschr.
29885         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29886         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29887         __wcschr and define as weak alias of __wcschr.  Use
29888         libc_hidden_builtin_def.
29889         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29890         as weak alias of __wcschr.  Use libc_hidden_weak.
29891         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29892         wcschr.
29893         * time/era.c (_nl_init_era_entries): Likewise.
29894         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29895         variable.
29896         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29897         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29898
29899 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29900
29901         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29902         format for long int variable.
29903
29904 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29905
29906         [BZ #10672]
29907         * manual/search.texi: (Array Sort Function): Remove claim how to make
29908         qsort stable.
29909
29910 2014-12-10  Andreas Schwab  <schwab@suse.de>
29911
29912         [BZ #12847]
29913         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29914         user-controlled locks.
29915
29916 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29917
29918         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29919         register.
29920
29921 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29922
29923         * configure.ac (--disable-werror): New configure option.
29924         (enable_werror): New AC_SUBST.
29925         * configure: Regenerated.
29926         * config.make.in (enable-werror): New variable.
29927         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29928         -Wno-error=undef.
29929         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29930         * manual/install.texi (Configuring and compiling): Document
29931         --disable-werror.
29932         * INSTALL: Regenerated.
29933         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29934         (CFLAGS-tst-chk2.c): Likewise.
29935         (CFLAGS-tst-chk3.c): Likewise.
29936         (CFLAGS-tst-chk4.cc): Likewise.
29937         (CFLAGS-tst-chk5.cc): Likewise.
29938         (CFLAGS-tst-chk6.cc): Likewise.
29939         (CFLAGS-tst-lfschk1.c): Likewise.
29940         (CFLAGS-tst-lfschk2.c): Likewise.
29941         (CFLAGS-tst-lfschk3.c): Likewise.
29942         (CFLAGS-tst-lfschk4.cc): Likewise.
29943         (CFLAGS-tst-lfschk5.cc): Likewise.
29944         (CFLAGS-tst-lfschk6.cc): Likewise.
29945
29946         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29947         (main): Disable -Wdeprecated-declarations around calls to
29948         register_printf_function.
29949
29950         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29951         (do_test): Disable -Wdiv-by-zero around some calls to
29952         fwrite_unlocked and fread_unlocked.
29953
29954         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29955         (DIAG_POP_NEEDS_COMMENT): Likewise.
29956         (_DIAG_STR1): Likewise.
29957         (_DIAG_STR): Likewise.
29958         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29959         * stdio-common/bug21.c: Include <libc-internal.h>.
29960         (do_test): Disable -Wformat around call to sscanf.
29961         * stdio-common/scanf14.c: Include <libc-internal.h>.
29962         (main): Disable -Wformat around some calls to scanf functions.
29963
29964 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29965
29966         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29967
29968 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29969
29970         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29971         stack variable alignment.
29972
29973 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29974
29975         [BZ #17682]
29976         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29977         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29978         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29979         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29980         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29981         __getrlimit instead of getrlimit.
29982         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29983         __gettimeofday instead of gettimeofday.
29984         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29985         Likewise.
29986         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29987         Likewise.
29988         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29989         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29990         Remove variable.
29991         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29992         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29993
29994 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29995
29996         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29997         for wide-character tests.
29998
29999 2014-12-04  Roland McGrath  <roland@hack.frob.com>
30000
30001         * io/openat64.c: #include <libc-internal.h>
30002         (__openat64): Prototypify.  Use ignore_value on MODE.
30003         * io/openat.c: Likewise.
30004         * misc/reboot.c: #include <libc-internal.h>
30005         (reboot): Prototypify.  Use ignore_value on HOWTO.
30006         * misc/ptrace.c: #include <libc-internal.h>
30007         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
30008
30009 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
30010
30011         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
30012         XPG4, UNIX98 and XOPEN2K.
30013         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
30014         Remove variable.
30015         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
30016
30017 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30018
30019         * libio/fileops.c: Use ISO C style for function definitions.
30020         * libio/iofopen.c: Likewise.
30021         * libio/wfileops.c: Likewise.
30022
30023         [BZ #17653]
30024         * libio/fileops.c (_IO_new_file_underflow): Unset cached
30025         offset on EOF.
30026         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
30027         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
30028         (fgets_func): Function pointer to fgets and fgetws.
30029         (do_ftell_test): Add test to verify ftell value after read
30030         EOF.
30031         (do_test): Set fgets_func.
30032
30033         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
30034         O_TRUNC flag for w and w+ modes.
30035         (do_rewind_test): Likewise.
30036         (do_ftell_test): Likewise.
30037         (do_write_test): Likewise.
30038
30039         [BZ #17647]
30040         * libio/fileops.c (do_ftell): Seek only when there are
30041         unflushed writes.
30042         * libio/wfileops.c (do_ftell_wide): Likewise.
30043         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
30044         test case.
30045         (do_one_test): Call it.
30046
30047 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
30048
30049         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
30050         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
30051         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
30052         Remove variable.
30053         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
30054         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
30055         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
30056
30057 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
30058
30059         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
30060         Remove variable.
30061         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
30062
30063         [BZ #17668]
30064         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
30065         as weak alias of __getifaddrs.  Use libc_hidden_weak.
30066         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30067         __freeifaddrs.  Use libc_hidden_weak.
30068         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
30069         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
30070         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30071         __freeifaddrs.  Use libc_hidden_weak.
30072         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
30073         __getifaddrs and define as weak alias of __getifaddrs.  Use
30074         libc_hidden_weak.
30075         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30076         __freeifaddrs.  Use libc_hidden_weak.
30077         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
30078         Remove variable.
30079         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
30080         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
30081
30082 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30083
30084         [BZ #17601]
30085         * sysdeps/mips/start.S (__start): Use indirect jump to call
30086         __libc_start_main.
30087
30088 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
30089
30090         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
30091
30092         * nptl/tst-mutex1.c: Include <stdbool.h>.
30093         [!ATTR] (ATTR_NULL): New macro.
30094         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
30095         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
30096         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
30097
30098         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
30099         to char *.
30100
30101         [BZ #17665]
30102         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
30103         Change conditional to [__USE_MISC].
30104
30105         [BZ #17664]
30106         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
30107         fgets_unlocked.
30108         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
30109         __fgets_unlocked.
30110         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
30111         fgets_unlocked.
30112         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
30113         Remove variable.
30114         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
30115         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
30116         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
30117         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
30118         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
30119         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
30120         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
30121         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
30122         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
30123
30124         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
30125
30126 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30127
30128         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30129         Remove strpbrk objects.
30130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30131         (__libc_ifunc_impl_list): Remove strpbrk implementation.
30132         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
30133         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
30134         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
30135         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
30136
30137         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30138         Remove strcspn objects.
30139         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30140         (__libc_ifunc_impl_list): Remove strcspn implementation.
30141         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
30142         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
30143         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
30144         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
30145
30146         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30147         Remove strspn objetcs.
30148         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30149         (__libc_ifunc_impl_list): Remove strspn implementation.
30150         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
30151         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30152         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
30153         * sysdeps/powerpc/powerpc64/strspn.S: New file.
30154
30155 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
30156
30157         [BZ #17581]
30158         * malloc/hooks.c
30159         (mem2mem_check): Add a terminator to the chain of checking blocks.
30160         (malloc_check_get_size): Use it here.
30161         (mem2chunk_check): Ditto.
30162
30163 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30164
30165         * sysdeps/powerpc/powerpc64/strtok.S: New file.
30166         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
30167
30168 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
30169
30170         * bits/ioctl-types.h: Indent preprocessor directives correctly.
30171
30172         * nptl/nptl-init.c: Include libc-internal.h.
30173         (__pthread_initialize_minimal_internal): Use ROUND_UP.
30174
30175         * elf/ldconfig.c (search_dir): Expand comment.
30176
30177 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
30178
30179         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
30180         variable.
30181         (linknamespace-symlist-stdlibs-tests): Likewise.
30182         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
30183         instead of $(objpfx)symlist-stdlibs.
30184         (linknamespace-libs-isoc): New variable.
30185         (linknamespace-libs): Use $(linknamespace-libs-isoc).
30186         (linknamespace-libs-ISO): New variable.
30187         (linknamespace-libs-ISO99): Likewise.
30188         (linknamespace-libs-ISO11): Likewise.
30189         (linknamespace-libs-XPG3): Likewise.
30190         (linknamespace-libs-XPG4): Likewise.
30191         (linknamespace-libs-POSIX): Likewise.
30192         (linknamespace-libs-UNIX98): Likewise.
30193         (linknamespace-libs-XOPEN2K): Likewise.
30194         (linknamespace-libs-POSIX2008): Likewise.
30195         (linknamespace-libs-XOPEN2K8): Likewise.
30196         ($(objpfx)symlist-stdlibs): Replace by
30197         $(linknamespace-symlist-stdlibs-tests).  Use
30198         $(linknamespace-libs-$*) as set of libraries.
30199         ($(linknamespace-header-tests)): Update dependencies.  Use
30200         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
30201         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
30202         * conform/linknamespace.pl: Remove comment about considering
30203         definitions of symbols from irrelevant libraries.
30204
30205 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
30206
30207         [BZ #13862]
30208         * elf/dl-tls.c: Include <atomic.h>.
30209         (oom): Remove #ifdef SHARED/#endif.
30210         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
30211         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
30212         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
30213         big enough.
30214         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
30215         * nptl/Makefile (tests): Add tst-stack4.
30216         (modules-names): Add tst-stack4mod.
30217         ($(objpfx)tst-stack4): New.
30218         (tst-stack4mod.sos): Likewise.
30219         ($(objpfx)tst-stack4.out): Likewise.
30220         ($(tst-stack4mod.sos)): Likewise.
30221         (clean): Likewise.
30222         * nptl/tst-stack4.c: New file.
30223         * nptl/tst-stack4mod.c: Likewise.
30224
30225 2014-11-27  J. Brown  <jb999@gmx.de>
30226
30227         * sysdeps/x86/bits/string.h: Add recent CPUs.
30228
30229 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30230
30231         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
30232         sigblock.
30233
30234         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
30235         feof.
30236
30237         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
30238         variable.
30239
30240 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
30241
30242         * nscd/connections.c: Include libc-internal.h because of macro
30243         usage ignore_value.
30244
30245 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
30246
30247         * string/bits/string3.h (__warn_memset_zero_len): Don't
30248         declare for gcc newer than 5.0.
30249         (memset): Don't test for zero-length __LEN for gcc newer than
30250         5.0.
30251
30252 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30253
30254         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
30255         size_t for %zu format.
30256
30257         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
30258         difference, not %ju.
30259
30260 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30261
30262         * include/libc-internal.h (ignore_value): New macro.
30263         * nscd/connections.c (restart): Wrap calls to setuid and setgid
30264         with ignore_value.
30265
30266         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
30267         definition.
30268
30269         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
30270         pthread_cleanup_push to void *.
30271
30272         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
30273         Undefine.
30274
30275         [BZ #16619]
30276         [BZ #16740]
30277         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
30278         instead of 1L << 52.
30279
30280         * libio/bug-rewind.c (do_test): Check fwscanf return values.
30281         * libio/bug-rewind2.c (do_test): Likewise.
30282
30283         * debug/test-stpcpy_chk-ifunc.c: Remove file.
30284         * debug/test-strcpy_chk-ifunc.c: Likewise.
30285         * wcsmbs/test-wcschr-ifunc.c: Likewise.
30286         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
30287         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
30288         * wcsmbs/test-wcslen-ifunc.c: Likewise.
30289         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
30290         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
30291         * Rules [$(multi-arch) = no] (tests): Do not filter out
30292         $(tests-ifunc).
30293         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
30294         * debug/Makefile (tests-ifunc): Remove variable.
30295         (tests): Do not add $(tests-ifunc).
30296         * wcsmbs/Makefile (tests-ifunc): Remove variable.
30297         (tests): Do not add $(tests-ifunc).
30298         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
30299         [TEST_IFUNC]: Remove conditionals.
30300         * string/test-string.h (TEST_IFUNC): Remove macro.
30301         [TEST_IFUNC]: Remove conditionals.
30302
30303         * string/test-strchr.c [!WIDE] (L): New macro.
30304         [WIDE] (L): Likewise.
30305         (check1): Use CHAR instead of char.  Use L on string and character
30306         constants.
30307
30308 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
30309
30310         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
30311         tests.
30312         * sysdeps/powerpc/bits/atomic.h
30313         (__arch_atomic_exchange_and_add_32_acq): Add definition.
30314         (__arch_atomic_exchange_and_add_32_rel): Likewise.
30315         (atomic_exchange_and_add_acq): Likewise.
30316         (atomic_exchange_and_add_rel): Likewise.
30317         * sysdeps/powerpc/powerpc32/bits/atomic.h
30318         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30319         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30320         * sysdeps/powerpc/powerpc64/bits/atomic.h
30321         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30322         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30323
30324 2014-11-26  Torvald Riegel  <triegel@redhat.com>
30325
30326         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
30327         Change synchronization of __sched_fifo_min_prio and
30328         __sched_fifo_max_prio.
30329         * nptl/pthread_mutexattr_getprioceiling.c
30330         (pthread_mutexattr_getprioceiling): Likewise.
30331         * nptl/pthread_mutexattr_setprioceiling.c
30332         (pthread_mutexattr_setprioceiling): Likewise.
30333         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
30334         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
30335         Likewise.
30336
30337 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30338
30339         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
30340         void.
30341
30342 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30343
30344         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
30345         third argument const.
30346
30347 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30348
30349         fnmatch: work around GCC compiler warning bug with uninit var
30350         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
30351         This works around a bug with x86-64 GCC 4.9.2 and earlier
30352         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
30353         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
30354         used uninitialized in this function [-Wmaybe-uninitialized]".
30355
30356 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30357
30358         * posix/bug-regex31.c (main): Return RES not 0.
30359
30360 2014-11-25  Anton Blanchard <anton@samba.org>
30361
30362         * sysdeps/powerpc/bits/atomic.h
30363         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
30364
30365 2014-11-24  Sterling Augustine  <saugustine@google.com>
30366
30367         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
30368
30369 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
30370
30371         [BZ #17608]
30372         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
30373
30374 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
30375
30376         [BZ #17633]
30377         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
30378         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
30379         variable.
30380         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30381         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30382
30383 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30384
30385         * string/strncpy.c (strncpy): Improve performance by using memset.
30386
30387 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30388
30389         * string/strcpy.c (strcpy):
30390         Improve performance by using strlen and memcpy.
30391
30392 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
30393
30394         * string/strcoll_l.c (get_next_seq): __always_inline.
30395         * string/strcoll_l.c (do_compare): __always_inline.
30396
30397 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30398
30399         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
30400         defined.
30401         * include/mqueue.h: Likewise.
30402         * include/stdlib.h: Likewise.
30403
30404         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
30405         (get_null_defines): Adjust.
30406         * sunrpc/Makefile: Adjust comment.
30407         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
30408         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
30409         (CFLAGS-interp.c): Likewise.
30410         (CFLAGS-ldconfig.c): Likewise.
30411         (CPPFLAGS-.os): Likewise.
30412         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30413         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30414         * extra-modules.mk (extra-modules.mk): Likewise.
30415         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
30416         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
30417         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
30418         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
30419         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
30420         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
30421         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
30422         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
30423         * iconvdata/Makefile (CPPFLAGS): Likewise.
30424         (cpp-srcs-left): Add libof for all iconvdata routines.
30425         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
30426         * include/assert.h: Likewise.
30427         * include/ctype.h: Likewise.
30428         * include/errno.h: Likewise.
30429         * include/libc-symbols.h: Likewise.
30430         * include/math.h: Likewise.
30431         * include/netdb.h: Likewise.
30432         * include/resolv.h: Likewise.
30433         * include/stdio.h: Likewise.
30434         * include/stdlib.h: Likewise.
30435         * include/string.h: Likewise.
30436         * include/sys/stat.h: Likewise.
30437         * include/wctype.h: Likewise.
30438         * intl/l10nflist.c: Likewise.
30439         * libidn/idn-stub.c: Likewise.
30440         * libio/libioP.h: Likewise.
30441         * nptl/libc_multiple_threads.c: Likewise.
30442         * nptl/pthreadP.h: Likewise.
30443         * posix/regex_internal.h: Likewise.
30444         * resolv/res_hconf.c: Likewise.
30445         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
30446         * sysdeps/arm/memmove.S: Likewise.
30447         * sysdeps/arm/sysdep.h: Likewise.
30448         * sysdeps/generic/_itoa.h: Likewise.
30449         * sysdeps/generic/symbol-hacks.h: Likewise.
30450         * sysdeps/gnu/errlist.awk: Likewise.
30451         * sysdeps/gnu/errlist.c: Likewise.
30452         * sysdeps/i386/i586/memcpy.S: Likewise.
30453         * sysdeps/i386/i586/memset.S: Likewise.
30454         * sysdeps/i386/i686/memcpy.S: Likewise.
30455         * sysdeps/i386/i686/memmove.S: Likewise.
30456         * sysdeps/i386/i686/mempcpy.S: Likewise.
30457         * sysdeps/i386/i686/memset.S: Likewise.
30458         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30459         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30460         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
30461         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
30462         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30463         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30464         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
30465         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30466         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30467         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30468         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30469         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30470         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30471         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30472         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30473         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30474         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
30475         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
30476         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
30477         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30478         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30479         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30480         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30481         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30482         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30483         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30484         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
30485         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30486         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
30487         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30488         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30489         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30490         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30491         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30492         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30493         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30494         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30495         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30496         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30497         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30498         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30499         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30500         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30501         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30502         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30503         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30504         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
30505         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
30506         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30507         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
30508         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30509         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
30510         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
30511         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30512         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30513         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
30514         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30515         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
30516         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
30517         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30518         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30519         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30520         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
30521         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30522         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30523         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
30524         * sysdeps/posix/closedir.c: Likewise.
30525         * sysdeps/posix/opendir.c: Likewise.
30526         * sysdeps/posix/readdir.c: Likewise.
30527         * sysdeps/posix/rewinddir.c: Likewise.
30528         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
30529         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
30530         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
30531         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
30532         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
30533         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
30534         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
30535         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
30536         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
30537         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
30538         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
30539         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
30540         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
30541         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
30542         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
30543         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
30544         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
30545         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
30546         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
30547         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
30548         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
30549         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
30550         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30551         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30552         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30553         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30554         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30555         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30556         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30557         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30558         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30559         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30560         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30561         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30562         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30563         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30564         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30565         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30566         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30567         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30568         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30569         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30570         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30571         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30572         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30573         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30574         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30575         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30576         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30577         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30578         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30579         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30580         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30581         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30582         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30583         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30584         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30585         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30586         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30587         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30588         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30589         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30590         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30591         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30592         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30593         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30594         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30595         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30596         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30597         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30598         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30599         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30600         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30601         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30602         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30603         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30604         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30605         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30606         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30607         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30608         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30609         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30610         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30611         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30612         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30613         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30614         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30615         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30616         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30617         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30618         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30619         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30620         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30621         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30622         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30623         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30624         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30625         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30626         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30627         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30628         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30629         * sysdeps/unix/alpha/sysdep.S: Likewise.
30630         * sysdeps/unix/alpha/sysdep.h: Likewise.
30631         * sysdeps/unix/make-syscalls.sh: Likewise.
30632         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30633         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30634         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30635         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30636         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30637         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30638         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30639         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30640         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30641         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30642         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30643         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30644         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30645         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30646         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30647         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30648         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30649         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30650         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30651         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30652         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30653         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30654         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30655         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30656         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30657         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30658         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30661         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30662         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30663         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30664         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30665         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30666         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30667         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30668         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30669         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30670         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30671         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30672         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30673         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30674         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30675         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30676         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30677         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30678         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30679         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30681         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30682         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30683         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30684         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30685         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30686         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30687         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30688         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30689         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30690         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30691         * sysdeps/x86_64/memcpy.S: Likewise.
30692         * sysdeps/x86_64/memmove.c: Likewise.
30693         * sysdeps/x86_64/memset.S: Likewise.
30694         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30695         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30696         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30697         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30698         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30699         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30700         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30701         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30702         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30703         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30704         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30705         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30706         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30707         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30708         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30709         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30710         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30711         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30712         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30713         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30714         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30715         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30716         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30717         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30718         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30719         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30720         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30721         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30722         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30723         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30724         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30725         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30726         * sysdeps/x86_64/strcmp.S: Likewise.
30727
30728         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30729
30730         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30731         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30732         * elf/rtld-Rules: Likewise.
30733         * elf/setup-vdso.h: Likewise.
30734         * include/assert.h: Likewise.
30735         * include/bits/stdlib-float.h: Likewise.
30736         * include/errno.h: Likewise.
30737         * include/sys/stat.h: Likewise.
30738         * include/unistd.h: Likewise.
30739         * sysdeps/aarch64/setjmp.S: Likewise.
30740         * sysdeps/alpha/setjmp.S: Likewise.
30741         * sysdeps/arm/__longjmp.S: Likewise.
30742         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30743         * sysdeps/arm/setjmp.S: Likewise.
30744         * sysdeps/arm/sysdep.h: Likewise.
30745         * sysdeps/generic/_itoa.h: Likewise.
30746         * sysdeps/generic/dl-sysdep.h: Likewise.
30747         * sysdeps/generic/ldsodefs.h: Likewise.
30748         * sysdeps/i386/dl-tls.h: Likewise.
30749         * sysdeps/i386/setjmp.S: Likewise.
30750         * sysdeps/m68k/setjmp.c: Likewise.
30751         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30752         * sysdeps/mach/hurd/opendir.c: Likewise.
30753         * sysdeps/posix/getcwd.c: Likewise.
30754         * sysdeps/posix/opendir.c: Likewise.
30755         * sysdeps/posix/profil.c: Likewise.
30756         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30757         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30758         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30759         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30760         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30761         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30762         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30763         * sysdeps/s390/dl-tls.h: Likewise.
30764         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30765         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30766         * sysdeps/sh/sh3/setjmp.S: Likewise.
30767         * sysdeps/sh/sh4/setjmp.S: Likewise.
30768         * sysdeps/unix/alpha/sysdep.h: Likewise.
30769         * sysdeps/unix/arm/sysdep.S: Likewise.
30770         * sysdeps/unix/i386/sysdep.S: Likewise.
30771         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30772         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30773         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30774         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30775         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30776         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30777         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30778         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30779         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30780         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30781         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30782         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30783         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30786         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30787         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30788         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30789         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30790         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30791         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30792         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30793         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30794         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30795         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30796         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30797         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30798         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30799         * sysdeps/x86_64/setjmp.S: Likewise.
30800
30801         * include/math.h: Use IS_IN instead of IS_IN_libm.
30802         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30803         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30804         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30805         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30806         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30807         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30808         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30809         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30810         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30811         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30812         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30813         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30814         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30815         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30816         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30817         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30818         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30819         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30820         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30821         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30822         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30823         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30824         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30825         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30826         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30827         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30828         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30829         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30830         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30831         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30832         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30833         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30834         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30836         Likewise.
30837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30838         Likewise.
30839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30840         Likewise.
30841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30842         Likewise.
30843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30844         Likewise.
30845         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30846         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30847         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30848         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30849         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30850         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30856         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30857         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30858         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30859         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30860         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30861         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30862         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30863         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30864         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30865         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30866         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30867         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30868         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30869         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30871         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30872
30873         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30874         * nptl/pthreadP.h: Likewise.
30875         * nptl_db/structs.def: Likewise.
30876         * sysdeps/arm/sysdep.h: Likewise.
30877         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30878         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30879         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30880         * sysdeps/unix/alpha/sysdep.h: Likewise.
30881         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30882         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30883         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30884         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30885         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30886         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30887         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30888         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30889         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30890         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30891         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30892         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30893         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30894         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30897         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30899         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30900         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30901         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30902         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30903         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30904         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30905         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30906         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30907
30908         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30909         * nptl/pthreadP.h: Likewise.
30910         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30911         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30912         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30913         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30914         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30915         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30916         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30917         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30918         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30919         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30920         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30921         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30923         Likewise.
30924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30925         Likewise.
30926         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30927         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30928         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30929         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30930         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30931         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30932         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30933         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30934
30935         * dlfcn/dladdr.c: Use IS_IN.
30936         * dlfcn/dladdr1.c: Likewise.
30937         * dlfcn/dlclose.c: Likewise.
30938         * dlfcn/dlerror.c: Likewise.
30939         * dlfcn/dlinfo.c: Likewise.
30940         * dlfcn/dlmopen.c: Likewise.
30941         * dlfcn/dlopen.c: Likewise.
30942         * dlfcn/dlsym.c: Likewise.
30943         * dlfcn/dlvsym.c: Likewise.
30944
30945         * include/ifaddrs.h: Use IS_IN.
30946         * inet/check_pf.c: Likewise.
30947         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30948         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30949
30950         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30951         IS_IN_ldconfig.
30952         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30953         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30954
30955         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30956         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30957         IS_IN (libc).
30958
30959         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30960
30961         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30962         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30963         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30964         * include/libc-symbols.h (IS_IN_LIB): New macro.
30965         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30966         * include/netdb.h: Likewise.
30967         * include/stap-probe.h: Remove all uses of IN_LIB.
30968
30969         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30970         instead of IN_MODULE.
30971         * include/libc-symbols.h (IN_MODULE): Define using
30972         MODULE_NAME.
30973         (PASTE_NAME, PASTE_NAME1): New macros.
30974         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30975         of IN_LIB.
30976         (STAP_PROBE_ASM): Likewise.
30977
30978 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30979
30980         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30981         __mach_init in dlopened libc.
30982
30983 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30984
30985         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30986         * sysdeps/arm/preconfigure: Regenerate.
30987
30988 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30989
30990         * nptl/pthread_create.c (__pthread_create_2_1): Set
30991         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30992         when copying values from IATTR into PD.
30993
30994 2014-11-21  Will Newton  <will.newton@linaro.org>
30995             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30996
30997         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30998         Refactor inline-asm.  Also add comment.
30999
31000         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
31001         ElfW macro instead of hardcoded Elf64 types.
31002         (la_aarch64_gnu_pltenter): Likewise.
31003         * sysdeps/aarch64/dl-machine.h
31004         (elf_machine_runtime_setup): Use ElfW(Addr).
31005
31006         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
31007         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
31008         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
31009         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
31010         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
31011         (R_AARCH64_TLS_DTPMOD64): Rename to ..
31012         (R_AARCH64_TLS_DTPMOD): This.
31013         (R_AARCH64_TLS_DTPREL64): Rename to ...
31014         (R_AARCH64_TLS_DTPREL): This.
31015         (R_AARCH64_TLS_TPREL64): Rename to ...
31016         (R_AARCH64_TLS_TPREL): This.
31017         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
31018         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
31019         R_AARCH64_TLS_TPREL64.
31020         (elf_machine_rela): Likewise.
31021
31022 2014-11-21  Torvald Riegel  <triegel@redhat.com>
31023
31024         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
31025         by setting it to 0.  64b atomics are not supported currently.
31026
31027 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31028
31029         [BZ #16469]
31030         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
31031         search domain names.
31032
31033 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31034
31035         [BZ #16469]
31036         * NEWS: Update.
31037         * resolv/res_query.c (__libc_res_nquerydomain): Retain
31038         trailing dot.
31039         * posix/tst-getaddrinfo5.c: New.
31040         * posix/Makefile (tests): Add it.
31041
31042 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31043
31044         [BZ #14498]
31045         * NEWS: Fixed.
31046         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
31047         after parsing line but before break_if_match.
31048         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
31049         if there is a protocol mismatch.
31050
31051 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
31052
31053         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
31054         because the potential race is on the user-supplied stream.
31055
31056 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31057
31058         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
31059         string literal if not passed a buffer.
31060         * manual/job.texi (ctermid): Update reasoning, note deviation
31061         from posix, suggest mtasurace when not passed a buffer, for
31062         future non-preliminary safety notes.
31063
31064 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31065
31066         * manual/users.texi (cuserid): Fix MT-Safety note for the case
31067         of not passing it a buffer.
31068         Reported by Peng Haitao.
31069
31070 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31071
31072         * manual/Makefile ($(objpfx)stamp-summary): Require
31073         check-safety.sh to pass.
31074         * manual/check-safety.sh: Wish for verification that every
31075         @deftypefn and @deftypefun is followed by a @safety remark.
31076
31077 2014-11-20  Roland McGrath  <roland@hack.frob.com>
31078
31079         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
31080
31081         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
31082         PTHREAD_CANCEL_ASYNCHRONOUS.
31083         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
31084         send SIGCANCEL.
31085
31086         * nptl/default-sched.h: New file.
31087         * sysdeps/unix/sysv/linux/default-sched.h: New file.
31088         * nptl/pthread_create.c: Include it.
31089         (__pthread_create_2_1): Use collect_default_sched instead of making
31090         Linux syscalls here directly.
31091
31092 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31093
31094         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
31095         __pthread_once): Use C11 atomics.
31096
31097 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31098
31099         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
31100
31101 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31102
31103         * include/atomic.h (__atomic_link_error, __atomic_check_size,
31104         atomic_thread_fence_acquire, atomic_thread_fence_release,
31105         atomic_thread_fence_seq_cst, atomic_load_relaxed,
31106         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
31107         atomic_compare_exchange_weak_relaxed,
31108         atomic_compare_exchange_weak_acquire,
31109         atomic_compare_exchange_weak_release,
31110         atomic_exchange_acquire, atomic_exchange_release,
31111         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
31112         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
31113         atomic_fetch_and_acquire,
31114         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
31115
31116 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31117
31118         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
31119         USE_ATOMIC_COMPILER_BUILTINS): Define.
31120         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
31121         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31122         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
31123         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31124         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
31125         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31126         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
31127         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31128         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
31129         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31130         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
31131         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31132         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
31133         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31134         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
31135         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31136         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
31137         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31138         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
31139         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31140         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
31141         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31142         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
31143         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31144         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
31145         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31146         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
31147         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31148         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
31149         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31150         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
31151         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31152         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
31153         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31154         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
31155         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31156         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
31157         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31158         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
31159         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31160
31161 2014-11-19  Roland McGrath  <roland@hack.frob.com>
31162
31163         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
31164         the sched_priority value here.  It was already checked when the user
31165         called pthread_attr_setschedparam.
31166
31167         * nptl/tst-bad-schedattr.c: New file.
31168         * nptl/Makefile (tests): Add it.
31169
31170 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
31171             Florian Weimer  <fweimer@redhat.com>
31172             Joseph Myers  <joseph@codesourcery.com>
31173             Adam Conrad  <adconrad@0c3.net>
31174             Andreas Schwab  <schwab@suse.de>
31175             Brooks  <bmoses@google.com>
31176
31177         [BZ #17625]
31178         * wordexp-test.c (__dso_handle): Add prototype.
31179         (__register_atfork): Likewise.
31180         (__app_register_atfork): New function.
31181         (registered_forks): New global.
31182         (register_fork): New function.
31183         (test_case): Add 3 new tests for WRDE_CMDSUB.
31184         (main): Call __app_register_atfork.
31185         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
31186         fork count is non-zero fail the test.
31187         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
31188         is set.
31189         (parse_dollars): Remove check for WRDE_NOCMD.
31190         (parse_dquote): Likewise.
31191
31192 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31193
31194         * Makeconfig (built-modules): List non-library modules to be
31195         built.
31196         (module-cppflags): Include libc-modules.h for
31197         everything except shlib-versions.v.i.
31198         (CPPFLAGS): Use it.
31199         (before-compile): Add libc-modules.h.
31200         ($(common-objpfx)libc-modules.h,
31201         $(common-objpfx)libc-modules.stmp): New targets.
31202         (common-generated): Add libc-modules.h and libc-modules.stmp.
31203         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
31204         * include/libc-symbols.h: Don't include libc-modules.h.
31205         * include/libc-modules.h: Remove file.
31206         * scripts/gen-libc-modules.awk: New script to generate
31207         libc-modules.h.
31208         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
31209         Depend on libc-modules.stmp.
31210
31211         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
31212
31213         * Makeconfig (in-module): Get value of libof set for the
31214         translation unit.
31215         (CPPFLAGS): Use $(in-module).
31216         * Makerules: Don't suffix routine names for nonlib.
31217         * include/libc-modules.h: New file.
31218         * include/libc-symbols.h: Include libc-modules.h
31219         (IS_IN): New macro to replace IS_IN_* macros.
31220         * elf/Makefile: Set libof-* for each routine.
31221         * elf/rtld-Rules: Likewise.
31222         * extra-modules.mk: Likewise.
31223         * iconv/Makefile: Likewise.
31224         * iconvdata/Makefile: Likewise.
31225         * locale/Makefile: Likewise.
31226         * malloc/Makefile: Likewise.
31227         * nss/Makefile: Likewise.
31228         * sysdeps/gnu/Makefile: Likewise.
31229         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
31230         * sysdeps/unix/sysv/linux/Makefile: Likewise.
31231         * sysdeps/s390/s390-64/Makefile: Likewise.
31232         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
31233         CPPFLAGS for nscd instead of nonlib.
31234
31235 2014-11-18  Roland McGrath  <roland@hack.frob.com>
31236
31237         * nptl/createthread.c: New file.
31238
31239         * nptl/createthread.c: Moved ...
31240         * sysdeps/unix/sysv/linux/createthread.c: ... here.
31241
31242         * nptl/createthread.c: Add proper top-line comment.
31243         (do_clone): Folded into ...
31244         (create_thread): ... here.  Take new arguments STOPPED_START and
31245         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
31246         increment __nptl_threads, do event-reporting logic, do
31247         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
31248         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
31249         resource cleanup if sched_setaffinity or sched_setscheduler fails,
31250         just send SIGCANCEL.
31251         * nptl/pthread_create.c: Forward-declare create_thread before
31252         including createthread.c.
31253         (start_thread): Use new macro START_THREAD_DEFN to replace defining
31254         declaration, and new macro START_THREAD_SELF to replace argument.
31255         Remove return statement.
31256         (report_thread_creation): New function.
31257         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
31258         synchronization logic, and __nptl_nthreads increment here, around
31259         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
31260         PD->parent_cancelhandling here, before create_thread.  When
31261         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
31262         __deallocate_stack, and ENOMEM translation here.
31263
31264 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
31265
31266         [BZ #17616]
31267         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
31268         (mptwo): Rename to __mptwo.
31269         (__inv): Use __mptwo instead of mptwo.
31270         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
31271         (mptwo): Rename to __mptwo.
31272         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
31273         of mpone and __mptwo instead of mptwo.
31274         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
31275         instead of mpone.
31276         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
31277         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
31278         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
31279         of mpone and __mptwo instead of mptwo.
31280         (__mpranred): Use __mpone instead of mpone.
31281         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
31282         variable.
31283         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31284         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31285         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31286         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31287         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31288         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31289         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31290         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31291         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31292         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31293         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31294         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31295         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31296         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31297         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31298         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31299         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31300         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31301         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31302
31303 2014-11-18  Tom de Vries  <tom@codesoucery.com>
31304
31305         * manual/signal.texi (Primitives Interrupted by Signals): In section,
31306         replace BSD Handler xref with BSD Signal Handling.
31307
31308 2014-11-17  Richard Henderson  <rth@redhat.com>
31309
31310         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
31311         (_FP_PACK_RAW_2): Remove.
31312         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
31313         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
31314         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
31315         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
31316         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
31317         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
31318         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
31319         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
31320         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
31321         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
31322         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
31323         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
31324         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
31325         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
31326         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
31327         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
31328
31329 2014-11-14  Roland McGrath  <roland@hack.frob.com>
31330
31331         * signal/signal.h [__USE_MISC]
31332         (struct sigvec): Remove type.
31333         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
31334         (sigvec): Remove declaration.
31335         * sysdeps/posix/sigvec.c: Moved ...
31336         * signal/sigvec.c: ... here, replacing old file.
31337         (struct sigvec): New type, copied from old signal.h definition.
31338         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
31339         (__sigvec): Convert definition to prototype.
31340         (sigvec): Replace weak_alias with compat_symbol.
31341         * signal/Versions (libc: GLIBC_2.21): New version set.
31342         * include/signal.h: Remove __sigvec declaration.
31343         * sysdeps/unix/bsd/sigvec.c: Remove file.
31344         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
31345         * manual/signal.texi (BSD Handler): Remove subsection.
31346         Move siginterrupt up to ...
31347         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
31348         (Blocking in BSD): Fold subsection into its parent.
31349         * NEWS: Mention sigvec removal.
31350
31351 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31352
31353         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
31354         (DLA_FMS): Make definition conditional only on [__FMA4__].
31355         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
31356         definition.
31357
31358         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
31359         Make definition conditional only on [PROF].
31360         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
31361         definition.
31362         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
31363         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
31364
31365         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
31366         !__GNUC__].
31367         * include/signal.h (__sigpause): Move declaration above call to
31368         libc_hidden_proto.
31369         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
31370         variable.
31371         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31372         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31373
31374 2014-11-14  David S. Miller  <davem@davemloft.net>
31375
31376         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
31377         Define before including <string/memcpy.c> and <string/mempcpy.c>.
31378
31379 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31380
31381         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
31382         * configure: Regenerated.
31383         * manual/install.texi (Tools for Compilation): Document a
31384         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
31385         compiler verified to work.
31386         * INSTALL: Regenerated.
31387
31388         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
31389         redeclare with asm name.
31390         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
31391         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
31392         including <string.h>.
31393         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31394         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
31395         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31396         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
31397         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31398         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31399         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31400
31401 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
31402
31403         * stdlib/strtol.c (__strtol): Use prototype definition.
31404
31405         [BZ #17594]
31406         * stdlib/strtol.c (SYM__): New macro.
31407         (SYM__1): Likewise.
31408         (__strtol): Likewise.
31409         (strtol): Rename to __strtol and define as weak alias of
31410         __strtol.  Use libc_hidden_weak.
31411
31412 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31413
31414         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
31415         Use numbered labels in inline assembly.
31416
31417 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31418
31419         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
31420         Add setjmp LIBC_PROBE.
31421         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
31422         Likewise.
31423         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
31424         Add longjmp, longjmp_target LIBC_PROBE.
31425         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
31426         Likewise.
31427
31428 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31429
31430         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
31431         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
31432         to get rid of unused variable warning.
31433
31434 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31435
31436         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
31437         Check for unwind_backtrace ==  NULL only in SHARED case.
31438         (__backchain_backtrace): Compile only in SHARED case.
31439         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
31440         Likewise.
31441         (__backchain_backtrace): Declare as static.
31442
31443 2014-11-12  Roland McGrath  <roland@hack.frob.com>
31444
31445         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
31446         (__libc_multiple_threads_ptr): Variable moved ...
31447         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
31448
31449 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
31450
31451         * conform/GlibcConform.pm: New file.
31452         * conform/conformtest.pl: Use GlibcConform module.
31453         * conform/linknamespace.pl: New file.
31454         * conform/list-header-symbols.pl: Likewise.
31455         * conform/Makefile (linknamespace-symlists-base): New variable.
31456         (linknamespace-symlists-tests): Likewise.
31457         (linknamespace-header-base): Likewise.
31458         (linknamespace-header-tests): Likewise.
31459         (tests-special): Add new tests.
31460         ($(linknamespace-symlists-tests)): New rule.
31461         (linknamespace-libs): New variable.
31462         ($(objpfx)symlist-stdlibs): New rule.
31463         ($(linknamespace-header-tests)): Likewise.
31464         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
31465         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
31466         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
31467         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
31468         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
31469         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
31470         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
31471         (test-xfail-ISO/math.h/linknamespace): Likewise.
31472         (test-xfail-ISO/signal.h/linknamespace): Likewise.
31473         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
31474         (test-xfail-ISO/time.h/linknamespace): Likewise.
31475         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31476         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
31477         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31478         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31479         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
31480         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31481         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31482         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
31483         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31484         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31485         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
31486         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31487         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
31488         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
31489         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
31490         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31491         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
31492         (test-xfail-XPG3/search.h/linknamespace): Likewise.
31493         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
31494         (test-xfail-XPG3/time.h/linknamespace): Likewise.
31495         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
31496         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
31497         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
31498         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
31499         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31500         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
31501         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
31502         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
31503         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31504         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
31505         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
31506         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31507         (test-xfail-XPG4/search.h/linknamespace): Likewise.
31508         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31509         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
31510         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
31511         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
31512         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
31513         (test-xfail-XPG4/time.h/linknamespace): Likewise.
31514         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
31515         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
31516         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
31517         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31518         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31519         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31520         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
31521         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
31522         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31523         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
31524         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
31525         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
31526         (test-xfail-POSIX/time.h/linknamespace): Likewise.
31527         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
31528         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31529         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
31530         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
31531         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
31532         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31533         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31534         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
31535         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
31536         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31537         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
31538         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
31539         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
31540         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
31541         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
31542         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
31543         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
31544         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
31545         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31546         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
31547         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
31548         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
31549         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
31550         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31551         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31552         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31553         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31554         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31555         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31556         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31557         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31558         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31559         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31560         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31561         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31562         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31563         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31564         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31565         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31566         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31567         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31568         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31569         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31570         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31571         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31572         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31573         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31574         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31575         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31576         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31577         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31578         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31579         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31580         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31581         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31582         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31583         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31584         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31585         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31586         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31587         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31588         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31589         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31590         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31591         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31592         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31593         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31594         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31595         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31596         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31597         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31598         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31599         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31600         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31601         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31602         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31603         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31604         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31605         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31606         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31607         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31608         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31609         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31610         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31611         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31612         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31613         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31614         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31615         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31616         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31617         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31618         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31619         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31620         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31621         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31622         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31623         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31624         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31625
31626         [BZ #17589]
31627         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31628         of fgets_unlocked.
31629
31630         [BZ #17585]
31631         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31632         (memmem): Rename to __memmem and define as weak alias of
31633         __memmem.  Use libc_hidden_weak.
31634         (__memmem): Use libc_hidden_def.
31635         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31636         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31637         memmem.
31638
31639         [BZ #17582]
31640         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31641         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31642         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31643         and define as weak alias of __fgets_unlocked.  Use
31644         libc_hidden_weak.
31645         (__fgets_unlocked): Use libc_hidden_def.
31646         * include/stdio.h (__fgets_unlocked): Declare.  Use
31647         libc_hidden_proto.
31648         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31649         __fgets_unlocked instead of fgets_unlocked.
31650         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31651         (GET_NPROCS_CONF_PARSER): Likewise.
31652         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31653         (GET_NPROCS_CONF_PARSER): Likewise.
31654
31655         [BZ #17574]
31656         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31657         weak alias of __wmemset.  Use libc_hidden_weak.
31658         (__wmemset): Use libc_hidden_def.
31659         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31660         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31661         of wmemset.
31662
31663         [BZ #17573]
31664         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31665         with asm name __mempcpy.
31666         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31667
31668         [BZ #17572]
31669         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31670         and define as weak alias of __rawmemchr.
31671         (__rawmemchr): Do not define as strong alias of rawmemchr.
31672
31673         [BZ #17571]
31674         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31675         alias of __qsort_r.
31676         (qsort): Call __qsort_r instead of qsort_r.
31677         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31678         (__qsort_r): Declare.  Call libc_hidden_proto.
31679         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31680         instead of qsort_r.
31681         * nscd/gai.c (__qsort_r): Define to qsort_r.
31682         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31683         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31684         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31685
31686         [BZ #17570]
31687         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31688         define as weak alias of __malloc_info.
31689
31690         [BZ #17584]
31691         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31692         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31693         (__rewinddir): Use libc_hidden_def.
31694         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31695         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31696         (__rewinddir): Use libc_hidden_def.
31697         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31698         weak alias of __rewinddir.  Don't use libc_hidden_def.
31699         (__rewinddir): Use libc_hidden_def.
31700         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31701         (__rewinddir): Use libc_hidden_proto.
31702         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31703         rewinddir.
31704         (__getcwd): Use __rewinddir instead of rewinddir.
31705
31706         [BZ #17583]
31707         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31708         alias of __fileno.  Use libc_hidden_weak.
31709         (__fileno): Use libc_hidden_def.
31710         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31711         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31712         alias of __ftello.
31713         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31714         __ftello.
31715         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31716         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31717         libc_hidden_def.
31718         (fread_unlocked): Don't use libc_hidden_ver.
31719         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31720         and define as weak alias of __fread_unlocked.  Don't use
31721         libc_hidden_def.
31722         (__fread_unlocked): Use libc_hidden_def.
31723         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31724         (ftello): Don't use libc_hidden_proto.
31725         (__ftello): Declare.  Use libc_hidden_proto.
31726         (fread_unlocked): Don't use libc_hidden_proto.
31727         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31728         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31729         and __ftello instead of fileno, fread_unlocked and ftello.
31730
31731 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31732
31733         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31734         GOT12.
31735         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31736         Likewise.
31737         (_dl_start_user): Likewise.
31738         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31739
31740 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31741             Siddhesh Poyarekar  <siddhesh@redhat.com>
31742
31743         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31744         Move argv and envp down instead of moving argc up.
31745         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31746
31747 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31748
31749         [BZ #17506]
31750         * test-skeleton.c (main): Return successful if one of
31751         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31752         * string/tst-strcoll-overflow.c: Define expected status.
31753
31754 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31755
31756         [BZ #17475]
31757         * locale/iso-639.def: Define Bhili and Tulu language codes.
31758
31759 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31760
31761         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31762
31763 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31764
31765         [BZ #17555]
31766         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31767
31768 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31769
31770         * configure.ac: Updated check of minimal required version to
31771         2.22.
31772         * manual/install.texi (Tools for Compilation): Updated version
31773         number.
31774         * configure: Regenerated.
31775         * INSTALL: Likewise.
31776
31777 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31778
31779         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31780         __tls_get_addr.
31781
31782 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31783
31784         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31785         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31786         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31787         libc_hidden_weak.
31788         (waitpid): Define as alias of __waitpid.
31789         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31790         __waitpid.
31791         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31792         libc_hidden_weak.
31793         (waitpid): Define as alias of __waitpid.
31794         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31795         __libc_waitpid alias.
31796         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31797         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31798         Likewise.
31799         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31800         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31801         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31802         alias.
31803         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31804         __waitpid.
31805         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31806         libc_hidden_weak.
31807         (waitpid): Define as alias of __waitpid.
31808
31809 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31810
31811         * manual/llio.texi: Add comment that write safety has been
31812         fixed in Linux.
31813
31814         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31815         (localplt-build-dso): Add elf/ld.so.
31816         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31817         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31818         and free for ld.so.
31819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31820         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31822         Likewise.
31823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31824         Likewise.
31825         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31826         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31827         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31828         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31829         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31830         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31831         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31832         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31833         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31834         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31835         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31836
31837 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31838
31839         [BZ #14132]
31840         * include/libc-symbols.h (INTUSE): Remove macro.
31841         (INTDEF): Likewise.
31842         (INTVARDEF): Likewise.
31843         (_INTVARDEF): Likewise.
31844         (INTDEF2): Likewise.
31845         (INTVARDEF2): Likewise.
31846         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31847         rtld_hidden_def instead of INTVARDEF.
31848         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31849         (_dl_starting_up_internal): Remove declaration.
31850         (_dl_starting_up): Use rtld_hidden_proto.
31851         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31852         declaration.
31853         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31854         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31855         _dl_starting_up.
31856         * elf/dl-writev.h (_dl_writev): Likewise.
31857         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31858         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31859         _dl_starting_up_internal.
31860
31861 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31862
31863         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31864         test-skeleton.c.
31865
31866 2014-11-05  Will Newton  <will.newton@linaro.org>
31867
31868         * benchtests/Makefile: (bench-malloc): Add malloc thread
31869         scalability benchmark.
31870         * benchtests/bench-malloc-threads.c: New file.
31871
31872 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31873
31874         * sysdeps/aarch64/strchrnul.S: New file.
31875
31876 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31877
31878         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31879         definition.
31880         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31881         Likwise.
31882         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31883         Likewise.
31884         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31885         Likewise.
31886         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31887         Likewise.
31888         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31889         Likewise.
31890
31891 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31892
31893         * catgets/test-gencat.c: Use test-skeleton.c.
31894         * catgets/tst-catgets.c: Likewise.
31895         * csu/tst-empty.c: Likewise.
31896         * elf/tst-audit2.c: Likewise.
31897         * elf/tst-global1.c: Likewise.
31898         * elf/tst-pathopt.c: Likewise.
31899         * elf/tst-piemod1.c: Likewise.
31900         * elf/tst-tls10.c: Likewise.
31901         * elf/tst-tls11.c: Likewise.
31902         * elf/tst-tls12.c: Likewise.
31903         * gnulib/tst-gcc.c: Likewise.
31904         * iconvdata/tst-e2big.c: Likewise.
31905         * iconvdata/tst-loading.c: Likewise.
31906         * iconv/tst-iconv1.c: Likewise.
31907         * iconv/tst-iconv2.c: Likewise.
31908         * inet/test-inet6_opt.c: Likewise.
31909         * inet/tst-gethnm.c: Likewise.
31910         * inet/tst-network.c: Likewise.
31911         * inet/tst-ntoa.c: Likewise.
31912         * intl/tst-codeset.c: Likewise.
31913         * intl/tst-gettext2.c: Likewise.
31914         * intl/tst-gettext3.c: Likewise.
31915         * intl/tst-ngettext.c: Likewise.
31916         * intl/tst-translit.c: Likewise.
31917         * io/test-stat.c: Likewise.
31918         * libio/test-fmemopen.c: Likewise.
31919         * libio/tst-freopen.c: Likewise.
31920         * libio/tst-sscanf.c: Likewise.
31921         * libio/tst-ungetwc1.c: Likewise.
31922         * libio/tst-ungetwc2.c: Likewise.
31923         * libio/tst-widetext.c: Likewise.
31924         * localedata/tst-ctype.c: Likewise.
31925         * localedata/tst-digits.c: Likewise.
31926         * localedata/tst-leaks.c: Likewise.
31927         * localedata/tst-mbswcs1.c: Likewise.
31928         * localedata/tst-mbswcs2.c: Likewise.
31929         * localedata/tst-mbswcs3.c: Likewise.
31930         * localedata/tst-mbswcs4.c: Likewise.
31931         * localedata/tst-mbswcs5.c: Likewise.
31932         * localedata/tst-setlocale.c: Likewise.
31933         * localedata/tst-trans.c: Likewise.
31934         * localedata/tst-wctype.c: Likewise.
31935         * localedata/tst-xlocale1.c: Likewise.
31936         * login/tst-grantpt.c: Likewise.
31937         * malloc/tst-calloc.c: Likewise.
31938         * malloc/tst-malloc.c: Likewise.
31939         * malloc/tst-mallocstate.c: Likewise.
31940         * malloc/tst-mcheck.c: Likewise.
31941         * malloc/tst-mtrace.c: Likewise.
31942         * malloc/tst-obstack.c: Likewise.
31943         * math/atest-exp2.c: Likewise.
31944         * math/atest-exp.c: Likewise.
31945         * math/atest-sincos.c: Likewise.
31946         * math/test-matherr.c: Likewise.
31947         * math/test-misc.c: Likewise.
31948         * math/test-powl.c: Likewise.
31949         * math/tst-definitions.c: Likewise.
31950         * misc/tst-dirname.c: Likewise.
31951         * misc/tst-efgcvt.c: Likewise.
31952         * misc/tst-fdset.c: Likewise.
31953         * misc/tst-hsearch.c: Likewise.
31954         * misc/tst-mntent2.c: Likewise.
31955         * nptl/tst-sem7.c: Likewise.
31956         * nptl/tst-sem8.c: Likewise.
31957         * nptl/tst-sem9.c: Likewise.
31958         * nss/test-netdb.c: Likewise.
31959         * posix/tst-fnmatch.c: Likewise.
31960         * posix/tst-getlogin.c: Likewise.
31961         * posix/tst-gnuglob.c: Likewise.
31962         * posix/tst-mmap.c: Likewise.
31963         * pwd/tst-getpw.c: Likewise.
31964         * resolv/tst-inet_ntop.c: Likewise.
31965         * rt/tst-timer.c: Likewise.
31966         * stdio-common/test-fseek.c: Likewise.
31967         * stdio-common/test-popen.c: Likewise.
31968         * stdio-common/test-vfprintf.c: Likewise.
31969         * stdio-common/tst-cookie.c: Likewise.
31970         * stdio-common/tst-fileno.c: Likewise.
31971         * stdio-common/tst-gets.c: Likewise.
31972         * stdio-common/tst-obprintf.c: Likewise.
31973         * stdio-common/tst-perror.c: Likewise.
31974         * stdio-common/tst-sprintf2.c: Likewise.
31975         * stdio-common/tst-sprintf3.c: Likewise.
31976         * stdio-common/tst-sprintf.c: Likewise.
31977         * stdio-common/tst-swprintf.c: Likewise.
31978         * stdio-common/tst-tmpnam.c: Likewise.
31979         * stdio-common/tst-unbputc.c: Likewise.
31980         * stdio-common/tst-wc-printf.c: Likewise.
31981         * stdlib/tst-environ.c: Likewise.
31982         * stdlib/tst-fmtmsg.c: Likewise.
31983         * stdlib/tst-limits.c: Likewise.
31984         * stdlib/tst-rand48-2.c: Likewise.
31985         * stdlib/tst-rand48.c: Likewise.
31986         * stdlib/tst-random2.c: Likewise.
31987         * stdlib/tst-random.c: Likewise.
31988         * stdlib/tst-strtol.c: Likewise.
31989         * stdlib/tst-strtoll.c: Likewise.
31990         * stdlib/tst-tls-atexit.c: Likewise.
31991         * stdlib/tst-xpg-basename.c: Likewise.
31992         * string/test-ffs.c: Likewise.
31993         * string/tst-bswap.c: Likewise.
31994         * string/tst-inlcall.c: Likewise.
31995         * string/tst-strtok.c: Likewise.
31996         * string/tst-strxfrm.c: Likewise.
31997         * sysdeps/x86_64/tst-audit10.c: Likewise.
31998         * sysdeps/x86_64/tst-audit3.c: Likewise.
31999         * sysdeps/x86_64/tst-audit4.c: Likewise.
32000         * sysdeps/x86_64/tst-audit5.c: Likewise.
32001         * time/tst-ftime_l.c: Likewise.
32002         * time/tst-getdate.c: Likewise.
32003         * time/tst-mktime3.c: Likewise.
32004         * time/tst-mktime.c: Likewise.
32005         * time/tst-posixtz.c: Likewise.
32006         * time/tst-strptime2.c: Likewise.
32007         * time/tst-strptime3.c: Likewise.
32008         * wcsmbs/tst-btowc.c: Likewise.
32009         * wcsmbs/tst-mbrtowc.c: Likewise.
32010         * wcsmbs/tst-mbsrtowcs.c: Likewise.
32011         * wcsmbs/tst-wchar-h.c: Likewise.
32012         * wcsmbs/tst-wcpncpy.c: Likewise.
32013         * wcsmbs/tst-wcrtomb.c: Likewise.
32014         * wcsmbs/tst-wcsnlen.c: Likewise.
32015         * wcsmbs/tst-wcstof.c: Likewise.
32016
32017 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
32018
32019         [BZ #14132]
32020         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
32021         INTDEF.
32022         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
32023         declaration.
32024         (_dl_mcount): Use rtld_hidden_proto.
32025         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
32026         _dl_mcount.
32027         * elf/rtld.c (_rtld_global_ro): Likewise.
32028
32029         [BZ #14132]
32030         * elf/dl-init.c (_dl_init): Don't use INTDEF.
32031         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
32032         of _dl_init_internal.
32033         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
32034         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
32035         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
32036         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
32037         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
32038         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
32039         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
32040         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
32041         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
32042         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
32043         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
32044         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
32045         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
32046         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
32047         * sysdeps/tile/dl-start.S (_start): Likewise.
32048         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
32049         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
32050
32051         [BZ #14132]
32052         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
32053         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
32054         (rtld_progname): Make macro definition unconditional.
32055         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
32056         INTDEF.
32057         (dlmopen_doit): Do not use INTUSE with _dl_argv.
32058         (dl_main): Likewise.
32059         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
32060         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
32061         instead of _dl_argv_internal.
32062         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32063         __GI__dl_argv instead of INTUSE(_dl_argv).
32064         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
32065         __GI__dl_argv instead of _dl_argv_internal.
32066
32067         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
32068         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
32069         macro.
32070         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
32071         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
32072         New macro.
32073         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
32074         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
32075         macro.
32076         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
32077         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
32078
32079 2014-11-04  Andreas Schwab  <schwab@suse.de>
32080
32081         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
32082
32083 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32084
32085         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
32086         mtvsrd instruction in binary form.
32087
32088 2014-11-03  Andreas Schwab  <schwab@suse.de>
32089
32090         [BZ #17522]
32091         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
32092         for less than MB_LEN_MAX use a local buffer of that size.
32093         * libio/tst-fputws.c: New file.
32094         * libio/Makefile (tests): Add tst-fputws.
32095
32096 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
32097
32098         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
32099         the size of the fpu_fr.fpu_dregs[] array.
32100
32101 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
32102
32103         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
32104         (__nanosleep): Do not define as alias.
32105         (nanosleep): Define as alias of __nanosleep.
32106         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
32107         __libc_nanosleep name.
32108
32109 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
32110
32111         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
32112         install.texi in comment.
32113
32114 2014-10-31  Torvald Riegel  <triegel@redhat.com>
32115
32116         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
32117         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
32118         ... add here and use lwsync or sync ...
32119         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
32120         ... and add here using lwsync.
32121
32122 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
32123
32124         * elf/dl-machine-reject-phdr.h: New file.
32125         * elf/dl-load.c: #include that.
32126         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
32127         if that returned true.
32128
32129 2014-10-31  Roland McGrath  <roland@hack.frob.com>
32130
32131         [BZ #17496]
32132         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
32133         gen-as-const-headers chunk.  Add a big scare comment after the last
32134         safe place to touch before-compile.
32135
32136 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
32137
32138         * manual/install.texi (Tools for Compilation): Update autoconf
32139         version requirements.
32140         * INSTALL: Regenerated.
32141
32142         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
32143         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
32144         (__libc_pselect): Likewise.
32145
32146         [BZ #14138]
32147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
32148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32151
32152 2014-10-31  Torvald Riegel  <triegel@redhat.com>
32153
32154         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
32155         correct barrier instruction.
32156         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
32157         Likewise.
32158         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
32159         Likewise.
32160
32161 2014-10-30  Roland McGrath  <roland@hack.frob.com>
32162
32163         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
32164         after defining inlines.  Instead, just use parens to defeat macro
32165         expansion of __isctype in its declaration.
32166
32167 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
32168
32169         * include/sys/uio.h (__libc_readv): Remove declaration.
32170         (__libc_writev): Likewise.
32171         * misc/readv.c (__libc_readv): Rename to __readv.
32172         (__readv): Do not define as alias.
32173         (readv): Define as alias of __readv.
32174         * misc/writev.c (__libc_writev): Rename to __writev.
32175         (__writev): Do not define as alias.
32176         (writev): Define as alias of __writev.
32177         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
32178         (__readv): Do not define as alias.
32179         (readv): Define unconditionally as alias of __readv.
32180         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
32181         (__writev): Do not define as alias.
32182         (writev): Define unconditionally as alias of __writev.
32183         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
32184         name.
32185         (writev): Do not define __libc_writev name.
32186
32187 2014-10-30  Roland McGrath  <roland@hack.frob.com>
32188
32189         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
32190         (convert_charseq): New function, broken out of ...
32191         (use_from_charmap): ... here.  Call it.
32192         (use_to_charmap): Use convert_charseq and free instead of duplicating
32193         its code with a variable-length stack struct.
32194
32195 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
32196
32197         * include/fcntl.h (__libc_creat): Remove declaration.
32198         * io/creat.c (__libc_creat): Rename to creat.
32199         (creat): Do not define as alias.
32200         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
32201         of creat instead of __libc_creat.
32202         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
32203         to creat.
32204         (creat): Do not define as alias.
32205         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
32206         __libc_creat.
32207         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
32208         __libc_creat name.
32209         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
32210         Likewise.
32211
32212 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
32213
32214         * manual/llio.texi: Add comments discussing why write() may be
32215         considered MT-unsafe on Linux.
32216
32217 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
32218
32219         * dl-load.c (local_strdup): Remove.
32220         (expand_dynamic_string_token): Use __strdup.
32221         (decompose_rpath): Likewise.
32222         (_dl_map_object): Likewise.
32223
32224 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
32225
32226         [BZ #14132]
32227         * sysdeps/generic/unwind-dw2-fde.c
32228         (__register_frame_info_bases_internal): Do not declare.
32229         (__register_frame_info_table_bases_internal): Likewise.
32230         (__deregister_frame_info_bases_internal): Likewise.
32231         (__register_frame_info_bases): Declare and use hidden_proto before
32232         definition.  Use hidden_def instead of INTDEF.
32233         (__register_frame_info_table_bases): Likewise.
32234         (__deregister_frame_info_bases): Likewise.
32235         (__register_frame_info): Do not use INTUSE.
32236         (__register_frame): Likewise.
32237         (__register_frame_info_table): Likewise.
32238         (__register_frame_table): Likewise.
32239         (__deregister_frame_info): Likewise.
32240         (__deregister_frame): Likewise.
32241
32242 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
32243
32244         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32245         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
32246         not undefine.
32247         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
32248         Likewise.
32249         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
32250         Likewise.
32251
32252 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
32253
32254         [BZ #14138]
32255         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
32256         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
32257         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
32258         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
32259         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
32260         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
32261         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
32262         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
32263         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
32264         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
32265         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
32266         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
32267         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
32268         syscall.
32269         (setfsuid): Likewise.
32270         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
32271         (setfsuid): Likewise.
32272         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
32273         (setfsuid): Likewise.
32274         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
32275         Likewise.
32276         (setfsuid): Likewise.
32277         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
32278         (setfsuid): Likewise.
32279         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
32280         Likewise.
32281         (setfsuid): Likewise.
32282
32283 2014-10-27  Andreas Schwab  <schwab@suse.de>
32284
32285         [BZ #17501]
32286         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
32287         check for Slow_SSE4_2 feature bit.
32288         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
32289         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
32290         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
32291         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
32292
32293 2014-10-24  Roland McGrath  <roland@hack.frob.com>
32294
32295         * configure.ac: Validate compiler version with a empirical test of
32296         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
32297         $CC -v output.
32298         * configure: Regenerated.
32299
32300         * inet/htons.c (htons): Prototypify.
32301         * inet/htonl.c (htonl): Likewise.
32302
32303 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32304
32305         * string/strncat.c (strncat): Improve performance by using strlen.
32306
32307 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32308
32309         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
32310
32311 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32312
32313         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
32314         Call libc_fetestexcept_aarch64.
32315
32316 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32317
32318         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
32319         Call libc_feholdexcept_aarch64.
32320
32321 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32322
32323         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
32324         Call get_rounding_mode.
32325
32326 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32327
32328         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
32329         Simplify logic.
32330
32331 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32332
32333         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
32334         Simplify logic.
32335
32336 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
32337
32338         [BZ #14138]
32339         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
32340         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
32341         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
32342         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
32343         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
32344         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
32345         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
32346         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
32347         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
32348         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
32349         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
32350         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
32351         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
32352         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
32353         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
32354         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
32355         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
32356         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
32357         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
32358         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
32359         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
32360         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
32361         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
32362         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
32363         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
32364         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
32365         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
32366         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
32367         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
32368         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
32369         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
32370         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
32371         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
32372         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
32373         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
32374         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
32375         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
32376         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
32377         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
32378         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
32379         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
32380         syscall.
32381         (geteuid): Likewise.
32382         (getgid): Likewise.
32383         (getuid): Likewise.
32384         (getresgid): Likewise.
32385         (getresuid): Likewise.
32386         (getgroups): Likewise.
32387         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
32388         (geteuid): Likewise.
32389         (getgid): Likewise.
32390         (getuid): Likewise.
32391         (getresgid): Likewise.
32392         (getresuid): Likewise.
32393         (getgroups): Likewise.
32394         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
32395         (geteuid): Likewise.
32396         (getgid): Likewise.
32397         (getuid): Likewise.
32398         (getresgid): Likewise.
32399         (getresuid): Likewise.
32400         (getgroups): Likewise.
32401         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
32402         Likewise.
32403         (geteuid): Likewise.
32404         (getgid): Likewise.
32405         (getuid): Likewise.
32406         (getresgid): Likewise.
32407         (getresuid): Likewise.
32408         (getgroups): Likewise.
32409         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
32410         (geteuid): Likewise.
32411         (getgid): Likewise.
32412         (getuid): Likewise.
32413         (getresgid): Likewise.
32414         (getresuid): Likewise.
32415         (getgroups): Likewise.
32416         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
32417         Likewise.
32418         (geteuid): Likewise.
32419         (getgid): Likewise.
32420         (getuid): Likewise.
32421         (getgroups): Likewise.
32422
32423         [BZ #14138]
32424         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
32425         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
32426         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
32427         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
32428         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
32429         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
32430         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
32431         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
32432         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
32433         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
32434         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
32435         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
32436         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
32437         __chown.
32438         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
32439         (lchown): Likewise.
32440         (fchown): Likewise.
32441         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
32442         Likewise.
32443         (lchown): Likewise.
32444         (fchown): Likewise.
32445         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
32446         (lchown): Likewise.
32447         (fchown): Likewise.
32448         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
32449         Likewise.
32450         (lchown): Likewise.
32451         (fchown): Likewise.
32452
32453 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32454
32455         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
32456         Simplify logic.
32457
32458 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32459
32460         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32461         Cleanup logic.
32462
32463 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32464
32465         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32466         Remove unused include.
32467
32468 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32469
32470         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
32471         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
32472         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
32473         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
32474
32475 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
32476             Helge Deller <deller@gmx.de>
32477
32478         [BZ #17508]
32479         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
32480         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
32481         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
32482
32483 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
32484
32485         [BZ #14132]
32486         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
32487         Remove macro definition.
32488         (__ashrdi3_v_glibc20): Likewise.
32489         (__lshrdi3_v_glibc20): Likewise.
32490         (__cmpdi2_v_glibc20): Likewise.
32491         (__ucmpdi2_v_glibc20): Likewise.
32492         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
32493         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
32494         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
32495         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
32496         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
32497         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
32498
32499 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32500
32501         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
32502         old GNU extension [0] syntax.
32503         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
32504         alloca rather than an array member with variable length.
32505         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
32506         * nscd/nscd.c (invalidate_db): New function, broken out of ...
32507         (parse_opt): ... here.  Likewise use alloca there.
32508         Validate the -i argument before checking for rootness.
32509         (send_shutdown): New function, broken out of ...
32510         (parse_opt): ... here.
32511
32512 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32513
32514         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
32515         macro to get at the _rt_local_ro field.
32516         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
32517         ([PIC] case) or _dl_hwcap ([!PIC] case).
32518         * sysdeps/arm/setjmp.S: Likewise.
32519
32520         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
32521         * sysdeps/arm/configure.ac: New check to define it.
32522         * sysdeps/arm/configure: Regenerated.
32523         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
32524         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
32525         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
32526         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
32527         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
32528         Use move/movt pair instead of a load.
32529         (LDST_GLOBAL): Macro removed.
32530         (LDR_GLOBAL): New macro replaces it.
32531         (LDR_HIDDEN): New macro.
32532         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
32533         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
32534
32535         * setjmp/tst-setjmp-static.c: New file.
32536         * setjmp/Makefile (tests): Add it.
32537         (tests-static): New variable.
32538
32539 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
32540
32541         [BZ #17485]
32542         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
32543
32544 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
32545
32546         [BZ #14132]
32547         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
32548
32549 2014-10-21  Roland McGrath  <roland@hack.frob.com>
32550
32551         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32552
32553 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32554
32555         * io/fts.c (dirent_not_directory): New function.
32556         (fts_build): Call it.
32557
32558 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32559
32560         * nptl/version.c (__nptl_main): Use normal __write rather than
32561         INTERNAL_SYSCALL.
32562         (banner): Update copyright years.
32563
32564         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32565         gettimeofday.
32566         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32567         * nptl/pthread_cond_timedwait.c: Likewise.
32568         * nptl/pthread_mutex_timedlock.c: Likewise.
32569         * nptl/sem_timedwait.c: Likewise.
32570
32571         * sysdeps/nptl/bits/libc-lock.h
32572         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32573         (__libc_lock_init_recursive): Return void, not 0.
32574         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32575         (__libc_rwlock_init): Likewise.
32576         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32577
32578 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32579
32580         [BZ #15215]
32581         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32582         (__pthread_once_slow): ... here.
32583         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32584         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32585
32586 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32587
32588         [BZ #15215]
32589         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32590         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32591         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32592         * nptl/pthread_once.c (__pthread_once): Likewise.
32593         Update comments.
32594
32595 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32596
32597         [BZ #14138]
32598         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32599         name.
32600         (writev): Use __libc_writev as strong name.
32601         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32602         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32603
32604 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32605
32606         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32607
32608         * sysdeps/i386/nptl/tls.h
32609         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32610         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32611         New macros.
32612         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32613         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32614         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32615         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32616         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32617         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32618
32619         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32620         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32621         on [__NR_futex].
32622         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32623         broken out of ...
32624         (__pthread_mutex_init): ... here.  Call it.
32625         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32626         Conditionalize PI cases on [__NR_futex].
32627         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32628         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32629         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32630
32631         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32632         conditional on [SIGSETXID].
32633         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32634         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32635         is defined.  Likewise for SIGSETXID.
32636         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32637         Conditionalize definitions on [SIGSETXID].
32638         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32639         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32640         unblocking on [SIGCANCEL].
32641
32642         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32643         [__NR_set_robust_list].
32644
32645 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32646
32647         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32648         (do_compare): Likewise.
32649
32650 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32651
32652         [BZ #15884]
32653         * string/strcoll_l.c: Don't include stdio.h.
32654         (coll_seq): Remove members idxarr and rulearr.
32655         (get_next_seq_cached): Remove function.
32656         (get_next_seq): Likewise.
32657         (get_next_seq_nocache): Rename to get_next_seq.
32658         (do_compare): Remove function.
32659         (do_compare_nocache): Rename to do_compare.
32660         (STRCOLL): Remove weight and rules cache.
32661
32662 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32663
32664         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32665         * sysdeps/arm/sfp-machine.h: ... to here.
32666         * sysdeps/arm/Implies: Remove arm/soft-fp.
32667
32668 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32669
32670         * conform/data/sys/utsname.h-data (*_t): Allow.
32671         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32672         [POSIX] (WEXITED): Do not expect constant.
32673         [POSIX] (WSTOPPED): Likewise.
32674         [POSIX] (WNOHANG): Likewise.
32675         [POSIX] (WNOWAIT): Likewise.
32676         [POSIX] (siginfo_t): Do not expect type or elements.
32677         [POSIX] (pid_t): Do not expect type.
32678         [POSIX] (signal.h): Do not allow header.
32679         [POSIX] (sys/resource.h): Likewise.
32680         [POSIX] (si_*): Do not allow pattern.
32681         [POSIX] (W*): Likewise.
32682         [POSIX] (P_*): Likewise.
32683         [POSIX] (BUS_*): Likewise.
32684         [POSIX] (CLD_*): Likewise.
32685         [POSIX] (FPE_*): Likewise.
32686         [POSIX] (ILL_*): Likewise.
32687         [POSIX] (POLL_*): Likewise.
32688         [POSIX] (SEGV_*): Likewise.
32689         [POSIX] (SI_*): Likewise.
32690         [POSIX] (TRAP_*): Likewise.
32691         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32692         variable.
32693
32694 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32695
32696         [BZ #12926]
32697         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32698         infinite loop when __recvmsg returns 0.
32699
32700 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32701
32702         * CANCEL-FCT-WAIVE: Remove file.
32703         * CANCEL-FILE-WAIVE: Likewise.
32704
32705         [BZ #14132]
32706         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32707         instead of INTVARDEF.
32708         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32709         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32710         rtld_hidden_data_def instead of INTVARDEF.
32711         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32712         * elf/dl-deps.c (expand_dst): Likewise.
32713         * elf/dl-load.c (_dl_dst_count): Likewise.
32714         (_dl_dst_substitute): Likewise.
32715         (decompose_rpath): Likewise.
32716         (_dl_init_paths): Likewise.
32717         (open_path): Likewise.
32718         (_dl_map_object): Likewise.
32719         * elf/rtld.c (dl_main): Likewise.
32720         (process_dl_audit): Likewise.
32721         (process_envvars): Likewise.
32722         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32723         Remove declaration.
32724         (__libc_enable_secure): Use rtld_hidden_proto.
32725
32726 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32727
32728         * elf/dl-load.c
32729         (add_path): New function broken out of _dl_rtld_di_serinfo.
32730         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32731
32732 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32733
32734         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32735         parentheses around macro arguments.
32736         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32737         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32738         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32739         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32740         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32741         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32742         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32743         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32744         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32745         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32746         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32747         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32748         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32749         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32750         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32751         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32752         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32753         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32754         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32755         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32756         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32757         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32758         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32759         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32760         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32761         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32762         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32763         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32764         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32765         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32766         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32767         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32768         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32769         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32770         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32771         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32772         Likewise.
32773         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32774         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32775         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32776         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32777         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32778         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32779         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32780         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32781         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32782         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32783         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32784         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32785         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32786         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32787         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32788         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32789         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32790         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32791         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32792         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32793         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32794         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32795         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32796         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32797         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32798         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32799         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32800         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32801         (_FP_FRAC_SRS_1): Likewise.
32802         (_FP_FRAC_CLZ_1): Likewise.
32803         (_FP_MUL_MEAT_1_imm): Likewise.
32804         (_FP_MUL_MEAT_1_wide): Likewise.
32805         (_FP_MUL_MEAT_1_hard): Likewise.
32806         (_FP_SQRT_MEAT_1): Likewise.
32807         (_FP_FRAC_ASSEMBLE_1): Likewise.
32808         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32809         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32810         (__FP_CLZ_2): Likewise.
32811         (_FP_MUL_MEAT_2_wide): Likewise.
32812         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32813         (_FP_MUL_MEAT_2_gmp): Likewise.
32814         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32815         (_FP_SQRT_MEAT_2): Likewise.
32816         (_FP_FRAC_ASSEMBLE_2): Likewise.
32817         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32818         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32819         (_FP_FRAC_CLZ_4): Likewise.
32820         (_FP_MUL_MEAT_4_wide): Likewise.
32821         (_FP_MUL_MEAT_4_gmp): Likewise.
32822         (_FP_SQRT_MEAT_4): Likewise.
32823         (_FP_FRAC_ASSEMBLE_4): Likewise.
32824         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32825         * soft-fp/op-common.h (_FP_CMP): Likewise.
32826         (_FP_CMP_EQ): Likewise.
32827         (_FP_CMP_UNORD): Likewise.
32828         (_FP_TO_INT): Likewise.
32829         (_FP_FROM_INT): Likewise.
32830         [!__FP_CLZ] (__FP_CLZ): Likewise.
32831         (_FP_DIV_HELP_imm): Likewise.
32832         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32833         Likewise.
32834         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32835         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32836         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32837         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32838         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32839         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32840         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32841         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32842         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32843         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32844         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32845         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32846         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32847         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32848         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32849         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32850         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32851         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32852         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32853         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32854         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32855         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32856         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32857         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32858         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32859         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32860         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32861         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32862         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32863         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32864         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32865         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32866         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32867         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32868         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32869         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32870         (FP_UNPACK_RAW_SP): Likewise.
32871         (FP_PACK_RAW_S): Likewise.
32872         (FP_PACK_RAW_SP): Likewise.
32873         (FP_UNPACK_S): Likewise.
32874         (FP_UNPACK_SP): Likewise.
32875         (FP_UNPACK_SEMIRAW_S): Likewise.
32876         (FP_UNPACK_SEMIRAW_SP): Likewise.
32877         (FP_PACK_S): Likewise.
32878         (FP_PACK_SP): Likewise.
32879         (FP_PACK_SEMIRAW_S): Likewise.
32880         (FP_PACK_SEMIRAW_SP): Likewise.
32881         (_FP_SQRT_MEAT_S): Likewise.
32882         (FP_CMP_S): Likewise.
32883         (FP_CMP_EQ_S): Likewise.
32884         (FP_CMP_UNORD_S): Likewise.
32885         (FP_TO_INT_S): Likewise.
32886         (FP_FROM_INT_S): Likewise.
32887
32888         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32889
32890         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32891         (FP_EX_INVALID_IMZ): Likewise.
32892         (FP_EX_INVALID_IMZ_FMA): Likewise.
32893         (FP_EX_INVALID_ISI): Likewise.
32894         (FP_EX_INVALID_ZDZ): Likewise.
32895         (FP_EX_INVALID_IDI): Likewise.
32896         (FP_EX_INVALID_SQRT): Likewise.
32897         (FP_EX_INVALID_CVI): Likewise.
32898         (FP_EX_INVALID_VC): Likewise.
32899         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32900         "invalid" exceptions.
32901         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32902         (_FP_ADD_INTERNAL): Likewise.
32903         (_FP_MUL): Likewise.
32904         (_FP_FMA): Likewise.
32905         (_FP_DIV): Likewise.
32906         (_FP_CMP_CHECK_NAN): Likewise.
32907         (_FP_SQRT): Likewise.
32908         (_FP_TO_INT): Likewise.
32909         (FP_EXTEND): Likewise.
32910
32911 2014-10-09  Allan McRae  <allan@archlinux.org>
32912
32913         * po/fr.po: Update French translation from translation project.
32914
32915 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32916
32917         [BZ #14132]
32918         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32919         of INTDEF.
32920         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32921         (__cxa_atexit): Use libc_hidden_proto.
32922         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32923
32924         [BZ #14132]
32925         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32926         declaration.
32927         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32928         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32929         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32930         [!_ISOMAC] (__iswctype_internal): Likewise.
32931         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32932         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32933         alias.
32934         (fcntl): Remove __fcntl_internal alias.
32935         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32936         __connect_internal alias.
32937         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32938         Likewise.
32939
32940         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32941         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32942         FP_DENORM_ZERO.
32943         (_FP_CHECK_FLUSH_ZERO): New macro.
32944         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32945         (_FP_CMP): Likewise.
32946         (_FP_CMP_EQ): Likewise.
32947         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32948         FP_DENORM_ZERO.
32949         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32950         (FP_TRUNC): Likewise.
32951
32952         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32953         treated as invalid conversion, not as normal exponent.
32954
32955         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32956         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32957         (_FP_CMP_EQ): Likewise.
32958         (_FP_CMP_UNORD): Likewise.
32959         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32960         (FP_CMP_EQ_D): Likewise.
32961         (FP_CMP_UNORD_D): Likewise.
32962         * soft-fp/extended.h (FP_CMP_E): Likewise.
32963         (FP_CMP_EQ_E): Likewise.
32964         (FP_CMP_UNORD_E): Likewise.
32965         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32966         (FP_CMP_EQ_Q): Likewise.
32967         (FP_CMP_UNORD_Q): Likewise.
32968         * soft-fp/single.h (FP_CMP_S): Likewise.
32969         (FP_CMP_EQ_S): Likewise.
32970         (FP_CMP_UNORD_S): Likewise.
32971         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32972         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32973         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32974         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32975         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32976         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32977         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32978         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32979         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32980         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32981         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32982         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32983         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32984         to FP_CMP_Q.
32985         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32986         FP_CMP_Q.
32987         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32988         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32989         FP_CMP_EQ_Q.
32990         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32991         FP_CMP_Q.
32992         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32993         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32994         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32995         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32996         FP_CMP_EQ_Q.
32997         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32998         FP_CMP_Q.
32999         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
33000         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
33001         FP_CMP_EQ_Q.
33002         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
33003         FP_CMP_Q.
33004         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
33005         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
33006         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
33007         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
33008         FP_CMP_EQ_Q.
33009
33010         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
33011         a subnormal result, set the underflow exception if trapping on
33012         underflow is enabled.
33013         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
33014         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
33015         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
33016         redefine to 0.
33017         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
33018         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
33019         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
33020         * soft-fp/extendxftf2.c (__extendxftf2): Use
33021         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
33022
33023         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
33024         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
33025         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33026         FP_HANDLE_EXCEPTIONS.
33027         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
33028         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33029         FP_HANDLE_EXCEPTIONS.
33030         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
33031         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33032         FP_HANDLE_EXCEPTIONS.
33033         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
33034         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33035         FP_HANDLE_EXCEPTIONS.
33036
33037 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
33038
33039         [BZ #14132]
33040         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
33041         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
33042         use INTUSE.
33043         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
33044         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
33045         Remove alias.
33046         (__adjtimex): Define using libc_hidden_ver.
33047         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
33048         Remove declaration.
33049         (ntp_gettime): Call __adjtimex directly.
33050         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
33051         Remove declaration.
33052         (ntp_gettimex): Call __adjtimex directly.
33053         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
33054         __adjtimex_internal alias.
33055
33056 2014-10-08  Roland McGrath  <roland@hack.frob.com>
33057
33058         [BZ #17460]
33059         * nscd/nscd.c (more_help): Rewrite list of tables collection
33060         using xstrdup and asprintf.
33061
33062         * nscd/nscd_conf.c: Remove local xstrdup declaration.
33063
33064 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33065             Roland McGrath  <roland@hack.frob.com>
33066
33067         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
33068         (do_lookup_unique): ... local function 'enter' here; update callers.
33069
33070 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
33071
33072         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
33073         compat_symbol calls on [SHARED].
33074         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
33075         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
33076         Remove.
33077         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33078         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
33079         (oldsetrlimit): Remove.
33080         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33082         (lchown): New syscall entry.
33083         (oldsetrlimit): Remove.
33084         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33085         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
33086         (oldsetrlimit): Remove.
33087         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33088
33089         [BZ #14138]
33090         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
33091         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
33092         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
33093         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
33094         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
33095         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
33096         (fchown): Likewise.
33097         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
33098         (fchown): Likewise.
33099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
33100         Likewise.
33101
33102 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33103
33104         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
33105         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
33106         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
33107         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
33108         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
33109         Likewise.
33110         (__old_sem_post): Likewise.
33111
33112 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
33113
33114         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
33115         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
33116         HAVE_CLOCK_GETTIME_VSYSCALL macros.
33117         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
33118         Use INLINE_VSYSCALL macro.
33119         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
33120         __vdso_clock_gettime.
33121         * sysdeps/unix/sysv/linux/tile/init-first.c
33122         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
33123         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
33124         __vdso_clock_gettime.
33125
33126         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
33127         to set up frame more cleanly.
33128
33129         * sysdeps/tile/memcmp.c: New file.
33130
33131         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
33132
33133         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
33134         * sysdeps/tile/tilegx/strcasestr.c: New file.
33135         * sysdeps/tile/tilegx/strnlen.c: New file.
33136         * sysdeps/tile/tilegx/strstr.c: New file.
33137
33138         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
33139
33140 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
33141
33142         * nptl/tst-setuid3.c: Write errors to stdout.
33143
33144 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33145
33146         * elf/dl-deps.c
33147         (preload): New functions broken out of _dl_map_object_deps.
33148         (_dl_map_object_deps):  Remove a nested function. Update call sites.
33149
33150 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
33151
33152         [BZ #14138]
33153         * sysdeps/unix/sysv/linux/execve.c: Remove file.
33154         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
33155
33156 2014-10-01  Steve Ellcey  <sellcey@mips.com>
33157
33158         * sysdeps/mips/strcmp.S: New.
33159
33160 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
33161
33162         [BZ #14138]
33163         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
33164         (linkat): Likewise.
33165         (mkdirat): Likewise.
33166         (readlinkat): Likewise.
33167         (renameat): Likewise.
33168         (symlinkat): Likewise.
33169         (unlinkat): Likewise.
33170         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
33171         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
33172         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
33173         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
33174         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
33175         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
33176         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
33177
33178 2014-09-30  Will Newton  <will.newton@linaro.org>
33179
33180         * math/math.h: Define long double math functions if
33181         _LIBC_TEST is defined.
33182         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
33183
33184         * localedata/Makefile: Move assignment to tests-special
33185         into an ifdef testing run-built-tests.
33186         * timezone/Makefile: Likewise.
33187
33188 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
33189
33190         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
33191         with $(BASH) not $(SHELL).
33192
33193 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
33194             Matthew LeGendre  <legendre1@llnl.gov>
33195
33196         [BZ #17411]
33197         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
33198         l_reloc_result.
33199
33200 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33201
33202         * stdio-common/printf_fp.c
33203         (hack_digit): New function, broken out of ...
33204         (__printf_fp): ... local function here.  Update call sites.
33205         hack_digit now takes an additional parameter that is a pointer
33206         to a struct of the referenced locals.  Those locals moved inside
33207         the struct and references updated.
33208
33209 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33210
33211         * aclocal.m4: Require autoconf 2.69.
33212         * configure: Regenerated.
33213         * sysdeps/aarch64/configure: Likewise.
33214         * sysdeps/alpha/configure: Likewise.
33215         * sysdeps/arm/armv7/configure: Likewise.
33216         * sysdeps/arm/configure: Likewise.
33217         * sysdeps/ia64/configure: Likewise.
33218         * sysdeps/mach/configure: Likewise.
33219         * sysdeps/mips/configure: Likewise.
33220         * sysdeps/s390/configure: Likewise.
33221         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
33222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
33223
33224         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
33225         file.
33226         * sysdeps/ia64/configure.ac: Likewise.
33227
33228 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
33229
33230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
33231         specify symbol version for ld.so.  Do not include entry for
33232         libpthread.
33233         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33234         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33235         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33236
33237         [BZ #14171]
33238         * Makeconfig [$(build-shared) = yes]
33239         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
33240         makefiles.
33241         [$(build-shared) = yes && $(soversions.mk-done) = t]
33242         ($(common-objpfx)gnu/lib-names.h): Remove rule.
33243         [$(build-shared) = yes && $(soversions.mk-done) = t]
33244         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
33245         to Makerules.
33246         [$(build-shared) = yes && $(soversions.mk-done) = t]
33247         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
33248         here.
33249         [$(build-shared) = yes && $(soversions.mk-done) = t]
33250         (common-generated): Don't append gnu/lib-names.h and
33251         gnu/lib-names.stmp here.
33252         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
33253         (lib-names-h-abi): New variable.
33254         [$(build-shared) = yes && $(soversions.mk-done) = t]
33255         (lib-names-stmp-abi): Likewise.
33256         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33257         abi-variants] (before-compile): Append
33258         $(common-objpfx)$(lib-names-h-abi).
33259         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33260         abi-variants] (common-generated): Append gnu/lib-names.h.
33261         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33262         abi-variants] (install-others-nosubdir): Depend on
33263         $(inst_includedir)/$(lib-names-h-abi).
33264         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33265         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
33266         [$(build-shared) = yes && $(soversions.mk-done) = t]
33267         ($(common-objpfx)$(lib-names-h-abi)): New rule.
33268         [$(build-shared) = yes && $(soversions.mk-done) = t]
33269         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
33270         [$(build-shared) = yes && $(soversions.mk-done) = t]
33271         (common-generated): Append $(lib-names-h-abi) and
33272         $(lib-names-stmp-abi).
33273         * scripts/lib-names.awk: Do not handle multi being set.
33274         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
33275         Remove variable.
33276         (abi-lp64_be-ld-soname): Likewise.
33277         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
33278         Likewise.
33279         (abi-hard-ld-soname): Likewise.
33280         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
33281         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
33282         Remove variable.
33283         (abi-o32_hard-ld-soname): Likewise.
33284         (abi-o32_soft_2008-ld-soname): Likewise.
33285         (abi-o32_hard_2008-ld-soname): Likewise.
33286         (abi-n32_soft-ld-soname): Likewise.
33287         (abi-n32_hard-ld-soname): Likewise.
33288         (abi-n32_soft_2008-ld-soname): Likewise.
33289         (abi-n32_hard_2008-ld-soname): Likewise.
33290         (abi-n64_soft-ld-soname): Likewise.
33291         (abi-n64_hard-ld-soname): Likewise.
33292         (abi-n64_soft_2008-ld-soname): Likewise.
33293         (abi-n64_hard_2008-ld-soname): Likewise.
33294         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
33295         Likewise.
33296         (abi-64-v2-ld-soname): Likewise.
33297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
33298         ld.so entries.
33299         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
33300         variable.
33301         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
33302         entry.
33303         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
33304         variable.
33305         (abi-64-ld-soname): Likewise.
33306         (abi-x32-ld-soname): Likewise.
33307         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
33308         entry.
33309         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33310
33311 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
33312
33313         [BZ #14138]
33314         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
33315         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
33316         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
33317         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
33318         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
33319         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
33320         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
33321         syscall entry for GLIBC_2.2 symbol version.
33322         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
33323         Likewise.
33324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33325         (setrlimit): Likewise.
33326         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
33327         Likewise.
33328
33329 2014-09-23  Will Newton  <will.newton@linaro.org>
33330
33331         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
33332         _LINUX_ARM_SYSDEP_H include guard too.
33333         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
33334         define.
33335
33336 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33337
33338         * sysdeps/unix/sysv/linux/eventfd.c:
33339         Make first argument unsigned.
33340         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
33341         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
33342
33343 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
33344
33345         [BZ #16852]
33346         * socket/recvmmsg.c (recvmmsg): Drop const argument.
33347         * socket/sys/socket.h: Likewise.
33348         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
33349
33350 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33351
33352         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
33353
33354 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
33355
33356         * time/tst-ftime.c: New test.
33357         * time/Makefile (tests): Add tst-ftime.
33358
33359 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
33360
33361         * soft-fp/extended.h: Fix comment formatting.
33362         * soft-fp/op-1.h: Likewise.
33363         * soft-fp/op-2.h: Likewise.
33364         * soft-fp/op-4.h: Likewise.
33365         * soft-fp/op-8.h: Likewise.
33366         * soft-fp/op-common.h: Likewise.
33367         * soft-fp/soft-fp.h: Likewise.
33368
33369         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
33370
33371 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
33372
33373         [BZ #6652]
33374         * Makeconfig (soversions-default-setname): Remove variable.
33375         ($(common-objpfx)soversions.i): Don't pass default_setname to
33376         soversions.awk.
33377         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
33378         oldest_abi to abi-versions.awk.
33379         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
33380         * config.make.in (oldest-abi): Remove variable.
33381         * configure.ac (--enable-oldest-abi): Remove configure option.
33382         * configure: Regenerated.
33383         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
33384         text.
33385         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
33386         * scripts/soversions.awk: Do not handle default_setname variable.
33387         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
33388         variable.
33389         * sysdeps/mach/hurd/configure: Regenerated.
33390         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
33391         variable.
33392         * sysdeps/unix/sysv/linux/configure: Regenerated.
33393
33394 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33395
33396         * elf/Makefile (CFLAGS-interp.c): Remove.
33397         ($(elf-objpfx)runtime-linker.h): Generate header with linker
33398         path string.
33399         * elf/interp.c: Include generated runtime-linker.h
33400
33401         * Makerules (lib%.so): Don't include $(+interp) in
33402         prerequisites.
33403         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
33404         * dlfcn/eval.c: Remove file.
33405
33406         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
33407         macros.
33408
33409         [BZ #17266]
33410         * misc/sys/cdefs.h: Define __extern_always_inline for clang
33411         4.2 and newer.
33412
33413         [BZ #17370]
33414         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
33415
33416 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33417             Jakub Jelinek  <jakub@redhat.com>
33418
33419         [BZ #17266]
33420         * libio/stdio.h: Check definition of __fortify_function
33421         instead of __extern_always_inline to include bits/stdio2.h.
33422         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
33423         check if __extern_always_inline is defined.
33424         [__USE_MISC || __USE_XOPEN]: Likewise.
33425         [__USE_ISOC99] Likewise.
33426         * misc/sys/cdefs.h (__fortify_function): Define only if
33427         __extern_always_inline is defined.
33428         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
33429         __extern_always_inline and __extern_inline only for g++-4.3
33430         and newer or a compatible gcc.
33431
33432 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
33433
33434         [BZ #17371]
33435         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
33436         last change to handle zero prefix length.
33437
33438 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33439
33440         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
33441         _SC_REGEX_VERSION.
33442
33443         * posix/getconf.c (vars): Add _POSIX_IPV6 and
33444         _POSIX_RAW_SOCKETS.
33445
33446 2014-09-13  Allan McRae  <allan@archlinux.org>
33447
33448         * po/ru.po: Update Russian translation from translation project.
33449
33450 2014-09-12  Roland McGrath  <roland@hack.frob.com>
33451
33452         * locale/programs/locale.c (show_locale_vars): Inline local function
33453         into its sole call site.  Clean up some style nits.
33454         (print_item): New function, broken out of ...
33455         (show_info): ... local function here.  Clean up style nits.
33456
33457         * locale/programs/ld-ctype.c (set_one_default): New function, broken
33458         out of ...
33459         (set_class_defaults): ... local function set_default here.
33460         Define set_default as a macro locally to pass constant parameters.
33461         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
33462         rather than a shared local.
33463
33464         * stdlib/rpmatch.c (try): New function, broken out of ...
33465         (rpmatch): ... local function here.  Also, prototypify definition.
33466
33467 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
33468
33469         * scripts/soversions.awk: Do not handle configuration names.
33470         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
33471         vendor and os variables to soversions.awk.
33472         * configure.ac: Do not modify gnu-* host_os.
33473         * configure: Regenerated
33474         * shlib-versions: Remove first column with configuration names.
33475         * nptl/shlib-versions: Likewise.
33476         * nptl_db/shlib-versions: Likewise.
33477         * sysdeps/hppa/shlib-versions: Likewise.
33478         * sysdeps/m68k/shlib-versions: Likewise.
33479         * sysdeps/mach/hurd/shlib-versions: Likewise.
33480         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
33481         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
33482         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
33483         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
33484         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
33485         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
33486         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
33487         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
33488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33489         Likewise.
33490         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33491         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33492         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33493         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33494         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33495         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
33496         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33497         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33498
33499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33500         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
33501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33502         Regenerated.
33503         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
33504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33505         Condition symbol version definitions on [HAVE_ELFV2_ABI].
33506
33507         * shlib-versions: Remove OS-specific entries.  Moved to files in
33508         sysdeps.
33509         * sysdeps/mach/hurd/shlib-versions: New file.
33510         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33511
33512         * nptl/shlib-versions: Remove architecture-specific entries.
33513         Moved to files in sysdeps.
33514         * shlib-versions: Likewise.
33515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
33516         file.
33517         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33518         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33519         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33520         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33521
33522         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
33523         (UDP_NO_CHECK6_RX): Likewise.
33524
33525 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33526
33527         * sysdeps/posix/sysconf.c (__sysconf): Spell
33528         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
33529
33530 2014-08-12  Florian Weimer  <fweimer@redhat.com>
33531
33532         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
33533         loading.
33534         * iconv/Versions (__gconv_transliterate): Export for use from
33535         gconv modules.
33536         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
33537         (struct __gconv_trans_data, __gconv_trans_fct,
33538         __gconv_trans_context_fct, __gconv_trans_query_fct,
33539         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
33540         definitions.
33541         (struct __gconv_step_data): Remove __trans member.
33542         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
33543         longer hidden.  Remove unused trans_data argument.
33544         * iconv/gconv_int.h (struct trans_struct): Remove definition.
33545         (__gconv_translit_find): Remove declaration.
33546         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
33547         prototype.
33548         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
33549         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
33550         trans_data argument.  Add hidden definition.
33551         (__gconv_translit_find): Remove.
33552         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33553         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33554         * iconv/skeleton.c: Remove transliteration initialization.
33555         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33556         __gconv_step_data initialization.
33557         * libio/iofwide.c (__libio_translit_): Remove.
33558         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33559         * wcsmbs/btowc.c (__btowc): Likewise.
33560         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33561         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33562         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33563         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33564         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33565         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33566         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33567         * wcsmbs/wctob.c (wctob): Likewise.
33568
33569 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33570
33571         [BZ #16194]
33572         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33573         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33574         register usage.
33575         * sysdeps/x86/Makefile: Adjust.
33576
33577 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33578             Roland McGrath  <roland@hack.frob.com>
33579
33580         * locale/weight.h: Add include guard.
33581         (findidx): Make static rather than auto; take new parameters
33582         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33583         * locale/weightwc.h: Likewise.
33584         * posix/fnmatch_loop.c
33585         (FCT): Change type of EXTRA from int32_t to wint_t.
33586         Don't include either header inside the function.
33587         Call FINDIDX rather than findidx, and pass new arguments.
33588         #undef FINDIDX at the end of the file.
33589         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33590         FINDIDX before including fnmatch_loop.c for the non-wide version.
33591         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33592         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33593         for the wide version.
33594         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33595         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33596         Pass new arguments to findidx.
33597         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33598         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33599         Don't #include it inside the function.  Pass new arguments to findidx.
33600         * posix/regex_internal.h
33601         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33602         (re_string_elem_size_at): Don't #include it inside the function.
33603         Pass new arguments to findidx.
33604         * string/strcoll_l.c: #include WEIGHT_H at top level.
33605         (get_next_seq): Don't #include it inside the function.
33606         Pass new arguments to findidx.
33607         (get_next_seq_nocache): Likewise.
33608         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33609         (STRXFRM): Don't #include it inside the function.
33610         Pass new arguments to findidx.
33611
33612 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33613
33614         [BZ #17344]
33615         * malloc/malloc.c (unlink): Turn asserts into a call to
33616         malloc_printerr.
33617
33618 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33619
33620         [BZ #17370]
33621         * libio/wfileops (do_ftell_wide): Free OUT.
33622
33623 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33624
33625         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33626
33627 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33628
33629         [BZ #17363]
33630         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33631         group if the current group is empty.
33632
33633 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33634
33635         * benchtests/bench-memset.c (test_main): Add more test from size
33636         from 32 to 512 bytes.
33637         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33638         Add POWER8 memset object.
33639         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33640         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33641         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33642         implementation.
33643         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33644         Likewise.
33645         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33646         multiarch POWER8 memset optimization.
33647         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33648         POWER8 memset optimization.
33649
33650         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33651         Remove bzero multiarch objects.
33652         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33653         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33654         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33655         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33656         Remove define.
33657         [__bzero]: Redefine to specific name.
33658         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33659         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33660         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33661         define.
33662         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33663         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33664
33665 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33666
33667         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33668         warnings into errors.
33669
33670         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33671         __cxa_thread_atexit_impl prototype.
33672
33673 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33674
33675         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33676         Fix capitalization of error message.
33677
33678 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33679
33680         * sysdeps/mips/preconfigure: Modify ABI tests.
33681
33682 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33683
33684         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33685
33686 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33687             Carlos O'Donell  <carlos@systemhalted.org>
33688
33689         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33690         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33691         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33692         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33693         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33694         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33695         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33696         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33697         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33698         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33699         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33700         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33701         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33702         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33703         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33704         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33705         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33706         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33707         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33708         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33709         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33710         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33711         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33712         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33713         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33714         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33715         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33716         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33717         Deconditionalize the code that was previously under [RESET_PID].
33718         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33719         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33720         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33721         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33722         include sysdep.h.
33723
33724 2014-09-08  Allan McRae  <allan@archlinux.org>
33725
33726         * version.h (RELEASE): Set to "development".
33727         (VERSION): Set to "2.20.90"
33728
33729 2014-09-07  Allan McRae  <allan@archlinux.org
33730
33731         * version.h (RELEASE): Set to "stable".
33732         (VERSION): Set to "2.20"
33733         * include/features.h (__GLIBC_MINOR__): Set to 20.
33734
33735         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33736         Liebler.
33737
33738         * po/ko.po: Update Korean translation from translation project.
33739
33740 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33741
33742         [BZ #17354]
33743         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33744         macro for handling signed relocations.
33745
33746 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33747
33748         [BZ #17325]
33749         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33750         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33751         assert.
33752         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33753         * iconvdata/ibm935.c (BODY): Likewise.
33754         * iconvdata/ibm937.c (BODY): Likewise.
33755         * iconvdata/ibm939.c (BODY): Likewise.
33756         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33757         assert.
33758         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33759         script.
33760         * iconvdata/run-iconv-test.sh: New test loop for checking for
33761         decoder crashers.
33762
33763 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33764
33765         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33766         libm_hidden_ver.
33767
33768 2014-09-01  Allan McRae  <allan@archlinux.org>
33769
33770         * po/eo.po: Update Esperanto translation from translation project.
33771
33772         * po/ca.po: Update Catalan translation from translation project.
33773
33774 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33775
33776         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33777         __proc_dostop call.
33778
33779 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33780
33781         [BZ #17319]
33782         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33783         to call set_thread_area instead of hand written asm.
33784         (__NR_set_thread_area): Removed define.
33785         (TLS_FLAG_WRITABLE): Likewise.
33786         (__ASSUME_SET_THREAD_AREA): Remove check.
33787         (TLS_EBX_ARG): Remove define.
33788         (TLS_LOAD_EBX): Likewise.
33789
33790 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33791
33792         Simplify atomicity of socket creation in bind.
33793
33794         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33795         looking up the name after linking the file.
33796
33797 2014-08-27  Allan McRae  <allan@archlinux.org>
33798
33799         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33800
33801 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33802
33803         [BZ #17187]
33804         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33805         trans_compare, open_translit, __gconv_translit_find):
33806         Remove module loading code.
33807
33808 2014-08-26  Allan McRae  <allan@archlinux.org>
33809
33810         * po/vi.po: Update Vietnamese translation from translation project.
33811
33812         * po/uk.po: Update Ukrainian translation from translation project.
33813
33814         * po/fr.po: Update French translation from translation project.
33815
33816         * po/ru.po: Update Russian translation from translation project.
33817
33818         * po/pl.po: Update Polish translation from translation project.
33819
33820         * po/cs.po: Update Czech translation from translation project.
33821
33822         * po/de.po: Update German translation from translation project.
33823
33824         * po/bg.po: Update Bulgarian translation from translation project.
33825
33826         * po/sv.po: Update Sweedish translation from translation project.
33827
33828         * po/nl.po: Update Dutch translation from translation project.
33829
33830         * po/es.po: Update Spanish translation from translation project.
33831
33832 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33833
33834         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33835
33836         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33837         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33838         (CPPFLAGS-iconvconfig): Likewise.
33839         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33840
33841         * include/libc-symbols.h: Remove unnecessary check for
33842         NOT_IN_libc.
33843         * nptl/pthreadP.h: Likewise.
33844         * sysdeps/aarch64/setjmp.S: Likewise.
33845         * sysdeps/alpha/setjmp.S: Likewise.
33846         * sysdeps/arm/sysdep.h: Likewise.
33847         * sysdeps/i386/setjmp.S: Likewise.
33848         * sysdeps/m68k/setjmp.c: Likewise.
33849         * sysdeps/posix/getcwd.c: Likewise.
33850         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33851         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33852         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33853         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33854         * sysdeps/sh/sh3/setjmp.S: Likewise.
33855         * sysdeps/sh/sh4/setjmp.S: Likewise.
33856         * sysdeps/unix/alpha/sysdep.h: Likewise.
33857         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33858         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33859         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33860         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33863         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33864         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33865         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33866         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33867         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33868         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33869         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33870         * sysdeps/x86_64/setjmp.S: Likewise.
33871
33872 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33873
33874         [BZ #17263]
33875         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33876         <stdint.h>.
33877         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33878         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33879
33880 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33881
33882         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33883
33884         [BZ #17262]
33885         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33886         and __x86_64__ when disabling x87 inline functions.
33887
33888 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33889
33890         [BZ #17259]
33891         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33892         asm statement with __cpuid_count.
33893
33894 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33895
33896         * configure.ac: Change __ehdr_start code to dereference the struct.
33897         Run readelf on the output to look for relocations.
33898         * configure: Regenerated.
33899
33900 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33901
33902         [BZ #17261]
33903         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33904         value to 0.
33905         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33906
33907 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33908
33909         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33910
33911 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33912
33913         [BZ #16892]
33914         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33915         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33916
33917 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33918
33919         * malloc/malloc.c: Fix typo in comment.
33920
33921 2014-08-09  Allan McRae  <allan@archlinux.org>
33922
33923         * Regenerate libc.po.
33924
33925 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33926
33927         * intl/tst-gettext2.sh: Check every lang file for creation.
33928
33929 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33930
33931         * sysdeps/aarch64/fpu/math_private.h
33932         (libc_feholdsetround_noex_aarch64_ctx): New function.
33933
33934 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33935
33936         * sysdeps/arm/armv6/strcpy.S (strcpy):
33937         Fix performance issue in misaligned cases.
33938
33939 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33940
33941         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33942         Move definition from termios.h.
33943         (struct termio): Likewise.
33944         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33945         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33946         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33947         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33948         Likewise.
33949         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33950         Move definition to ioctl-types.h
33951         (struct termio): Likewise.
33952         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33953         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33954         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33955         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33956         Likewise.
33957
33958 2014-08-05  Richard Henderson  <rth@redhat.com>
33959
33960         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33961         exceptions.
33962         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33963         Add fraiseexcpt.
33964         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33965         Use __feraiseexcept.
33966         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33967         Protect libm symbols with IS_IN_libm.
33968
33969         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33970
33971 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33972
33973         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33974
33975 2014-08-04  Will Newton  <will.newton@linaro.org>
33976
33977         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33978         file.
33979
33980 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33981
33982         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33983         variants for each function.
33984
33985 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33986
33987         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33988         appended ...
33989         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33990         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33991         appended ...
33992         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33993         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33994         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33995         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33996         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33997         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33998         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33999         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
34000         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
34001         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
34002         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
34003         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
34004         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
34005         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
34006         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
34007         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
34008         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
34009         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
34010         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
34011         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
34012         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
34013         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
34014         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
34015         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
34016         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
34017         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
34018         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
34019         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
34020         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
34021         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
34022         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
34023         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
34024         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
34025         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
34026         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
34027         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
34028         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
34029         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
34030         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
34031         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
34032         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
34033         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
34034         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
34035         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
34036         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
34037         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
34038         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
34039         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
34040         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
34041         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
34042         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
34043         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
34044         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
34045         Update #include.
34046         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
34047         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
34048
34049 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34050
34051         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
34052         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
34053         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
34054         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
34055         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
34056         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
34057
34058 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34059
34060         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
34061         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
34062         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34063         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
34064
34065 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34066
34067         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
34068         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
34069         (__libc_vfork): Define function under this name.
34070         (__vfork): Define as an alias.
34071         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
34072         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
34073
34074 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34075
34076         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
34077         that was previously under [RESET_PID].
34078         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
34079
34080 2014-08-04  Andreas Schwab  <schwab@suse.de>
34081
34082         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
34083
34084 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
34085
34086         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
34087         (main): Likewise.
34088
34089 2014-08-01  Roland McGrath  <roland@hack.frob.com>
34090
34091         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
34092
34093 2014-08-01  Richard Henderon  <rth@redhat.com>
34094
34095         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
34096         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
34097         typo in exact zero test.
34098         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
34099         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
34100         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
34101
34102 2014-08-01  Roland McGrath  <roland@hack.frob.com>
34103
34104         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
34105         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
34106         * sysdeps/arm/sysdep.h: ... here.
34107         [!__ASSEMBLER__]: Include <stdint.h>.
34108
34109 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34110
34111         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
34112         (HAVE_WCTYPE_H): Likewise.
34113         (HAVE_ISWCTYPE): Likewise.
34114         (ENABLE_NLS): Likewise.
34115         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
34116         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
34117
34118         * posix/regex_internal.c: Check if DEBUG is defined and is
34119         set.
34120
34121         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
34122         (HAVE_MBSRTOWCS): Likewise.
34123         * posix/fnmatch.c: Include string.h unconditionally.
34124
34125 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34126
34127         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
34128         reversal.
34129
34130 2014-07-31  Roland McGrath  <roland@hack.frob.com>
34131
34132         * sysdeps/generic/safe-fatal.h: New file.
34133         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
34134         * nptl/forward.c: Include it.
34135         (__pthread_unwind): Use __safe_fatal as default action, rather
34136         than a bogus use of INTERNAL_SYSCALL that could never work.
34137
34138         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
34139         * configure.ac (libc_cv_builtin_trap): New test.
34140         * configure: Regenerated.
34141         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
34142         (ABORT_INSTRUCTION): Define using __builtin_trap.
34143
34144         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
34145         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
34146         * sysdeps/nptl/nptl-signals.h: New file.
34147         * nptl/pthreadP.h: Include <nptl-signals.h>.
34148
34149 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
34150
34151         * sysdeps/s390/s390-64/utf16-utf32-z9.c
34152         (ONE_DIRECTION): Define.
34153         * sysdeps/s390/s390-64/utf8-utf16-z9.c
34154         (ONE_DIRECTION): Define.
34155         * sysdeps/s390/s390-64/utf8-utf32-z9.c
34156         (ONE_DIRECTION): Define.
34157
34158 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
34159
34160         * sysdeps/s390/Makefile: Delete file.
34161         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
34162         * sysdeps/s390/__longjmp.c: Delete file.
34163         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
34164         Remove fields __flags and __reserved.
34165         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
34166         and add versioning.
34167         * sysdeps/s390/rtld-__longjmp.c: Delete file.
34168         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
34169         * sysdeps/s390/rtld-setjmp.S: Likewise.
34170         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
34171         * sysdeps/s390/s390-32/__longjmp.c: ... here.
34172         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
34173         * sysdeps/s390/s390-32/setjmp.S: ... here.
34174         Add versioning.
34175         (__sigsetjmp): Remove setting __flags field.
34176         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
34177         * sysdeps/s390/s390-64/__longjmp.c: ... here.
34178         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
34179         * sysdeps/s390/s390-64/setjmp.S: ... here.
34180         Add versioning.
34181         (__sigsetjmp): Remove setting __flags field.
34182         * sysdeps/s390/setjmp.S: Delete file.
34183         * sysdeps/s390/sigjmp.c: Likewise.
34184         * sysdeps/s390/v1-longjmp.c: Likewise.
34185         * sysdeps/s390/v1-setjmp.h: Likewise.
34186         * sysdeps/s390/v1-sigjmp.c: Likewise.
34187         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
34188         Remove v1-longjmp_chk.
34189         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
34190         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
34191         Include debug/longjmp_chk.c and add versioning.
34192         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
34193         Include nptl/pt-longjmp.c and add versioning.
34194         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
34195         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
34196         Include __longjmp.c.
34197         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
34198         Move to ...
34199         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
34200         (__getcontext): Remove setting __flags field.
34201         Add versioning.
34202         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
34203         Don't restore upper high grps.
34204         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
34205         Likewise.
34206         (__swapcontext): Remove setting uc_flags field.
34207         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
34208         Delete file.
34209         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
34210         Include __longjmp.c.
34211         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
34212         Move to ...
34213         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
34214         (__getcontext): Remove setting __flags field.
34215         Add versioning.
34216         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
34217         (__swapcontext): Remove setting uc_flags field.
34218         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
34219         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
34220         Remove fields uc_high_gprs and __reserved.
34221         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
34222         New file with reverted content.
34223         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
34224         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
34225         Regenerated.
34226         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
34227         Regenerated.
34228
34229 2014-07-31  Andreas Schwab  <schwab@suse.de>
34230
34231         * config.h.in (HAVE_IFUNC): Define to 0.
34232         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
34233         definedness.
34234
34235 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
34236
34237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34238         memmove-avx-unaligned, memcpy-avx-unaligned and
34239         mempcpy-avx-unaligned.
34240         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34241         Add tests for AVX memcpy functions.
34242         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
34243         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
34244         memcpy_chk.
34245         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
34246         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
34247         memmove_chk.
34248         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
34249         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
34250         mempcpy_chk.
34251         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
34252         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
34253         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
34254
34255 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34256
34257         [BZ #17213]
34258         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
34259         powerpc64le.
34260
34261 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
34262
34263         [BZ #16839]
34264         * manual/llio.texi: Add section about open file description locks.
34265         * manual/examples/ofdlocks.c: Example of open file description
34266         lock usage.
34267         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
34268         F_OFD_SETLK, and F_OFD_SETLKW.
34269
34270 2014-07-23  Allan McRae  <allan@archlinux.org>
34271
34272         * po/es.po: Update Spanish translation from translation project.
34273
34274 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
34275
34276         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
34277
34278 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
34279
34280         [BZ #17078]
34281         * sysdeps/arm/dl-machine.h (elf_machine_rela)
34282         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
34283         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
34284
34285 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
34286
34287         [BZ #17088]
34288         * math/fesetenv.c (__fesetenv)
34289         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
34290         * math/feupdateenv.c (__feupdateenv)
34291         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
34292
34293         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
34294         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
34295         (__ASSUME_SOCKETCALL): Do not define.
34296
34297         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
34298         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
34299         (__ASSUME_SOCKETCALL): Do not define.
34300         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
34301         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34302         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34303         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34304         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34305         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
34306         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34307         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34308
34309         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
34310         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
34311         (__ASSUME_SOCKETCALL): Do not define.
34312         (__ASSUME_IPC64): Define unconditionally.
34313         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34314         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34315         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34316         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34317         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
34318         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34319         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
34320         Likewise.
34321
34322         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
34323         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
34324         (__ASSUME_SOCKETCALL): Do not define.
34325         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
34326         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34327         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34328         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
34329         (__ASSUME_REQUEUE_PI): Define unconditionally.
34330         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
34331         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
34332         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34333         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
34334         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34335         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34336
34337         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
34338         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
34339         (__ASSUME_SOCKETCALL): Do not define.
34340         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
34341         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34342         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34343         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
34344         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34345         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34346
34347         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
34348         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
34349         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34350         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
34351         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34352         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
34353         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34354         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
34355         (__ASSUME_GETCPU_SYSCALL): Likewise.
34356
34357         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
34358         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
34359         cases for individual architectures.
34360         * sysdeps/gnu/configure: Regenerated.
34361         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
34362         LIBC_SLIBDIR_RTLDDIR.
34363         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
34364         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
34365         LIBC_SLIBDIR_RTLDDIR.
34366         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
34367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
34368         LIBC_SLIBDIR_RTLDDIR.
34369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34370         Regenerated.
34371         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
34372         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
34373         file.
34374         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
34375         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
34376         file.
34377         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
34378         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
34379         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
34380         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
34381
34382         * sysdeps/aarch64/shlib-versions: Move to ...
34383         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
34384         * sysdeps/alpha/shlib-versions: Move to ...
34385         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
34386         * sysdeps/arm/shlib-versions: Move to ...
34387         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
34388         * sysdeps/hppa/shlib-versions: Move all contents except for
34389         libgcc_s entry to ...
34390         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
34391         entry from ...
34392         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
34393         * sysdeps/ia64/shlib-versions: Move to ...
34394         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
34395         entry from ...
34396         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
34397         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
34398         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
34399         * sysdeps/microblaze/shlib-versions: Move to ...
34400         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
34401         * sysdeps/mips/shlib-versions: Move to ...
34402         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
34403         entry from ...
34404         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
34405         * sysdeps/tile/shlib-versions: Move to ...
34406         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
34407         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
34408         from ...
34409         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
34410         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
34411         entry from ...
34412         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
34413
34414 2014-07-17  Will Newton  <will.newton@linaro.org>
34415
34416         * sysdeps/arm/bits/atomic.h
34417         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
34418         (__arch_compare_and_exchange_bool_16_int): Likewise.
34419         (__arch_compare_and_exchange_bool_64_int): Likewise.
34420
34421         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
34422         into an #else block.
34423
34424 2014-07-16  Roland McGrath  <roland@hack.frob.com>
34425
34426         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
34427         just Linux configurations.  Test empirically that the compiler sets
34428         __ARM_EABI__, rather than using the tuple to decide.
34429         * sysdeps/arm/preconfigure: Regenerated.
34430         * sysdeps/unix/sysv/linux/arm/configure: File removed.
34431         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
34432         contents appended ...
34433         * sysdeps/arm/configure.ac: ... here.
34434         * sysdeps/arm/configure: Regenerated.
34435
34436 2014-07-15  Roland McGrath  <roland@hack.frob.com>
34437
34438         * nptl/pthread_kill.c: New file.
34439         * nptl/pthread_sigmask.c: New file.
34440         * nptl/pthread_sigqueue.c: New file.
34441
34442         * sysdeps/nptl/lowlevellock.h: New file.
34443         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
34444         * sysdeps/nptl/lowlevellock-futex.h: New file.
34445
34446         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
34447         Remove dead declarations.
34448
34449 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
34450
34451         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
34452         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
34453         config-cflags-avx2.
34454         * sysdeps/x86_64/configure.ac: Likewise.
34455         * sysdeps/i386/configure: Regenerated.
34456         * sysdeps/x86_64/configure: Likewise.
34457         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34458         memset-avx2 only if config-cflags-avx2 is yes.
34459         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34460         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
34461         defined.
34462         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
34463         only if HAVE_AVX2_SUPPORT is defined.
34464         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34465
34466 2014-07-14  Alan Modra  <amodra@gmail.com>
34467
34468         [BZ #17153]
34469         * elf/elf.h (DT_PPC64_NUM): Correct value.
34470         * NEWS: Add to fixed bug list.
34471
34472 2014-07-13  Jim Meyering  <meyering@fb.com>
34473
34474         [BZ 17150]
34475         regex: don't deref NULL upon heap allocation failure
34476         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
34477         failure in one more place.
34478         To trigger the segfault, configure grep -with-included-regex,
34479         build it, and run these commands:
34480         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
34481
34482 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
34483
34484         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34485
34486 2014-07-11  Richard Henderson  <rth@redhat.com>
34487
34488         * sysdeps/aarch64/libm-test-ulps: Update.
34489
34490 2014-07-10  Florian Weimer  <fweimer@redhat.com>
34491
34492         [BZ #17135]
34493         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
34494         * nptl/allocatestack.c (__nptl_setxid_error): New function.
34495         (__nptl_setxid): Initialize error member.  Call
34496         __nptl_setxid_error.
34497         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
34498         * nptl/descr.h (struct xid_command): Add error member.
34499         * nptl/tst-setuid3.c: New file.
34500         * nptl/Makefile (tests): Add it.
34501
34502 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34503
34504         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
34505         New define.
34506         (__lll_trylock): Use __lll_base_trylock.
34507         (__lll_cond_trylock): Likewise.
34508
34509 2014-07-10  Roland McGrath  <roland@hack.frob.com>
34510
34511         * nptl/pthread_create.c (start_thread): Use atomic_or and
34512         lll_futex_wake directly rather than lll_robust_dead.
34513         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34514         (lll_robust_dead): Macro removed.
34515         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
34516         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34517         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34518         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34519         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34520         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34521         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34522         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34523         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34524         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34525         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34526         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34527         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34528         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34529         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34530
34531         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
34532         Use atomic_compare_and_exchange_val_acq directly rather than
34533         lll_robust_trylock.
34534         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34535         (__lll_robust_trylock, lll_robust_trylock): Removed.
34536         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34537         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34538         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34539         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34540         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34541         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34542         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34543         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34544         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34545         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34546         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34547         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34548         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34549         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34550
34551 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34552
34553         * manual/locale.texi (Locale Names): New section documenting
34554         locale name syntax.  Adjust menu and node chaining accordingly.
34555         (Choosing Locale): Reference Locale Names, Locale Categories.
34556         Mention setting LC_ALL=C.  Reflect that name syntax is now
34557         documented.
34558         (Locale Categories): New section title.  Reference Locale Names.
34559         LC_ALL is an environment variable, but not a category.
34560         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34561         description, now in Locale Name.  Reference that section.  Locale
34562         name syntax is now documented.
34563
34564 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34565
34566         [BZ #17137]
34567         * locale/findlocale.c (name_present, valid_locale_name): New
34568         functions.
34569         (_nl_find_locale): Use the loc_name variable to store name
34570         candidates.  Call name_present and valid_locale_name to check and
34571         validate locale names.  Return an error if the locale is invalid.
34572
34573 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34574
34575         * locale/setlocale.c (setlocale): Use strdup for allocating
34576         composite name copy.
34577
34578 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34579
34580         Sync up with gnulib.
34581         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34582         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34583         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34584         and _GL_ARG_NONNULL.
34585         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34586         [!_LIBC]: Include code for Windows and Cygwin.
34587         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34588         Include prototype for int strerror_r.
34589         [!_LIBC] (is_open): New function.
34590         (flush_stdout): New function.
34591         (print_errno_message): Use it.
34592         (error): Likewise.
34593         (error_at_line): Likewise.
34594         (error_tail) Add function attribute macros.  Use
34595         __builtin_expect.
34596
34597         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34598
34599         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34600
34601         * io/ftw.c: Include sys/param.h unconditionally.
34602
34603         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34604
34605         [BZ #17125]
34606         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34607         libc_freeres_ptr.
34608         (freecache): New function to free CACHE on exit.
34609
34610         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34611         initialization.
34612
34613 2014-07-09  David S. Miller  <davem@davemloft.net>
34614
34615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34616
34617         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34618         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34619         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34620         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34621         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34622         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34623         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34624         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34625         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34626         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34627         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34628         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34629         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34630
34631 2014-07-09  Andreas Schwab  <schwab@suse.de>
34632
34633         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34634         output.
34635         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34636         (do_test): Likewise.
34637
34638         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34639
34640 2014-07-09  Will Newton  <will.newton@linaro.org>
34641
34642         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34643         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34644         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34645         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34646         * sysdeps/hppa/start.S (_start): Likewise.
34647
34648 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34649
34650         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34651
34652         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34653         defined.
34654
34655 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34656
34657         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34658         after checking that it is non-NULL.
34659
34660         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34661
34662 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34663
34664         * sysdeps/powerpc/memmove.c: Remove file.
34665         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34666         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34667         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34668         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34669         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34670         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34671         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34672         string memmove instead of removed powerpc one.
34673
34674         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34675         [weak_alias]: Fix compiler warning due trailing data.
34676         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34677         [weak_alias]: Likewise.
34678         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34679         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34680
34681         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34682         (__libc_ifunc_impl_list): Add memmove functions.
34683
34684 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34685
34686         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34687         Remove code.
34688         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34689         Likewise.
34690         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34691         Likewise.
34692         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34693         Likewise.
34694         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34695         Likewise.
34696         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34697         Likewise.
34698         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34699         Likewise.
34700         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34701         Likewise.
34702         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34703         Likewise.
34704         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34705         Likewise.
34706         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34707         Likewise.
34708         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34709         Likewise.
34710         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34711         Likewise.
34712         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34713         Likewise.
34714         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34715         Likewise.
34716         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34717         Likewise.
34718         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34719         Likewise.
34720
34721 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34722
34723         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34724         to avoid alignment traps in non-cacheable memory.
34725         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34726
34727         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34728         multiarch objects.
34729         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34730         file: multiarch power7 memmove.
34731         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34732         multiarch default memmove.
34733         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34734         multiarch memove for powerpc32/power4.
34735
34736         * string/bcopy.c: Use full path to include memmove.c.
34737         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34738         multiarch objects.
34739         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34740         bcopy for powerpc64.
34741         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34742         bcopy for powerpc64.
34743         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34744         and memmove implementations.
34745         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34746         optimized multiarch memmove for POWER7/powerpc64.
34747         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34748         default multiarch memmove for powerpc64.
34749         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34750         multiarch for powerpc64.
34751         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34752         for POWER7/powerpc64.
34753         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34754         memmove for POWER7/powerpc64.
34755
34756         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34757         glibc default one.
34758
34759         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34760         __ELF_NATIVE_CLASS equal to 64.
34761
34762 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34763
34764         * sysdeps/nptl/lowlevellock.h: File removed.
34765
34766         * NEWS: NPTL is no longer an add-on!
34767         * nptl/internaltypes.h: Moved ...
34768         * sysdeps/nptl/internaltypes.h: ... here.
34769         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34770         * sysdeps/nptl/fork.c: Likewise.
34771         * sysdeps/nptl/gai_misc.h: Likewise.
34772         * sysdeps/nptl/librt-cancellation.c: Likewise.
34773         * sysdeps/nptl/jmp-unwind.c: Likewise.
34774         * sysdeps/nptl/setxid.h: Likewise.
34775         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34776         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34777         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34778         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34779         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34780         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34781         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34782         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34783         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34784         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34785         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34786         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34787         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34788         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34789         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34790         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34791         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34792         * nptl/Makeconfig: Moved ...
34793         * sysdeps/nptl/Makeconfig: ... here.
34794         * nptl/configure: File removed.
34795         * nptl/ANNOUNCE: File removed.
34796         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34797         * sysdeps/unix/sysv/linux/configure: Regenerated.
34798
34799         * nptl/Makefile (routines): Add libc_pthread_init,
34800         libc_multiple_threads, register-atfork and unregister-atfork.
34801         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34802         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34803         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34804         pthread-pi-defines.sym, structsem.sym.
34805         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34806         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34807         [$(subdir) = nptl] (tests): Add tst-setgetname.
34808         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34809         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34810         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34811         [!LIBC_SIGACTION]: Remove aliases.
34812         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34813         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34814         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34815         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34816         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34817         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34818         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34819         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34820         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34821         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34822         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34823         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34824         __libc_allocate_rtsig_private.
34825         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34826         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34827         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34828         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34829         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34830         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34831         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34832         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34833         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34834         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34835         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34836         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34837         * nptl/internaltypes.h: ... here.
34838         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34839         * sysdeps/nptl/jmp-unwind.c: ... here.
34840         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34841         * nptl/libc-lowlevellock.c: ... here.
34842         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34843         * nptl/libc_multiple_threads.c: ... here.
34844         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34845         * nptl/libc_pthread_init.c: ... here.
34846         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34847         * nptl/lowlevelbarrier.sym: ... here.
34848         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34849         * nptl/lowlevelcond.sym: ... here.
34850         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34851         * nptl/lowlevellock.c: ... here.
34852         * nptl/lowlevellock.h: Moved ...
34853         * sysdeps/nptl/lowlevellock.h: ... here.
34854         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34855         * nptl/lowlevelrobustlock.c: ... here.
34856         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34857         * nptl/lowlevelrobustlock.sym: ... here.
34858         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34859         * nptl/lowlevelrwlock.sym: ... here.
34860         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34861         * nptl/pt-fork.c: ... here.
34862         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34863         * nptl/pthread-pi-defines.sym: ... here.
34864         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34865         * nptl/pthread_attr_getaffinity.c: ... here.
34866         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34867         * nptl/pthread_attr_setaffinity.c: ... here.
34868         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34869         * nptl/pthread_mutex_cond_lock.c: ... here.
34870         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34871         Update #include.
34872         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34873         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34874         * nptl/pthread_once.c: ... here, replacing old file.
34875         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34876         * nptl/pthread_yield.c: ... here.
34877         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34878         * nptl/register-atfork.c: ... here.
34879         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34880         * nptl/sem_post.c: ... here.
34881         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34882         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34883         * nptl/sem_timedwait.c: ... here.
34884         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34885         * nptl/sem_trywait.c: ... here.
34886         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34887         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34888         * nptl/sem_wait.c: ... here.
34889         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34890         * nptl/structsem.sym: ... here.
34891         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34892         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34893         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34894         * nptl/unregister-atfork.c: ... here.
34895         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34896         * nptl/unwindbuf.sym: ... here.
34897         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34898         * sysdeps/nptl/fork.c: ... here.
34899         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34900         * sysdeps/nptl/fork.h: ... here.
34901         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34902         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34903         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34904         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34905         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34906         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34907         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34908         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34909         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34910         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34911         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34912         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34913         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34914         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34915         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34916         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34917         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34918         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34919         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34920         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34921         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34922         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34923         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34924         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34925         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34926         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34927         * sysdeps/unix/sysv/linux/raise.c: ... here.
34928         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34929         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34930         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34931         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34932         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34933         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34934         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34935         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34936         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34937         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34938         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34939         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34940         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34941         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34942         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34943
34944 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34945
34946         * sysdeps/generic/memcopy.h: Add comment for
34947         MEMCPY_OK_FOR_FWD_MEMMOVE.
34948
34949 2014-07-04  Will Newton  <will.newton@linaro.org>
34950
34951         * string/memchr.c: Merge from gnulib.
34952         [_LIBC]: Remove conditionals.
34953         (__ptr_t): Remove define.
34954         (LONG_MAX_32_BITS): Likewise.
34955         (LONG_MAX): Likewise.
34956         (MEMCHR): Use ANSI prototype and optimize algorithm.
34957
34958         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34959
34960 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34961
34962         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34963         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34964
34965         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34966         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34967         in a bare environment with no <stdlib.h> installed.
34968         * sysdeps/nptl/configure: Regenerated.
34969
34970         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34971
34972         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34973         AC_EGREP_CPP for kernel header checks, so they only succeed if
34974         including <linux/version.h> actually works right.
34975         * sysdeps/unix/sysv/linux/configure: Regenerated.
34976
34977         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34978         value so it's not diagnosed as unused.
34979
34980         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34981         thing) with "ifeq ($(subdir),rt)".
34982
34983 2014-07-03  Richard Henderson  <rth@redhat.com>
34984
34985         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34986         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34987         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34988
34989         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34990         (math_force_eval): New.
34991
34992         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34993         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34994
34995         * sysdeps/alpha/fpu/s_round.c: Remove file.
34996         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34997
34998         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34999         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
35000         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
35001         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
35002         (_dl_start, print_statistics): Likewise.
35003         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
35004         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
35005
35006         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35007         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35008         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35009         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35010         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35011         (HP_SMALL_TIMING_AVAIL): Define.
35012         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35013         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
35014         (HP_SMALL_TIMING_AVAIL): Define.
35015         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35016         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35017
35018         * sysdeps/aarch64/hp-timing.h: New file.
35019
35020         * sysdeps/generic/hp-timing.h: Remove dead comment.
35021         * sysdeps/generic/hp-timing-common.h: New file.
35022         * sysdeps/alpha/hp-timing.h: Include it.
35023         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
35024         * sysdeps/i386/i686/hp-timing.h: Likewise.
35025         * sysdeps/ia64/hp-timing.h: Likewise.
35026         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
35027         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
35028         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
35029         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
35030         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
35031         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
35032         (hp_timing_t): New.
35033
35034         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
35035         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
35036         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
35037         * elf/rtld.c (_dl_start_final): Likewise.
35038         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
35039         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35040         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35041         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35042         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35043         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35044         (HP_TIMING_DIFF_INIT): Remove.
35045         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35046         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
35047         (HP_TIMING_DIFF_INIT): Remove.
35048         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35049         * sysdeps/i386/i686/hp-timing.c: Remove file.
35050         * sysdeps/x86_64/hp-timing.c: Remove file.
35051         * sysdeps/ia64/hp-timing.c: Remove file.
35052         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
35053         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
35054         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
35055         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
35056
35057         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
35058         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
35059         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
35060         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35061         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35062         (HP_TIMING_ACCUM): Remove.
35063         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35064         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
35065         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35066
35067         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
35068         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
35069         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
35070         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
35071         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
35072         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
35073         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
35074         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
35075
35076         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
35077
35078 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
35079
35080         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
35081
35082 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35083
35084         Sync up with gettext.
35085         * intl/loadmsgcat.c: Define O_BINARY if not defined.
35086         [_MSC_VER]: Include malloc.h
35087         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
35088         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
35089         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
35090         TEMP_FAILURE_RETRY.  Cast return of alloca.
35091         [!_LIBC] Call gl_rwlock_init.
35092         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
35093
35094 2014-07-02  Roland McGrath  <roland@hack.frob.com>
35095
35096         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
35097         before checking its value.
35098
35099 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35100
35101         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
35102
35103         * debug/memcpy_chk.c: Don't include pagecopy.h.
35104         * debug/mempcpy_chk.c: Likewise.
35105         * string/memcpy.c: Likewise.
35106         * string/memmove.c: Likewise.
35107         * sysdeps/powerpc/memmove.c: Likewise.
35108         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
35109         definition of PAGE_COPY_FWD_MAYBE here...
35110         * sysdeps/generic/pagecopy.h: ... from here.
35111         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
35112
35113 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35114             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35115
35116         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
35117         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
35118         optimizations.
35119         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35120         (__libc_ifunc_impl_list): Likewise.
35121         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
35122         multiarch strcat for PPC64.
35123         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
35124         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
35125
35126 2014-07-02  Roland McGrath  <roland@hack.frob.com>
35127
35128         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
35129
35130 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35131
35132         * intl/loadmsgcat.c: Remove declaration of
35133         get_sysdep_segment_value.
35134         (get_sysdep_segment_value): Use ISO C style.
35135         (_nl_load_domain): Use ISO C style.  Get rid of redundant
35136         semicolon.  Fix typo and formatting in comment.
35137         (_nl_unload_domain): Use ISO C style.
35138
35139         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
35140
35141 2014-07-02  Will Newton  <will.newton@linaro.org>
35142
35143         * malloc/obstack.c: Merge from gnulib master.
35144         [HAVE_CONFIG_H]: Remove conditional code.
35145         [!_LIBC]: Include config.h.
35146         [!ELIDE_CODE]: Don't include inttypes.h, include
35147         stdint.h unconditionally.
35148         (print_and_abort): Mark as _Noreturn.
35149         (_obstack_allocated_p): Mark as __attribute_pure__.
35150         (obstack_free): Rename to __obstack_free.
35151         [!__attribute__]: Remove conditional code.
35152         * malloc/obstack.h: Merge from gnulib master.
35153         [__cplusplus]: Move conditional down.
35154         [!__attribute_pure__]: Define __attribute_pure__ here
35155         if it is not already defined.
35156         (_obstack_memory_used): Mark as __attribute_pure__.
35157         [!__obstack_free]: Define as obstack_free.
35158         [__GNUC__]: Remove check for ancient NeXT gcc.
35159
35160 2014-07-02  Will Newton  <will.newton@linaro.org>
35161             Paul Eggert  <eggert@cs.ucla.edu>
35162
35163         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
35164
35165 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35166
35167         * resolv/gethnamaddr.c: Add comment warning that the file is
35168         not maintained.
35169
35170 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
35171
35172         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
35173         entries.
35174
35175         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
35176         entry for aio_cancel and aio_cancel64.
35177         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
35178         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
35179         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
35180         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
35181         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
35182         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
35183         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
35184         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
35185         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
35186         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
35187         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
35188         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
35189         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
35190
35191 2014-07-01  Roland McGrath  <roland@hack.frob.com>
35192
35193         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
35194         * nptl/pthread_mutex_lock.c: Likewise.
35195         * nptl/pthread_mutex_timedlock.c: Likewise.
35196         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
35197
35198 2014-07-01  Richard henderson  <rth@redhat.com>
35199
35200         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
35201         (__isnan, __isnanl): Remove.
35202         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
35203
35204         * sysdeps/alpha/fpu/libm-test-ulps: Update.
35205
35206 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
35207
35208         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
35209
35210 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
35211
35212         * resolv/nss_dns/dns-host.c (getanswer_r)
35213         [MULTI_PTRS_ARE_ALIASES]: Remove code.
35214
35215 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
35216
35217         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35218         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
35219         undefine.
35220         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
35221         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
35222
35223 2014-07-01  Roland McGrath <roland@hack.frob.com>
35224
35225         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
35226         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
35227
35228         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
35229         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
35230
35231         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
35232         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
35233         ... here.
35234         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
35235         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
35236
35237         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
35238         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
35239         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
35240         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
35241
35242         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
35243         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
35244         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
35245         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
35246         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
35247         Moved ...
35248         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
35249         ... here.
35250         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
35251         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
35252         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
35253         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
35254         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
35255         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
35256         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
35257         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
35258         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
35259         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
35260         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
35261         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
35262         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
35263         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
35264         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
35265         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
35266         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
35267         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
35268         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
35269         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
35270         ... here.
35271         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
35272         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
35273         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
35274         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
35275         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
35276         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
35277         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
35278         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
35279
35280 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
35281
35282         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
35283         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
35284         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
35285         Add sysdep.
35286
35287 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35288
35289         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35290
35291 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35292
35293         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
35294         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35295
35296         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
35297
35298         * sysdeps/arm/libm-test-ulps: Regenerated.
35299
35300 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35301             Roland McGrath <roland@hack.frob.com>
35302
35303         * test-skeleton.c (signal_handler): Kill the whole process group
35304         before killing the child individually.
35305         (main): Report any failure on `setpgid'.
35306
35307 2014-06-30  Roland McGrath  <roland@hack.frob.com>
35308
35309         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
35310         from _TLS_H to _ARM_NPTL_TLS_H.
35311         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
35312         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
35313
35314 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35315
35316         [BZ #16539]
35317         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
35318         (__expm1l): Return argument unchanged when small but not
35319         subnormal.
35320
35321         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
35322         include macro name.
35323         (_FP_UNPACK_RAW_1_P): Likewise.
35324         (_FP_PACK_RAW_1): Likewise.
35325         (_FP_PACK_RAW_1_P): Likewise.
35326         (_FP_MUL_MEAT_1_wide): Likewise.
35327         (_FP_MUL_MEAT_DW_1_hard): Likewise.
35328         (_FP_MUL_MEAT_1_hard): Likewise.
35329         (_FP_DIV_MEAT_1_imm): Likewise.
35330         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
35331         (_FP_DIV_MEAT_1_udiv): Likewise.
35332         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
35333         (_FP_UNPACK_RAW_2): Likewise.
35334         (_FP_UNPACK_RAW_2_P): Likewise.
35335         (_FP_PACK_RAW_2): Likewise.
35336         (_FP_PACK_RAW_2_P): Likewise.
35337         (_FP_MUL_MEAT_DW_2_wide): Likewise.
35338         (_FP_MUL_MEAT_2_wide): Likewise.
35339         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
35340         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
35341         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
35342         (_FP_MUL_MEAT_2_gmp): Likewise.
35343         (_FP_DIV_MEAT_2_udiv): Likewise.
35344         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
35345         (_FP_FRAC_SRL_4): Likewise.
35346         (_FP_FRAC_SRST_4): Likewise.
35347         (_FP_FRAC_SRS_4): Likewise.
35348         (_FP_UNPACK_RAW_4): Likewise.
35349         (_FP_UNPACK_RAW_4_P): Likewise.
35350         (_FP_PACK_RAW_4): Likewise.
35351         (_FP_PACK_RAW_4_P): Likewise.
35352         (_FP_MUL_MEAT_DW_4_wide): Likewise.
35353         (_FP_MUL_MEAT_4_wide): Likewise.
35354         (_FP_MUL_MEAT_4_gmp): Likewise.
35355         (umul_ppppmnnn): Likewise.
35356         (_FP_DIV_MEAT_4_udiv): Likewise.
35357         (__FP_FRAC_ADD_4): Likewise.
35358         (__FP_FRAC_SUB_3): Likewise.
35359         (__FP_FRAC_SUB_4): Likewise.
35360         (__FP_FRAC_DEC_3): Likewise.
35361         (__FP_FRAC_DEC_4): Likewise.
35362         (__FP_FRAC_ADDI_4): Likewise.
35363         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
35364         (_FP_FRAC_SRL_8): Likewise.
35365         (_FP_FRAC_SRS_8): Likewise.
35366
35367         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
35368         include macro name.
35369         (FP_UNPACK_RAW_EP): Likewise.
35370         (FP_PACK_RAW_E): Likewise.
35371         (FP_PACK_RAW_EP): Likewise.
35372         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
35373         (_FP_ISSIGNAN): Likewise.
35374         (_FP_ADD_INTERNAL): Likewise.
35375         (_FP_FMA): Likewise.
35376         (_FP_CMP): Likewise.
35377         (_FP_SQRT): Likewise.
35378         (_FP_TO_INT): Likewise.
35379         (_FP_FROM_INT): Likewise.
35380         (FP_EXTEND): Likewise.
35381         (_FP_DIV_MEAT_N_loop): Likewise.
35382
35383 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35384
35385         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
35386         throughout.
35387
35388 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
35389
35390         [BZ #17097]
35391         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
35392         result with correct sign in case of exponents that produce
35393         overflow except for X very close to 1.
35394
35395 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
35396
35397         mktime: merge #if/#ifdef usage from glibc
35398         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
35399         as that works with both Glibc's and Gnulib's style.
35400         See thread starting at Siddhesh Poyarekar's bug report at:
35401         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
35402
35403 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35404
35405         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
35406         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
35407         * sysdeps/tile/tilegx/memmove.c: Remove file.
35408
35409 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35410
35411         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
35412         abi-name definition.
35413         * scripts/soversions.awk: Do not handle or generate ABI lines.
35414         * shlib-versions: Remove ABI entries.
35415         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
35416         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
35417
35418 2014-06-27  Roland McGrath  <roland@hack.frob.com>
35419
35420         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
35421         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
35422         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
35423         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
35424         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
35425         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
35426         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
35427         Moved ...
35428         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
35429         ... here.
35430         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
35431         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
35432         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
35433         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
35434         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
35435         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
35436         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
35437         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
35438         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
35439         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
35440         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
35441         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
35442         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
35443         Moved ...
35444         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
35445         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
35446         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
35447         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
35448         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
35449         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
35450         Moved ...
35451         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
35452         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
35453         Moved ...
35454         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
35455         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
35456         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
35457         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
35458         Moved ...
35459         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
35460         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
35461         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
35462         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
35463         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
35464         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
35465         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
35466         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
35467         Moved ...
35468         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
35469         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
35470         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
35471         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
35472         Moved ...
35473         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
35474         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
35475         Moved ...
35476         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
35477         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
35478         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
35479         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
35480         Moved ...
35481         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
35482         ... here.
35483         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
35484         Identical file removed.
35485         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
35486         Moved ...
35487         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
35488         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
35489         Identical file removed.
35490         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
35491         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
35492         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
35493         Moved ...
35494         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
35495         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
35496         Identical file removed.
35497         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
35498         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
35499         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
35500         Identical file removed.
35501         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
35502         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
35503         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
35504         Identical file removed.
35505         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
35506         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
35507         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
35508         Identical file removed.
35509         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
35510         Moved ...
35511         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
35512         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
35513         Identical file removed.
35514         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
35515         Moved ...
35516         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
35517         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
35518         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
35519         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
35520         Identical file removed.
35521         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
35522         Moved ...
35523         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
35524         ... here.
35525         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
35526         Identical file removed.
35527         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
35528         Moved ...
35529         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
35530         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
35531         Identical file removed.
35532         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
35533         Moved ...
35534         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
35535         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
35536         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
35537         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
35538         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
35539         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
35540         Moved ...
35541         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
35542         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
35543         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
35544
35545         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
35546         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
35547         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
35548         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
35549         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
35550
35551 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35552
35553         [BZ #17092]
35554         * nscd/nscd.c (monitor_child): Return exit status of child
35555         instead of return value from wait syscall.
35556
35557 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35558
35559         * configure.ac (libc_commonpagesize): Remove variable.
35560         (libc_relro_required): Likewise.
35561         (libc_cv_z_relro): Remove configure test.
35562         * configure: Regenerated.
35563         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35564         variable.
35565         (libc_relro_required): Likewise.
35566         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35567         (libc_relro_required): Likewise.
35568         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35569         (libc_relro_required): Likewise.
35570         * sysdeps/arm/preconfigure: Regenerated.
35571         * sysdeps/ia64/preconfigure: Remove file.
35572         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35573         variable.
35574         (libc_relro_required): Likewise.
35575
35576         [BZ #16561]
35577         [BZ #16562]
35578         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35579         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35580         recompute overflowing results in original rounding mode.
35581         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35582         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35583         recompute overflowing results in original rounding mode.
35584         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35585         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35586         recompute overflowing results in original rounding mode.
35587         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35588         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35589         recompute overflowing results in original rounding mode.
35590         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35591         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35592         recompute overflowing results in original rounding mode.
35593         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35594         (libc_feholdsetround_ctx): New macro.
35595         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35596         * sysdeps/i386/fpu/libm-test-ulps: Update.
35597         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35598
35599 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35600
35601         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35602         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35603         corresponding .cpsetup call.
35604
35605 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35606
35607         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35608         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35609         * sysdeps/arm/Makefile [$(subdir) = csu]
35610         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35611         (static-only-routines): Add aeabi_read_tp here.
35612         (shared-only-routines): Add libc-aeabi_read_tp here.
35613         (CFLAGS-libc-start.c): Add -fexceptions here.
35614         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35615         (sysdep_routines, static-only-routines, shared-only-routines):
35616         Don't add to these here.
35617         (CFLAGS-libc-start.c): Likewise.
35618
35619         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35620         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35621         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35622         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35623         * sysdeps/arm/Makefile [$(subdir) = rt]
35624         (librt-sysdep_routines, librt-shared-only-routines):
35625         Append rt-aeabi_unwind_cpp_pr1 here.
35626         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35627         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35628         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35629         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35630         Append nptl-aeabi_unwind_cpp_pr1 here.
35631         (tests): Filter out tst-cleanupx4 here.
35632         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35633         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35634         Don't do those here.
35635
35636 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35637
35638         * scripts/list-sources.sh: Do not handle ports specially.
35639
35640 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35641
35642         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35643         * sysdeps/arm/feupdateenv.c: Likewise.
35644
35645         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35646
35647 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35648
35649         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35650         trailing whitespace removed.
35651         * scripts/config.guess: Update to version 2014-03-23.
35652         * scripts/config.sub: Update to version 2014-05-01
35653         * scripts/install-sh: Update to version 2013-12-25.23.
35654         * scripts/move-if-change: Update from gnulib.
35655
35656 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35657
35658         * debug/memmove_chk.c: Remove pagecopy.h include.
35659
35660 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35661
35662         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35663         identical to gnulib mktime.
35664
35665 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35666
35667         * configure.ac: Do not test for machine being rs6000.  Do not test
35668         for powerpc*-*soft.
35669         * configure: Regenerated.
35670
35671         [BZ #11505]
35672         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35673         test.
35674         * configure: Regenerated.
35675         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35676         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35677         Remove configure test.
35678         * sysdeps/arm/configure: Regenerated.
35679         * sysdeps/nptl/configure.ac: Do not check
35680         libc_cv_asm_cfi_directives.
35681         * sysdeps/nptl/configure: Regenerated.
35682         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35683         * sysdeps/x86_64/nptl/configure: Remove generated file.
35684         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35685         unconditional.
35686         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35687
35688 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35689
35690         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35691         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35692         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35693         it is defined.
35694
35695         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35696         instead of whether it is defined.
35697         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35698         * sysdeps/hppa/dl-machine.h: Likewise.
35699         * sysdeps/ia64/dl-machine.h: Likewise.
35700         * sysdeps/m68k/dl-machine.h: Likewise.
35701         * sysdeps/microblaze/dl-machine.h: Likewise.
35702         * sysdeps/mips/dl-machine.: Likewise.
35703         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35704         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35705         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35706         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35707         * sysdeps/sh/dl-machine.h: Likewise.
35708         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35709         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35710         * sysdeps/tile/dl-machine.h: Likewise.
35711         * sysdeps/x86_64/dl-machine.h: Likewise.
35712
35713         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35714         code.
35715         (verify_persistent_db): Likewise.
35716
35717 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35718
35719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35720         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35722         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35723         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35724         Moved ...
35725         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35726         ... here.
35727         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35728         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35729         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35730         Identical file removed.
35731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35732         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35734         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35736         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35738         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35740         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35742         Moved ...
35743         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35744         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35745         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35746         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35747         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35748         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35749         Moved ...
35750         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35752         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35753         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35754         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35755         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35756         Identical file removed.
35757         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35758         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35759         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35760         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35761         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35762         Moved ...
35763         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35764         ... here.
35765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35766         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35768         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35770         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35771         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35772         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35773         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35774         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35776         Moved ...
35777         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35778         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35779         Moved ...
35780         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35782         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35784         Moved ...
35785         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35786         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35787         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35788
35789         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35790         folded into ...
35791         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35792         * sysdeps/unix/sysv/linux/s390/Versions
35793         (libpthread: GLIBC_2.19): New version set.
35794         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35795         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35796         (librt: GLIBC_2.3.3): New version set.
35797         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35798         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35799         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35800         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35801         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35802         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35803         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35804         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35805         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35806         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35807         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35808         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35809         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35810         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35811         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35812         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35813         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35814         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35815         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35816         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35817         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35818         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35819         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35820         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35821         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35822         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35823         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35824         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35825         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35826         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35827         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35828         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35829         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35830         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35831         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35832         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35833         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35834         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35835         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35836         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35837         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35838         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35839         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35840         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35841         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35842
35843         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35844         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35845         (__libc_vfork): Define the function under this name.
35846         [!NOT_IN_libc] (__vfork): Make this an alias.
35847         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35848         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35849         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35850         (__libc_vfork): Define the function under this name.
35851         [!NOT_IN_libc] (__vfork): Make this an alias.
35852         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35853         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35854         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35855         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35856         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35857         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35858
35859         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35860         code that was previously under [RESET_PID].
35861         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35862         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35863         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35864
35865         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35866         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35867         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35868         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35869         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35870         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35871         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35872         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35873         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35874         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35875         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35876         Moved ...
35877         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35878         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35879         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35880         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35881         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35882         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35883         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35884         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35885         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35886         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35887         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35888         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35889         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35890         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35891         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35892         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35893         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35894         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35895         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35896         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35897         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35898         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35899         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35900         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35901         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35902         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35903         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35904         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35905         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35906
35907 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35908
35909         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35910         that was previously under [RESET_PID].
35911         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35912
35913 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35914
35915         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35916         not undefine and redefine.
35917         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35918         [O_CLOEXEC]: Make code unconditional.
35919         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35920         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35921         <kernel-features.h>.
35922         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35923         conditional variable definition.
35924         (shm_open) [O_CLOEXEC]: Make code unconditional.
35925         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35926         code.
35927
35928         * configure.ac (USE_REGPARMS): Don't define here.
35929         * configure: Regenerated.
35930         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35931         * sysdeps/i386/configure: Regenerated.
35932
35933         * nptl/createthread.c: Don't include kernel-features.h.
35934         * nptl/pthread_cancel.c: Likewise.
35935         * nptl/pthread_condattr_setclock.c: Likewise.
35936         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35937         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35938         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35939         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35940         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35941         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35942         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35943         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35944         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35945         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35946         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35947         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35948         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35949         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35950         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35951         * nscd/gai.c: Likewise.
35952         * nss/nss_db/db-open.c: Likewise.
35953         * sysdeps/generic/ldsodefs.h: Likewise.
35954         * sysdeps/sh/nptl/tls.h: Likewise.
35955         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35956         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35957         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35958         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35959         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35960         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35961         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35962         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35963         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35964         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35965         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35966         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35967         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35968         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35969         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35970         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35971         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35972         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35973         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35974         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35975         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35976         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35977         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35978         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35979         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35980         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35981         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35982         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35983         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35984         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35985         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35986         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35987         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35988         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35989         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35990         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35991         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35992         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35993         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35994         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35995         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35996         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35997         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35998         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35999         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
36000         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
36001         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
36002         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
36003         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
36004         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
36005         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
36006         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
36007         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
36008         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
36009         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
36010         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
36011         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
36012         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
36013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
36014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
36015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
36016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
36017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
36018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
36019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
36020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
36021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
36022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
36023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
36024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
36025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
36026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
36027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
36028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
36029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
36030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
36031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
36032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
36033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
36034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
36035         * sysdeps/unix/sysv/linux/pread.c: Likewise.
36036         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
36037         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
36038         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
36039         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
36040         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
36041         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
36042         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
36043         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
36044         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
36045         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
36046         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
36047         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
36048         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
36049         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
36050         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
36051         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
36052         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
36053         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
36054         * sysdeps/unix/sysv/linux/system.c: Likewise.
36055         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
36056         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
36057         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36058         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36059         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
36060         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
36061         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
36062
36063         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
36064         * configure: Regenerated.
36065         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
36066
36067         * configure.ac (base_machine): Do not set specially for particular
36068         machines here.
36069         * configure: Regenerated.
36070         * sysdeps/powerpc/preconfigure: Move machine and base_machine
36071         settings from configure.ac.
36072         * sysdeps/i386/preconfigure: New file.
36073         * sysdeps/s390/preconfigure: Likewise.
36074         * sysdeps/sh/preconfigure: Likewise.
36075         * sysdeps/sparc/preconfigure: Likewise.
36076
36077 2014-06-25  Roland McGrath  <roland@hack.frob.com>
36078
36079         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
36080         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
36081         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
36082         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
36083         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
36084         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
36085         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
36086         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
36087         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
36088         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
36089         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
36090         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
36091         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
36092         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
36093         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
36094         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
36095         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
36096         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
36097         * sysdeps/sparc/sparc64/Makefile: ... appended here.
36098
36099         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
36100         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
36101         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
36102         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
36103         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
36104         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
36105         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
36106         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
36107         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
36108         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
36109         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
36110         * sysdeps/sparc/sparc32/sem_post.c: ... here.
36111         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
36112         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
36113         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
36114         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
36115         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
36116         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
36117         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
36118         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
36119         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
36120         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
36121         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
36122         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
36123         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
36124         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
36125         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
36126         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
36127         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
36128         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
36129         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
36130         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
36131         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
36132         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
36133         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
36134         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
36135         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
36136         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
36137
36138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
36139         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
36140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
36141         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
36142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
36143         Moved ...
36144         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
36145         ... here.
36146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
36147         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
36148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
36149         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
36150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
36151         Moved ...
36152         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
36153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
36154         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
36155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
36156         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
36157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
36158         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
36159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
36160         Moved ...
36161         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
36162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
36163         Moved ...
36164         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
36165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
36166         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
36167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
36168         Moved ...
36169         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
36170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
36171         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
36172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
36173         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
36174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
36175         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
36176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
36177         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
36178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
36179         Moved ...
36180         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
36181         ... here.
36182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
36183         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
36184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
36185         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
36186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
36187         Moved ...
36188         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
36189         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
36190         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
36191         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
36192         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
36193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
36194         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
36195         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
36196         Moved ...
36197         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
36198         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
36199         Moved ...
36200         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
36201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
36202         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
36203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
36204         Moved ...
36205         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
36206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
36207         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
36208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
36209         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
36210
36211 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36212
36213         * timezone/checktab.awk: Update from tzcode 2014e.
36214         * timezone/private.h: Likewise.
36215         * timezone/tzfile.h: Likewise.
36216         * timezone/zdump.c: Likewise.
36217         * timezone/zic.c: Likewise.
36218
36219         * sysdeps/unix/sysv/linux/kernel-features.h
36220         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
36221         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
36222         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
36223         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
36224         Remove conditional code.
36225
36226 2014-06-25  Will Newton  <will.newton@linaro.org>
36227
36228         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
36229         (_dl_arm_cap_flags): Add HWCAP2 values.
36230         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
36231         (_DL_HWCAP_COUNT): Increase to 37.
36232         (_DL_HWCAP_LAST): New define.
36233         (_DL_HWCAP2_LAST): New define.
36234         (_dl_procinfo): Add support for printing
36235         AT_HWCAP2 entries.
36236         (_dl_string_hwcap): Use _dl_hwcap_string.
36237
36238 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36239
36240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36241
36242 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36243
36244         * README: Do not mention ports directory.
36245
36246         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
36247         Remove macro.
36248         * sysdeps/unix/sysv/linux/futimes.c: Do not include
36249         <kernel-features.h>.
36250         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
36251         conditional variable definition.
36252         (__futimes): Update comment.
36253         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
36254         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
36255
36256         [BZ #16560]
36257         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
36258         arguments close to 0.
36259         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
36260         Likewise.
36261         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
36262         Likewise.
36263         * math/auto-libm-test-in: Add more tests of exp10.
36264         * math/auto-libm-test-out: Regenerated.
36265         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36266
36267         * sysdeps/unix/sysv/linux/kernel-features.h
36268         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
36269         * sysdeps/unix/sysv/linux/readv.c: Do not include
36270         <kernel-features.h>.
36271         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36272         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36273         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36274         unconditional.
36275         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36276         conditional code.
36277         * sysdeps/unix/sysv/linux/writev.c: Do not include
36278         <kernel-features.h>.
36279         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36280         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36281         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36282         unconditional.
36283         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36284         conditional code.
36285
36286 2014-06-25  Will Newton  <will.newton@linaro.org>
36287
36288         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36289         comment changes throughout the file.  Remove checks
36290         for HAVE_*_H definitions that are not required.
36291         (__gen_tempname): Call abort if an unknown kind value is
36292         passed.
36293
36294 2014-06-25  Andreas Schwab  <schwab@suse.de>
36295
36296         [BZ #17086]
36297         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
36298         scalbln, scalblnf, scalblnl in libc.
36299
36300 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36301
36302         [BZ #17086]
36303         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
36304         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36305         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36306
36307 2014-06-24  Roland McGrath  <roland@hack.frob.com>
36308
36309         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
36310         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
36311         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
36312         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
36313         Update #include.
36314         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
36315         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
36316         Update #include.
36317         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
36318         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
36319         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
36320         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
36321         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
36322         * sysdeps/x86/bits/pthreadtypes.h: ... here.
36323         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
36324         * sysdeps/x86/bits/semaphore.h: ... here.
36325         * sysdeps/x86/nptl/elide.h: Moved ...
36326         * sysdeps/x86/elide.h: ... here.
36327         * sysdeps/x86_64/nptl/Implies: File removed.
36328         * sysdeps/i386/nptl/Implies: File removed.
36329
36330 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
36331
36332         [BZ #16539]
36333         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
36334         return the argument for normal arguments with exponent below -64.
36335         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
36336         Likewise.
36337         * math/auto-libm-test-in: Add another test of expm1.
36338         * math/auto-libm-test-out: Regenerated.
36339
36340         [BZ #16287]
36341         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
36342         calling __erfcl for arguments at least 16.
36343         * math/auto-libm-test-in: Add more tests of erf.
36344         * math/auto-libm-test-out: Regenerated.
36345
36346         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
36347         individual architectures.
36348         * sysdeps/unix/sysv/linux/configure: Regenerated.
36349         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
36350         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
36351         * sysdeps/unix/sysv/linux/powerpc/configure.ac
36352         (ldd_rewrite_script): Define variable.
36353         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
36354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
36355         file.
36356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
36357         generated file.
36358         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
36359         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
36360         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
36361         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
36362         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
36363         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
36364         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
36365         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
36366
36367 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36368
36369         [BZ #17084]
36370         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
36371         Rename member __data.d to __data.__elision_data.
36372
36373 2014-06-24  Wilco  <wdijkstr@arm.com>
36374
36375         * NEWS: Add 16918 to fixed bug list.
36376
36377 2014-06-24  Wilco  <wdijkstr@arm.com>
36378
36379         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
36380
36381 2014-06-24  Wilco  <wdijkstr@arm.com>
36382
36383         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
36384         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
36385         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
36386         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
36387         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
36388         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
36389         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
36390         Use _FPU_MASK_RM.
36391
36392 2014-06-24  Wilco  <wdijkstr@arm.com>
36393
36394         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
36395
36396 2014-06-24  Wilco  <wdijkstr@arm.com>
36397
36398         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
36399         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
36400         * sysdeps/arm/fesetround.c (fesetround): Remove space.
36401         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
36402
36403 2014-06-24  Wilco  <wdijkstr@arm.com>
36404
36405         [BZ #16918]
36406         * sysdeps/arm/feupdateenv.c (feupdateenv):
36407         Rewrite to reduce FPSCR accesses and fix return value.
36408
36409 2014-06-24  Wilco  <wdijkstr@arm.com>
36410
36411         * sysdeps/arm/fclrexcpt.c (feclearexcept):
36412         Optimize to avoid unnecessary FPSCR writes.
36413         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
36414         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
36415         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
36416         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
36417
36418 2014-06-24  Wilco  <wdijkstr@arm.com>
36419
36420         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
36421         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
36422         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
36423         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
36424         Call libc_fetestexcept_vfp.
36425         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
36426         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
36427         __SOFTFP__ ifdef so that they can be built for softfp.
36428
36429 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36430
36431         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
36432         argument type signed char.
36433
36434         * Makerules (check-abi): Dump diff of symlist if the test
36435         fails.
36436
36437 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36438
36439         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
36440         using abort.
36441
36442         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
36443         Remove unused variable ST.
36444
36445 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36446
36447         [BZ #16354]
36448         [BZ #17061]
36449         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
36450         small arguments before calling __expm1.
36451         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
36452         small arguments before calling __expm1f.
36453         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
36454         small arguments before calling __expm1l.
36455         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
36456         Likewise.
36457         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36458         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
36459         spurious underflow for some cosh tests.
36460         * math/auto-libm-test-out: Regenerated.
36461         * sysdeps/i386/fpu/libm-test-ulps: Update.
36462
36463         [BZ #17050]
36464         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
36465         (__ieee754_y1): Set errno if return value overflows.
36466         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
36467         (__ieee754_y1f): Set errno if return value overflows.
36468         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
36469         (__ieee754_y1l): Set errno if return value overflows.
36470         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
36471         (__ieee754_y1l): Set errno if return value overflows.
36472         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
36473         * math/auto-libm-test-out: Regenerated.
36474
36475         * math/gen-auto-libm-tests.c: Document use of
36476         ignore-zero-inf-sign.
36477         (input_flag_type): Add value flag_ignore_zero_inf_sign.
36478         (input_flags): Add ignore-zero-inf-sign.
36479         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36480         * math/gen-libm-test.pl (generate_testfile): Handle
36481         ignore-zero-inf-sign.
36482         * math/auto-libm-test-in: Mark some cpow tests with
36483         ignore-zero-inf-sign and some with xfail-rounding.
36484         * math/auto-libm-test-out: Regenerated.
36485         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
36486         * sysdeps/i386/fpu/libm-test-ulps: Update.
36487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36488
36489         [BZ #16315]
36490         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
36491         overflowing or underflowing operations take place with sign of
36492         result.
36493         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36494         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
36495         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
36496         (__ieee754_pow): Recompute overflowing and underflowing results in
36497         original rounding mode.
36498         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
36499         (__powl_helper): Allow negative argument X and scale negated value
36500         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
36501         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
36502         overflowing or underflowing operations take place with sign of
36503         result.
36504         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
36505         Include <math.h>.
36506         * math/auto-libm-test-in: Add more tests of pow.
36507         * math/auto-libm-test-out: Regenerated.
36508         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
36509         (pow_tonearest_test_data): Remove.
36510         (pow_test_tonearest): Likewise.
36511         (pow_towardzero_test_data): Likewise.
36512         (pow_test_towardzero): Likewise.
36513         (pow_downward_test_data): Likewise.
36514         (pow_test_downward): Likewise.
36515         (pow_upward_test_data): Likewise.
36516         (pow_test_upward): Likewise.
36517         (main): Don't call removed functions.
36518         * sysdeps/i386/fpu/libm-test-ulps: Update.
36519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36520
36521 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36522
36523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
36524         Moved ...
36525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
36526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36527         Moved ...
36528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
36529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36530         Moved ...
36531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
36532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36533         Moved ...
36534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
36535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
36536         File removed.
36537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36538         File removed.
36539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
36540         File removed.
36541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
36542         File removed.
36543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
36544         File removed.
36545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
36546         File removed.
36547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
36548         File removed.
36549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36550         File removed.
36551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36552         File removed.
36553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36554         File removed.
36555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36556         File removed.
36557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36558         File removed.
36559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36560         Moved ...
36561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36563         Moved ...
36564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36565         ... here.
36566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36567         Moved ...
36568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36570         Moved ...
36571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36573         Moved ...
36574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36576         Moved ...
36577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36579         Moved ...
36580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36582         Moved ...
36583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36585         Moved ...
36586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36589         ... here.
36590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36591         Moved ...
36592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36594         Moved ...
36595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36596         ... here.
36597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36598         Moved ...
36599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36600         ... here.
36601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36602         Moved ...
36603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36604         ... here.
36605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36606         Moved ...
36607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36609         Moved ...
36610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36614         Moved ...
36615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36616         ... here.
36617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36618         Moved ...
36619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36620         ... here.
36621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36622         Moved ...
36623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36625         Moved ...
36626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36628         Moved ...
36629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36631         Moved ...
36632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36634         Moved ...
36635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36636         ... here.
36637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36638         Moved ...
36639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36641         Moved ...
36642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36644         Moved ...
36645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36647         Moved ...
36648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36652         Moved ...
36653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36655         Moved ...
36656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36658         Moved ...
36659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36660         ... here.
36661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36662         Moved ...
36663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36664         ... here.
36665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36666         Moved ...
36667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36668         ... here.
36669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36670         Moved ...
36671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36673         Moved ...
36674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36676         Moved ...
36677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36679         Moved ...
36680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36681         ... here.
36682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36683         Moved ...
36684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36685         ... here.
36686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36687         Moved ...
36688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36689         ... here.
36690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36691         Moved ...
36692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36694         Moved ...
36695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36696
36697 2014-06-23  Will Newton  <will.newton@linaro.org>
36698             Wilco  <wdijkstr@arm.com>
36699
36700         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36701         implementation.  Include get-rounding-mode.h.
36702         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36703         [!libc_feholdsetround_noex_ctx]: Define
36704         libc_feholdsetround_noex_ctx.
36705         [!libc_feholdsetround_noexf_ctx]: Define
36706         libc_feholdsetround_noexf_ctx.
36707         [!libc_feholdsetround_noexl_ctx]: Define
36708         libc_feholdsetround_noexl_ctx.
36709         (libc_feholdsetround_ctx): New function.
36710         (libc_feresetround_ctx): New function.
36711         (libc_feholdsetround_noex_ctx): New function.
36712         (libc_feresetround_noex_ctx): New function.
36713
36714 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36715
36716         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36717         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36718         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36719         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36720         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36721         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36722
36723         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36724         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36725         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36726         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36727         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36728         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36729         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36730         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36731         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36732         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36733         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36734         Moved ...
36735         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36736         ... here.
36737         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36738         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36739         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36740         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36741         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36742         Moved ...
36743         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36744         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36745         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36746         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36747         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36748         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36749         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36750         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36751         Moved ...
36752         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36753         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36754         Moved ...
36755         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36756         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36757         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36758         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36759         Moved ...
36760         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36761         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36762         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36763         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36764         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36765         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36766         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36767         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36768         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36769         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36770         Moved ...
36771         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36772         ... here.
36773         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36774         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36775         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36776         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36777         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36778         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36779         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36780         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36781         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36782         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36783         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36784         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36785         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36786         Moved ...
36787         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36788         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36789         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36790         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36791         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36792         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36793         Moved ...
36794         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36795         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36796         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36797         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36798         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36799
36800         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36801         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36802         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36803         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36804         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36805         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36806         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36807         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36808         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36809         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36810         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36811         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36812         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36813         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36814         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36815         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36816         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36817         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36818         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36819         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36820         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36821         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36822         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36823         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36824         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36825         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36826         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36827         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36828
36829 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36830
36831         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36832         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36833         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36834         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36835         (IPV6_PMTUDISC_INTERFACE): Likewise.
36836         (IPV6_PMTUDISC_OMIT): Likewise.
36837
36838 2014-06-23  Andreas Schwab  <schwab@suse.de>
36839
36840         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36841         Remove unused errout label.
36842
36843 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36844
36845         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36846         macro: hardware supports Vector Crypto instructions.
36847
36848 2014-06-23  Will Newton  <will.newton@linaro.org>
36849
36850         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36851         rather than __builtin_expect.
36852
36853         * elf/dl-lookup.c (undefined_msg): Remove variable.
36854         (_dl_lookup_symbol_x): Replace undefined_msg with string
36855         literal.
36856
36857         * elf/dl-lookup.c (do_lookup_unique): New function.
36858         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36859         to a separate function.
36860
36861 2014-06-23  Andreas Schwab  <schwab@suse.de>
36862
36863         [BZ #17079]
36864         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36865         before reading the next line.
36866
36867 2014-06-23  Will Newton  <will.newton@linaro.org>
36868
36869         * test-skeleton.c (signal_handler): Use printf and %m
36870         rather than perror.  Use printf rather than fprintf to
36871         stderr.  Use puts rather than fputs to stderr.
36872         (main): Likewise.
36873
36874 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36875
36876         * nscd/nscd.c (thread_info_t): Remove typedef.
36877         (thread_info): Remove variable.
36878
36879 2014-06-21  Allan McRae  <allan@archlinux.org>
36880
36881         * NEWS: Mention CVE-2014-4043.
36882
36883 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36884
36885         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36886         * nptl/smp.h: ... here.
36887
36888         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36889
36890         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36891         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36892         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36893         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36894
36895         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36896         * nptl/stack-aliasing.h: New file.
36897         * sysdeps/i386/i686/stack-aliasing.h: New file.
36898         * sysdeps/i386/i686/nptl/Makefile: File removed.
36899         * sysdeps/x86_64/stack-aliasing.h: New file.
36900         * sysdeps/x86_64/nptl/Makefile
36901         (CFLAGS-pthread_create.c): Variable removed.
36902
36903         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36904         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36905         old file.
36906         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36907         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36908         old file.
36909
36910 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36911
36912         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36913         (__ASSUME_SIGFRAME_V2): Remove macro.
36914         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36915         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36916         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36917         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36918         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36919         Declare as function.  Remove conditional macro definitions.
36920         (__default_rt_sa_restorer): Likewise.
36921         (__default_sa_restorer_v1): Remove declaration.
36922         (__default_sa_restorer_v2): Likewise.
36923         (__default_rt_sa_restorer_v1): Likewise.
36924         (__default_rt_sa_restorer_v2): Likewise.
36925         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36926         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36927         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36928
36929 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36930
36931         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36932         (libpthread-routines): Add sysdep.
36933         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36934         * sysdeps/unix/sysv/linux/sparc/Versions
36935         (libpthread: GLIBC_2.3.3): New version set.
36936         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36937         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36938         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36939         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36940         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36941         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36942         Moved ...
36943         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36944         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36945         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36946         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36947         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36948         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36949         * sysdeps/sparc/nptl/sem_init.c: ... here.
36950         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36951         * sysdeps/sparc/nptl/sem_post.c: ... here.
36952         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36953         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36954         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36955         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36956         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36957         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36958         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36959         (libpthread-routines): Add cpu_relax.
36960         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36961         File removed.
36962         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36963         (librt: GLIBC_2.3.3): New version set.
36964         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36965         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36966         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36967         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36968         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36969         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36970         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36971         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36972         Moved ...
36973         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36974         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36975         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36976         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36977         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36978         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36979         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36980         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36981         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36982         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36983         Moved ...
36984         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36985         Update #include.
36986         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36987         Moved ...
36988         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36989         Update #include.
36990         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36991         Moved ...
36992         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36993         Update #include.
36994         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36995         Moved ...
36996         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36997         Update #include.
36998         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36999         Moved ...
37000         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
37001         Update #include.
37002         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
37003         Moved ...
37004         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
37005         Update #include.
37006         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
37007         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
37008         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
37009         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
37010         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
37011         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
37012         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
37013         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
37014         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
37015         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
37016         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
37017         Moved ...
37018         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
37019         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
37020         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
37021         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
37022         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
37023
37024 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37025
37026         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
37027         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
37028         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
37029         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
37030         * nscd/nscd.c: Likewise.
37031         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
37032         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
37033         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
37034         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
37035
37036         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
37037         <kernel-features.h>.
37038         (init_mq_netlink): Remove conditional have_sock_cloexec
37039         definitions.  Remove code conditional on have_sock_cloexec < 0.
37040         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
37041         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
37042         * sysdeps/unix/sysv/linux/opensock.c: Do not include
37043         <kernel-features.h>.
37044         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
37045         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
37046
37047 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
37048
37049         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
37050         Add tests for memset_chk and memset.
37051
37052         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
37053         with AVX2_Usable.
37054
37055 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
37056
37057         [BZ #16046]
37058         * elf/tst-dl-iter-static.c: New file.
37059         * elf/Makefile (tests-static): Add tst-dl-iter-static.
37060
37061         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
37062         error.
37063
37064 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37065
37066         * sysdeps/unix/sysv/linux/kernel-features.h
37067         (__ASSUME_F_GETOWN_EX): Remove macro.
37068         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
37069         <kernel-features.h>.
37070         (miss_F_GETOWN_EX): Remove variable or macro.
37071         (do_fcntl): Do not check miss_F_GETOWN_EX.
37072         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
37073
37074         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
37075         Remove macro.
37076         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
37077         [!__ASSUME_AT_RANDOM]: Remove conditional code.
37078         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
37079
37080         * sysdeps/unix/sysv/linux/kernel-features.h
37081         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
37082         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
37083         [ADJ_OFFSET_SS_READ]: Make code unconditional.
37084         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
37085
37086 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
37087
37088         [BZ #17075]
37089         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
37090         Fix calculation of the symbol's value.
37091         * sysdeps/arm/tst-armtlsdescloc.c: New file.
37092         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
37093         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
37094         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
37095         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
37096         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
37097         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
37098         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
37099         (modules-names): Add `tst-armtlsdescmod',
37100         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
37101         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
37102         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
37103         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
37104         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
37105         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
37106         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
37107         ($(objpfx)tst-armtlsdescloc): New dependency.
37108         ($(objpfx)tst-armtlsdescextnow): Likewise.
37109         ($(objpfx)tst-armtlsdescextlazy): Likewise.
37110         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
37111         TLS scheme support.
37112         * sysdeps/arm/configure: Regenerate.
37113
37114 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37115
37116         * include/fcntl.h (__atfct_seterrno): Remove prototype.
37117         (__atfct_seterrno_2): Likewise.
37118         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
37119         <kernel-features.h>.
37120         (__ASSUME_ATFCTS): Do not undefine and redefine.
37121         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
37122         (__have_atfcts): Remove conditional definition.
37123         (__fxstatat([__NR_fstatat64]: Make code unconditional.
37124         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
37125         unreachable if [__ASSUME_ATFCTS].
37126         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
37127         not undefine and redefine.
37128         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
37129         <kernel-features.h>.
37130         (faccessat) [__NR_faccessat]: Make code unconditional.
37131         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
37132         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
37133         <kernel-features.h>.
37134         (fchmodat) [__NR_fchmodat]: Make code unconditional.
37135         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
37136         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
37137         <kernel-features.h>.
37138         (fchownat) [__NR_fchownat]: Make code unconditional.
37139         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
37140         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
37141         <kernel-features.h>.
37142         (futimesat) [__NR_futimesat]: Make code unconditional.
37143         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
37144         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
37145         <kernel-features.h>.
37146         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
37147         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37148         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
37149         <kernel-features.h>.
37150         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
37151         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
37152         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
37153         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
37154         <kernel-features.h>.
37155         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
37156         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37157         * sysdeps/unix/sysv/linux/linkat.c: Do not include
37158         <kernel-features.h>.
37159         (linkat) [__NR_linkat]: Make code unconditional.
37160         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37161         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
37162         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
37163         <kernel-features.h>.
37164         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
37165         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
37166         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
37167         <kernel-features.h>.
37168         (mkdirat) [__NR_mkdirat]: Make code unconditional.
37169         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
37170         * sysdeps/unix/sysv/linux/openat.c: Do not include
37171         <kernel-features.h>.
37172         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
37173         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
37174         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
37175         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
37176         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
37177         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
37178         <kernel-features.h>.
37179         (readlinkat) [__NR_readlinkat]: Make code unconditional.
37180         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
37181         result of INLINE_SYSCALL directly, not via int variable.
37182         * sysdeps/unix/sysv/linux/renameat.c: Do not include
37183         <kernel-features.h>.
37184         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
37185         (renameat) [__NR_renameat]: Make code unconditional.
37186         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
37187         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
37188         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
37189         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
37190         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
37191         (__ASSUME_ATFCTS): Do not undefine and redefine.
37192         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
37193         <kernel-features.h>.
37194         (symlinkat) [__NR_symlinkat]: Make code unconditional.
37195         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37196         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
37197         <kernel-features.h>.
37198         (unlinkat) [__NR_unlinkat]: Make code unconditional.
37199         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37200         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
37201         (__ASSUME_ATFCTS): Do not undefine and redefine.
37202         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
37203         <kernel-features.h>.
37204         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
37205         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37206         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
37207         <kernel-features.h>.
37208         (__xmknodat) [__NR_mknodat]: Make code unconditional.
37209         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
37210
37211 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
37212
37213         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
37214
37215 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
37216
37217         [BZ #17069]
37218         * posix/regcomp.c (parse_reg_exp): Deallocate partially
37219         constructed tree before returning error.
37220         * posix/bug-regexp36.c: Expand test case.
37221
37222 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
37223
37224         [BZ #6803]
37225         * math/libm-test.inc (scalbln_test_date):
37226         Add errno expectations.
37227         * math/w_scalblnf.c: New File.
37228         Add wrapper which checks for setting errno to ERANGE.
37229         Add weak_alias for corresponding scalbln function.
37230         * math/w_scalbln.c: Likewise.
37231         * math/w_scalblnl.c: Likewise.
37232         * math/Makefile (libm-calls): Add w_scalbln.
37233         * sysdeps/ieee754/flt-32/s_scalblnf.c:
37234         Remove weak_alias for corresponding scalbln function.
37235         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37236         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37237         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37238         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37239         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
37240         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
37241         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
37242         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
37243         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
37244         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
37245         Remove long_double_symbol for scalblnl function in libm, libc.
37246         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
37247         Add wrapper which checks for setting errno to ERANGE.
37248         Add long_double_symbol for scalblnl function in libm, libc.
37249         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
37250         Remove long_double_symbol for scalblnl in libm.
37251         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
37252         Add wrapper which checks for setting errno to ERANGE.
37253         Add long_double_symbol for scalblnl function in libm.
37254         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
37255         Do not use wrapper because of own implementation.
37256
37257 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
37258
37259         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
37260         3 bytes for __pad1 for x32.
37261         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
37262
37263 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
37264             H.J. Lu  <hongjiu.lu@intel.com>
37265
37266         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
37267         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
37268         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37269         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37270         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
37271
37272 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
37273
37274         [BZ #17069]
37275         * posix/regcomp.c (parse_expression): Deallocate partially
37276         constructed tree before returning error.
37277         * posix/Makefile.c (tests): Add bug-regex36.
37278         (generated): Add bug-regex36.mtrace.
37279         (tests-special): Add $(objpfx)bug-regex36-mem.out
37280         (bug-regex36-ENV): New variable.
37281         ($(objpfx)bug-regex36-mem.out): New rule.
37282         * posix/bug-regex36.c: New file.
37283
37284 2014-06-19  Will Newton  <will.newton@linaro.org>
37285
37286         * malloc/malloc.c (systrim): If extra is zero then return
37287         early.
37288
37289 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37290
37291         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
37292
37293 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
37294
37295         * sysdeps/aarch64/strchr.S: New file.
37296
37297 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37298
37299         [BZ #17022]
37300         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
37301         from arguments -2 or below.
37302         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
37303         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
37304
37305 2014-06-18  Andreas Schwab  <schwab@suse.de>
37306
37307         [BZ #17062]
37308         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
37309         of a bracket expr not to run off the end of the string.
37310         * posix/Makefile (tests): Add tst-fnmatch3.
37311         * posix/tst-fnmatch3.c: New file.
37312
37313 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37314
37315         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
37316         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37317         [$(cross-compiling) = no]: Likewise.
37318         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37319         [$(cross-compiling) = no]: Likewise.
37320
37321 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37322
37323         [BZ #17031]
37324         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
37325         double, adjusted for any remainder from the high double.
37326         * math/libm-test.inc (nearbyint): Add tests.
37327         (rint): Likewise.
37328
37329 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37330
37331         * nptl/sysdeps/powerpc/Makefile: Moved ...
37332         * sysdeps/powerpc/nptl/Makefile: ... here.
37333         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
37334         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
37335         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
37336         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
37337         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
37338         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
37339         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
37340         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
37341         * nptl/sysdeps/powerpc/tls.h: Moved ...
37342         * sysdeps/powerpc/nptl/tls.h: ... here.
37343
37344 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
37345
37346         [BZ #16681]
37347         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
37348         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
37349         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
37350         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
37351         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
37352         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
37353         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
37354         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
37355         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
37356
37357 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
37358
37359         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
37360
37361 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
37362
37363         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
37364         defined operator.
37365
37366         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
37367         $TIMEOUTFACTOR.
37368
37369 2014-06-16  Florian Weimer  <fweimer@redhat.com>
37370
37371         [BZ #17058]
37372         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
37373         non-executed part of the test.
37374
37375 2014-06-16  Andreas Schwab  <schwab@suse.de>
37376
37377         * string/bits/string2.h (strdup, strndup): Update feature guard.
37378
37379 2014-06-14  David S. Miller  <davem@davemloft.net>
37380
37381         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37382
37383 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
37384
37385         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
37386         that was previously under [RESET_PID].
37387         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
37388
37389         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
37390         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
37391         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
37392         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
37393         (__libc_vfork): New strong alias.
37394         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
37395
37396 2014-06-14 Andi Kleen  <ak@linux.intel.com>
37397
37398         * sysdeps/generic/elide.h: New file.
37399
37400 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37401
37402         * Makefile (installed-headers): Adjust path of pthread.h header.
37403
37404 2014-06-13  Roland McGrath  <roland@hack.frob.com>
37405
37406         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
37407         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
37408         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
37409         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
37410
37411         * nptl/sysdeps/s390/Makefile: Moved ...
37412         * sysdeps/s390/nptl/Makefile: ... here.
37413         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
37414         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
37415         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
37416         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
37417         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
37418         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
37419         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
37420         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
37421         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
37422         * sysdeps/s390/nptl/pthreaddef.h: ... here.
37423         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
37424         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
37425         * nptl/sysdeps/s390/tls.h: Moved ...
37426         * sysdeps/s390/nptl/tls.h: ... here.
37427
37428         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
37429         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
37430
37431 2014-06-13  David S. Miller  <davem@davemloft.net>
37432
37433         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
37434         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
37435         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
37436         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
37437         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
37438         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
37439         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
37440         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
37441         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
37442         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
37443         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
37444         Remove RESET_PID cpp guards.
37445         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
37446         Remove RESET_PID cpp guards.
37447         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
37448
37449 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
37450
37451         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
37452         __sp to uintptr_t.
37453
37454 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37455
37456         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
37457         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
37458         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
37459         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
37460         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
37461         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
37462         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
37463         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
37464         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
37465         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
37466         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
37467         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
37468         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
37469         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
37470         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
37471         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
37472         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
37473         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
37474         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
37475         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
37476
37477         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
37478         (pthread_rwlock_rdlock): Add elision.
37479         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
37480         (pthread_rwlock_wrlock): Add elision.
37481         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
37482         (pthread_rwlock_trywrlock): Add elision.
37483         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
37484         (pthread_rwlock_tryrdlock): Add elision.
37485         * nptl/pthread_rwlock_unlock.c: Include elide.h.
37486         (pthread_rwlock_tryrdlock): Add elision unlock.
37487         * nptl/sysdeps/pthread/pthread.h:
37488         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
37489         (PTHREAD_RWLOCK_INITIALIZER,
37490         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
37491         Handle new elision field.
37492         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
37493         * sysdeps/arm/nptl/bits/pthreadtypes.h
37494         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37495         * sysdeps/sh/nptl/bits/pthreadtypes.h
37496         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37497         * sysdeps/tile/nptl/bits/pthreadtypes.h
37498         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37499         * sysdeps/a/nptl/bits/pthreadtypes.h
37500         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37501         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37502         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37503         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37504         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37505         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
37506         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37507         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37508         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37509         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37510         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37511         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37512         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37513         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37514         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37515         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
37516         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37517         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
37518         (elision_init): Set try_xbegin to zero when no RTM.
37519         * sysdeps/x86/nptl/bits/pthreadtypes.h
37520         (pthread_rwlock_t): Change __pad1 to __rwelision.
37521         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37522
37523 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37524
37525         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
37526         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
37527         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
37528         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
37529
37530 2014-06-13  Meador Inge  <meadori@codesourcery.com>
37531
37532         [BZ #16996]
37533         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
37534         that the cached result has been set before returning it.
37535
37536 2014-06-12  Roland McGrath  <roland@hack.frob.com>
37537
37538         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
37539         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
37540         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
37541         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
37542         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
37543         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
37544
37545         * nptl/sysdeps/sparc/Makefile: Moved ...
37546         * sysdeps/sparc/nptl/Makefile: ... here.
37547         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
37548         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
37549         * nptl/sysdeps/sparc/tls.h: Moved ...
37550         * sysdeps/sparc/nptl/tls.h: ... here.
37551         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37552         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37553         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37554         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37555         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37556         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37557         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37558         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37559         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37560         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37561         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37562         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37563         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37564         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37565         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37566         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37567         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37568         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37569         Update #include.
37570         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37571         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37572         Update #include.
37573         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37574         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37575         Update #include.
37576         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37577         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37578         Update #include.
37579
37580         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37581
37582         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37583         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37584
37585         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37586         (struct list_links): Type removed.
37587         (struct thread_node, struct timer_node): Replace struct list_links
37588         with struct list_head.
37589         (list_unlink_ip): Likewise.
37590         * sysdeps/pthread/timer_routines.c
37591         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37592         (list_append, list_insbefore): Likewise.
37593         (list_init): Function removed.
37594         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37595         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37596         * sysdeps/pthread/Makefile: ... here, new file.
37597
37598         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37599         * sysdeps/nptl/Implies: ... here.
37600         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37601         * nptl/sysdeps/pthread/list.h: Moved ...
37602         * include/list.h: ... here.
37603         * nptl/sysdeps/pthread/createthread.c: Moved ...
37604         * nptl/createthread.c: ... here.
37605         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37606         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37607         * nptl/pt-longjmp.c: ... here.
37608         * nptl/sysdeps/pthread/Makefile: Moved ...
37609         * sysdeps/nptl/Makefile: ... here.
37610         * nptl/sysdeps/pthread/Subdirs: Moved ...
37611         * sysdeps/nptl/Subdirs: ... here.
37612         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37613         * sysdeps/nptl/aio_misc.h: ... here.
37614         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37615         * sysdeps/nptl/bits/libc-lock.h: ... here.
37616         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37617         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37618         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37619         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37620         * nptl/sysdeps/pthread/configure: Moved ...
37621         * sysdeps/nptl/configure: ... here.
37622         * nptl/sysdeps/pthread/configure.ac: Moved ...
37623         * sysdeps/nptl/configure.ac: ... here.
37624         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37625         * sysdeps/nptl/gai_misc.h: ... here.
37626         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37627         * sysdeps/nptl/librt-cancellation.c: ... here.
37628         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37629         * sysdeps/nptl/malloc-machine.h: ... here.
37630         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37631         * sysdeps/nptl/pthread-functions.h: ... here.
37632         * nptl/sysdeps/pthread/pthread.h: Moved ...
37633         * sysdeps/nptl/pthread.h: ... here.
37634         * nptl/sysdeps/pthread/setxid.h: Moved ...
37635         * sysdeps/nptl/setxid.h: ... here.
37636         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37637         * sysdeps/nptl/sigfillset.c: ... here.
37638         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37639         * sysdeps/nptl/tcb-offsets.h: ... here.
37640         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37641         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37642         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37643         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37644         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37645         * sysdeps/pthread/allocalim.h: ... here.
37646         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37647         * sysdeps/pthread/bits/sigthread.h: ... here.
37648         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37649         * sysdeps/pthread/flockfile.c: ... here.
37650         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37651         * sysdeps/pthread/ftrylockfile.c: ... here.
37652         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37653         * sysdeps/pthread/funlockfile.c: ... here.
37654         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37655         * sysdeps/pthread/posix-timer.h: ... here.
37656         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37657         * sysdeps/pthread/timer_create.c: ... here.
37658         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37659         * sysdeps/pthread/timer_delete.c: ... here.
37660         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37661         * sysdeps/pthread/timer_getoverr.c: ... here.
37662         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37663         * sysdeps/pthread/timer_gettime.c: ... here.
37664         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37665         * sysdeps/pthread/timer_routines.c: ... here.
37666         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37667         * sysdeps/pthread/timer_settime.c: ... here.
37668         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37669         * sysdeps/pthread/tst-timer.c: ... here.
37670         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37671         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37672
37673         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37674         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37675
37676         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37677         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37678         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37679         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37680         Update #include target.
37681         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37682         * sysdeps/i386/i686/nptl/Makefile: ... here.
37683         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37684         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37685         Update #include target.
37686         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37687         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37688         * nptl/sysdeps/i386/Makefile: Moved ...
37689         * sysdeps/i386/nptl/Makefile: ... here.
37690         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37691         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37692         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37693         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37694         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37695         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37696         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37697         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37698         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37699         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37700         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37701         * nptl/sysdeps/i386/tls.h: Moved ...
37702         * sysdeps/i386/nptl/tls.h: ... here.
37703
37704         * sysdeps/sh/Makefile [$(subdir) = csu]
37705         (gen-as-const-headers): Add tcb-offsets.sym.
37706         * nptl/sysdeps/sh/Makefile: File removed.
37707         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37708         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37709         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37710         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37711         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37712         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37713         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37714         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37715         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37716         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37717         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37718         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37719         * nptl/sysdeps/sh/tls.h: Moved ...
37720         * sysdeps/sh/nptl/tls.h: ... here.
37721         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37722         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37723         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37724         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37725         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37726         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37727         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37728         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37729         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37730         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37731         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37732         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37733         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37734         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37735         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37736         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37737         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37738         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37739         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37740         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37741         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37742         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37743         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37744         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37745         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37746         Moved ...
37747         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37748         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37749         Moved ...
37750         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37751         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37752         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37753         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37754         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37755         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37756         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37757         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37758         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37759         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37760         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37761         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37762         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37763         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37764         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37765         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37766         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37767         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37768         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37769
37770 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37771
37772         * posix/spawn_faction_addopen.c: Include string.h.
37773
37774 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37775
37776         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37777         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37778         * nptl/sysdeps/x86_64/Makefile: Moved ...
37779         * sysdeps/x86_64/nptl/Makefile: ... here.
37780         * nptl/sysdeps/x86_64/configure: Moved ...
37781         * sysdeps/x86_64/nptl/configure: ... here.
37782         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37783         * sysdeps/x86_64/nptl/configure.ac: ... here.
37784         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37785         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37786         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37787         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37788         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37789         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37790         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37791         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37792         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37793         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37794         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37795         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37796         * nptl/sysdeps/x86_64/tls.h: Moved ...
37797         * sysdeps/x86_64/nptl/tls.h: ... here.
37798         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37799         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37800         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37801         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37802
37803         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37804
37805 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37806
37807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37808
37809 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37810
37811         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37812         type.
37813         [POSIX] (off_t): Likewise.
37814         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37815         [POSIX] (S_ISBLK): Require macro.
37816         [POSIX] (S_ISCHR): Likewise.
37817         [POSIX] (S_ISDIR): Likewise.
37818         [POSIX] (S_ISFIFO): Likewise.
37819         [POSIX] (S_ISREG): Likewise.
37820         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37821         optional-macro.
37822         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37823         type.
37824         [POSIX] (time_t): Likewise.
37825         [POSIX] (timer_t): Likewise.
37826
37827 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37828
37829         [BZ #17048]
37830         * posix/spawn_int.h (struct __spawn_action): Make the path string
37831         non-const to support deallocation.
37832         * posix/spawn_faction_addopen.c
37833         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37834         * posix/spawn_faction_destroy.c
37835         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37836         path in all spawn_do_open actions.
37837         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37838         posix_spawn_file_actions_addopen.
37839
37840 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37841
37842         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37843         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37844         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37845         conditional code always true.
37846         (__libc_vfork): New alias.
37847
37848 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37849
37850         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37851         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37852
37853         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37854
37855         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37856         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37857
37858         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37859         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37860
37861         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37862         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37863
37864 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37865
37866         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37867         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37868         multiarch strcmp for PPC64.
37869         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37870         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37871         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37872         multiarch optimizations.
37873         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37874         (__libc_ifunc_impl_list): Likewise.
37875
37876 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37877
37878         * benchtests/scripts/validate_benchout.py: New script.
37879         * benchtests/Makefile (bench-func): Call it.
37880         * benchtests/scripts/benchout.schema.json: New file.
37881
37882 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37883
37884         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37885         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37886         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37887         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37888         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37889         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37890         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37891         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37892         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37893         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37894         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37895         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37896         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37897         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37898         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37899         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37901         Moved ...
37902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37903         ... here.
37904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37905         Moved ...
37906         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37908         Moved ...
37909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37910         ... here.
37911         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37912         Moved ...
37913         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37914         ... here.
37915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37916         Moved ...
37917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37918         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37919         Moved ...
37920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37921         ... here.
37922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37923         Moved ...
37924         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37925         ... here.
37926         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37927         Moved ...
37928         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37929         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37930         Moved ...
37931         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37932         ... here.
37933         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37934         Moved ...
37935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37936         ... here.
37937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37938         Moved ...
37939         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37940         ... here.
37941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37942         Moved ...
37943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37944         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37945         Moved ...
37946         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37947         ... here.
37948         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37949         Moved ...
37950         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37951         ... here.
37952         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37953         Moved ...
37954         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37955         ... here.
37956         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37957         Moved ...
37958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37960         Moved ...
37961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37962         ... here.
37963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37964         Moved ...
37965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37966         ... here.
37967         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37968         Moved ...
37969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37970         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37971         Moved ...
37972         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37973         ... here.
37974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37975         Moved ...
37976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37977         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37978         Moved ...
37979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37981         Moved ...
37982         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37983         ... here.
37984         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37985         Moved ...
37986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37987         ... here.
37988         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37989         Moved ...
37990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37991         ... here.
37992         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37993         Moved ...
37994         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37995         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37996         Moved ...
37997         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37998         ... here.
37999         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
38000         Moved ...
38001         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
38002         ... here.
38003         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
38004         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
38005         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
38006         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
38007         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
38008         Moved ...
38009         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
38010         ... here.
38011         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
38012         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
38013         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
38014         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
38015         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
38016         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
38017         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
38018         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
38019         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
38020         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
38021         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
38022         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
38023         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
38024         Moved ...
38025         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
38026         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
38027         Moved ...
38028         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
38029         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
38030         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
38031         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
38032         Moved ...
38033         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
38034         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
38035         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
38036         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
38037         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
38038         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
38039         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
38040
38041 2014-06-10  Wilco  <wdijkstr@arm.com>
38042
38043         * math/test-fenv-return.c: New file.
38044         * math/Makefile: Add new test test-fenv-return.
38045
38046 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
38047
38048         [BZ #17042]
38049         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
38050         when x - 1 is zero.
38051         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
38052         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
38053         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
38054         0.0L for an argument of 1.0L.
38055         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
38056         Likewise.
38057         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
38058         value when x - 1 is zero.
38059         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
38060         * sysdeps/i386/fpu/libm-test-ulps: Update.
38061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38062
38063 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
38064
38065         [BZ #15119]
38066         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
38067
38068 2014-06-09  Roland McGrath  <roland@hack.frob.com>
38069
38070         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
38071         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
38072
38073 2014-06-09  Roland McGrath  <roland@hack.frob.com>
38074
38075         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38076         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
38077
38078         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38079         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
38080
38081         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38082         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
38083
38084         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38085         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
38086
38087         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
38088         if not already defined.
38089         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
38090         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
38091         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
38092         (TLS_INIT_TP): Use it.
38093         (TLS_DEFINE_INIT_TP): New macro.
38094         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
38095
38096 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
38097
38098         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
38099         constant.
38100         [POSIX] (IXANY): Likewise.
38101         [POSIX] (OLCUC): Likewise.
38102         [POSIX || POSIX2008] (CBAUD): Do not allow.
38103         [POSIX || POSIX2008] (DEFECHO): Likewise.
38104         [POSIX || POSIX2008] (ECHOCTL): Likewise.
38105         [POSIX || POSIX2008] (ECHOKE): Likewise.
38106         [POSIX || POSIX2008] (ECHOPRT): Likewise.
38107         [POSIX || POSIX2008] (EXTA): Likewise.
38108         [POSIX || POSIX2008] (EXTB): Likewise.
38109         [POSIX || POSIX2008] (FLUSHO): Likewise.
38110         [POSIX || POSIX2008] (LOBLK): Likewise.
38111         [POSIX || POSIX2008] (PENDIN): Likewise.
38112         [POSIX || POSIX2008] (SWTCH): Likewise.
38113         [POSIX || POSIX2008] (VDISCARD): Likewise.
38114         [POSIX || POSIX2008] (VDSUSP): Likewise.
38115         [POSIX || POSIX2008] (VLNEXT): Likewise.
38116         [POSIX || POSIX2008] (VREPRINT): Likewise.
38117         [POSIX || POSIX2008] (VSTATUS): Likewise.
38118         [POSIX || POSIX2008] (VWERASE): Likewise.
38119         (B*): Change to B[0123456789]*.
38120         * conform/data/time.h-data [POSIX || UNIX98]
38121         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
38122         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
38123         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
38124         [POSIX] (tm_*): Do not allow.
38125
38126 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
38127
38128         * Makefile (install): Don't set LANGUAGE.
38129         * Makefile.in (install): Likewise.
38130         * assert/Makefile (test-assert-ENV): Remove variable.
38131         (test-assert-perr-ENV): Likewise.
38132         * elf/Makefile (neededtest4-ENV): Likewise.
38133         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38134         [$(cross-compiling) = no]: Don't set LANGUAGE.
38135         * io/ftwtest-sh (LANG): Remove variable.
38136         * libio/Makefile (tst-widetext-ENV): Likewise.
38137         * manual/install.texi (Running make install): Don't refer to
38138         environment settings for make install.
38139         * INSTALL: Regenerated.
38140         * nptl/tst-tls6.sh: Don't set LANG.
38141         * posix/globtest.sh (LANG): Remove variable.
38142         * string/Makefile (tester-ENV): Likewise.
38143         (inl-tester-ENV): Likewise.
38144         (noinl-tester-ENV): Likewise.
38145         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38146         [$(cross-compiling) = no]: Don't set LANGUAGE.
38147         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
38148         without explicit environment settings.
38149
38150 2014-06-06  Roland McGrath  <roland@hack.frob.com>
38151
38152         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
38153         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
38154         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
38155         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
38156
38157 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
38158
38159         * crypt/crypt-private.h [DOS]: Add some includes taken from the
38160         other files in the crypt directory.
38161         * crypt/crypt.c: Remove duplicate includes.
38162         * crypt/crypt-entry.c: Likewise.
38163         * crypt/crypt_util.c: Likewise.
38164
38165 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
38166
38167         * Makeconfig (run-program-env): New variable.
38168         (run-program-prefix-before-env): Likewise.
38169         (run-program-prefix-after-env): Likewise.
38170         (run-program-prefix): Define in terms of new variables.
38171         (built-program-cmd-before-env): New variable.
38172         (built-program-cmd-after-env): Likewise.
38173         (built-program-cmd): Define in terms of new variables.
38174         (test-program-prefix-before-env): New variable.
38175         (test-program-prefix-after-env): Likewise.
38176         (test-program-prefix): Define in terms of new variables.
38177         (test-program-cmd-before-env): New variable.
38178         (test-program-cmd-after-env): Likewise.
38179         (test-program-cmd): Define in terms of new variables.
38180         * Rules (make-test-out): Use $(run-program-env).
38181         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
38182         (help): Do not mention environment variables.  Mention
38183         --timeoutfactor option.
38184         (timeoutfactor): New variable.
38185         (blacklist_exports): Remove function.
38186         (exports): Remove variable.
38187         (command): Do not include ${exports}.
38188         * manual/install.texi (Configuring and compiling): Do not mention
38189         test wrappers preserving environment variables.  Mention that last
38190         assignment to a variable must take precedence.
38191         * INSTALL: Regenerated.
38192         * benchtests/Makefile (run-bench): Use $(run-program-env).
38193         * catgets/Makefile ($(objpfx)test1.cat): Use
38194         $(built-program-cmd-before-env), $(run-program-env) and
38195         $(built-program-cmd-after-env).
38196         ($(objpfx)test2.cat): Do not specify environment variables
38197         explicitly.
38198         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
38199         $(run-program-env) and $(built-program-cmd-after-env).
38200         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
38201         $(run-program-env) and $(test-program-cmd-after-env).
38202         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
38203         explicitly.
38204         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
38205         run_program_env and test_program_cmd_after_env arguments.
38206         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
38207         * elf/tst-pathopt.sh: Use run_program_env argument.
38208         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
38209         $(test-wrapper-env) and $(run-program-env).
38210         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
38211         run_program_env arguments.
38212         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
38213         * intl/Makefile ($(objpfx)tst-gettext.out): Use
38214         $(test-program-prefix-before-env), $(run-program-env) and
38215         $(test-program-prefix-after-env).
38216         ($(objpfx)tst-gettext2.out): Likewise.
38217         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
38218         run_program_env and test_program_prefix_after_env arguments.
38219         * intl/tst-gettext2.sh: Likewise.
38220         * intl/tst-gettext4.sh: Do not set environment variables
38221         explicitly.
38222         * intl/tst-gettext6.sh: Likewise.
38223         * intl/tst-translit.sh: Likewise.
38224         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
38225         $(test-program-prefix-before-env), $(run-program-env) and
38226         $(test-program-prefix-after-env).
38227         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
38228         run_program_env and test_program_prefix_after_env arguments.
38229         * math/Makefile (run-regen-ulps): Use $(run-program-env).
38230         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
38231         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
38232         explicitly with each use of ${test_wrapper_env}.
38233         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
38234         $(test-program-prefix-before-env), $(run-program-env) and
38235         $(test-program-prefix-after-env).
38236         * posix/tst-getconf.sh: Do not set environment variables
38237         explicitly.
38238         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
38239         run_program_env and test_program_prefix_after_env arguments.
38240         * stdio-common/tst-printf.sh: Do not set environment variables
38241         explicitly.
38242         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
38243         $(test-program-prefix-before-env), $(run-program-env) and
38244         $(test-program-prefix-after-env).
38245         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
38246         run_program_env and test_program_prefix_after_env arguments.
38247         Split $test calls into $test_pre and $test.
38248         * timezone/Makefile (build-testdata): Use
38249         $(built-program-cmd-before-env), $(run-program-env) and
38250         $(built-program-cmd-after-env).
38251
38252 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38253
38254         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
38255         strlen for non SHARED builds.
38256
38257 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38258
38259         * nptl/allocatestack.c (check_list): Inlined function...
38260         (__reclaim_stacks): ... here.
38261
38262 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38263
38264         [BZ #15698]
38265         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
38266         memory overrun.
38267
38268 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
38269
38270         * Rules (make-test-out): Include
38271         LOCPATH=$(common-objpfx)localedata in default environment.
38272         * debug/Makefile (tst-chk1-ENV): Remove variable.
38273         (tst-chk2-ENV): Likewise.
38274         (tst-chk3-ENV): Likewise.
38275         (tst-chk4-ENV): Likewise.
38276         (tst-chk5-ENV): Likewise.
38277         (tst-chk6-ENV): Likewise.
38278         (tst-lfschk1-ENV): Likewise.
38279         (tst-lfschk2-ENV): Likewise.
38280         (tst-lfschk3-ENV): Likewise.
38281         (tst-lfschk4-ENV): Likewise.
38282         (tst-lfschk5-ENV): Likewise.
38283         (tst-lfschk6-ENV): Likewise.
38284         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
38285         (tst-iconv7-ENV): Likewise.
38286         * intl/Makefile (LOCPATH-ENV): Likewise.
38287         (tst-codeset-ENV): Likewise.
38288         (tst-gettext3-ENV): Likewise.
38289         (tst-gettext5-ENV): Likewise.
38290         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
38291         (tst-fopenloc-ENV): Likewise.
38292         (tst-fgetws-ENV): Remove variable.
38293         (tst-ungetwc1-ENV): Likewise.
38294         (tst-ungetwc2-ENV): Likewise.
38295         (bug-ungetwc2-ENV): Likewise.
38296         (tst-swscanf-ENV): Likewise.
38297         (bug-ftell-ENV): Likewise.
38298         (tst-fgetwc-ENV): Likewise.
38299         (tst-fseek-ENV): Likewise.
38300         (tst-ftell-partial-wide-ENV): Likewise.
38301         (tst-ftell-active-handler-ENV): Likewise.
38302         (tst-ftell-append-ENV): Likewise.
38303         * posix/Makefile (tst-fnmatch-ENV): Likewise.
38304         (tst-regexloc-ENV): Likewise.
38305         (bug-regex1-ENV): Likewise.
38306         (tst-regex-ENV): Likewise.
38307         (tst-regex2-ENV): Likewise.
38308         (bug-regex5-ENV): Likewise.
38309         (bug-regex6-ENV): Likewise.
38310         (bug-regex17-ENV): Likewise.
38311         (bug-regex18-ENV): Likewise.
38312         (bug-regex19-ENV): Likewise.
38313         (bug-regex20-ENV): Likewise.
38314         (bug-regex22-ENV): Likewise.
38315         (bug-regex23-ENV): Likewise.
38316         (bug-regex25-ENV): Likewise.
38317         (bug-regex26-ENV): Likewise.
38318         (bug-regex30-ENV): Likewise.
38319         (bug-regex32-ENV): Likewise.
38320         (bug-regex33-ENV): Likewise.
38321         (bug-regex34-ENV): Likewise.
38322         (bug-regex35-ENV): Likewise.
38323         (tst-rxspencer-ENV): Likewise.
38324         (tst-rxspencer-no-utf8-ENV): Likewise.
38325         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
38326         (tst-sscanf-ENV): Likewise.
38327         (tst-swprintf-ENV): Likewise.
38328         (tst-swscanf-ENV): Likewise.
38329         (test-vfprintf-ENV): Likewise.
38330         (scanf13-ENV): Likewise.
38331         (bug14-ENV): Likewise.
38332         (tst-grouping-ENV): Likewise.
38333         * stdlib/Makefile (tst-strtod-ENV): Likewise.
38334         (tst-strtod3-ENV): Likewise.
38335         (tst-strtod4-ENV): Likewise.
38336         (tst-strtod5-ENV): Likewise.
38337         (testmb2-ENV): Likewise./
38338         * string/Makefile (tst-strxfrm-ENV): Likewise.
38339         (tst-strxfrm2-ENV): Likewise.
38340         (bug-strcoll1-ENV): Likewise.
38341         (test-strcasecmp-ENV): Likewise.
38342         (test-strncasecmp-ENV): Likewise.
38343         * time/Makefile (tst-strptime-ENV): Likewise.
38344         (tst-ftime_l-ENV): Likewise.
38345         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
38346         (tst-mbrtowc-ENV): Likewise.
38347         (tst-wcrtomb-ENV): Likewise.
38348         (tst-mbrtowc2-ENV): Likewise.
38349         (tst-c16c32-1-ENV): Likewise.
38350         (tst-mbsnrtowcs-ENV): Likewise.
38351
38352 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38353
38354         * manual/resource.texi (How to get information about the memory
38355         subsystem?): Fix typo.
38356         Reported by Peon de la Parra Ivan <peon@keba.com>
38357
38358 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
38359
38360         [BZ #16882]
38361         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
38362         (pthread_spin_lock): Branch out of spin loop to proper location.
38363         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
38364         (pthread_spin_lock): Likewise.
38365
38366         * nptl/tst-spin4.c: New test.
38367         * nptl/Makefile (tests): Add tst-spin4.
38368
38369 2014-06-03  Andreas Schwab  <schwab@suse.de>
38370
38371         [BZ #15946]
38372         * resolv/res_send.c (send_dg): Reload file descriptor after
38373         calling reopen.
38374
38375 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
38376
38377         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38378
38379 2014-06-03  Richard Henderson  <rth@redhat.com>
38380
38381         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
38382         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
38383         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
38384         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
38385         in the SAVE_PID block.
38386         (__libc_vfork): New alias.
38387         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
38388
38389         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
38390         child in registers, not on the stack.  Remove RESET_PID conditionals.
38391         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
38392
38393 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38394
38395         * sysdeps/aarch64/libm-test-ulps: Regenerate.
38396
38397 2014-06-03  Wilco  <wdijkstr@arm.com>
38398
38399         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
38400         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
38401         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38402         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
38403         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
38404         Likewise.
38405
38406 2014-06-03  Wilco  <wdijkstr@arm.com>
38407
38408         * sysdeps/aarch64/fpu/math_private.h
38409         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
38410         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
38411         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
38412         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38413         Fix declarations.
38414
38415 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38416
38417         * crypt/crypt-private.h: Include ufc-crypt.h.
38418         (__b64_from_24bit): Declare extern.
38419         * crypt/crypt_util.c(__b64_from_24bit): New function.
38420         (b64t): New static const variable.
38421         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
38422         (b64t): Remove variable.
38423         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
38424         * crypt/sha256-crypt.c: Include crypt-private.h.
38425         (b64t): Remove variable.
38426         (__sha256_crypt_r): Remove b64_from_24bit and replace
38427         with __b64_from_24bit.
38428         * crypt/sha512-crypt.c: Likewise.
38429
38430 2014-06-02  Roland McGrath  <roland@hack.frob.com>
38431
38432         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
38433         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
38434         Label the code __libc_vfork rather than __vfork.
38435         [!NOT_IN_libc] (vfork): Define as weak alias.
38436         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
38437         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
38438         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
38439
38440 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38441
38442         * malloc/malloc.c (malloc_info): Fix format specifier for
38443         n_mmaps.
38444
38445 2014-06-02  Wilco  <wdijkstr@arm.com>
38446
38447         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
38448         FPCR write.
38449
38450 2014-06-02  Wilco  <wdijkstr@arm.com>
38451
38452         [BZ #17009]
38453         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
38454         Rewrite to reduce FPCR/FPSR accesses.
38455
38456 2014-06-01  David S. Miller  <davem@davemloft.net>
38457
38458         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38459
38460 2014-05-31  David S. Miller  <davem@davemloft.net>
38461
38462         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
38463         to occur in round to nearest mode when |x| >= 2.0
38464
38465 2014-05-30  Richard Henderson  <rth@twiddle.net>
38466
38467         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
38468         (PSEUDO_RET_NOERRNO): Remove.
38469         (ret): Don't redefine.
38470         (ret_NOERRNO): Define in terms of ret.
38471         (ret_ERRVAL): Likewise.
38472
38473         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
38474         use of PSEUDO_RET; perform the error check directly.
38475
38476 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
38477
38478         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
38479         with __int128_t.
38480
38481 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38482
38483         * malloc/malloc (malloc_info): Fix formatting.
38484
38485 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38486             Roland McGrath  <roland@hack.frob.com>
38487
38488         * malloc/malloc (malloc_info): Also print mmapped statistics.
38489
38490 2014-05-30  Roland McGrath  <roland@hack.frob.com>
38491
38492         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
38493         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
38494
38495 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
38496
38497         * malloc/malloc.c (malloc_info): Inline mi_arena.
38498
38499 2014-05-29  Richard Henderson  <rth@twiddle.net>
38500
38501         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
38502         Remove comma before expanding ASM_ARGS_##nr.
38503         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
38504         Make _x0 a strict output; make _x8 a strict input; adjust expansion
38505         of ASM_ARGS_##nr.
38506         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
38507         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
38508         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
38509         (ASM_ARGS_1): Add leading comma.
38510
38511         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
38512         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
38513         to __errno_location.
38514         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
38515         Remove the expected plt for __errno_location.
38516
38517         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38518         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
38519         call to __read_tp.
38520
38521         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38522         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
38523         it and break it down.
38524         (DOCARGS_0, DOCARGS_1): Do nothing.
38525         (DOCARGS_2): Update to store into the new stack frame.
38526         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
38527         (UNDOCARGS_1): Update to restore from the new stack frame.
38528         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
38529         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
38530
38531         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38532         (SINGLE_THREAD_P): New parameter for result regno.
38533         (PSEUDO): Update to match; use cbz instead of beq.
38534
38535         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38536         Use ENTRY to define the _nocancel entry point.  Share the syscall
38537         and syscall error check paths with the cancel path.
38538         (PSEUDO_END): New.
38539
38540         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
38541         whitespace; tabs before and after asm mnemonics.
38542
38543 2014-05-29  Eric Wong  <normalperson@yhbt.net>
38544
38545         [BZ #15132]
38546         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38547         Call fstat64 or stat64 internally, depending on arguments passed.
38548         Replace stat buffer argument with file descriptor argument.
38549         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
38550         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38551         Pass fd to __internal_statvfs instead of calling fstat64.
38552         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38553         Pass fd to __internal_statvfs64 instead of calling fstat64.
38554         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38555         Pass -1 to __internal_statvfs instead of calling stat64.
38556         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38557         Pass -1 to __internal_statvfs64 instead of calling stat64.
38558
38559 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38560
38561         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38562         that was previously under [RESET_PID].
38563         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38564
38565         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38566         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38567
38568 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38569
38570         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38571
38572         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38573         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38574
38575 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38576
38577         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38578
38579 2014-05-27  Andreas Schwab  <schwab@suse.de>
38580
38581         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38582         TLS_INIT_TP macro.
38583         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38584         * elf/rtld.c (init_tls, dl_main): Likewise.
38585         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38586         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38587         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38588         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38589         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38590         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38591         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38592         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38593         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38594         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38595         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38596         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38597         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38598         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38599         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38600         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38601         * sysdeps/generic/tls.h: Update description.
38602
38603 2014-05-27  Will Newton  <will.newton@linaro.org>
38604
38605         [BZ #16990]
38606         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38607         and restore r2 rather than just restoring.
38608
38609 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38610
38611         [BZ #16724]
38612         * libio/tst-ftell-append.c: New test case.
38613         * libio/Makefile (tests): Add test case.
38614         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38615         append mode.
38616         * libio/wfileops.c (do_ftell_wide): Likewise.
38617
38618 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38619
38620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38621
38622         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38623         ...
38624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38626         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38627         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38628         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38629         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38630         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38631         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38632         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38633         Moved ...
38634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38635         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38636         Moved ...
38637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38638         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38639         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38640         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38641         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38642         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38643         ...
38644         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38645         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38646         Moved ...
38647         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38648         here.
38649         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38650         ...
38651         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38652         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38653         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38654
38655         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38656         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38657         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38658         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38659
38660         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38661         merge into ...
38662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38663         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38664         ...
38665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38666         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38667         ...
38668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38669         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38670         Moved ...
38671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38672         here.
38673         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38674         Moved ...
38675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38676         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38677         Moved ...
38678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38679
38680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38681         conditional [RESET_PID].
38682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38683         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38684         removed.
38685         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38686         removed.
38687
38688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38689         <tcb-offsets.h>.
38690         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38691         (__libc_vfork): New strong alias.
38692         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38693         removed.
38694         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38695         Removed.
38696
38697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38698         <tcb-offsets.h>.
38699         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38700         (__libc_vfork): New strong alias.
38701         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38702         removed.
38703         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38704         removed.
38705
38706 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38707
38708         * malloc/malloc.c (mi_arena): New function.
38709         (malloc_info): Remove nested function mi_arena. Call non-nosted
38710         function mi_arena.
38711
38712 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38713
38714         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38715         by insrwi.
38716         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38717         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38718         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38719         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38720         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38721         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38722         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38723
38724 2014-05-26  Andreas Schwab  <schwab@suse.de>
38725
38726         [BZ #16984]
38727         * locale/programs/repertoire.c (repertoire_read): Add slash
38728         between I18NPATH element and file name.
38729         * locale/programs/locfile.c (locfile_read): Likewise.
38730
38731 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38732
38733         * nptl/pthread_mutexattr_settype.c
38734         (__pthread_mutexattr_settype):
38735         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38736
38737 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38738
38739         * nptl/tst-mutex5 (do_test):
38740         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38741
38742 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38743
38744         * benchtests/README: Document 'init' directive.
38745         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38746         BENCH_INIT.
38747         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38748         (parse_file): Recognize 'init' directive.
38749
38750 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38751
38752         [BZ #16796]
38753         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38754         alignment of struct pthread.
38755
38756 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38757
38758         [BZ #16878]
38759         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38760         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38761         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38762         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38763
38764 2014-05-25  Richard Henderson  <rth@twiddle.net>
38765
38766         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38767         (SINGLE_THREAD_P_PIC): Remove.
38768         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38769         (SINGLE_THREAD_P_PIC): Remove.
38770
38771         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38772         branch to syscall error ...
38773         (PSEUDO): ... here.
38774         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38775         from __local_syscall_error to .Lsyscall_error.
38776         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38777         (SYSCALL_ERROR): Update label name.
38778
38779         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38780         Do not use DOARGS/UNDOARGS.
38781         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38782         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38783         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38784         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38785         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38786
38787         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38788         block comment.
38789
38790         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38791         define if !NOT_IN_libc.
38792         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38793         define with non-default symbol versions.
38794
38795 2014-05-23  Richard Henderson  <rth@twiddle.net>
38796
38797         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38798         (vfork, __vfork): Define via compat_symbol.
38799
38800         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38801         [!HAVE_IFUNC] (vfork_compat): Remove.
38802         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38803
38804 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38805
38806         [BZ #16978]
38807         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38808         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38809         variable.
38810
38811 2014-05-23  Richard Henderson  <rth@twiddle.net>
38812
38813         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38814         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38815         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38816         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38817
38818         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38819         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38820         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38821         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38822         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38823         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38824         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38825         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38826         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38827         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38828         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38829         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38830         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38831         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38832         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38833         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38834         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38835         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38836         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38837         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38838         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38839         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38840         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38841         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38842         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38843         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38844         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38845         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38846         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38847         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38848         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38849         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38850         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38851         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38852         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38853         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38854         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38855         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38856         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38857         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38858         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38859         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38860         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38861         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38862         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38863         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38864         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38865         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38866         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38867         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38868         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38869         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38870         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38871         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38872         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38873         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38874
38875         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38876         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38877         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38878         before exiting on error.
38879         (__libc_vfork): New strong alias.
38880         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38881         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38882
38883         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38884         that was previously under [RESET_PID].
38885         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38886
38887         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38888
38889 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38890
38891         [BZ #16977]
38892         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38893         value when x - 1 is zero.
38894         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38895         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38896         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38897         0.0L for an argument of 1.0L.
38898         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38899         Likewise.
38900         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38901         value when x - 1 is zero.
38902         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38903         * sysdeps/i386/fpu/libm-test-ulps: Update.
38904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38905
38906 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38907
38908         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38909         alphasort and versionsort.
38910
38911 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38912
38913         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38914         macro.
38915         [copysignf]: Likewise.
38916
38917 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38918
38919         * crypt/md5-crypt.c: Fix formatting.
38920
38921 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38922
38923         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38924         (b64_from_24bit): New function.
38925
38926 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38927
38928         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38929         libc_hidden_builtin_def to ifunc.
38930         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38931         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38932
38933 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38934
38935         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38936         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38937
38938 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38939
38940         * nscd/Depend (linuxthreads): Remove.
38941         (nptl): Add.
38942         * resolv/Depend (linuxthreads): Remove.
38943         * rt/Depend (linuxthreads): Remove.
38944
38945         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38946         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38947         $(common-objpfx)elf/.
38948         (link-libc-before-gnulib): Likewise.
38949         (elfobjdir): Remove variable.
38950         * Makefile (install): Use $(elf-objpfx) instead of
38951         $(common-objpfx)elf/.
38952         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38953         $(elfobjdir)/.
38954         (link-libc-deps): Likewise.
38955         ($(common-objpfx)libc.so): Likewise.
38956         ($(common-objpfx)linkobj/libc.so): Likewise.
38957         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38958         instead of $(common-objpfx)elf/.
38959         (symbolic-link-list): Likewise.
38960         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38961         [$(cross-compiling) = no]: Likewise.
38962         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38963         $(elfobjdir)/.
38964         (static-gnulib-arch): Likewise.
38965         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38966         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38967         $(common-objpfx)elf/.
38968
38969 2014-05-21  Richard Henderson  <rth@redhat.com>
38970
38971         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38972         (SINGLE_THREAD_P): Use the correct width load.  Fold
38973         into the ldr offset.
38974
38975         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38976         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38977
38978 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38979
38980         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38981         (libgcc_s_resume): Use __attribute_used__.
38982         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38983         Likewise.
38984
38985 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38986
38987         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38988         optimization when used with float constants.
38989
38990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38991
38992 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38993
38994         [BZ #16915]
38995         * locale/nl_langinfo_l.c: Make direct reference to every
38996         _nl_current_CATEGORY symbol.
38997         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38998         (tests-static): Add tst-langinfo-static.
38999         (tests-special): Add tst-langinfo-static.out.
39000         ($(objpfx)tst-langinfo.out): Redirect output.
39001         ($(objpfx)tst-langinfo-static.out): New.
39002         * localedata/tst-langinfo.sh: Send output to stdout.
39003         * localedata/tst-langinfo-static.c: New file.
39004
39005         [BZ #16965]
39006         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
39007         when the shift amount is modulo the limb size.
39008
39009 2014-05-20  Richard Henderson  <rth@redhat.com>
39010
39011         [BZ #16967]
39012         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
39013         Change type of sa_flags from unsigned int to int.
39014
39015         [BZ #16966]
39016         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
39017
39018         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
39019
39020 2014-05-20  Will Newton  <will.newton@linaro.org>
39021
39022         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39023         Test the return value of the system call in the nocancel case.
39024
39025 2014-05-20  Will Newton  <will.newton@linaro.org>
39026             Yvan Roux  <yvan.roux@linaro.org>
39027
39028         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
39029         #include of asm/ptrace.h.
39030         (PTRACE_GET_THREAD_AREA): Remove #undef.
39031         (PTRACE_GETHBPREGS): Likewise.
39032         (PTRACE_SETHBPREGS): Likewise.
39033         (struct user_regs_struct): New structure.
39034         (struct user_fpsimd_struct): New structure.
39035         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
39036         #include of asm/ptrace.h and second #include of sys/user.h.
39037         (PTRACE_GET_THREAD_AREA): Remove #undef.
39038         (PTRACE_GETHBPREGS): Likewise.
39039         (PTRACE_SETHBPREGS): Likewise.
39040         (ELF_NGREG): Use new struct user_regs_struct.
39041         (elf_fpregset_t): Use new struct user_fpsimd_struct.
39042
39043 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39044
39045         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
39046         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
39047
39048 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
39049
39050         [BZ #16958]
39051         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
39052         membar to avoid block loads/stores to overlap previous stores.
39053
39054 2014-05-17  Richard Henderson  <rth@redhat.com>
39055
39056         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
39057         Create the __##syscall_name##_nocancel entry point.
39058         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
39059         Remove; let the sysdep-cancel.h code create it.
39060
39061 2014-05-17  David S. Miller  <davem@davemloft.net>
39062
39063         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
39064         Protect with __USE_GNU.
39065         (TIOCSET_TEMPT): Likewise.
39066         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
39067         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
39068         these are already provided in bits/ioctl-types.h
39069
39070 2014-05-16  Roland McGrath  <roland@hack.frob.com>
39071
39072         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
39073         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
39074
39075         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
39076         Use wait4 regardless of [__NR_waitpid].
39077
39078 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
39079
39080         PR libgcc/60166
39081         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
39082         (_FP_NANSIGN_Q): Set the quiet bit.
39083
39084 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
39085
39086         * benchtests/Makefile
39087         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
39088         not $(common-objpfx)math/libm.so.
39089         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
39090         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
39091         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
39092         $(common-objpfx)dlfcn/libdl.so.
39093         ($(objpfx)tst-audit8): Depend on $(libm), not
39094         $(common-objpfx)math/libm.so.
39095         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
39096         not $(common-objpfx)dlfcn/libdl.so.
39097         * math/Makefile
39098         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
39099         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
39100         [$(build-shared) = yes].
39101         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
39102         $(common-objpfx)nptl/libpthread.so.
39103         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
39104         $(common-objpfx)math/libm.so$(libm.so-version) or
39105         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
39106         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
39107         $(common-objpfx)dlfcn/libdl.so.
39108         * setjmp/Makefile (link-libm): Remove variable.
39109         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
39110         * stdio-common/Makefile (link-libm): Remove variable.
39111         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
39112         * stdlib/Makefile (link-libm): Remove variable.
39113         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
39114         ($(objpfx)tst-strtod-round): Likewise.
39115         ($(objpfx)tst-tininess): Likewise.
39116         ($(objpfx)tst-strtod-underflow): Likewise.
39117         ($(objpfx)tst-strtod6): Likewise.
39118         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
39119         $(libdl), not $(common-objpfx)nptl/libpthread.so and
39120         $(common-objpfx)dlfcn/libdl.so.
39121
39122 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39123
39124         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
39125         BSD terminal modes definitions.
39126
39127 2014-05-16  Roland McGrath  <roland@hack.frob.com>
39128
39129         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
39130         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
39131
39132         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
39133         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
39134         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
39135         Don't do #include_next.
39136         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
39137         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
39138         Don't do #include_next.
39139         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
39140         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
39141         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
39142         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
39143
39144 2014-05-16  Allan McRae  <allan@archlinux.org>
39145
39146         * po/sv.po: Update Swedish translation from translation project.
39147
39148         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
39149         in sed expression.
39150
39151 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
39152
39153         [BZ #16917]
39154         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
39155         errno if the TIOCGPTN ioctl fails with an error different than
39156         EINVAL.
39157         * login/tst-ptsname.c: New file.
39158         * login/Makefile (tests): Add tst-ptsname.
39159
39160         [BZ #16943]
39161         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
39162         and prlimit64.
39163
39164 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
39165
39166         [BZ #16849]
39167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
39168         herrno to return EAI_AGAIN.
39169
39170 2014-05-14  Roland McGrath  <roland@hack.frob.com>
39171
39172         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
39173         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
39174         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
39175         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
39176         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
39177         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
39178         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
39179         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
39180         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
39181         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
39182         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
39183         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
39184         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
39185         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
39186         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
39187         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
39188         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
39189         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
39190         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
39191         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
39192         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
39193         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
39194         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
39195         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
39196         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
39197         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
39198         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
39199         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
39200         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
39201         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
39202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
39203         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
39204         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
39205         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
39206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
39207         Moved ...
39208         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
39209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
39210         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
39211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
39212         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
39213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
39214         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
39215         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
39216         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
39217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
39218         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
39219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
39220         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
39221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
39222         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
39223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
39224         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
39225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
39226         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
39227         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
39228         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
39229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
39230         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
39231         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
39232         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
39233         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
39234         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
39235         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
39236         Moved ...
39237         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
39238         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
39239         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
39240         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
39241         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
39242         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
39243         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
39244         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
39245         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
39246         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
39247         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
39248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
39249         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
39250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
39251         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
39252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
39253         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
39254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
39255         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
39256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
39257         Moved ...
39258         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
39259         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
39260         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
39261
39262         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
39263         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
39264         (libpthread-sysdep_routines): Add elision-related stuff here instead.
39265         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
39266         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
39267         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
39268         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
39269         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
39270         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
39271         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
39272         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
39273         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
39274         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
39275         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
39276         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
39277         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
39278         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
39279         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
39280         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
39281         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
39282         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
39283         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
39284         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
39285         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
39286         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
39287         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
39288         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
39289         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
39290         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
39291         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
39292         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
39293
39294         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
39295         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
39296
39297         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
39298         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
39299         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
39300         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
39301         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
39302         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
39303         Moved ...
39304         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
39305         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
39306         Moved ...
39307         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
39308         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
39309         Moved ...
39310         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
39311         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
39312         Moved ...
39313         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
39314         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
39315         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
39316         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
39317         Moved ...
39318         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
39319         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
39320         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
39321         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
39322         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
39323         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
39324         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
39325         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
39326         Moved ...
39327         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
39328         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39329         Moved ...
39330         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39331         ... here.
39332         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
39333         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
39334         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
39335         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
39336         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39337         Moved ...
39338         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39339         ... here.
39340         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
39341         Moved ...
39342         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
39343         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
39344         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
39345         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
39346         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
39347         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
39348         Moved ...
39349         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
39350         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
39351         Moved ...
39352         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
39353         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
39354         Moved ...
39355         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
39356         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
39357         Moved ...
39358         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
39359         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
39360         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
39361         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
39362         Moved ...
39363         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
39364         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
39365         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
39366         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
39367         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
39368         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
39369         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
39370         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
39371         Moved ...
39372         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
39373         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39374         Moved ...
39375         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39376         ... here.
39377         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
39378         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
39379         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
39380         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
39381         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39382         Moved ...
39383         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39384         ... here.
39385         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
39386         Moved ...
39387         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
39388         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
39389         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
39390         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
39391         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
39392         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
39393         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
39394         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
39395         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
39396         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
39397         Moved ...
39398         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
39399         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
39400         Moved ...
39401         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
39402         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
39403         Moved ...
39404         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
39405         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
39406         Moved ...
39407         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
39408         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
39409         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
39410         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
39411         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
39412         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
39413         Moved ...
39414         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
39415         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
39416         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
39417         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
39418         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
39419         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
39420         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
39421         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
39422         Moved ...
39423         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
39424         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39425         Moved ...
39426         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39427         ... here.
39428         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
39429         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
39430         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
39431         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
39432         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39433         Moved ...
39434         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39435         ... here.
39436         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
39437         Moved ...
39438         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
39439         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
39440         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
39441         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
39442         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
39443         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
39444         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
39445         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
39446         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
39447         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
39448         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
39449
39450         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
39451         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
39452
39453         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
39454         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
39455
39456         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
39457         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
39458         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
39459         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
39460         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
39461         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
39462         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
39463         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
39464         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
39465         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
39466         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
39467         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
39468         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
39469         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
39470         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
39471         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
39472         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
39473         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
39474         Moved ...
39475         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
39476         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
39477         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
39478         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
39479         Moved ...
39480         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
39481         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
39482         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
39483         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
39484         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
39485         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
39486         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
39487         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
39488         Moved ...
39489         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
39490         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
39491         Moved ...
39492         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
39493         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
39494         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
39495         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
39496         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
39497         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
39498         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
39499         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
39500         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
39501         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
39502         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
39503         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
39504         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
39505         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
39506         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
39507         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
39508         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
39509
39510         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
39511         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
39512         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
39513         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
39514         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
39515
39516         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
39517         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
39518         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
39519         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
39520         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
39521         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
39522         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
39523         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
39524         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
39525         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
39526
39527         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
39528         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
39529
39530         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
39531         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
39532         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
39533         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
39534         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
39535         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
39536         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
39537         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
39538         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
39539         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
39540         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
39541         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
39542         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
39543         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
39544         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
39545         Update #include.
39546         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
39547         Likewise.
39548         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39549         Likewise.
39550         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39551         Likewise.
39552         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39553         Likewise.
39554         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39555         Likewise.
39556         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39557         Likewise.
39558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39559         Likewise.
39560         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39561         Likewise.
39562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39563         Likewise.
39564         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39565         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39566         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39567         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39568         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39569         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39570         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39571         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39572         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39573         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39574         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39575         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39576         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39577         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39578         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39579
39580         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39581         that was previously under [RESET_PID].
39582         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39583         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39584         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39585
39586         * sysdeps/i386/nptl/Implies: New file.
39587         * sysdeps/x86_64/nptl/Implies: New file.
39588         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39589         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39590         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39591         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39592
39593         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39594         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39595         (__libc_vfork): New strong alias.
39596         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39597         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39598
39599         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39600         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39601         (__libc_vfork): New strong alias.
39602         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39603         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39604
39605         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39606         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39607         (__libc_vfork): New strong alias.
39608         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39609         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39610         * nptl/pt-vfork.c: New file.
39611         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39612         (libpthread: GLIBC_2.20): New version set (empty).
39613
39614 2014-05-14  Will Newton  <will.newton@linaro.org>
39615
39616         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39617         rather than #if.
39618
39619 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39620
39621         [BZ #16564]
39622         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39623         arguments with exponent 65 or above.
39624         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39625         arguments 0x1p113L or above.
39626         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39627         to arguments 0x1p107L or above.
39628         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39629         positive arguments with exponent 65 or above.
39630         * math/auto-libm-test-in: Add more tests of log1p.
39631         * math/auto-libm-test-out: Regenerated.
39632
39633         [BZ #16928]
39634         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39635         non-finite arguments is +0.
39636         * math/s_cacosf.c (__cacosf): Likewise.
39637         * math/s_cacosl.c (__cacosl): Likewise.
39638         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39639         * sysdeps/i386/fpu/libm-test-ulps: Update.
39640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39641
39642         [BZ #16927]
39643         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39644         value.
39645         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39646         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39647         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39648         for explicit high bit of mantissa when testing for argument equal
39649         to 1.
39650         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39651         * sysdeps/i386/fpu/libm-test-ulps: Update.
39652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39653
39654         [BZ #16516]
39655         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39656         (__erf): Scale by 16 instead of 8 in potentially underflowing
39657         case.  Ensure exception if result actually underflows.
39658         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39659         (__erff): Scale by 16 instead of 8 in potentially underflowing
39660         case.  Ensure exception if result actually underflows.
39661         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
39662         (efx8): Remove variable.
39663         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39664         case.  Ensure exception if result actually underflows.
39665         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
39666         (efx8): Remove variable.
39667         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39668         case.  Ensure exception if result actually underflows.
39669         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39670         (efx8): Remove variable.
39671         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39672         case.  Ensure exception if result actually underflows.
39673         * math/auto-libm-test-in: Add more tests of erf.
39674         * math/auto-libm-test-out: Regenerated.
39675
39676 2014-05-14  Andreas Schwab  <schwab@suse.de>
39677
39678         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39679         Remove code conditionalized on USE___THREAD.
39680
39681         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39682         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39683         not definedness.
39684
39685 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39686
39687         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39688         Define unconditionally.
39689         (__ASSUME_O_CLOEXEC): Likewise.
39690         (__ASSUME_SOCK_CLOEXEC): Likewise.
39691         (__ASSUME_IN_NONBLOCK): Likewise.
39692         (__ASSUME_PIPE2): Likewise.
39693         (__ASSUME_EVENTFD2): Likewise.
39694         (__ASSUME_SIGNALFD4): Likewise.
39695         (__ASSUME_DUP3): Likewise.
39696         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39697         (__ASSUME_DUP3): Do not define.
39698         (__ASSUME_EVENTFD2): Likewise.
39699         (__ASSUME_IN_NONBLOCK): Likewise.
39700         (__ASSUME_O_CLOEXEC): Likewise.
39701         (__ASSUME_PIPE2): Likewise.
39702         (__ASSUME_SIGNALFD4): Likewise.
39703         (__ASSUME_SOCK_CLOEXEC): Likewise.
39704         (__ASSUME_UTIMES): Undefine.
39705         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39706         (__ASSUME_UTIMES): Do not define.
39707         (__ASSUME_O_CLOEXEC): Likewise.
39708         (__ASSUME_SOCK_CLOEXEC): Likewise.
39709         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39710         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39711         0x020621].
39712         (__ASSUME_PIPE2): Likewise.
39713         (__ASSUME_EVENTFD2): Likewise.
39714         (__ASSUME_SIGNALFD4): Likewise.
39715         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39716         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39717         Do not define.
39718         (__ASSUME_EVENTFD2): Likewise.
39719         (__ASSUME_SIGNALFD4): Likewise.
39720         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39721         (__ASSUME_32BITUIDS): Likewise.
39722         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39723         (__ASSUME_IPC64): Likewise.
39724         (__ASSUME_ST_INO_64_BIT): Likewise.
39725         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39726         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39727         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39728         (__ASSUME_UTIMES): Do not define.
39729         (__ASSUME_PSELECT): Likewise.
39730         (__ASSUME_PPOLL): Likewise.
39731         (__ASSUME_O_CLOEXEC): Likewise.
39732         (__ASSUME_SOCK_CLOEXEC): Likewise.
39733         (__ASSUME_IN_NONBLOCK): Likewise.
39734         (__ASSUME_PIPE2): Likewise.
39735         (__ASSUME_EVENTFD2): Likewise.
39736         (__ASSUME_SIGNALFD4): Likewise.
39737         (__ASSUME_DUP3): Likewise.
39738         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39739         (__ASSUME_UTIMES): Likewise.
39740         (__ASSUME_O_CLOEXEC): Likewise.
39741         (__ASSUME_SOCK_CLOEXEC): Likewise.
39742         (__ASSUME_IN_NONBLOCK): Likewise.
39743         (__ASSUME_PIPE2): Likewise.
39744         (__ASSUME_EVENTFD2): Likewise.
39745         (__ASSUME_SIGNALFD4): Likewise.
39746         (__ASSUME_DUP3): Likewise.
39747         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39748         (__ASSUME_UTIMES): Likewise.
39749         (__ASSUME_O_CLOEXEC): Likewise.
39750         (__ASSUME_SOCK_CLOEXEC): Likewise.
39751         (__ASSUME_IN_NONBLOCK): Likewise.
39752         (__ASSUME_PIPE2): Likewise.
39753         (__ASSUME_EVENTFD2): Likewise.
39754         (__ASSUME_SIGNALFD4): Likewise.
39755         (__ASSUME_DUP3): Likewise.
39756         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39757         Likewise.
39758         (__ASSUME_UTIMES): Likewise.
39759         (__ASSUME_EVENTFD2): Likewise.
39760         (__ASSUME_SIGNALFD4): Likewise.
39761         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39762         (__ASSUME_O_CLOEXEC): Likewise.
39763         (__ASSUME_SOCK_CLOEXEC): Likewise.
39764         (__ASSUME_IN_NONBLOCK): Likewise.
39765         (__ASSUME_PIPE2): Likewise.
39766         (__ASSUME_EVENTFD2): Likewise.
39767         (__ASSUME_SIGNALFD4): Likewise.
39768         (__ASSUME_DUP3): Likewise.
39769         (__ASSUME_UTIMES): Undefine.
39770
39771         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39772         feclearexcept.  Remove symbol versioning code.
39773         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39774         symbol versioning code.
39775         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39776         symbol versioning code.
39777         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39778         feupdateenv.  Remove symbol versioning code.
39779         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39780         fegetexceptflag.  Remove symbol versioning code.
39781         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39782         fesetexceptflag.  Remove symbol versioning code.
39783         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39784         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39785         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39786         (__posix_fadvise64_l32): Remove prototype.
39787         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39788         code.
39789
39790 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39791
39792         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39793         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39794         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39795         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39796
39797 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39798
39799         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39800         current working directory
39801
39802 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39803
39804         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39805         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39806         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39807         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39808         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39809         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39810         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39811         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39812         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39813         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39814         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39815         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39816         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39817         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39818         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39819         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39820         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39821         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39822         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39823         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39824         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39825         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39826         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39827         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39828         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39829         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39830         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39831         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39832         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39833         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39834         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39835         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39836         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39837         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39838         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39839         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39840         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39841         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39842         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39843         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39844         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39845         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39846
39847         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39848         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39849
39850         * sysdeps/unix/sysv/linux/arm/Makefile
39851         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39852         Add rt-aeabi_unwind_cpp_pr1.
39853         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39854         Add nptl-aeabi_unwind_cpp_pr1.
39855         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39856         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39857         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39858         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39859         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39860         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39861
39862         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39863         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39864         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39865         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39866
39867         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39868         Deconditionalize the code that was previously under [RESET_PID].
39869         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39870
39871         * sysdeps/generic/exit-thread.h: New file.
39872         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39873         * include/unistd.h (__exit_thread): Remove declaration.
39874         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39875         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39876         * csu/libc-start.c: Include <exit-thread.h>.
39877         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39878         * nptl/pthread_create.c: Include <exit-thread.h>.
39879         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39880         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39881         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39882         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39883         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39884         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39885         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39886         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39887         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39888         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39889         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39890         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39891         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39892         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39893         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39894         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39895         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39896
39897 2014-05-13  Andreas Schwab  <schwab@suse.de>
39898
39899         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39900
39901 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39902
39903         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39904         (__ASSUME_UTIMES): Do not condition on kernel version.
39905         (__ASSUME_PSELECT): Define unconditionally.
39906         (__ASSUME_PPOLL): Likewise.
39907         (__ASSUME_ATFCTS): Likewise.
39908         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39909         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39910         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39911         (__ASSUME_UTIMENSAT): Define unconditionally.
39912         (__ASSUME_PRIVATE_FUTEX): Likewise.
39913         (__ASSUME_FALLOCATE): Likewise.
39914         (__ASSUME_O_CLOEXEC): Likewise.
39915         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39916         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39917         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39918         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39919         (__ASSUME_IN_NONBLOCK): Likewise.
39920         (__ASSUME_PIPE2): Likewise.
39921         (__ASSUME_EVENTFD2): Likewise.
39922         (__ASSUME_SIGNALFD4): Likewise.
39923         (__ASSUME_DUP3): Likewise.
39924         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39925         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39926         (__ASSUME_AT_RANDOM): Likewise.
39927         (__ASSUME_PREADV): Likewise.
39928         (__ASSUME_PWRITEV): Likewise.
39929         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39930         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39931         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39932         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39933         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39934         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39935         (__ASSUME_O_CLOEXEC): Define unconditionally.
39936         (__ASSUME_PSELECT): Do not undefine conditionally.
39937         (__ASSUME_PPOLL): Likewise.
39938         (__ASSUME_ATFCTS): Likewise.
39939         (__ASSUME_SET_ROBUST_LIST): Likewise.
39940         (__ASSUME_UTIMENSAT): Likewise.
39941         (__ASSUME_FDATASYNC): Define unconditionally.
39942         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39943         (__ASSUME_SIGFRAME_V2): Likewise.
39944         )__ASSUME_EVENTFD2): Likewise.
39945         (__ASSUME_SIGNALFD4): Likewise.
39946         (__ASSUME_PSELECT): Do not undefine conditionally.
39947         (__ASSUME_PPOLL): Likewise.
39948         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39949         (__ASSUME_PSELECT): Define unconditionally.
39950         (__ASSUME_PPOLL): Likewise.
39951         (__ASSUME_O_CLOEXEC): Likewise.
39952         (__ASSUME_SOCK_CLOEXEC): Likewise.
39953         (__ASSUME_IN_NONBLOCK): Likewise.
39954         (__ASSUME_PIPE2): Likewise.
39955         (__ASSUME_EVENTFD2): Likewise.
39956         (__ASSUME_SIGNALFD4): Likewise.
39957         (__ASSUME_DUP3): Likewise.
39958         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39959         (__ASSUME_O_CLOEXEC): Likewise.
39960         (__ASSUME_SOCK_CLOEXEC): Likewise.
39961         (__ASSUME_IN_NONBLOCK): Likewise.
39962         (__ASSUME_PIPE2): Likewise.
39963         (__ASSUME_EVENTFD2): Likewise.
39964         (__ASSUME_SIGNALFD4): Likewise.
39965         (__ASSUME_DUP3): Likewise.
39966         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39967         (__ASSUME_EVENTFD2): Likewise.
39968         (__ASSUME_SIGNALFD4): Likewise.
39969         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39970
39971 2014-05-12  Andreas Schwab  <schwab@suse.de>
39972
39973         [BZ #16932]
39974         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39975         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39976         than maximum RPC packet size.
39977         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39978         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39979         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39980         (_nss_nis_getservbyport_r): Likewise.
39981
39982 2014-05-12  Will Newton  <will.newton@linaro.org>
39983
39984         * malloc/Makefile (tests): Add tst-mallopt.
39985         * malloc/tst-mallopt.c: New file.
39986
39987 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39988
39989         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39990         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39991
39992 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39993
39994         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39995         (tst-tlsmod6.so): Likewise.
39996
39997 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39998
39999         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
40000
40001 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
40002
40003         [BZ #16064]
40004         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
40005         and <dl-procinfo.h>.
40006         (__fegetenv): Save SSE state in envp->__eip if supported.
40007         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
40008         envp->__eip if supported.
40009         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
40010         and <dl-procinfo.h>.
40011         (__fesetenv): Always set __eip, __cs_selector, __opcode,
40012         __data_offset and __data_selector in environment to 0.  Set SSE
40013         state if supported.
40014         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
40015         test-fenv-sse.
40016         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
40017         -mfpmath=sse.
40018         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
40019
40020 2014-05-09  Will Newton  <will.newton@linaro.org>
40021
40022         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
40023         and libc_relro_required for ARM.
40024         * sysdeps/arm/preconfigure: Regenerate.
40025
40026 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40027             Stefan Liebler  <stli@linux.vnet.ibm.com>
40028
40029         * config.make.in (enable-lock-elision): New Makefile variable.
40030         * configure.ac: Likewise.
40031         * configure: Regenerate.
40032         * sysdeps/s390/configure.ac:
40033         Add check for gcc transactions support.
40034         * sysdeps/s390/configure: Regenerate.
40035         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
40036         Build elision files if enabled.
40037         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
40038         Add lock elision support for s390.
40039         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
40040         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
40041         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
40042         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
40043         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
40044         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
40045         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
40046         Likewise.
40047         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
40048         Likewise.
40049         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
40050         Likewise.
40051         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
40052         Likewise.
40053         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
40054         (__lll_timedlock_elision, __lll_lock_elision)
40055         (__lll_unlock_elision, __lll_trylock_elision)
40056         (lll_timedlock_elision, lll_lock_elision)
40057         (lll_unlock_elision, lll_trylock_elision): Add.
40058         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40059         (pthread_mutex_t): Add lock elision support for s390.
40060
40061 2014-05-14  Wilco  <wdijkstr@arm.com>
40062
40063         * sysdeps/arm/fclrexcpt.c: Cleanup.
40064         * sysdeps/arm/fedisblxcpt.c: Cleanup.
40065         * sysdeps/arm/feenablxcpt.c: Cleanup.
40066         * sysdeps/arm/fegetenv.c: Cleanup.
40067         * sysdeps/arm/fegetexcept.c: Cleanup.
40068         * sysdeps/arm/fegetround.c: Cleanup.
40069         * sysdeps/arm/feholdexcpt.c: Cleanup.
40070         * sysdeps/arm/fesetenv.c: Cleanup.
40071         * sysdeps/arm/fesetround.c: Cleanup.
40072         * sysdeps/arm/feupdateenv.c: Cleanup.
40073         * sysdeps/arm/fgetexcptflg.c: Cleanup.
40074         * sysdeps/arm/fraiseexcpt.c: Cleanup.
40075         * sysdeps/arm/fsetexcptflg.c: Cleanup.
40076         * sysdeps/arm/ftestexcept.c: Cleanup.
40077         * sysdeps/arm/get-rounding-mode.h: Cleanup.
40078         * sysdeps/arm/setfpucw.c: Cleanup.
40079
40080 2014-05-09  Will Newton  <will.newton@linaro.org>
40081
40082         * sysdeps/arm/armv7/strcmp.S: New file.
40083         * NEWS: Mention addition of ARMv7 optimized strcmp.
40084
40085 2014-05-08  Roland McGrath  <roland@hack.frob.com>
40086
40087         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
40088         look for %.ac rather than %.in.
40089
40090         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
40091         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
40092         * sysdeps/mach/hurd/configure: Regenerated.
40093         * sysdeps/unix/sysv/linux/configure: Regenerated.
40094
40095         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
40096
40097 2014-05-07  Steve Ellcey  <sellcey@mips.com>
40098
40099         [BZ# 16922]
40100         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
40101         (LONG_SUB): Ditto.
40102         (PTR_SUB): Ditto.
40103
40104 2014-05-07  Andreas Schwab  <schwab@suse.de>
40105
40106         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
40107         when skipping over non-matching result from nscd.
40108
40109 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
40110
40111         [BZ #16876]
40112         * nptl/sockperf.c (client): Check socket return value.
40113
40114         [BZ #16877]
40115         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
40116         nscd security class.
40117
40118 2014-05-06  Roland McGrath  <roland@hack.frob.com>
40119
40120         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
40121         * sysdeps/arm/unwind.h: ... here.
40122
40123 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
40124
40125         [BZ# 16916]
40126         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
40127         Define.
40128
40129 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
40130
40131         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
40132         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
40133         multiarch strncpy for PPC64.
40134         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
40135         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
40136         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
40137         multiarch optimizations.
40138         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40139         (__libc_ifunc_impl_list): Likewise.
40140         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
40141         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
40142         multiarch stpncpy for PPC64.
40143         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
40144         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
40145
40146 2014-05-06  Andreas Schwab  <schwab@suse.de>
40147
40148         [BZ #16912]
40149         * gmon/mcount.c (_MCOUNT_DECL): Use
40150         atomic_compare_and_exchange_bool_acq instead of
40151         catomic_compare_and_exchange_bool_acq.
40152
40153 2014-05-05  Roland McGrath  <roland@hack.frob.com>
40154
40155         * elf/Makefile (others, install-bin): Remove pldd.
40156         (pldd-modules): Variable removed.
40157         ($(objpfx)pldd): Target removed.
40158         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
40159         (others, install-bin): Append pldd here.
40160         ($(objpfx)pldd): New target.
40161
40162         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
40163         to 0, so the first #if test emitted later doesn't see it undefined.
40164         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
40165         * sysdeps/gnu/errlist.c: Regenerated.
40166
40167 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40168
40169         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
40170         [libc_hidden_builtin_def]: Define to empty value.
40171         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
40172         [libc_hidden_builtin_def]: Likewise.
40173         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
40174         [libc_hidden_builtin_def]: Likewise.
40175         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
40176         [libc_hidden_builtin_def]: Likewise.
40177         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
40178         __redirect_memcpy and define ifunc as default hidden symbol.
40179         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
40180         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
40181
40182 2014-05-04  Adam Conrad  <adconrad@0c3.net>
40183
40184         * locale/iso-4217.def: Reintroduce XDR currency.
40185
40186 2014-05-04  Allan McRae  <allan@archlinux.org>
40187
40188         * po/eo.po: Update Esperanto translation from translation project.
40189
40190 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
40191
40192         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
40193         and FEATURE_INDEX_MAX to 1.
40194         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
40195
40196 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40197
40198         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
40199         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
40200         * iconvdata/big5.c (ONE_DIRECTION): Define.
40201         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
40202         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
40203         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
40204         * iconvdata/cp932.c (ONE_DIRECTION): Define.
40205         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
40206         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
40207         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
40208         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
40209         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
40210         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
40211         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
40212         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
40213         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
40214         * iconvdata/gbk.c (ONE_DIRECTION): Define.
40215         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
40216         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
40217         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
40218         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
40219         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
40220         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
40221         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
40222         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
40223         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
40224         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
40225         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
40226         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
40227         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
40228         * iconvdata/iso646.c (ONE_DIRECTION): Define.
40229         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
40230         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
40231         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
40232         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
40233         * iconvdata/johab.c (ONE_DIRECTION): Define.
40234         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
40235         * iconvdata/sjis.c (ONE_DIRECTION): Define.
40236         * iconvdata/t.61.c (ONE_DIRECTION): Define.
40237         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
40238         * iconvdata/tscii.c (ONE_DIRECTION): Define.
40239         * iconvdata/uhc.c (ONE_DIRECTION): Define.
40240         * iconvdata/unicode.c (ONE_DIRECTION): Define.
40241         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
40242         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
40243         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
40244
40245 2014-05-01  Roland McGrath  <roland@hack.frob.com>
40246
40247         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
40248         (_IO_JUMPS_OFFSET): Define to 0.
40249
40250         * nptl/sysdeps/pthread/bits/libc-lock.h
40251         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
40252         (__libc_lock_define_initialized_recursive): Always define using
40253         initializer.  Modern compilers treat uninitialized (implicit zero) and
40254         explicit zero initializers the same (i.e. put the datum in bss).
40255
40256 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40257
40258         * nscd/nscd-client.h: Include <string.h>.
40259
40260 2014-05-01  David S. Miller  <davem@davemloft.net>
40261
40262         [BZ #16885]
40263         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
40264         multiple zero bytes exist at the end of a string.
40265         Reported by Aurelien Jarno <aurelien@aurel32.net>
40266
40267         * string/test-strcmp.c (check): Add explicit test for situations where
40268         there are multiple zero bytes after the first.
40269
40270 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40271
40272         [BZ #16890]
40273         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
40274         when compiling wprintf.
40275         * stdio-common/tstdiomisc.c (t3): New function.
40276         (main): Call it.
40277
40278 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40279
40280         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
40281         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
40282         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
40283         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
40284
40285 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40286
40287         * stdlib/longlong.h: Updated from GCC.
40288
40289 2014-05-01  Will Newton  <will.newton@linaro.org>
40290             Bernard Ogden  <bernie.ogden@linaro.org>
40291
40292         * NEWS: Update fixed bug list.
40293
40294         [BZ #15119]
40295         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
40296
40297 2014-04-30  David S. Miller  <davem@davemloft.net>
40298
40299         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
40300         (libc_feholdexcept_setround_sparc_ctx): New function.
40301         (libc_fesetenv_sparc_ctx): Likewise.
40302         (libc_feupdateenv_sparc_ctx): Likewise.
40303         (libc_feholdsetround_sparc_ctx): Likewise.
40304         (libc_feholdexcept_setround_ctx): Define.
40305         (libc_feholdexcept_setroundf_ctx): Likewise.
40306         (libc_feholdexcept_setroundl_ctx): Likewise.
40307         (libc_fesetenv_ctx): Likewise.
40308         (libc_fesetenvf_ctx): Likewise.
40309         (libc_fesetenvl_ctx): Likewise.
40310         (libc_feupdateenv_ctx): Likewise.
40311         (libc_feupdateenvf_ctx): Likewise.
40312         (libc_feupdateenvl_ctx): Likewise.
40313         (libc_feresetround_ctx): Likewise.
40314         (libc_feresetroundf_ctx): Likewise.
40315         (libc_feresetroundl_ctx): Likewise.
40316         (libc_feholdsetround_ctx): Likewise.
40317         (libc_feholdsetroundf_ctx): Likewise.
40318         (libc_feholdsetroundl_ctx): Likewise.
40319
40320         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40321         with __USE_GNU instead of XOPEN cpp guards.
40322
40323         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
40324         0.
40325
40326         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40327         with XOPEN cpp guards.
40328
40329 2014-04-30  Julian Brown  <julian@codesourcery.com>
40330
40331         [BZ #16888]
40332         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
40333         handling.
40334
40335 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
40336
40337         [BZ #9894]
40338         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
40339         Change to 2.6.32.
40340         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
40341         * sysdeps/unix/sysv/linux/configure: Regenerated.
40342         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
40343         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
40344         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
40345         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
40346         * README: Update reference to required Linux kernel version.
40347         * manual/install.texi (Linux): Update reference to required Linux
40348         kernel headers version.
40349         * INSTALL: Regenerated.
40350
40351         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
40352         header inclusion.
40353         [POSIX] (limits.h): Likewise.
40354         [POSIX] (math.h): Likewise.
40355         [POSIX] (sys/wait.h): Likewise.
40356         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
40357         function.
40358         [POSIX] (stddef.h): Do not allow header inclusion.
40359
40360 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40361
40362         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
40363
40364 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
40365
40366         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
40367         Return immediately after lll_futex_wake.
40368
40369 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40370
40371         [BZ #16791]
40372         * nscd/nscd-client.h (datahead_init_common): Initialize entire
40373         structure.
40374         (datahead_init_pos): Call datahead_init_common early.
40375         (datahead_init_neg): Likewise.
40376
40377         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
40378         datahead_init_neg): New functions.
40379         * nscd/aicache.c (addhstaiX): Use them.
40380         * nscd/grpcache.c (cache_addgr): Likewise.
40381         * nscd/hstcache.c (cache_addhst): Likewise.
40382         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40383         * nscd/netgroupcache.c (do_notfound): Likewise.
40384         (addgetnetgrentX): Likewise.
40385         (addinnetgrX): Likewise.
40386         * nscd/pwdcache.c (cache_addpw): Likewise.
40387         * nscd/servicescache.c (cache_addserv): Likewise.
40388
40389 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40390             Atsushi Onoe  <atsushi@onoe.org>
40391
40392         [BZ #14308]
40393         [BZ #12994]
40394         [BZ #13651]
40395         * resolv/res_query.c (__libc_res_nsearch): Return if at least
40396         one response is valid.
40397         * resolv/res_send.c (send_dg): Check for validity of other
40398         response if the current response is a referral.
40399
40400 2014-04-29  Steve Ellcey  <sellcey@mips.com>
40401
40402         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
40403
40404 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
40405
40406         [BZ #16823]
40407         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
40408         Always divide by positive zero when computing -Inf result.
40409         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
40410         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
40411
40412 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40413
40414         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
40415         FPSCR if value do not change.
40416         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
40417         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
40418         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
40419         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
40420         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
40421         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
40422         function.
40423
40424 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
40425
40426         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
40427         * sysdeps/unix/sysv/linux/hppa: Move directory from
40428         ports/systeps/unix/sysv/linux/hppa.
40429         * README: Update listing for hppa-*-linux-gnu.
40430
40431 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
40432
40433         [BZ #16754]
40434         * manual/stdio.texi (Hook functions): Fix types of stream hook
40435         functions.
40436         [BZ #16854]
40437         * socket/sys/socket.h: Fix typo in comment.
40438
40439 2014-04-28  Wilco  <wdijkstr@arm.com>
40440
40441         * sysdeps/arm/fenv_private.h: New file.
40442         * sysdeps/arm/math_private.h: New file.
40443         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
40444
40445 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
40446
40447         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
40448         with __int128_t.
40449         (La_x86_64_retval): Likewise.
40450
40451 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
40452
40453         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
40454         fpsr if value didn't change.
40455         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
40456         to fpcr if value didn't change.
40457         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
40458         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
40459         fpsr or fpcr if value didn't change.
40460         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
40461         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
40462         fpcr if value didn't change.
40463         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
40464         to fpsr if value didn't change.
40465
40466 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
40467
40468         * nptl/tst-sem3.c: Use test-skeleton.c
40469         (main): Rename to do_test.  Use return instead of
40470         exit.
40471         * nptl/tst-sem4.c: Use test-skeleton.c
40472         (main): Rename to do_test.
40473
40474 2014-04-22  David S. Miller  <davem@davemloft.net>
40475
40476         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
40477         (struct sigaction): New struct member __glibc_reserved0, change
40478         type of sa_flags to int.
40479
40480 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
40481
40482         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
40483         (COUNT_LEADING_ZEROS_0): Define for AArch64.
40484
40485 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
40486
40487         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
40488         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
40489
40490 2014-04-22  Will Newton  <will.newton@linaro.org>
40491             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40492
40493         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
40494         (__longjmp): Add longjmp and longjmp_target SystemTap
40495         probes.
40496         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
40497         (__sigsetjmp): Add setjmp SystemTap probe.
40498
40499 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
40500
40501         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
40502         match manual order.
40503
40504 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40505
40506         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
40507
40508         * sysdeps/powerpc/fpu/fenv_private.h
40509         (libc_feholdexcept_setroundl_ctx): Define to
40510         libc_feholdexcept_setround_ppc_ctx.
40511         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
40512         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
40513         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
40514         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
40515
40516 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40517
40518         * sysdeps/aarch64/math-tests.h: New file.
40519
40520 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
40521
40522         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
40523         New.
40524         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
40525         Check and set bit_AVX2_Usable.
40526         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
40527         macro.
40528         (bit_AVX2): Likewise.
40529         (index_AVX2_Usable): Likewise.
40530         (CPUID_AVX2): Likewise.
40531         (HAS_AVX2): Likewise.
40532
40533 2014-04-17  Will Newton  <will.newton@linaro.org>
40534
40535         * manual/setjmp.texi (System V contexts): Add note that
40536         calling setcontext on a context created by a call to a
40537         signal handler is undefined.  Update text to note that
40538         setcontext from a signal handler is possible but not
40539         recommended.
40540
40541         [BZ #16629]
40542         * stdlib/tst-setcontext.c: Include signal.h.
40543         (main): Check that the signal stack before and
40544         after swapcontext is the same.
40545
40546         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
40547         Re-implement to restore registers in user code and avoid
40548         rt_sigreturn system call.
40549
40550 2014-04-17  Wilco  <wdijkstr@arm.com>
40551
40552         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40553         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40554         * math/test-fenv.c: Skip exception trap tests on targets which only
40555         support non-stop mode.
40556
40557 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40558             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40559
40560         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40561         (libc_feholdsetround_aarch64_ctx)
40562         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40563         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40564         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40565         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40566         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40567         (libc_feresetround_noexl_ctx): Define.
40568
40569 2014-04-16  Richard Henderson  <rth@redhat.com>
40570
40571         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40572
40573         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40574         unwind tables.
40575
40576         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40577         const from the non-libc, non-ldso copy.
40578
40579         * sysdeps/alpha/libm-test-ulps: Regenerate.
40580
40581 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40582             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40583
40584         * sysdeps/aarch64/fpu/math_private.h: New file.
40585
40586 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40587
40588         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40589
40590 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40591
40592         [BZ #16275]
40593         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40594         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40595         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40596         Intel MPX bound registers before _dl_profile_fixup.
40597         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40598         registers after _dl_profile_fixup.  Save and restore bound
40599         registers bnd0/bnd1 when calling _dl_call_pltexit.
40600         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40601         (LR_BND_OFFSET): Likewise.
40602         (LRV_BND0_OFFSET): Likewise.
40603         (LRV_BND1_OFFSET): Likewise.
40604
40605 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40606
40607         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40608         to...
40609         * sysdeps/mach/hurd/i386/tls.h: ... here.
40610         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40611         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40612         fields.
40613
40614 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40615
40616         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40617
40618 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40619
40620         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40621
40622 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40623
40624         [BZ #14770]
40625         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40626         * sysdeps/s390/configure: Regenerate.
40627
40628         [BZ #16824]
40629         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40630         Set round-to-nearest internally to reduce error accumulation.
40631
40632 2014-04-16  Alan Modra  <amodra@gmail.com>
40633
40634         [BZ #16740]
40635         [BZ #16619]
40636         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40637         * math/libm-test.inc (frexp_test_data): Add tests.
40638         * NEWS: Update fixed bug list.
40639
40640 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40641
40642         * benchtests/Makefile: Depend on libraries in build directory.
40643         (bench-math): Separate out math tests.
40644         (bench-pthread): Separate out pthread tests.
40645         (bench): Include math and pthread tests.
40646
40647 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40648
40649         [BZ #16831]
40650         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40651         _dl_debug_initialize.
40652
40653         * configure.ac: Remove SELinux header check.
40654         * configure: Regenerate.
40655         * nscd/selinux.c (perms): Array of const char* to permission names.
40656         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40657         default policy. Call string_to_security_class and string_to_av_perm to
40658         translate strings. Enforce default policy and call avs_has_perm with
40659         results of translated strings.
40660
40661 2014-04-13  David S. Miller  <davem@davemloft.net>
40662
40663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40664
40665 2014-04-12  Allan McRae  <allan@archlinux.org>
40666
40667         [BZ #16838]
40668         * manual/string.texi (Collation Functions): Fix qsort argument
40669         order in example.
40670         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40671
40672 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40673
40674         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40675         Make the test a no-op if there are no exceptions defined.
40676
40677 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40678
40679         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40680         enable-hardcoded-path-in-tests
40681
40682 2014-04-11  Will Newton  <will.newton@linaro.org>
40683
40684         * benchtests/Makefile (extra-objs): Add json-lib.o.
40685         (bench-func): Tidy up JSON output.
40686         * benchtests/bench-skeleton.c: Include json-lib.h.
40687         (main): Use JSON library functions to do output of
40688         benchmark results.
40689         * benchtests/bench-timing-type.c (main): Output the
40690         timing type simply, leaving formatting to the user.
40691         * benchtests/json-lib.c: New file.
40692         * benchtests/json-lib.h: Likewise.
40693
40694 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40695
40696         [BZ #15215]
40697         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40698         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40699         memory barriers.  Add comments.
40700         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40701         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40702         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40703         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40704         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40705         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40706
40707 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40708
40709         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40710         * sysdeps/s390/s390-64/configure.ac: ... this ...
40711         * sysdeps/s390/configure.ac: ... to here.
40712         * sysdeps/s390/s390-32/configure: Delete file.
40713         * sysdeps/s390/s390-64/configure: Delete file.
40714         * sysdeps/s390/configure: Regenerate.
40715
40716 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40717
40718         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40719
40720 2014-04-11  Will Newton  <will.newton@linaro.org>
40721
40722         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40723         to zero if it is not defined elsewhere.  (mtrim): Test
40724         the value of MALLOC_DEBUG with #if rather than #ifdef.
40725
40726 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40727
40728         * benchtests/pthread_once-inputs: New file.
40729         * benchtests/pthread_once-source.c: New file.
40730         * benchtests/README: Update documentation.
40731
40732 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40733             H.J. Lu  <hongjiu.lu@intel.com>
40734
40735         [BZ #16275]
40736         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40737         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40738         * sysdeps/x86_64/configure: Regenerated.
40739         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40740         macro.
40741         (REGISTER_SAVE_RAX): Likewise.
40742         (REGISTER_SAVE_RCX): Likewise.
40743         (REGISTER_SAVE_RDX): Likewise.
40744         (REGISTER_SAVE_RSI): Likewise.
40745         (REGISTER_SAVE_RDI): Likewise.
40746         (REGISTER_SAVE_R8): Likewise.
40747         (REGISTER_SAVE_R9): Likewise.
40748         (REGISTER_SAVE_BND0): Likewise.
40749         (REGISTER_SAVE_BND1): Likewise.
40750         (REGISTER_SAVE_BND2): Likewise.
40751         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40752         bound registers when calling _dl_fixup.
40753
40754 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40755
40756         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40757         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40758         of its definition.
40759         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40760         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40761         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40762         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40763         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40764         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40765         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40766
40767 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40768
40769         [BZ #15514]
40770         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40771         pathconf(_PC_NAME_MAX).
40772
40773 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40774
40775         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40776         Remove macro usage.
40777         (__PTHREAD_SPINS): Move definition to ...
40778         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40779         (__PTHREAD_SPINS): ... here.
40780         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40781         (__PTHREAD_SPIN): Likewise.
40782         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40783         (__PTHREAD_SPIN): Likewise.
40784         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40785         (__PTHREAD_SPIN): Likewise.
40786         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40787         (__PTHREAD_SPIN): Likewise.
40788         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40789         (__PTHREAD_SPIN): Likewise.
40790         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40791         (__PTHREAD_SPIN): Likewise.
40792         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40793         (__PTHREAD_SPIN): Likewise.
40794         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40795         (__PTHREAD_SPIN): Likewise.
40796         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40797         (__PTHREAD_SPIN): Likewise.
40798         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40799         (__PTHREAD_SPIN): Likewise.
40800         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40801         (__PTHREAD_SPIN): Likewise.
40802         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40803         (__PTHREAD_SPIN): Likewise.
40804
40805         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40806         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40807         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40808         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40809         imply folder.
40810         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40811         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40812         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40813         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40814         correct imply path.
40815         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40816         strlen symbol for non multi-arch builds.
40817         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40818         missing hidden_def and weak_alias.
40819
40820 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40821
40822         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40823
40824 2014-04-07  Will Newton  <will.newton@linaro.org>
40825
40826         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40827         and contents.  [!_LIBC] Remove #ifndef and contents.
40828         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40829         * string/memccpy.c (__memccpy): Use ANSI prototype.
40830         * string/memfrob.c (memfrob): Likewise.
40831         * string/strcoll.c (STRCOLL): Likewise.
40832         * string/strlen.c (strlen): Likewise.
40833         * string/strtok.c (STRTOK): Likewise.
40834         * string/strcat.c: Remove unused #include of memcopy.h.
40835         (strcat): Use ANSI prototype.
40836         * string/strchr.c: Remove unused #include of memcopy.h.
40837         (strchr): Use ANSI prototype.
40838         * string/strcmp.c: Remove unused #include of memcopy.h.
40839         (strcmp): Use ANSI prototype.
40840         * string/strcpy.c: Remove unused #include of memcopy.h.
40841         (strcpy): Use ANSI prototype.
40842
40843 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40844
40845         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40846         * config.make.in (config-extra-cppflags): Set it from
40847         libc_extra_cppflags.
40848         * configure.ac (libc_extra_cflags): Make it accumulate over
40849         configure fragments.
40850         (libc_extra_cppflags): New flag.
40851         * configure. Regenerate.
40852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40853         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40854         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40856
40857         [BZ #16815]
40858         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40859         result for FE_DOWNWARD rounding mode.
40860         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40861         Likewise.
40862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40863
40864 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40865
40866         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40867         in function argument name.
40868
40869 2014-04-03  David Svoboda  <svoboda@cert.org>
40870
40871         [BZ #5666]
40872         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40873         explicitly.
40874
40875 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40876
40877         * elf/dl-unmap-segments.h: New file.
40878         * sysdeps/generic/ldsodefs.h
40879         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40880         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40881         * elf/dl-fptr.c: Likewise.
40882         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40883         * sysdeps/aarch64/tlsdesc.c: Likewise.
40884         * sysdeps/arm/tlsdesc.c: Likewise.
40885         * sysdeps/i386/tlsdesc.c: Likewise.
40886         * sysdeps/tile/dl-runtime.c: Likewise.
40887         * sysdeps/x86_64/tlsdesc.c: Likewise.
40888         * elf/dl-load.h: New file.
40889         * elf/dl-load.c: Include it.
40890         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40891         Macros moved to dl-load.h.
40892         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40893         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40894         Use _dl_unmap_segments in place of __munmap.
40895         Break out segment-mapping loop into ...
40896         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40897
40898 2014-04-03  Will Newton  <will.newton@linaro.org>
40899
40900         * elf/dl-lookup.c (do_lookup_x): Remove comment
40901         referring to nested function and move variable
40902         declarations down to before first use.
40903
40904 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40905
40906         [BZ #16799]
40907         [BZ #16800]
40908         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40909         with 0 numerator.
40910         * math/s_catanf.c (__catanf): Likewise.
40911         * math/s_catanh.c (__catanh): Likewise.
40912         * math/s_catanhf.c (__catanhf): Likewise.
40913         * math/s_catanhl.c (__catanhl): Likewise.
40914         * math/s_catanl.c (__catanl): Likewise.
40915         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40916         by positive zero when computing -Inf result.
40917         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40918         (catanh_test): Likewise.
40919         * sysdeps/i386/fpu/libm-test-ulps: Update.
40920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40921
40922         [BZ #16789]
40923         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40924         instead of using underflowing value in computing result.
40925         * math/s_clog10.c (__clog10): Likewise.
40926         * math/s_clog10f.c (__clog10f): Likewise.
40927         * math/s_clog10l.c (__clog10l): Likewise.
40928         * math/s_clogf.c (__clogf): Likewise.
40929         * math/s_clogl.c (__clogl): Likewise.
40930         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40931         (clog10_test): Likewise.
40932         * sysdeps/i386/fpu/libm-test-ulps: Update.
40933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40934
40935 2014-04-02  Alan Modra  <amodra@gmail.com>
40936
40937         [BZ #16739]
40938         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40939         output when value is near a power of two.  Use int64_t for lx and
40940         remove casts.  Use decimal rather than hex exponent constants.
40941         Don't use long double multiplication when double will suffice.
40942         * math/libm-test.inc (nextafter_test_data): Add tests.
40943         * NEWS: Add 16739 and 16786 to bug list.
40944
40945         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40946
40947         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40948
40949 2014-04-01  Will Newton  <will.newton@linaro.org>
40950
40951         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40952         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40953
40954 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40955
40956         [BZ #13347]
40957         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40958         * nptl/tst-setuid2.c: New file.
40959         * nptl/Makefile (xtests): Add tst-setuid2.
40960
40961 2014-04-01  Alan Modra  <amodra@gmail.com>
40962
40963         [BZ #16786]
40964         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40965
40966 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40967
40968         [BZ #6803]
40969         [BZ #6804]
40970         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40971         set errno as appropriate.
40972         * math/w_scalbf.c (__scalbf): Likewise.
40973         * math/w_scalbl.c (__scalbl): Likewise.
40974         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40975         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40976         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40977         Add more NaN tests.
40978
40979         [BZ #16349]
40980         * math/w_atan2.c: Include <errno.h>.
40981         (__atan2): Set errno for result underflowing to zero.
40982         * math/w_atan2f.c: Include <errno.h>.
40983         (__atan2f): Set errno for result underflowing to zero.
40984         * math/w_atan2l.c: Include <errno.h>.
40985         (__atan2l): Set errno for result underflowing to zero.
40986         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40987         tests.
40988         * math/auto-libm-test-out: Regenerated.
40989
40990 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40991
40992         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40993         Encode instruction correctly in little endian.
40994         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40995         Likewise.
40996         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40997         Likewise.
40998         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40999         Likewise.
41000         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
41001         Likewise.
41002
41003 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
41004
41005         [BZ #9894]
41006         * sysdeps/unix/sysv/linux/kernel-features.h
41007         [__sparc__ && !__arch64__ && !__sparc_v9__]
41008         (__ASSUME_SET_ROBUST_LIST): Do not define.
41009         [__sparc__ && !__arch64__ && !__sparc_v9__]
41010         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41011         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
41012         Likewise.
41013         * sysdeps/unix/sysv/linux/arm/kernel-features.h
41014         (__ASSUME_FUTEX_LOCK_PI): Undefine.
41015         (__ASSUME_REQUEUE_PI): Likewise.
41016         (__ASSUME_SET_ROBUST_LIST): Likewise.
41017         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
41018         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
41019         Undefine.
41020         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41021         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
41022         Likewise.
41023         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
41024         Likewise.
41025         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
41026         Likewise.
41027         * sysdeps/unix/sysv/linux/mips/kernel-features.h
41028         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
41029         Undefine.
41030         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
41031         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
41032         Likewise.
41033
41034         [BZ #16648]
41035         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41036         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
41037         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
41038
41039 2014-03-31  Will Newton  <will.newton@linaro.org>
41040
41041         * benchtests/Makefile (bench): Add ffs and ffsll to list
41042         of tests.
41043         * benchtests/ffs-inputs: New file.
41044         * benchtests/ffsll-inputs: Likewise.
41045
41046 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
41047
41048         [BZ #16770]
41049         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
41050         too large before casting to int.
41051         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
41052         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
41053         * math/libm-test.inc (scalb_test_data): Add more tests.
41054
41055 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41056
41057         * benchtests/Makefile (DETAILED_OPT): New make option.
41058         (bench-func): Run benchmark program with -d if DETAILED_OPT is
41059         set.
41060         * benchtests/bench-skeleton.c: Include stdbool.h.
41061         (main): Store and print timings per input.
41062         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
41063         member to each argument value.
41064         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
41065         (_print_arg_data): Initialize per-input timing to 0.
41066
41067         * benchtests/Makefile (timing-type): New binary.
41068         (bench-clean): Also remove bench-timing-type.
41069         (bench): New target for timing-type.
41070         (bench-func): Print output in JSON format.
41071         * benchtests/bench-skeleton.c (main): Print output in JSON
41072         format.
41073         * benchtests/bench-timing-type.c: New file.
41074         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
41075         (TIMING_PRINT_STATS): Remove.
41076         * benchtests/scripts/bench.py (_print_arg_data): Store variant
41077         name separately.
41078
41079         * benchtests/bench-modf.c: Remove.
41080         * benchtests/modf-inputs: New inputs file.
41081
41082 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
41083
41084         [BZ #16362]
41085         * math/s_clog10.c (M_PI_LOG10E): New macro.
41086         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
41087         imaginary parts are 0.
41088         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
41089         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
41090         imaginary parts are 0.
41091         * math/s_clog10l.c (M_PI_LOG10El): New macro.
41092         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
41093         imaginary parts are 0.
41094         * math/libm-test.inc (clog10_test_data): Update expected results
41095         for when real and imaginary parts are 0.
41096
41097 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
41098
41099         * elf/dl-load.c: Finish conversion of __builtin_expect into
41100         __glibc_{un}likely.
41101
41102 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
41103
41104         [BZ #16348]
41105         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
41106         1+x for argument with exponent below -67.
41107         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
41108         Likewise.
41109         * math/auto-libm-test-in: Add more tests of exp.
41110         * math/auto-libm-test-out: Regenerated.
41111
41112 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
41113
41114         [BZ #16759]
41115         * inet/getnetgrent_r.c (get_nonempty_val): New function.
41116         (nscd_getnetgrent): Use it.
41117
41118         [BZ #16760]
41119         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
41120         of stpcpy.
41121
41122 2014-03-27  Andi Kleen  <ak@linux.intel.com>
41123
41124         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
41125         (lll_robust_lock, lll_cond_lock, lll_timedlock)
41126         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
41127         (lll_robust_unlock): Remove out of line section. Use cfi
41128         intrinsics.
41129         (LLL_STUB_UNWIND_INFO*): Remove.
41130         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
41131         (lll_robust_lock, lll_cond_lock, lll_timedlock)
41132         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
41133         (lll_robust_unlock): Remove out of line section. Use cfi
41134         intrinsics.
41135         (LLL_STUB_UNWIND_INFO*): Remove.
41136
41137 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
41138
41139         [BZ #16758]
41140         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
41141         blank values.
41142
41143 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
41144
41145         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
41146
41147 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
41148
41149         [BZ #16198]
41150         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
41151         fnstenv.
41152         * math/test-fenv-preserve.c: New file.
41153         * math/Makefile (tests): Add test-fenv-preserve.
41154
41155 2014-03-26  Will Newton <will.newton@linaro.org>
41156
41157         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
41158
41159 2014-03-25  Roland McGrath  <roland@hack.frob.com>
41160
41161         * scripts/versionlist.awk: Partition the version sets and emit all
41162         GLIBC_* (sorted) before all others (sorted).
41163
41164 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
41165
41166         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
41167         GLIBC_2.2.5 version.
41168
41169 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41170
41171         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
41172         calls.
41173
41174         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
41175         previous change.
41176
41177         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41178
41179 2014-03-25  Andreas Schwab  <schwab@suse.de>
41180
41181         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
41182         label to be used after in6ailist is initialized.
41183
41184 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41185
41186         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
41187         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41188
41189 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
41190
41191         [BZ #16357]
41192         [BZ #16599]
41193         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
41194         min_plus_half.
41195         (fp_formats): Update initializers.
41196         (init_fp_formats): Initialize new field.
41197         (output_for_one_input_case): Allow underflow for results up to
41198         min_plus_half.
41199         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
41200         * math/auto-libm-test-in: Don't mark some underflows from asin and
41201         atanh as spurious.
41202         * math/auto-libm-test-out: Regenerated.
41203         * sysdeps/i386/fpu/libm-test-ulps: Update.
41204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41205
41206 2014-03-25  Andreas Schwab  <schwab@suse.de>
41207
41208         * libio/Makefile (tst-ftell-partial-wide-ENV)
41209         (tst-ftell-active-handler-ENV): Define.
41210
41211 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
41212
41213         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
41214
41215 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41216
41217         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
41218
41219 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41220
41221         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
41222         * sysdeps/x86_64/fpu/multiarch/e_exp.c
41223         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
41224
41225 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41226
41227         [BZ #16634]
41228         * elf/dl-load.c (open_verify): Add mode parameter.
41229         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
41230         (open_path): Change from boolean 'secure' to complete flag 'mode'
41231         (_dl_map_object): Adjust.
41232         * elf/Makefile (tests): Add tst-dlopen-aout.
41233         * elf/tst-dlopen-aout.c: New test.
41234
41235 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
41236
41237         [BZ #16714]
41238         * sysdeps/unix/sysv/linux/s390/bits/stat.h
41239         (struct stat): Rename member pad0 to __glibc_reserved0.
41240
41241         [BZ #16712]
41242         * sysdeps/s390/s390-32/bits/wordsize.h
41243         (__WORDSIZE32_SIZE_ULONG): New define.
41244         * sysdeps/s390/s390-64/bits/wordsize.h
41245         (__WORDSIZE32_SIZE_ULONG): Likewise.
41246         * sysdeps/generic/stdint.h (SIZE_MAX):
41247         Define as UL if __WORDSIZE32_SIZE_ULONG.
41248
41249         [BZ #16713]
41250         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
41251         (__glibc_reserved0): New variable.
41252         (sa_flags): Change type to int.
41253
41254         * posix/Makefile (before-compile): Use += before-compile instead
41255         of a :=.
41256
41257         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41258         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41259
41260 2014-03-20  Andreas Schwab  <schwab@suse.de>
41261
41262         [BZ #16743]
41263         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
41264         non-matching result from nscd.
41265
41266 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41267
41268         * scripts/bench.py: Moved to ...
41269         * benchtests/scripts/bench.py: ... here.
41270         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
41271
41272 2014-03-24  Andreas Schwab  <schwab@suse.de>
41273
41274         [BZ #16002]
41275         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
41276         alloca_account and account alloca use for struct in6ailist.
41277
41278 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41279
41280         [BZ #16284]
41281         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
41282         rounding mode to recompute results that overflow to infinity or
41283         underflow to zero.
41284         * math/auto-libm-test-in: Don't mark tests as expected to fail for
41285         bug 16284.
41286         * math/auto-libm-test-out: Regenerated.
41287         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
41288         (ccosh_test): Likewise.
41289         (csin_test_data): Use plus_oflow.
41290         (csin_test): Use ALL_RM_TEST.
41291         (csinh_test_data): Use plus_oflow.
41292         (csinh_test): Use ALL_RM_TEST.
41293         * sysdeps/i386/fpu/libm-test-ulps: Update.
41294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41295
41296 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
41297
41298         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
41299         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
41300         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
41301
41302         [BZ #16731]
41303         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
41304         when x - 1 is zero.
41305         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
41306         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
41307         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
41308         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
41309         argument is 1.
41310         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
41311         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
41312         zero.
41313         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
41314         * sysdeps/i386/fpu/libm-test-ulps: Update.
41315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41316
41317 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41318
41319         * scripts/bench.pl: Remove file.
41320         * scripts/bench.py: New benchmark script.
41321         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
41322         * benchtests/README: Mention python dependency.
41323         * scripts/pylintrc: New file.
41324         * scripts/pylint: New file.
41325
41326         * bits/mathdef.h: Use #ifdef instead of #if.
41327         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
41328         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41329         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
41330         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41331         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
41332         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41333
41334 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41335             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41336
41337         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
41338         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
41339         and strpbrk-ppc64 objects.
41340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41341         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
41342         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
41343         multiarch strpbrk for POWER7.
41344         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
41345         multiarch strpbrk for PPC64.
41346         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
41347         ifunc selector.
41348         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
41349         strpbrk for POWER7.
41350
41351 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41352
41353         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
41354         (atan_test): Likewise.
41355         (atanh_test_data): Use NO_TEST_INLINE for two tests.
41356         (atanh_test): Use ALL_RM_TEST.
41357         (atan2_test_data): Likewise.
41358         (cabs_test): Likewise.
41359         (cacosh_test): Likewise.
41360         (carg_test): Likewise.
41361         (casin_test): Likewise.
41362         (casinh_test): Likewise.
41363         (cbrt_test): Likewise.
41364         (csqrt_test): Likewise.
41365         (erf_test): Likewise.
41366         (erfc_test): Likewise.
41367         (pow10_test): Likewise.
41368         (exp2_test): Likewise.
41369         (hypot_test): Likewise.
41370         (j0_test): Likewise.
41371         (j1_test): Likewise.
41372         (lgamma_test): Likewise.
41373         (gamma_test): Likewise.
41374         (sincos_test): Likewise.
41375         (tanh_test): Likewise.
41376         (y0_test): Likewise.
41377         (y1_test): Likewise.
41378         * sysdeps/i386/fpu/libm-test-ulps: Update.
41379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41380
41381 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41382
41383         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
41384         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
41385         and strcspn-ppc64 objects.
41386         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41387         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
41388         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
41389         multiarch strcspn for POWER7.
41390         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
41391         multiarch strcspn for PPC64.
41392         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
41393         ifunc selector.
41394         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
41395         strcspn for POWER7.
41396
41397 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41398
41399         * math/gen-libm-test.pl (generate_testfile): Expect only function
41400         name as argument to AUTO_TESTS_* and pass results for all rounding
41401         modes to parse_args.
41402         (parse_auto_input): Separate inputs of automatic tests from
41403         outputs before storing in %auto_tests.
41404         * math/libm-test.inc (acos_test_data): Update call to
41405         AUTO_TESTS_f_f.
41406         (acos_test): Use ALL_RM_TEST.
41407         (acos_tonearest_test_data): Remove.
41408         (acos_test_tonearest): Likewise.
41409         (acos_towardzero_test_data): Likewise.
41410         (acos_test_towardzero): Likewise.
41411         (acos_downward_test_data): Likewise.
41412         (acos_test_downward): Likewise.
41413         (acos_upward_test_data): Likewise.
41414         (acos_test_upward): Likewise.
41415         (acosh_test_data): Update call to AUTO_TESTS_f_f.
41416         (asin_test_data): Likewise.
41417         (asin_test): Use ALL_RM_TEST.
41418         (asin_tonearest_test_data): Remove.
41419         (asin_test_tonearest): Likewise.
41420         (asin_towardzero_test_data): Likewise.
41421         (asin_test_towardzero): Likewise.
41422         (asin_downward_test_data): Likewise.
41423         (asin_test_downward): Likewise.
41424         (asin_upward_test_data): Likewise.
41425         (asin_test_upward): Likewise.
41426         (asinh_test_data): Update call to AUTO_TESTS_f_f.
41427         (atan_test_data): Likewise.
41428         (atanh_test_data): Likewise.
41429         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
41430         (cabs_test_data): Update call to AUTO_TESTS_c_f.
41431         (carg_test_data): Likewise.
41432         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
41433         (ccos_test_data): Update call to AUTO_TESTS_c_c.
41434         (ccosh_test_data): Likewise.
41435         (cexp_test_data): Likewise.
41436         (clog_test_data): Likewise.
41437         (clog10_test_data): Likewise.
41438         (cos_test_data): Update call to AUTO_TESTS_f_f.
41439         (cos_test): Use ALL_RM_TEST.
41440         (cos_tonearest_test_data): Remove.
41441         (cos_test_tonearest): Likewise.
41442         (cos_towardzero_test_data): Likewise.
41443         (cos_test_towardzero): Likewise.
41444         (cos_downward_test_data): Likewise.
41445         (cos_test_downward): Likewise.
41446         (cos_upward_test_data): Likewise.
41447         (cos_test_upward): Likewise.
41448         (cosh_test_data): Update call to AUTO_TESTS_f_f.
41449         (cosh_test): Use ALL_RM_TEST.
41450         (cosh_tonearest_test_data): Remove.
41451         (cosh_test_tonearest): Likewise.
41452         (cosh_towardzero_test_data): Likewise.
41453         (cosh_test_towardzero): Likewise.
41454         (cosh_downward_test_data): Likewise.
41455         (cosh_test_downward): Likewise.
41456         (cosh_upward_test_data): Likewise.
41457         (cosh_test_upward): Likewise.
41458         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
41459         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
41460         (ctan_test_data): Likewise.
41461         (ctan_test): Use ALL_RM_TEST.
41462         (ctan_tonearest_test_data): Remove.
41463         (ctan_test_tonearest): Likewise.
41464         (ctan_towardzero_test_data): Likewise.
41465         (ctan_test_towardzero): Likewise.
41466         (ctan_downward_test_data): Likewise.
41467         (ctan_test_downward): Likewise.
41468         (ctan_upward_test_data): Likewise.
41469         (ctan_test_upward): Likewise.
41470         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
41471         (ctanh_test): Use ALL_RM_TEST.
41472         (ctanh_tonearest_test_data): Remove.
41473         (ctanh_test_tonearest): Likewise.
41474         (ctanh_towardzero_test_data): Likewise.
41475         (ctanh_test_towardzero): Likewise.
41476         (ctanh_downward_test_data): Likewise.
41477         (ctanh_test_downward): Likewise.
41478         (ctanh_upward_test_data): Likewise.
41479         (ctanh_test_upward): Likewise.
41480         (erf_test_data): Update call to AUTO_TESTS_f_f.
41481         (erfc_test_data): Likewise.
41482         (exp_test_data): Likewise.
41483         (exp_test): Use ALL_RM_TEST.
41484         (exp_tonearest_test_data): Remove.
41485         (exp_test_tonearest): Likewise.
41486         (exp_towardzero_test_data): Likewise.
41487         (exp_test_towardzero): Likewise.
41488         (exp_downward_test_data): Likewise.
41489         (exp_test_downward): Likewise.
41490         (exp_upward_test_data): Likewise.
41491         (exp_test_upward): Likewise.
41492         (exp10_test_data): Update call to AUTO_TESTS_f_f.
41493         (exp10_test): Use ALL_RM_TEST.
41494         (exp10_tonearest_test_data): Remove.
41495         (exp10_test_tonearest): Likewise.
41496         (exp10_towardzero_test_data): Likewise.
41497         (exp10_test_towardzero): Likewise.
41498         (exp10_downward_test_data): Likewise.
41499         (exp10_test_downward): Likewise.
41500         (exp10_upward_test_data): Likewise.
41501         (exp10_test_upward): Likewise.
41502         (exp2_test_data): Update call to AUTO_TESTS_f_f.
41503         (expm1_test_data): Likewise.
41504         (expm1_test): Use ALL_RM_TEST.
41505         (expm1_tonearest_test_data): Remove.
41506         (expm1_test_tonearest): Likewise.
41507         (expm1_towardzero_test_data): Likewise.
41508         (expm1_test_towardzero): Likewise.
41509         (expm1_downward_test_data): Likewise.
41510         (expm1_test_downward): Likewise.
41511         (expm1_upward_test_data): Likewise.
41512         (expm1_test_upward): Likewise.
41513         (fma_test_data): Update call to AUTO_TESTS_fff_f.
41514         (fma_test): Use ALL_RM_TEST.
41515         (fma_towardzero_test_data): Remove.
41516         (fma_test_towardzero): Likewise.
41517         (fma_downward_test_data): Likewise.
41518         (fma_test_downward): Likewise.
41519         (fma_upward_test_data): Likewise.
41520         (fma_test_upward): Likewise.
41521         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
41522         (j0_test_data): Update call to AUTO_TESTS_f_f.
41523         (j1_test_data): Likewise.
41524         (jn_test_data): Update call to AUTO_TESTS_if_f.
41525         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
41526         (log_test_data): Update call to AUTO_TESTS_f_f.
41527         (log10_test_data): Likewise.
41528         (log1p_test_data): Likewise.
41529         (log2_test_data): Likewise.
41530         (pow_test_data): Update call to AUTO_TESTS_ff_f.
41531         (pow_tonearest_test_data): Likewise.
41532         (sin_test_data): Update call to AUTO_TESTS_f_f.
41533         (sin_test): Use ALL_RM_TEST.
41534         (sin_tonearest_test_data): Remove.
41535         (sin_test_tonearest): Likewise.
41536         (sin_towardzero_test_data): Likewise.
41537         (sin_test_towardzero): Likewise.
41538         (sin_downward_test_data): Likewise.
41539         (sin_test_downward): Likewise.
41540         (sin_upward_test_data): Likewise.
41541         (sin_test_upward): Likewise.
41542         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
41543         (sinh_test_data): Update call to AUTO_TESTS_f_f.
41544         (sinh_test): Use ALL_RM_TEST.
41545         (sinh_tonearest_test_data): Remove.
41546         (sinh_test_tonearest): Likewise.
41547         (sinh_towardzero_test_data): Likewise.
41548         (sinh_test_towardzero): Likewise.
41549         (sinh_downward_test_data): Likewise.
41550         (sinh_test_downward): Likewise.
41551         (sinh_upward_test_data): Likewise.
41552         (sinh_test_upward): Likewise.
41553         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41554         (sqrt_test): Use ALL_RM_TEST.
41555         (sqrt_tonearest_test_data): Remove.
41556         (sqrt_test_tonearest): Likewise.
41557         (sqrt_towardzero_test_data): Likewise.
41558         (sqrt_test_towardzero): Likewise.
41559         (sqrt_downward_test_data): Likewise.
41560         (sqrt_test_downward): Likewise.
41561         (sqrt_upward_test_data): Likewise.
41562         (sqrt_test_upward): Likewise.
41563         (tan_test_data): Update call to AUTO_TESTS_f_f.
41564         (tan_test): Use ALL_RM_TEST.
41565         (tan_tonearest_test_data): Remove.
41566         (tan_test_tonearest): Likewise.
41567         (tan_towardzero_test_data): Likewise.
41568         (tan_test_towardzero): Likewise.
41569         (tan_downward_test_data): Likewise.
41570         (tan_test_downward): Likewise.
41571         (tan_upward_test_data): Likewise.
41572         (tan_test_upward): Likewise.
41573         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41574         (tgamma_test_data): Likewise.
41575         (y0_test_data): Likewise.
41576         (y1_test_data): Likewise.
41577         (yn_test_data): Update call to AUTO_TESTS_if_f.
41578         (main): Do not call removed functions.
41579
41580 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41581
41582         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41583         (ldexp_test_data): Remove.
41584         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41585         scalbn_test_data.
41586         (scalb_test): Use ALL_RM_TEST.
41587
41588 2014-03-19  Andreas Schwab  <schwab@suse.de>
41589
41590         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41591
41592 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41593
41594         [BZ #16649]
41595         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41596         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41597         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41598         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41599         (__ASSUME_PREADV): Undefine.
41600         (__ASSUME_PWRITEV): Likewise.
41601
41602 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41603
41604         * bits/mman-linux.h: Add comment about non-Linux use.
41605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41606         bits/mman-linux.h resting place.
41607
41608         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41609         * bits/mman-linux.h: ... here.
41610
41611 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41612
41613         * conform/conformtest.pl: Add standard definition when calling C
41614         preprocessor on data files.
41615         (checknamespace): Remove unused variable.
41616
41617 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41618
41619         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41620         minus_oflow, plus_uflow and minus_uflow in expected results.
41621         * math/libm-test.inc (scalbn_test_data): Add more tests of
41622         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41623         minus_uflow.
41624         (scalbn_test): Use ALL_RM_TEST.
41625         (scalbln_test_data): Add more tests of negative arguments.  Use
41626         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41627         (scalbln_test): Use ALL_RM_TEST.
41628
41629 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41630
41631         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41632
41633 2014-03-18  Will Newton  <will.newton@linaro.org>
41634
41635         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41636         inaccurate comment.
41637
41638 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41639
41640         * Makerules [!subdir] (check-abi): Exit with error status if a
41641         test failed.
41642
41643 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41644
41645         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41646         for rint.  Include results for all rounding modes.
41647         (nearbyint_test): Use ALL_RM_TEST.
41648         (rint_test_data): Include all tests used for nearbyint.
41649
41650 2014-03-17  Will Newton  <will.newton@linaro.org>
41651
41652         * nptl/sysdeps/pthread/pthread.h: Revert previous
41653         change.
41654
41655         * sysdeps/generic/ldsodefs.h: Revert previous
41656         change.
41657
41658         * libio/genops.c: Revert previous change.
41659         * libio/libioP.h: Likewise.
41660         * stdio-common/vfprintf.c: Likewise.
41661
41662         * sysdeps/generic/math_private.h: Revert previous
41663         change.
41664
41665         * sysdeps/generic/math_private.h: Check whether
41666         HAVE_RM_CTX is defined with #ifdef rather
41667         than #if.
41668
41669         * argp/argp-fmtstream.h: Check whether
41670         __STRICT_ANSI__ is defined with #ifdef rather
41671         than #if.
41672         * argp/argp.h: Likewise.
41673
41674         * libio/genops.c: Check whether
41675         _IO_JUMPS_OFFSET is defined with #ifdef rather
41676         than #if.
41677         * libio/libioP.h: Likewise.
41678         * stdio-common/vfprintf.c: Likewise.
41679
41680         * sysdeps/generic/ldsodefs.h: Check whether
41681         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41682         than #if.
41683
41684         * nptl/sysdeps/pthread/pthread.h: Check
41685         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41686         its value.
41687
41688 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41689
41690         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41691         setting O_APPEND.
41692         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41693         test case.
41694
41695         [BZ #16680]
41696         * libio/fileops.c (_IO_file_open): Seek to end of file but
41697         don't cache the offset.
41698         (get_file_offset): Remove function.
41699         (do_ftell): Use cached offset when available.
41700         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41701         don't cache the offset.
41702         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41703         case.
41704         (do_one_test): Call it.
41705         (do_ftell_test): Fix up expected old offset for a+ mode.
41706         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41707         available.
41708
41709         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41710         up test status with function return status.
41711         (do_write_test): Likewise.
41712         (do_append_test): Likewise.
41713
41714         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41715         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41716         Remove.
41717
41718 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41719
41720         * math/gen-libm-test.pl (parse_args): Handle results specified for
41721         each rounding mode separately.
41722         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41723         tests and results from lrint_tonearest_test_data,
41724         lrint_towardzero_test_data, lrint_downward_test_data and
41725         lrint_upward_test_data.
41726         (lrint_test): Use ALL_RM_TEST.
41727         (lrint_tonearest_test_data): Remove.
41728         (lrint_test_tonearest): Likewise.
41729         (lrint_towardzero_test_data): Likewise.
41730         (lrint_test_towardzero): Likewise.
41731         (lrint_downward_test_data): Likewise.
41732         (lrint_test_downward): Likewise.
41733         (lrint_upward_test_data): Likewise.
41734         (lrint_test_upward): Likewise.
41735         (llrint_test_data): Merge in per-rounding-mode tests and results
41736         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41737         llrint_downward_test_data and llrint_upward_test_data.
41738         (llrint_test): Use ALL_RM_TEST.
41739         (llrint_tonearest_test_data): Remove.
41740         (llrint_test_tonearest): Likewise.
41741         (llrint_towardzero_test_data): Likewise.
41742         (llrint_test_towardzero): Likewise.
41743         (llrint_downward_test_data): Likewise.
41744         (llrint_test_downward): Likewise.
41745         (llrint_upward_test_data): Likewise.
41746         (llrint_test_upward): Likewise.
41747         (rint_test_data): Merge in per-rounding-mode tests and results
41748         from rint_tonearest_test_data, rint_towardzero_test_data,
41749         rint_downward_test_data and rint_upward_test_data.  Add
41750         per-rounding-mode results for tests not in those arrays.
41751         (rint_test): Use ALL_RM_TEST.
41752         (rint_tonearest_test_data): Remove.
41753         (rint_test_tonearest): Likewise.
41754         (rint_towardzero_test_data): Likewise.
41755         (rint_test_towardzero): Likewise.
41756         (rint_downward_test_data): Likewise.
41757         (rint_test_downward): Likewise.
41758         (rint_upward_test_data): Likewise.
41759         (rint_test_upward): Likewise.
41760         (main): Don't call removed functions.
41761
41762 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41763
41764         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41765         "Compiled on ..." crapola.  It is anti-useful.
41766
41767 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41768
41769         * scripts/evaluate-test.sh: Handle fourth argument to determine
41770         whether test run should stop on failure.
41771         * Makeconfig (stop-on-test-failure): New variable.
41772         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41773         $(stop-on-test-failure).
41774         * Makefile (tests): Give a summary of results from testing and
41775         exit with failure status if they include an ERROR or FAIL.
41776         (xtests): Likewise.
41777         * manual/install.texi (Configuring and compiling): Mention
41778         stop-on-test-failure=y.
41779         * INSTALL: Regenerated.
41780
41781 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41782
41783         * scripts/versionlist.awk: New file.
41784         * Makerules [$(build-shared) = yes]
41785         (postclean-generated): Add Versions.def, not Versions.def.v and
41786         Versions.def.v.i.
41787         ($(common-objpfx)Versions.def.v.i): Target removed.
41788         ($(common-objpfx)Versions.def): New target.
41789         ($(common-objpfx)Versions.all): Depend on that rather that
41790         $(common-objpfx)Versions.def.v.
41791         * Versions.def: File removed.
41792
41793         * Makeconfig (+gccwarn): Add -Wundef.
41794         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41795         a dl-sysdep.h breaking its contract.
41796         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41797         * include/stackinfo.h: New file.
41798         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41799         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41800         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41801         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41802         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41803         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41804         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41805         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41806         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41807         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41808         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41809         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41810         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41811         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41812         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41813
41814 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41815
41816         [BZ #16707]
41817         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41818         implementation.
41819         * math/libm-test.inc (round_test_data): Add more tests.
41820
41821         [BZ #16706]
41822         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41823         implementation.
41824         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41825
41826         [BZ #16701]
41827         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41828         implementation.
41829         * math/libm-test.inc (ceil_test_data): Add more tests.
41830
41831         * math/libm-test.inc (trunc_test_data): Add more tests related to
41832         BZ#16414.
41833
41834 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41835
41836         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41837         with #if rather than #ifdef.
41838         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41839
41840 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41841
41842         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41843         first.  Disable AVX-512 GCC support if assembler doesn't support
41844         it.
41845         * sysdeps/x86_64/configure: Regenerated.
41846
41847 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41848
41849         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41850         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41851         (__old_pthread_attr_setstack): Likewise.
41852         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41853         [!_STACK_GROWS_DOWN]: Likewise.
41854
41855 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41856
41857         * config.make.in (have-bash2): Delete.
41858         * configure.ac (libc_cv_have_bash2): Delete.
41859         * configure: Regenerate.
41860         * elf/Makefile (common-ldd-rewrite): Rename to ...
41861         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41862         (sh-ldd-rewrite): Delete.
41863         (bash-ldd-rewrite): Delete.
41864         (have-bash2): Delete checks.
41865         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41866         ldd-rewrite.
41867
41868         * config.make.in (have-ksh): Delete.
41869         (KSH): Delete.
41870         * configure.ac (libc_cv_have_ksh): Delete.
41871         * configure: Regenerate.
41872
41873         * elf/Makefile: Delete $(have-ksh) check.
41874         ($(objpfx)sotruss): Change KSH to BASH.
41875         * elf/sotruss.ksh: Rename to ...
41876         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41877         function style to match POSIX.  Drop ksh vim mode setting.
41878
41879         * manual/time.texi (Specifying the Time Zone with TZ): Change
41880         Tuesday to Thursday.
41881
41882         * debug/tst-longjmp_chk2.c: Update header comment.
41883         (stackoverflow_handler): Add comment.  Call assert on pass value.
41884
41885 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41886
41887         [BZ #16194]
41888         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41889         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41890         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41891         (La_x86_64_vector): Add zmm.
41892         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41893         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41894         ($(objpfx)tst-audit10): New target.
41895         ($(objpfx)tst-audit10.out): Likewise.
41896         (tst-audit10-ENV): New.
41897         (AVX512-CFLAGS): Likewise.
41898         (CFLAGS-tst-audit10.c): Likewise.
41899         (CFLAGS-tst-auditmod10a.c): Likewise.
41900         (CFLAGS-tst-auditmod10b.c): Likewise.
41901         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41902         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41903         * sysdeps/x86_64/configure: Regenerated.
41904         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41905         AVX-512 zmm register support.
41906         (_dl_x86_64_save_sse): Likewise.
41907         (_dl_x86_64_restore_sse): Likewise.
41908         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41909         size vector registers.
41910         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41911         (ZMM_SIZE): Likewise.
41912         * sysdeps/x86_64/tst-audit10.c: New file.
41913         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41914         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41915
41916 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41917
41918         * configure.ac (HAVE_EHDR_START): New check.
41919         * configure: Regenerated.
41920         * config.h.in (HAVE_EHDR_START): New #undef.
41921         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41922         assuming the lowest-addressed segment maps the start of the file.
41923
41924 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41925
41926         * INSTALL: Regenerated.
41927
41928 2014-03-13  Will Newton  <will.newton@linaro.org>
41929
41930         * manual/setjmp.texi (System V contexts): Improve
41931         clarity and grammar of documentation.
41932
41933 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41934
41935         [BZ #16381]
41936         * elf/Makefile (tests): Add tst-pie2.
41937         (tests-pie): Add tst-pie2.
41938         * elf/tst-pie2.c: New file.
41939         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41940         for ET_EXEC.
41941         * elf/rtld.c (map_doit): Load executable as lt_executable.
41942         (dl_main): Likewise.
41943
41944 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41945
41946         [BZ #16642]
41947         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41948         (__ASSUME_PSELECT): Undefine.
41949
41950 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41951
41952         [BZ #16689]
41953         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41954         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41955         static build.
41956         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41957         selector for static builds.
41958
41959 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41960
41961         [BZ #16695]
41962         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41963         key in the buffer.
41964
41965 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41966
41967         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41968         IFUNC selector for static builds.
41969
41970 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41971
41972         * sysdeps/mips/math_private.h [__mips_hard_float]
41973         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41974         libc_feresetround_mips_ctx.
41975         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41976         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41977         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41978
41979         [BZ #16677]
41980         * math/s_nextafter.c (__nextafter): Do not return value from
41981         overflowing computation.
41982         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41983         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41984         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41985         Likewise.
41986         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41987         Likewise.
41988         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41989         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41990
41991 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41992
41993         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41994         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41995         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41996         the new mov targetting sp.
41997
41998 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41999
42000         [BZ #16683]
42001         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
42002         Define it for static builds as well.
42003         (NO_BZERO_IMPL): Likewise.
42004
42005 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42006
42007         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
42008         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
42009         multiarch strspn for PPC64.
42010         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
42011         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
42012         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42013         (__libc_ifunc_impl_list): Likewise.
42014         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
42015         multiarch optimizations
42016         * string/strspn.c (strspn): Using macro to redefine symbol name.
42017
42018 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42019             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42020
42021         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
42022         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
42023         multiarch strncat for PPC64.
42024         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
42025         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
42026         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42027         (__libc_ifunc_impl_list): Likewise.
42028         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
42029         multiarch optimizations
42030
42031 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42032
42033         [BZ #16639]
42034         * nscd/nscd.service: Make service type forking.
42035
42036 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42037
42038         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
42039         sign in non default rounding modes.
42040         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
42041
42042 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
42043
42044         * math/libm-test.inc (ALL_RM_TEST): New macro.
42045         (ceil_test): Use ALL_RM_TEST.
42046         (cimag_test): Likewise.
42047         (conj_test): Likewise.
42048         (copysign_test): Likewise.
42049         (cproj_test): Likewise.
42050         (creal_test): Likewise.
42051         (fabs_test): Likewise.
42052         (floor_test): Likewise.
42053         (fmax_test): Likewise.
42054         (fmin_test): Likewise.
42055         (fmod_test): Likewise.
42056         (fpclassify_test): Likewise.
42057         (frexp_test): Likewise.
42058         (ilogb_test): Likewise.
42059         (isfinite_test): Likewise.
42060         (finite_test): Likewise.
42061         (isgreater_test): Likewise.
42062         (isgreaterequal_test): Likewise.
42063         (isinf_test): Likewise.
42064         (isless_test): Likewise.
42065         (islessequal_test): Likewise.
42066         (islessgreater_test): Likewise.
42067         (isnan_test): Likewise.
42068         (isnormal_test): Likewise.
42069         (issignaling_test): Likewise.
42070         (isunordered_test): Likewise.
42071         (logb_test): Likewise.
42072         (logb_downward_test_data): Remove.
42073         (logb_test_downward): Likewise.
42074         (lround_test): Use ALL_RM_TEST.
42075         (llround_test): Likewise.
42076         (modf_test): Likewise.
42077         (nexttoward_test): Likewise.
42078         (remainder_test): Likewise.
42079         (drem_test): Likewise.
42080         (remainder_tonearest_test_data): Likewise.
42081         (remainder_test_tonearest): Likewise.
42082         (drem_test_tonearest): Likewise.
42083         (remainder_towardzero_test_data): Likewise.
42084         (remainder_test_towardzero): Likewise.
42085         (drem_test_towardzero): Likewise.
42086         (remainder_downward_test_data): Likewise.
42087         (remainder_test_downward): Likewise.
42088         (drem_test_downward): Likewise.
42089         (remainder_upward_test_data): Likewise.
42090         (remainder_test_upward): Likewise.
42091         (drem_test_upward): Likewise.
42092         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
42093         (round_test): Use ALL_RM_TEST.
42094         (signbit_test): Likewise.
42095         (trunc_test): Likewise.
42096         (significand_test): Likewise.
42097         (main): Don't call removed functions.
42098
42099 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42100
42101         [BZ #16674]
42102         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
42103         || __USE_XOPEN2K8].
42104         (ILL_ILLOPN): Likewise.
42105         (ILL_ILLADR): Likewise.
42106         (ILL_ILLTRP): Likewise.
42107         (ILL_PRVOPC): Likewise.
42108         (ILL_PRVREG): Likewise.
42109         (ILL_COPROC): Likewise.
42110         (ILL_BADSTK): Likewise.
42111         (FPE_INTDIV): Likewise.
42112         (FPE_INTOVF): Likewise.
42113         (FPE_FLTDIV): Likewise.
42114         (FPE_FLTOVF): Likewise.
42115         (FPE_FLTUND): Likewise.
42116         (FPE_FLTRES): Likewise.
42117         (FPE_FLTINV): Likewise.
42118         (FPE_FLTSUB): Likewise.
42119         (SEGV_MAPERR): Likewise.
42120         (SEGV_ACCERR): Likewise.
42121         (BUS_ADRALN): Likewise.
42122         (BUS_ADRERR): Likewise.
42123         (BUS_OBJERR): Likewise.
42124         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42125         (TRAP_TRACE): Likewise.
42126         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42127         __USE_XOPEN2K8].
42128         (CLD_KILLED): Likewise.
42129         (CLD_DUMPED): Likewise.
42130         (CLD_TRAPPED): Likewise.
42131         (CLD_STOPPED): Likewise.
42132         (CLD_CONTINUED): Likewise.
42133         (POLL_IN): Likewise.
42134         (POLL_OUT): Likewise.
42135         (POLL_MSG): Likewise.
42136         (POLL_ERR): Likewise.
42137         (POLL_PRI): Likewise.
42138         (POLL_HUP): Likewise.
42139         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
42140         Likewise.
42141         (ILL_ILLOPN): Likewise.
42142         (ILL_ILLADR): Likewise.
42143         (ILL_ILLTRP): Likewise.
42144         (ILL_PRVOPC): Likewise.
42145         (ILL_PRVREG): Likewise.
42146         (ILL_COPROC): Likewise.
42147         (ILL_BADSTK): Likewise.
42148         (FPE_INTDIV): Likewise.
42149         (FPE_INTOVF): Likewise.
42150         (FPE_FLTDIV): Likewise.
42151         (FPE_FLTOVF): Likewise.
42152         (FPE_FLTUND): Likewise.
42153         (FPE_FLTRES): Likewise.
42154         (FPE_FLTINV): Likewise.
42155         (FPE_FLTSUB): Likewise.
42156         (SEGV_MAPERR): Likewise.
42157         (SEGV_ACCERR): Likewise.
42158         (BUS_ADRALN): Likewise.
42159         (BUS_ADRERR): Likewise.
42160         (BUS_OBJERR): Likewise.
42161         (BUS_MCEERR_AR): Likewise.
42162         (BUS_MCEERR_AO): Likewise.
42163         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42164         (TRAP_TRACE): Likewise.
42165         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42166         __USE_XOPEN2K8].
42167         (CLD_KILLED): Likewise.
42168         (CLD_DUMPED): Likewise.
42169         (CLD_TRAPPED): Likewise.
42170         (CLD_STOPPED): Likewise.
42171         (CLD_CONTINUED): Likewise.
42172         (POLL_IN): Likewise.
42173         (POLL_OUT): Likewise.
42174         (POLL_MSG): Likewise.
42175         (POLL_ERR): Likewise.
42176         (POLL_PRI): Likewise.
42177         (POLL_HUP): Likewise.
42178         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
42179         (ILL_ILLOPN): Likewise.
42180         (ILL_ILLADR): Likewise.
42181         (ILL_ILLTRP): Likewise.
42182         (ILL_PRVOPC): Likewise.
42183         (ILL_PRVREG): Likewise.
42184         (ILL_COPROC): Likewise.
42185         (ILL_BADSTK): Likewise.
42186         (FPE_INTDIV): Likewise.
42187         (FPE_INTOVF): Likewise.
42188         (FPE_FLTDIV): Likewise.
42189         (FPE_FLTOVF): Likewise.
42190         (FPE_FLTUND): Likewise.
42191         (FPE_FLTRES): Likewise.
42192         (FPE_FLTINV): Likewise.
42193         (FPE_FLTSUB): Likewise.
42194         (SEGV_MAPERR): Likewise.
42195         (SEGV_ACCERR): Likewise.
42196         (BUS_ADRALN): Likewise.
42197         (BUS_ADRERR): Likewise.
42198         (BUS_OBJERR): Likewise.
42199         (BUS_MCEERR_AR): Likewise.
42200         (BUS_MCEERR_AO): Likewise.
42201         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42202         (TRAP_TRACE): Likewise.
42203         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42204         __USE_XOPEN2K8].
42205         (CLD_KILLED): Likewise.
42206         (CLD_DUMPED): Likewise.
42207         (CLD_TRAPPED): Likewise.
42208         (CLD_STOPPED): Likewise.
42209         (CLD_CONTINUED): Likewise.
42210         (POLL_IN): Likewise.
42211         (POLL_OUT): Likewise.
42212         (POLL_MSG): Likewise.
42213         (POLL_ERR): Likewise.
42214         (POLL_PRI): Likewise.
42215         (POLL_HUP): Likewise.
42216         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
42217         Likewise.
42218         (ILL_ILLOPN): Likewise.
42219         (ILL_ILLADR): Likewise.
42220         (ILL_ILLTRP): Likewise.
42221         (ILL_PRVOPC): Likewise.
42222         (ILL_PRVREG): Likewise.
42223         (ILL_COPROC): Likewise.
42224         (ILL_BADSTK): Likewise.
42225         (ILL_BADIADDR): Likewise.
42226         (ILL_BREAK): Likewise.
42227         (FPE_INTDIV): Likewise.
42228         (FPE_INTOVF): Likewise.
42229         (FPE_FLTDIV): Likewise.
42230         (FPE_FLTOVF): Likewise.
42231         (FPE_FLTUND): Likewise.
42232         (FPE_FLTRES): Likewise.
42233         (FPE_FLTINV): Likewise.
42234         (FPE_FLTSUB): Likewise.
42235         (FPE_DECOVF): Likewise.
42236         (FPE_DECDIV): Likewise.
42237         (FPE_DECERR): Likewise.
42238         (FPE_INVASC): Likewise.
42239         (FPE_INVDEC): Likewise.
42240         (SEGV_MAPERR): Likewise.
42241         (SEGV_ACCERR): Likewise.
42242         (SEGV_PSTKOVF): Likewise.
42243         (BUS_ADRALN): Likewise.
42244         (BUS_ADRERR): Likewise.
42245         (BUS_OBJERR): Likewise.
42246         (BUS_MCEERR_AR): Likewise.
42247         (BUS_MCEERR_AO): Likewise.
42248         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42249         (TRAP_TRACE): Likewise.
42250         (TRAP_BRANCH): Likewise.
42251         (TRAP_HWBKPT): Likewise.
42252         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42253         __USE_XOPEN2K8].
42254         (CLD_KILLED): Likewise.
42255         (CLD_DUMPED): Likewise.
42256         (CLD_TRAPPED): Likewise.
42257         (CLD_STOPPED): Likewise.
42258         (CLD_CONTINUED): Likewise.
42259         (POLL_IN): Likewise.
42260         (POLL_OUT): Likewise.
42261         (POLL_MSG): Likewise.
42262         (POLL_ERR): Likewise.
42263         (POLL_PRI): Likewise.
42264         (POLL_HUP): Likewise.
42265         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
42266         (ILL_ILLOPN): Likewise.
42267         (ILL_ILLADR): Likewise.
42268         (ILL_ILLTRP): Likewise.
42269         (ILL_PRVOPC): Likewise.
42270         (ILL_PRVREG): Likewise.
42271         (ILL_COPROC): Likewise.
42272         (ILL_BADSTK): Likewise.
42273         (FPE_INTDIV): Likewise.
42274         (FPE_INTOVF): Likewise.
42275         (FPE_FLTDIV): Likewise.
42276         (FPE_FLTOVF): Likewise.
42277         (FPE_FLTUND): Likewise.
42278         (FPE_FLTRES): Likewise.
42279         (FPE_FLTINV): Likewise.
42280         (FPE_FLTSUB): Likewise.
42281         (SEGV_MAPERR): Likewise.
42282         (SEGV_ACCERR): Likewise.
42283         (BUS_ADRALN): Likewise.
42284         (BUS_ADRERR): Likewise.
42285         (BUS_OBJERR): Likewise.
42286         (BUS_MCEERR_AR): Likewise.
42287         (BUS_MCEERR_AO): Likewise.
42288         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42289         (TRAP_TRACE): Likewise.
42290         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42291         __USE_XOPEN2K8].
42292         (CLD_KILLED): Likewise.
42293         (CLD_DUMPED): Likewise.
42294         (CLD_TRAPPED): Likewise.
42295         (CLD_STOPPED): Likewise.
42296         (CLD_CONTINUED): Likewise.
42297         (POLL_IN): Likewise.
42298         (POLL_OUT): Likewise.
42299         (POLL_MSG): Likewise.
42300         (POLL_ERR): Likewise.
42301         (POLL_PRI): Likewise.
42302         (POLL_HUP): Likewise.
42303         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
42304         (ILL_ILLOPN): Likewise.
42305         (ILL_ILLADR): Likewise.
42306         (ILL_ILLTRP): Likewise.
42307         (ILL_PRVOPC): Likewise.
42308         (ILL_PRVREG): Likewise.
42309         (ILL_COPROC): Likewise.
42310         (ILL_BADSTK): Likewise.
42311         (FPE_INTDIV): Likewise.
42312         (FPE_INTOVF): Likewise.
42313         (FPE_FLTDIV): Likewise.
42314         (FPE_FLTOVF): Likewise.
42315         (FPE_FLTUND): Likewise.
42316         (FPE_FLTRES): Likewise.
42317         (FPE_FLTINV): Likewise.
42318         (FPE_FLTSUB): Likewise.
42319         (SEGV_MAPERR): Likewise.
42320         (SEGV_ACCERR): Likewise.
42321         (BUS_ADRALN): Likewise.
42322         (BUS_ADRERR): Likewise.
42323         (BUS_OBJERR): Likewise.
42324         (BUS_MCEERR_AR): Likewise.
42325         (BUS_MCEERR_AO): Likewise.
42326         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42327         (TRAP_TRACE): Likewise.
42328         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42329         __USE_XOPEN2K8].
42330         (CLD_KILLED): Likewise.
42331         (CLD_DUMPED): Likewise.
42332         (CLD_TRAPPED): Likewise.
42333         (CLD_STOPPED): Likewise.
42334         (CLD_CONTINUED): Likewise.
42335         (POLL_IN): Likewise.
42336         (POLL_OUT): Likewise.
42337         (POLL_MSG): Likewise.
42338         (POLL_ERR): Likewise.
42339         (POLL_PRI): Likewise.
42340         (POLL_HUP): Likewise.
42341         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
42342         (ILL_ILLOPN): Likewise.
42343         (ILL_ILLADR): Likewise.
42344         (ILL_ILLTRP): Likewise.
42345         (ILL_PRVOPC): Likewise.
42346         (ILL_PRVREG): Likewise.
42347         (ILL_COPROC): Likewise.
42348         (ILL_BADSTK): Likewise.
42349         (FPE_INTDIV): Likewise.
42350         (FPE_INTOVF): Likewise.
42351         (FPE_FLTDIV): Likewise.
42352         (FPE_FLTOVF): Likewise.
42353         (FPE_FLTUND): Likewise.
42354         (FPE_FLTRES): Likewise.
42355         (FPE_FLTINV): Likewise.
42356         (FPE_FLTSUB): Likewise.
42357         (SEGV_MAPERR): Likewise.
42358         (SEGV_ACCERR): Likewise.
42359         (BUS_ADRALN): Likewise.
42360         (BUS_ADRERR): Likewise.
42361         (BUS_OBJERR): Likewise.
42362         (BUS_MCEERR_AR): Likewise.
42363         (BUS_MCEERR_AO): Likewise.
42364         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42365         (TRAP_TRACE): Likewise.
42366         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42367         __USE_XOPEN2K8].
42368         (CLD_KILLED): Likewise.
42369         (CLD_DUMPED): Likewise.
42370         (CLD_TRAPPED): Likewise.
42371         (CLD_STOPPED): Likewise.
42372         (CLD_CONTINUED): Likewise.
42373         (POLL_IN): Likewise.
42374         (POLL_OUT): Likewise.
42375         (POLL_MSG): Likewise.
42376         (POLL_ERR): Likewise.
42377         (POLL_PRI): Likewise.
42378         (POLL_HUP): Likewise.
42379         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
42380         (ILL_ILLOPN): Likewise.
42381         (ILL_ILLADR): Likewise.
42382         (ILL_ILLTRP): Likewise.
42383         (ILL_PRVOPC): Likewise.
42384         (ILL_PRVREG): Likewise.
42385         (ILL_COPROC): Likewise.
42386         (ILL_BADSTK): Likewise.
42387         (ILL_DBLFLT): Likewise.
42388         (ILL_HARDWALL): Likewise.
42389         (FPE_INTDIV): Likewise.
42390         (FPE_INTOVF): Likewise.
42391         (FPE_FLTDIV): Likewise.
42392         (FPE_FLTOVF): Likewise.
42393         (FPE_FLTUND): Likewise.
42394         (FPE_FLTRES): Likewise.
42395         (FPE_FLTINV): Likewise.
42396         (FPE_FLTSUB): Likewise.
42397         (SEGV_MAPERR): Likewise.
42398         (SEGV_ACCERR): Likewise.
42399         (BUS_ADRALN): Likewise.
42400         (BUS_ADRERR): Likewise.
42401         (BUS_OBJERR): Likewise.
42402         (BUS_MCEERR_AR): Likewise.
42403         (BUS_MCEERR_AO): Likewise.
42404         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42405         (TRAP_TRACE): Likewise.
42406         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42407         __USE_XOPEN2K8].
42408         (CLD_KILLED): Likewise.
42409         (CLD_DUMPED): Likewise.
42410         (CLD_TRAPPED): Likewise.
42411         (CLD_STOPPED): Likewise.
42412         (CLD_CONTINUED): Likewise.
42413         (POLL_IN): Likewise.
42414         (POLL_OUT): Likewise.
42415         (POLL_MSG): Likewise.
42416         (POLL_ERR): Likewise.
42417         (POLL_PRI): Likewise.
42418         (POLL_HUP): Likewise.
42419         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
42420         (ILL_ILLOPN): Likewise.
42421         (ILL_ILLADR): Likewise.
42422         (ILL_ILLTRP): Likewise.
42423         (ILL_PRVOPC): Likewise.
42424         (ILL_PRVREG): Likewise.
42425         (ILL_COPROC): Likewise.
42426         (ILL_BADSTK): Likewise.
42427         (FPE_INTDIV): Likewise.
42428         (FPE_INTOVF): Likewise.
42429         (FPE_FLTDIV): Likewise.
42430         (FPE_FLTOVF): Likewise.
42431         (FPE_FLTUND): Likewise.
42432         (FPE_FLTRES): Likewise.
42433         (FPE_FLTINV): Likewise.
42434         (FPE_FLTSUB): Likewise.
42435         (SEGV_MAPERR): Likewise.
42436         (SEGV_ACCERR): Likewise.
42437         (BUS_ADRALN): Likewise.
42438         (BUS_ADRERR): Likewise.
42439         (BUS_OBJERR): Likewise.
42440         (BUS_MCEERR_AR): Likewise.
42441         (BUS_MCEERR_AO): Likewise.
42442         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42443         (TRAP_TRACE): Likewise.
42444         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42445         __USE_XOPEN2K8].
42446         (CLD_KILLED): Likewise.
42447         (CLD_DUMPED): Likewise.
42448         (CLD_TRAPPED): Likewise.
42449         (CLD_STOPPED): Likewise.
42450         (CLD_CONTINUED): Likewise.
42451         (POLL_IN): Likewise.
42452         (POLL_OUT): Likewise.
42453         (POLL_MSG): Likewise.
42454         (POLL_ERR): Likewise.
42455         (POLL_PRI): Likewise.
42456         (POLL_HUP): Likewise.
42457         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
42458         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42459
42460         [BZ #16670]
42461         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
42462         before #include of <time.h>.
42463         [!__USE_XOPEN2K] (__need_timespec): Likewise.
42464         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
42465         (test-xfail-UNIX98/sched.h/conform): Likewise.
42466
42467 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42468
42469         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
42470         error absence of trapping exception support.
42471         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
42472
42473 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42474
42475         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
42476         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
42477         * timezone/Makefile (testdata): Move definition above include of
42478         Rules.
42479         (test-zones): New variable.
42480         (tests-special): Add zone files.
42481         (build-testdata): Use $(evaluate-test).
42482
42483         * elf/Makefile (tests-special): Rename tests to end with .out.
42484         ($(objpfx)noload-mem): Likewise.
42485         ($(objpfx)tst-leaks1-mem): Likewise.
42486         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
42487         * iconv/Makefile (xtests-special): Change test-iconvconfig to
42488         $(objpfx)test-iconvconfig.out.
42489         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
42490         set -e inside subshell and redirect output to file.
42491         * iconvdata/Makefile (generated): Rename tests to end with .out.
42492         Correct type.
42493         (tests-special): Rename tests to end with .out.
42494         ($(objpfx)mtrace-tst-loading): Likewise.
42495         * intl/Makefile (generated): Likewise.
42496         (tests-special): Likewise.
42497         ($(objpfx)mtrace-tst-gettext): Likewise.
42498         * misc/Makefile (generated): Likewise.
42499         (tests-special): Likewise.
42500         ($(objpfx)tst-error1-mem): Likewise.
42501         * nptl/Makefile (tests-special): Likewise.
42502         ($(objpfx)tst-stack3-mem): Likewise.
42503         (generated): Likewise.
42504         * posix/Makefile (generated): Likewise.
42505         (tests-special): Likewise.
42506         (xtests-special): Likewise.
42507         ($(objpfx)tst-fnmatch-mem): Likewise.
42508         ($(objpfx)bug-regex2-mem): Likewise.
42509         ($(objpfx)bug-regex14-mem): Likewise.
42510         ($(objpfx)bug-regex21-mem): Likewise.
42511         ($(objpfx)bug-regex31-mem): Likewise.
42512         ($(objpfx)tst-vfork3-mem): Likewise.
42513         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
42514         ($(objpfx)tst-pcre-mem): Likewise.
42515         ($(objpfx)tst-boost-mem): Likewise.
42516         ($(objpfx)bug-ga2-mem): Likewise.
42517         ($(objpfx)bug-glob2-mem): Likewise.
42518         * resolv/Makefile (generate): Likewise.
42519         (tests-special): Likewise.
42520         (xtests-special): Likewise.
42521         (generated): Likewise.
42522         ($(objpfx)mtrace-tst-leaks): Likewise.
42523         ($(objpfx)mtrace-tst-leaks2): Likewise.
42524
42525         * scripts/merge-test-results.sh: New file.
42526         * Makefile (tests-special-notdir): New variable.
42527         (tests): Run merge-test-results.sh.
42528         (xtests): Likewise.
42529         * Rules (tests-special-notdir): New variable.
42530         (xtests-special-notdir): Likewise.
42531         (tests): Run merge-test-results.sh
42532         (xtests): Likewise.
42533
42534         * Makeconfig (test-xfail-name): New variable.
42535         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
42536         compute variable name for expected failures.
42537         * conform/Makefile (conformtest-headers-data): New variable.
42538         (conformtest-standards): Likewise.
42539         (conformtest-headers-ISO): Likewise.
42540         (conformtest-headers-ISO99): Likewise.
42541         (conformtest-headers-ISO11): Likewise.
42542         (conformtest-headers-POSIX): Likewise.
42543         (conformtest-headers-XPG3): Likewise.
42544         (conformtest-headers-XPG4): Likewise.
42545         (conformtest-headers-UNIX98): Likewise.
42546         (conformtest-headers-XOPEN2K): Likewise.
42547         (conformtest-headers-POSIX2008): Likewise.
42548         (conformtest-headers-XOPEN2K8): Likewise.
42549         (conformtest-header-list-base): Likewise.
42550         (conformtest-header-list-tests): Likewise.
42551         (conformtest-header-base): Likewise.
42552         (conformtest-header-tests): Likewise.
42553         (tests-special): Add $(conformtest-header-list-tests).  If
42554         [$(fast-check) && !$(cross-compiling)], add
42555         $(conformtest-header-tests) instead of
42556         $(objpfx)run-conformtest.out.
42557         (generated): Add $(conformtest-header-list-base).  If
42558         [$(fast-check) && !$(cross-compiling)], add
42559         $(conformtest-header-base).  Remove previous setting.
42560         ($(conformtest-header-list-tests)): New target.
42561         (test-xfail-run-conformtest): Remove variable.
42562         ($(objpfx)run-conformtest.out): Remove target.
42563         (test-xfail-ISO11/complex.h/conform): New variable.
42564         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42565         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42566         (test-xfail-XPG3/varargs.h/conform): Likewise.
42567         (test-xfail-XPG4/varargs.h/conform): Likewise.
42568         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42569         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42570         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42571         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42572         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42573         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42574         (test-xfail-XPG3/ftw.h/conform): Likewise.
42575         (test-xfail-XPG3/grp.h/conform): Likewise.
42576         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42577         (test-xfail-XPG3/limits.h/conform): Likewise.
42578         (test-xfail-XPG3/pwd.h/conform): Likewise.
42579         (test-xfail-XPG3/search.h/conform): Likewise.
42580         (test-xfail-XPG3/signal.h/conform): Likewise.
42581         (test-xfail-XPG3/stdio.h/conform): Likewise.
42582         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42583         (test-xfail-XPG3/string.h/conform): Likewise.
42584         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42585         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42586         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42587         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42588         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42589         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42590         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42591         (test-xfail-XPG3/termios.h/conform): Likewise.
42592         (test-xfail-XPG3/time.h/conform): Likewise.
42593         (test-xfail-XPG3/unistd.h/conform): Likewise.
42594         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42595         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42596         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42597         (test-xfail-XPG4/netdb.h/conform): Likewise.
42598         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42599         (test-xfail-XPG4/signal.h/conform): Likewise.
42600         (test-xfail-XPG4/stdio.h/conform): Likewise.
42601         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42602         (test-xfail-XPG4/stropts.h/conform): Likewise.
42603         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42604         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42605         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42606         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42607         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42608         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42609         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42610         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42611         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42612         (test-xfail-XPG4/termios.h/conform): Likewise.
42613         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42614         (test-xfail-XPG4/unistd.h/conform): Likewise.
42615         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42616         (test-xfail-POSIX/sched.h/conform): Likewise.
42617         (test-xfail-POSIX/signal.h/conform): Likewise.
42618         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42619         (test-xfail-POSIX/tar.h/conform): Likewise.
42620         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42621         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42622         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42623         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42624         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42625         (test-xfail-UNIX98/sched.h/conform): Likewise.
42626         (test-xfail-UNIX98/signal.h/conform): Likewise.
42627         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42628         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42629         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42630         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42631         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42632         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42633         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42634         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42635         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42636         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42637         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42638         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42639         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42640         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42641         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42642         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42643         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42644         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42645         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42646         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42647         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42648         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42649         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42650         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42651         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42652         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42653         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42654         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42655         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42656         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42657         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42658         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42659         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42660         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42661         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42662         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42663         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42664         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42665         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42666         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42667         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42668         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42669         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42670         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42671         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42672         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42673         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42674         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42675         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42676         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42677         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42678         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42679         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42680         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42681         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42682         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42683         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42684         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42685         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42686         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42687         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42688         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42689         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42690         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42691         (conformtest-cc-flags): Likewise.
42692         ($(conformtest-header-tests): New target.
42693         * conform/check-header-lists.sh: New file.
42694         * conform/run-conformtest.sh: Remove.
42695
42696         * conform/conformtest.pl: Allow ' and \ in values given for
42697         constants.
42698         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42699         inclusion.
42700         [POSIX] (sys/types.h): Likewise.
42701         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42702         inclusion.
42703         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42704         inclusion.
42705         * conform/data/signal.h-data (SIGIO): Remove expectation.
42706         [XPG3] (SIGBUS): Do not expect.
42707         [POSIX || XPG3] (SIGPOLL): Likewise.
42708         [POSIX || XPG3] (SIGPROF): Likewise.
42709         [POSIX || XPG3] (SIGSYS): Likewise.
42710         [XPG3] (SIGTRAP): Likewise.
42711         [POSIX || XPG3] (SIGURG): Likewise.
42712         [POSIX || XPG3] (SIGVTALRM): Likewise.
42713         [POSIX || XPG3] (SIGXCPU): Likewise.
42714         [POSIX || XPG3] (SIGXFSZ): Likewise.
42715         [POSIX] (SA_SIGINFO): Expect.
42716         [XPG3] (siginfo_t): Do not expect type or contents.
42717         [POSIX] (si_pid): Do not expect element.
42718         [POSIX] (si_uid): Likewise.
42719         [POSIX] (si_addr): Likewise.
42720         [POSIX] (si_status): Likewise.
42721         [POSIX] (si_band): Likewise.
42722         [XPG4] (si_value): Likewise.
42723         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42724         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42725         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42726         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42727         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42728         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42729         [POSIX || XPG3] (ILL_COPROC): Likewise.
42730         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42731         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42732         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42733         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42734         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42735         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42736         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42737         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42738         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42739         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42740         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42741         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42742         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42743         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42744         [POSIX || XPG3] (CLD_EXITED): Likewise.
42745         [POSIX || XPG3] (CLD_KILLED): Likewise.
42746         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42747         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42748         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42749         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42750         [POSIX || XPG3] (POLL_IN): Likewise.
42751         [POSIX || XPG3] (POLL_OUT): Likewise.
42752         [POSIX || XPG3] (POLL_MSG): Likewise.
42753         [POSIX || XPG3] (POLL_ERR): Likewise.
42754         [POSIX || XPG3] (POLL_PRI): Likewise.
42755         [POSIX || XPG3] (POLL_HUP): Likewise.
42756         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42757         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42758         (SIG*): Do not allow.
42759         [XPG3] (si_*): Likewise.
42760         [XPG3] (SI_*): Likewise.
42761         [XPG3 || XPG4] (sigev_*): Likewise.
42762         [XPG3 || XPG4] (SIGEV_*): Likewise.
42763         [XPG3 || XPG4] (sival_*): Likewise.
42764         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42765         [POSIX || XPG3] (BUS_*): Likewise.
42766         [POSIX || XPG3] (CLD_*): Likewise.
42767         [POSIX || XPG3] (FPE_*): Likewise.
42768         [POSIX || XPG3] (ILL_*): Likewise.
42769         [POSIX || XPG3] (POLL_*): Likewise.
42770         [POSIX || XPG3] (SEGV_*): Likewise.
42771         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42772         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42773         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42774         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42775         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42776         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42777         Specify type and value.
42778         (TVERSLEN): Likewise.
42779         (REGTYPE): Likewise.
42780         (AREGTYPE): Likewise.
42781         (LNKTYPE): Likewise.
42782         (SYMTYPE): Likewise.
42783         (CHRTYPE): Likewise.
42784         (BLKTYPE): Likewise.
42785         (DIRTYPE): Likewise.
42786         (FIFOTYPE): Likewise.
42787         (CONTTYPE): Likewise.
42788         (TSUID): Likewise.
42789         (TSGID): Likewise.
42790         (TSVTX): Likewise.
42791         (TUREAD): Likewise.
42792         (TUWRITE): Likewise.
42793         (TUEXEC): Likewise.
42794         (TGREAD): Likewise.
42795         (TGWRITE): Likewise.
42796         (TGEXEC): Likewise.
42797         (TOREAD): Likewise.
42798         (TOWRITE): Likewise.
42799         (TOEXEC): Likewise.
42800         [POSIX] (TSVTX): Expect constant.
42801
42802 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42803
42804         * Makefile (tests): Change dependencies to ....
42805         (tests-special): ... additions to this variable.
42806         (tests): Depend on $(tests-special).
42807         * Makerules (check-abi-list): New variable.
42808         (check-abi): Depend on $(check-abi-list).
42809         [$(subdir) = elf] (tests-special): Add
42810         $(objpfx)check-abi-libc.out.
42811         [$(build-shared) = yes && subdir] (tests-special): Add
42812         $(check-abi-list).
42813         [$(build-shared) = yes && subdir] (tests): Do not depend on
42814         check-abi.
42815         * Rules (tests): Depend on $(tests-special).
42816         (xtests): Depend on $(xtests-special).
42817         * catgets/Makefile (tests): Change dependencies to ....
42818         (tests-special): ... additions to this variable.
42819         * conform/Makefile (tests): Change dependencies to ....
42820         (tests-special): ... additions to this variable.
42821         * elf/Makefile (tests): Change dependencies to ....
42822         (tests-special): ... additions to this variable.
42823         * grp/Makefile (tests): Change dependencies to ....
42824         (tests-special): ... additions to this variable.
42825         * iconv/Makefile (xtests): Change dependencies to ....
42826         (xtests-special): ... additions to this variable.
42827         * iconvdata/Makefile (tests): Change dependencies to ....
42828         (tests-special): ... additions to this variable.
42829         * intl/Makefile (tests): Change dependencies to ....
42830         (tests-special): ... additions to this variable.  Also add
42831         $(objpfx)tst-gettext.out.
42832         * io/Makefile (tests): Change dependencies to ....
42833         (tests-special): ... additions to this variable.
42834         * libio/Makefile (tests): Change dependencies to ....
42835         (tests-special): ... additions to this variable.
42836         * malloc/Makefile (tests): Change dependencies to ....
42837         (tests-special): ... additions to this variable.
42838         * misc/Makefile (tests): Change dependencies to ....
42839         (tests-special): ... additions to this variable.
42840         * nptl/Makefile (tests): Change dependencies to ....
42841         (tests-special): ... additions to this variable.
42842         * nptl_db/Makefile (tests): Change dependencies to ....
42843         (tests-special): ... additions to this variable.
42844         * posix/Makefile (tests): Change dependencies to ....
42845         (tests-special): ... additions to this variable.
42846         (xtests): Change dependencies to ....
42847         (xtests-special): ... additions to this variable.
42848         * resolv/Makefile (tests): Change dependencies to ....
42849         (tests-special): ... additions to this variable.
42850         (xtests): Change dependencies to ....
42851         (xtests-special): ... additions to this variable.
42852         * stdio-common/Makefile (tests): Change dependencies to ....
42853         (tests-special): ... additions to this variable.
42854         (do-tst-unbputc): Remove target.
42855         (do-tst-printf): Likewise.
42856         * stdlib/Makefile (tests): Change dependencies to ....
42857         (tests-special): ... additions to this variable.
42858         * string/Makefile (tests): Change dependencies to ....
42859         (tests-special): ... additions to this variable.
42860         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42861         (tests-special): ... additions to this variable.
42862
42863         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42864         whole file.
42865         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42866         whole file.
42867         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42868         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42869
42870         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42871         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42872         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42873         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42874         * conform/data/libgen.h-data [XPG3]: Likewise.
42875         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42876         * conform/data/ndbm.h-data [XPG3]: Likewise.
42877         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42878         * conform/data/netdb.h-data [XPG3]: Likewise.
42879         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42880         * conform/data/poll.h-data [XPG3]: Likewise.
42881         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42882         * conform/data/strings.h-data [XPG3]: Likewise.
42883         * conform/data/stropts.h-data [XPG3]: Likewise.
42884         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42885         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42886         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42887         Likewise.
42888         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42889         * conform/data/sys/time.h-data [XPG3]: Likewise.
42890         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42891         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42892         * conform/data/sys/un.h-data [XPG3]: Likewise.
42893         * conform/data/syslog.h-data [XPG3]: Likewise.
42894         * conform/data/ucontext.h-data [XPG3]: Likewise.
42895         * conform/data/utmpx.h-data [XPG3]: Likewise.
42896         * conform/data/varargs.h-data [UNIX98]: Enable file.
42897
42898         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42899
42900         * math/libm-test.inc (struct test_f_f_data): Move expected results
42901         into structure for each rounding mode.
42902         (struct test_ff_f_data): Likewise.
42903         (struct test_ff_f_data_nexttoward): Likewise.
42904         (struct test_fi_f_data): Likewise.
42905         (struct test_fl_f_data): Likewise.
42906         (struct test_if_f_data): Likewise.
42907         (struct test_fff_f_data): Likewise.
42908         (struct test_c_f_data): Likewise.
42909         (struct test_f_f1_data): Likewise.
42910         (struct test_fF_f1_data): Likewise.
42911         (struct test_ffI_f1_data): Likewise.
42912         (struct test_c_c_data): Likewise.
42913         (struct test_cc_c_data): Likewise.
42914         (struct test_f_i_data): Likewise.
42915         (struct test_ff_i_data): Likewise.
42916         (struct test_f_l_data): Likewise.
42917         (struct test_f_L_data): Likewise.
42918         (struct test_fFF_11_data): Likewise.
42919         (RM_): New macro.
42920         (RM_FE_DOWNWARD): Likewise.
42921         (RM_FE_TONEAREST): Likewise.
42922         (RM_FE_TOWARDZERO): Likewise.
42923         (RM_FE_UPWARD): Likewise.
42924         (RUN_TEST_LOOP_f_f): Update references to expected results.
42925         (RUN_TEST_LOOP_2_f): Likewise.
42926         (RUN_TEST_LOOP_fff_f): Likewise.
42927         (RUN_TEST_LOOP_c_f): Likewise.
42928         (RUN_TEST_LOOP_f_f1): Likewise.
42929         (RUN_TEST_LOOP_fF_f1): Likewise.
42930         (RUN_TEST_LOOP_fI_f1): Likewise.
42931         (RUN_TEST_LOOP_ffI_f1): Likewise.
42932         (RUN_TEST_LOOP_c_c): Likewise.
42933         (RUN_TEST_LOOP_cc_c): Likewise.
42934         (RUN_TEST_LOOP_f_i): Likewise.
42935         (RUN_TEST_LOOP_f_i_tg): Likewise.
42936         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42937         (RUN_TEST_LOOP_f_b): Likewise.
42938         (RUN_TEST_LOOP_f_b_tg): Likewise.
42939         (RUN_TEST_LOOP_f_l): Likewise.
42940         (RUN_TEST_LOOP_f_L): Likewise.
42941         (RUN_TEST_LOOP_fFF_11): Likewise.
42942         * math/gen-libm-test.pl (parse_args): Output four copies of
42943         expected results for each test.
42944
42945         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42946         (__ASSUME_UTIMES): Remove.
42947         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42948         (__ASSUME_UTIMES): Likewise.
42949
42950         * math/gen-auto-libm-tests.c: Update comment on output format.
42951         (output_for_one_input_case): Generate before-rounding and
42952         after-rounding information as conditions on output flags not
42953         floating-point format.
42954         * math/auto-libm-test-out: Regenerated.
42955         * math/gen-libm-test.pl (cond_value): New function.
42956         (or_cond_value): Use cond_value.
42957         (generate_testfile): Handle conditional exceptions.
42958
42959 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42960
42961         * math/libm-test.inc (max_valid_error): New variable.
42962         (init_max_error): Take new argument specifying whether function
42963         results are exactly determined.  Set max_valid_error and bound
42964         other variables for errors based on this argument.
42965         (set_max_error): Do not record results above max_valid_error.
42966         (check_float_internal): Only accept errors of up to 0.5ulps if
42967         also at most max_valid_error.
42968         (START): Take new argument EXACT and pass it to init_max_error.
42969         (acos_test): Update call to START.
42970         (acos_test_tonearest): Likewise.
42971         (acos_test_towardzero): Likewise.
42972         (acos_test_downward): Likewise.
42973         (acos_test_upward): Likewise.
42974         (acosh_test): Likewise.
42975         (asin_test): Likewise.
42976         (asin_test_tonearest): Likewise.
42977         (asin_test_towardzero): Likewise.
42978         (asin_test_downward): Likewise.
42979         (asin_test_upward): Likewise.
42980         (asinh_test): Likewise.
42981         (atan_test): Likewise.
42982         (atanh_test): Likewise.
42983         (atan2_test): Likewise.
42984         (cabs_test): Likewise.
42985         (cacos_test): Likewise.
42986         (cacosh_test): Likewise.
42987         (carg_test): Likewise.
42988         (casin_test): Likewise.
42989         (casinh_test): Likewise.
42990         (catan_test): Likewise.
42991         (catanh_test): Likewise.
42992         (cbrt_test): Likewise.
42993         (ccos_test): Likewise.
42994         (ccosh_test): Likewise.
42995         (ceil_test): Likewise.
42996         (cexp_test): Likewise.
42997         (cimag_test): Likewise.
42998         (clog_test): Likewise.
42999         (clog10_test): Likewise.
43000         (conj_test): Likewise.
43001         (copysign_test): Likewise.
43002         (cos_test): Likewise.
43003         (cos_test_tonearest): Likewise.
43004         (cos_test_towardzero): Likewise.
43005         (cos_test_downward): Likewise.
43006         (cos_test_upward): Likewise.
43007         (cosh_test): Likewise.
43008         (cosh_test_tonearest): Likewise.
43009         (cosh_test_towardzero): Likewise.
43010         (cosh_test_downward): Likewise.
43011         (cosh_test_upward): Likewise.
43012         (cpow_test): Likewise.
43013         (cproj_test): Likewise.
43014         (creal_test): Likewise.
43015         (csin_test): Likewise.
43016         (csinh_test): Likewise.
43017         (csqrt_test): Likewise.
43018         (ctan_test): Likewise.
43019         (ctan_test_tonearest): Likewise.
43020         (ctan_test_towardzero): Likewise.
43021         (ctan_test_downward): Likewise.
43022         (ctan_test_upward): Likewise.
43023         (ctanh_test): Likewise.
43024         (ctanh_test_tonearest): Likewise.
43025         (ctanh_test_towardzero): Likewise.
43026         (ctanh_test_downward): Likewise.
43027         (ctanh_test_upward): Likewise.
43028         (erf_test): Likewise.
43029         (erfc_test): Likewise.
43030         (exp_test): Likewise.
43031         (exp_test_tonearest): Likewise.
43032         (exp_test_towardzero): Likewise.
43033         (exp_test_downward): Likewise.
43034         (exp_test_upward): Likewise.
43035         (exp10_test): Likewise.
43036         (exp10_test_tonearest): Likewise.
43037         (exp10_test_towardzero): Likewise.
43038         (exp10_test_downward): Likewise.
43039         (exp10_test_upward): Likewise.
43040         (pow10_test): Likewise.
43041         (exp2_test): Likewise.
43042         (expm1_test): Likewise.
43043         (expm1_test_tonearest): Likewise.
43044         (expm1_test_towardzero): Likewise.
43045         (expm1_test_downward): Likewise.
43046         (expm1_test_upward): Likewise.
43047         (fabs_test): Likewise.
43048         (fdim_test): Likewise.
43049         (floor_test): Likewise.
43050         (fma_test): Likewise.
43051         (fma_test_towardzero): Likewise.
43052         (fma_test_downward): Likewise.
43053         (fma_test_upward): Likewise.
43054         (fmax_test): Likewise.
43055         (fmin_test): Likewise.
43056         (fmod_test): Likewise.
43057         (fpclassify_test): Likewise.
43058         (frexp_test): Likewise.
43059         (hypot_test): Likewise.
43060         (ilogb_test): Likewise.
43061         (isfinite_test): Likewise.
43062         (finite_test): Likewise.
43063         (isgreater_test): Likewise.
43064         (isgreaterequal_test): Likewise.
43065         (isinf_test): Likewise.
43066         (isless_test): Likewise.
43067         (islessequal_test): Likewise.
43068         (islessgreater_test): Likewise.
43069         (isnan_test): Likewise.
43070         (isnormal_test): Likewise.
43071         (issignaling_test): Likewise.
43072         (isunordered_test): Likewise.
43073         (j0_test): Likewise.
43074         (j1_test): Likewise.
43075         (jn_test): Likewise.
43076         (ldexp_test): Likewise.
43077         (lgamma_test): Likewise.
43078         (gamma_test): Likewise.
43079         (lrint_test): Likewise.
43080         (lrint_test_tonearest): Likewise.
43081         (lrint_test_towardzero): Likewise.
43082         (lrint_test_downward): Likewise.
43083         (lrint_test_upward): Likewise.
43084         (llrint_test): Likewise.
43085         (llrint_test_tonearest): Likewise.
43086         (llrint_test_towardzero): Likewise.
43087         (llrint_test_downward): Likewise.
43088         (llrint_test_upward): Likewise.
43089         (log_test): Likewise.
43090         (log10_test): Likewise.
43091         (log1p_test): Likewise.
43092         (log2_test): Likewise.
43093         (logb_test): Likewise.
43094         (logb_test_downward): Likewise.
43095         (lround_test): Likewise.
43096         (llround_test): Likewise.
43097         (modf_test): Likewise.
43098         (nearbyint_test): Likewise.
43099         (nextafter_test): Likewise.
43100         (nexttoward_test): Likewise.
43101         (pow_test): Likewise.
43102         (pow_test_tonearest): Likewise.
43103         (pow_test_towardzero): Likewise.
43104         (pow_test_downward): Likewise.
43105         (pow_test_upward): Likewise.
43106         (remainder_test): Likewise.
43107         (drem_test): Likewise.
43108         (remainder_test_tonearest): Likewise.
43109         (drem_test_tonearest): Likewise.
43110         (remainder_test_towardzero): Likewise.
43111         (drem_test_towardzero): Likewise.
43112         (remainder_test_downward): Likewise.
43113         (drem_test_downward): Likewise.
43114         (remainder_test_upward): Likewise.
43115         (drem_test_upward): Likewise.
43116         (remquo_test): Likewise.
43117         (rint_test): Likewise.
43118         (rint_test_tonearest): Likewise.
43119         (rint_test_towardzero): Likewise.
43120         (rint_test_downward): Likewise.
43121         (rint_test_upward): Likewise.
43122         (round_test): Likewise.
43123         (scalb_test): Likewise.
43124         (scalbn_test): Likewise.
43125         (scalbln_test): Likewise.
43126         (signbit_test): Likewise.
43127         (sin_test): Likewise.
43128         (sin_test_tonearest): Likewise.
43129         (sin_test_towardzero): Likewise.
43130         (sin_test_downward): Likewise.
43131         (sin_test_upward): Likewise.
43132         (sincos_test): Likewise.
43133         (sinh_test): Likewise.
43134         (sinh_test_tonearest): Likewise.
43135         (sinh_test_towardzero): Likewise.
43136         (sinh_test_downward): Likewise.
43137         (sinh_test_upward): Likewise.
43138         (sqrt_test): Likewise.
43139         (sqrt_test_tonearest): Likewise.
43140         (sqrt_test_towardzero): Likewise.
43141         (sqrt_test_downward): Likewise.
43142         (sqrt_test_upward): Likewise.
43143         (tan_test): Likewise.
43144         (tan_test_tonearest): Likewise.
43145         (tan_test_towardzero): Likewise.
43146         (tan_test_downward): Likewise.
43147         (tan_test_upward): Likewise.
43148         (tanh_test): Likewise.
43149         (tgamma_test): Likewise.
43150         (trunc_test): Likewise.
43151         (y0_test): Likewise.
43152         (y1_test): Likewise.
43153         (yn_test): Likewise.
43154         (significand_test): Likewise.
43155
43156         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
43157         individual tests in comment.
43158         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
43159         (prev_max_error): New variable.
43160         (prev_real_max_error): Likewise.
43161         (prev_imag_max_error): Likewise.
43162         (compare_ulp_data): Don't refer to test names in comment.
43163         (find_test_ulps): Remove function.
43164         (find_function_ulps): Likewise.
43165         (find_complex_function_ulps): Likewise.
43166         (init_max_error): Take function name as argument.  Look up ulps
43167         for that function.
43168         (print_ulps): Remove function.
43169         (print_max_error): Use prev_max_error instead of calling
43170         find_function_ulps.
43171         (print_complex_max_error): Use prev_real_max_error and
43172         prev_imag_max_error instead of calling find_complex_function_ulps.
43173         (check_float_internal): Take max_ulp parameter instead of calling
43174         find_test_ulps.  Don't call print_ulps.
43175         (check_float): Update call to check_float_internal.
43176         (check_complex): Update calls to check_float_internal.
43177         (START): Pass argument to init_max_error.
43178         * math/gen-libm-test.pl (%results): Don't include "kind"
43179         information.
43180         (parse_ulps): Don't handle ulps of individual tests.
43181         (print_ulps_file): Likewise.
43182         (output_ulps): Likewise.
43183         * math/README.libm-test: Update.
43184         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
43185         individual tests.
43186         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
43187         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
43188         * sysdeps/arm/libm-test-ulps: Likewise.
43189         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
43190         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
43191         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
43192         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
43193         * sysdeps/microblaze/libm-test-ulps: Likewise.
43194         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
43195         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
43196         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
43197         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
43198         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
43199         * sysdeps/sh/libm-test-ulps: Likewise.
43200         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
43201         * sysdeps/tile/libm-test-ulps: Likewise.
43202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43203
43204 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
43205
43206         * math/libm-test.inc (print_complex_max_error): Check separately
43207         whether real and imaginary errors are within allowed range and
43208         pass 0 to print_complex_function_ulps instead of value within
43209         allowed range.
43210
43211 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43212
43213         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
43214         formatting.
43215         (get_handles_fopen): Likewise.
43216         (do_write_test): Likewise.
43217
43218         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
43219
43220         * libio/fileops.c (do_ftell): Use cached offset when
43221         available.
43222         * libio/iofwide.c (do_ftell_wide): Likewise.
43223         * libio/iofdopen.c (_IO_new_fdopen): Don't use
43224         _IO_file_attach.
43225         * libio/wfileops.c (_IO_fwide): Don't cache offset.
43226
43227         [BZ #16532]
43228         * libio/libioP.h (get_file_offset): New function.
43229         * libio/fileops.c (get_file_offset): Likewise.
43230         (do_ftell): Likewise.
43231         (_IO_new_file_seekoff): Split out ftell logic.
43232         * libio/wfileops.c (do_ftell_wide): Likewise.
43233         (_IO_wfile_seekoff): Split out ftell logic.
43234         * libio/tst-ftell-active-handler.c: New test case.
43235         * libio/Makefile (tests): Add it.
43236
43237 2014-03-03  Roland McGrath  <roland@hack.frob.com>
43238
43239         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
43240         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
43241
43242 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
43243
43244         [BZ #16639]
43245         * nscd/connections.c (nscd_init): Call do_exit.
43246         (start_threads): Call do_exit and notify_parent.
43247         (begin_drop_privileges): Call do_exit.
43248         (finish_drop_privileges): Likewise.
43249         * nscd/selinux.c (preserve_capabilities): Likewise.
43250         (install_real_capabilities): Likewise.
43251         (nscd_selinux_enabled): Likewise.
43252         (avc_create_thread): Likewise.
43253         (avc_alloc_lock): Likewise.
43254         (nscd_avc_init): Likewise.
43255         * nscd/nscd.c (parent_fd): New static variable.
43256         (main): Create a pipe between parent and child processes.
43257         Skip closing parent_fd.
43258         (monitor_child): New function.
43259         (do_exit): Likewise.
43260         (notify_parent): Likewise.
43261         * nscd/nscd.h (notify_parent): Likewise.
43262         (do_exit): Likewise.
43263
43264 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
43265
43266         * malloc/malloc.c (__libc_calloc): Revert last change.
43267
43268 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43269
43270         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43271
43272 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43273
43274         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
43275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
43276         implementation.
43277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43278         (__libc_ifunc_impl_list): Likewise.
43279         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
43280         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
43281         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
43282         * string/strrchr.c: Define STRRCHR.
43283
43284 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
43285
43286         * benchtest/bench-strtok.c (simple_strtok): Delete.
43287         (strtok_string): Use as benchmark.
43288         * string/strtok (STRTOK): New macro.
43289
43290 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
43291
43292         * manual/threads.texi: Add header and standard comments to all
43293         functions.
43294
43295         * elf/dl-lookup.c (check_match): New function.
43296         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
43297         (do_lookup_x): Remove nested function check_match. Use non-nested
43298         function check_match.
43299
43300 2014-02-28  Roland McGrath  <roland@hack.frob.com>
43301
43302         * csu/Makefile (generated, before-compile): Use += rather than =.
43303         * catgets/Makefile (generated, generated-dirs): Likewise.
43304         * debug/Makefile (generated): Likewise.
43305         * dlfcn/Makefile (generated): Likewise.
43306         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
43307         * iconvdata/Makefile (before-compile, generated): Likewise.
43308         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
43309         * libio/Makefile (generated): Likewise.
43310         * malloc/Makefile (generated): Likewise.
43311         * manual/Makefile (generated, generated-dirs): Likewise.
43312         * misc/Makefile (generated): Likewise.
43313         * posix/Makefile (generated): Likewise.
43314         * resolv/Makefile (generated): Likewise.
43315         * sunrpc/Makefile (generated, generated-dirs): Likewise.
43316         * timezone/Makefile (generated, generated-dirs): Likewise.
43317
43318         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
43319
43320 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43321
43322         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43323         power8 implementation.
43324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
43325         file: POWER8 llround ifunc implementation.
43326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
43327         (__lllround): Add POWER8 implementation.
43328         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
43329         POWER8 llround implementation.
43330
43331         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
43332         power8 implementation.
43333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
43334         file: POWER8 llrint ifunc implementation.
43335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
43336         Add POWER8 implementation.
43337         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
43338         POWER8 llrint implementation.
43339
43340         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
43341         power8 implementation.
43342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
43343         file: POWER8 finite ifunc implementation.
43344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
43345         Add POWER8 implementation.
43346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
43347         Likewise.
43348         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
43349         POWER8 finite implementation.
43350         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
43351
43352         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
43353         power8 implementation.
43354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
43355         file: POWER8 isinf ifunc implementation.
43356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
43357         POWER8 implementation.
43358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
43359         Likewise.
43360         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
43361         isinf implementation.
43362         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
43363
43364         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
43365         (INIT_ARCH): Add hwcap2 initialization.
43366         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43367         power8 implementation.
43368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
43369         file: POWER8 isnan ifunc implementation.
43370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
43371         POWER8 implementation.
43372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
43373         Likewise.
43374         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
43375         isnan implementation.
43376         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
43377
43378 2014-02-27  Joey Ye  <joey.ye@arm.com>
43379
43380         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
43381         (_FP_NANFRAC_Q): Set to zero.
43382
43383 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
43384
43385         [BZ #16623]
43386         * math/auto-libm-test-in: New test inputs.
43387         * math/auto-libm-test-out: Regenerate.
43388         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
43389         and DA.
43390         (__cos): Likewise.
43391         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
43392
43393 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
43394
43395         * scripts/evaluate-test.sh: Take new argument indicating whether
43396         failure is expected.
43397         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
43398         indicating whether failure is expected.
43399         * conform/Makefile (test-xfail-run-conformtest): New variable.
43400         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
43401         level.
43402         * posix/Makefile (test-xfail-annexc): New variable.
43403         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
43404
43405 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
43406
43407         * argp/Makefile: Include Makeconfig immediately after defining
43408         subdir.
43409         * assert/Makefile: Likewise.
43410         * benchtests/Makefile: Likewise.
43411         * catgets/Makefile: Likewise.
43412         * conform/Makefile: Likewise.
43413         * crypt/Makefile: Likewise.
43414         * csu/Makefile: Likewise.
43415         (all): Remove target.
43416         * ctype/Makefile: Include Makeconfig immediately after defining
43417         subdir.
43418         * debug/Makefile: Likewise.
43419         * dirent/Makefile: Likewise.
43420         * dlfcn/Makefile: Likewise.
43421         * gmon/Makefile: Likewise.
43422         * gnulib/Makefile: Likewise.
43423         * grp/Makefile: Likewise.
43424         * gshadow/Makefile: Likewise.
43425         * hesiod/Makefile: Likewise.
43426         * hurd/Makefile: Likewise.
43427         (all): Remove target.
43428         * iconvdata/Makefile: Include Makeconfig immediately after
43429         defining subdir.
43430         * inet/Makefile: Likewise.
43431         * intl/Makefile: Likewise.
43432         * io/Makefile: Likewise.
43433         * libio/Makefile: Likewise.
43434         (all): Remove target.
43435         * locale/Makefile: Include Makeconfig immediately after defining
43436         subdir.
43437         * login/Makefile: Likewise.
43438         * mach/Makefile: Likewise.
43439         (all): Remove target.
43440         * malloc/Makefile: Include Makeconfig immediately after defining
43441         subdir.
43442         (all): Remove target.
43443         * manual/Makefile: Include Makeconfig immediately after defining
43444         subdir.
43445         * math/Makefile: Likewise.
43446         * misc/Makefile: Likewise.
43447         * nis/Makefile: Likewise.
43448         * nss/Makefile: Likewise.
43449         * po/Makefile: Likewise.
43450         (all): Remove target.
43451         * posix/Makefile: Include Makeconfig immediately after defining
43452         subdir.
43453         * pwd/Makefile: Likewise.
43454         * resolv/Makefile: Likewise.
43455         * resource/Makefile: Likewise.
43456         * rt/Makefile: Likewise.
43457         * setjmp/Makefile: Likewise.
43458         * shadow/Makefile: Likewise.
43459         * signal/Makefile: Likewise.
43460         * socket/Makefile: Likewise.
43461         * soft-fp/Makefile: Likewise.
43462         * stdio-common/Makefile: Likewise.
43463         * stdlib/Makefile: Likewise.
43464         * streams/Makefile: Likewise.
43465         * string/Makefile: Likewise.
43466         * sunrpc/Makefile: Likewise.
43467         (all): Remove target.
43468         * sysvipc/Makefile: Include Makeconfig immediately after defining
43469         subdir.
43470         * termios/Makefile: Likewise.
43471         * time/Makefile: Likewise.
43472         * timezone/Makefile: Likewise.
43473         (all): Remove target.
43474         * wcsmbs/Makefile: Include Makeconfig immediately after defining
43475         subdir.
43476         * wctype/Makefile: Likewise.
43477
43478 2014-02-26  Steve Ellcey  <sellcey@mips.com>
43479
43480         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
43481         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
43482         (libc_feholdexcept_setround_mips): Ditto.
43483         (libc_feholdsetround): New.
43484         (libc_feholdsetroundf): New.
43485         (libc_feholdsetroundl): New.
43486         (libc_feupdateenv_test_mips): New.
43487         (libc_feupdateenv_test): New.
43488         (libc_feupdateenv_testf): New.
43489         (libc_feupdateenv_testl): New.
43490         (libc_feresetround): New.
43491         (libc_feresetroundf): New.
43492         (libc_feresetroundl): New.
43493         (libc_fetestexcept_mips): New.
43494         (libc_fetestexcept): New.
43495         (libc_fetestexceptf): New.
43496         (libc_fetestexceptl): New.
43497         (HAVE_RM_CTX): New.
43498         (libc_feholdexcept_setround_mips_ctx): New.
43499         (libc_feholdexcept_setround_ctx): New.
43500         (libc_feholdexcept_setroundf_ctx): New.
43501         (libc_feholdexcept_setroundl_ctx): New.
43502         (libc_fesetenv_mips_ctx): New.
43503         (libc_fesetenv_ctx): New.
43504         (libc_fesetenv_ctxf): New.
43505         (libc_fesetenv_ctxl): New.
43506         (libc_feupdateenv_mips_ctx): New.
43507         (libc_feupdateenv_ctx): New.
43508         (libc_feupdateenvf_ctx): New.
43509         (libc_feupdateenvl_ctx): New.
43510         (libc_feholdsetround_mips_ctx): New.
43511         (libc_feholdsetround_ctx): New.
43512         (libc_feholdsetroundf_ctx): New.
43513         (libc_feholdsetroundl_ctx): New.
43514         (libc_feresetround_mips_ctx): New.
43515         (libc_feresetround_ctx): New.
43516         (libc_feresetroundf_ctx): New.
43517         (libc_feresetroundl_ctx): New.
43518
43519 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
43520
43521         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
43522
43523         * manual/ipc.texi: New file.
43524         * manual/Makefile (chapters): Add ipc.
43525         * manual/job.texi: Add "Inter-Process Communication" to next.
43526         * manual/process.texi: Add "Inter-Process Communication" to prev.
43527
43528 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43529
43530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43531
43532 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
43533
43534         * malloc/malloc.c (__libc_calloc): Simplify implementation.
43535
43536         * manual/arith.texi: Fix spaces after sentences.
43537         * manual/charset.texi: Likewise.
43538         * manual/errno.texi: Likewise.
43539         * manual/install.texi: Likewise.
43540         * manual/llio.texi: Likewise.
43541         * manual/locale.texi: Likewise.
43542         * manual/maint.texi: Likewise.
43543         * manual/math.texi: Likewise.
43544         * manual/memory.texi: Likewise.
43545         * manual/message.texi: Likewise.
43546         * manual/probes.texi: Likewise.
43547         * manual/resource.texi: Likewise.
43548         * manual/signal.texi: Likewise.
43549         * manual/socket.texi: Likewise.
43550         * manual/stdio.texi: Likewise.
43551         * manual/string.texi: Likewise.
43552         * manual/time.texi: Likewise.
43553         * manual/users.texi: Likewise.
43554
43555 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43556
43557         [BZ #16632]
43558         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43559         _DEFAULT_SOURCE is defined.
43560
43561 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43562             Carlos O'Donell  <carlos@redhat.com>
43563
43564         [BZ #16613]
43565         * elf/dl-tls.c (_dl_count_modids): New function.
43566         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43567         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43568         audit library and increment generation counter.
43569         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43570         * elf/tst-audit9.c: New file.
43571         * elf/tst-auditmod9a.c: New file.
43572         * elf/tst-auditmod9b.c: New file.
43573         * elf/Makefile: Add rules to build and run tst-audit9.
43574
43575 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43576
43577         [BZ #15347]
43578         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43579
43580 2014-02-25  Will Newton  <will.newton@linaro.org>
43581
43582         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43583         (__longjmp): Restore sp and lr before restoring callee
43584         saved registers.  Add longjmp and longjmp_target
43585         SystemTap probe point.
43586         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43587         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43588         Define to zero to match jmpbuf layout.
43589         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43590         (__sigsetjmp): Save sp and lr before saving callee
43591         saved registers.  Add setjmp SystemTap probe point.
43592
43593 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43594
43595         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43596
43597 2014-02-24  Andreas Schwab  <schwab@suse.de>
43598
43599         [BZ #15804]
43600         * elf/pldd.c (wait_for_ptrace_stop): New function.
43601         (main): Call it after attaching.
43602
43603 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43604
43605         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43606         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43607         Versions files is now verboten.
43608         * hurd/Versions (libc: GLIBC_2.0):
43609         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43610         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43611         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43612         * mach/Versions: Likewise.
43613
43614         * csu/Versions: Remove unused %include.
43615         * resolv/Versions: Likewise.
43616
43617 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43618
43619         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43620         ($(objpfx)check-local-headers.out): Likewise.
43621         ($(objpfx)begin-end-check.out): Likewise.
43622         * Makerules (check-abi-%.out): Likewise.
43623         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43624         ($(objpfx)test2.cat): Likewise.
43625         ($(objpfx)de/libc.cat): Likewise.
43626         ($(objpfx)test-gencat.out): Likewise.
43627         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43628         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43629         ($(objpfx)noload-mem): Likewise.
43630         ($(objpfx)tst-pathopt.out): Likewise.
43631         ($(objpfx)tst-rtld-load-self.out): Likewise.
43632         ($(objpfx)tst-array1-cmp.out): Likewise.
43633         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43634         ($(objpfx)tst-array2-cmp.out): Likewise.
43635         ($(objpfx)tst-array3-cmp.out): Likewise.
43636         ($(objpfx)tst-array4-cmp.out): Likewise.
43637         ($(objpfx)tst-array5-cmp.out): Likewise.
43638         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43639         ($(objpfx)check-textrel.out): Likewise.
43640         ($(objpfx)check-execstack.out): Likewise.
43641         ($(objpfx)check-localplt.out): Likewise.
43642         ($(objpfx)order2-cmp.out): Likewise.
43643         ($(objpfx)tst-leaks1-mem): Likewise.
43644         ($(objpfx)tst-leaks1-static-mem): Likewise.
43645         ($(objpfx)tst-initorder-cmp.out): Likewise.
43646         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43647         ($(objpfx)tst-unused-dep.out): Likewise.
43648         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43649         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43650         * iconv/Makefile (test-iconvconfig): Likewise.
43651         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43652         ($(objpfx)iconv-test.out): Likewise.
43653         ($(objpfx)tst-tables.out): Likewise.
43654         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43655         ($(objpfx)tst-gettext.out): Likewise.
43656         ($(objpfx)tst-translit.out): Likewise.
43657         ($(objpfx)tst-gettext2.out): Likewise.
43658         ($(objpfx)tst-gettext4.out): Likewise.
43659         ($(objpfx)tst-gettext6.out): Likewise.
43660         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43661         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43662         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43663         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43664         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43665         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43666         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43667         ($(objpfx)wordexp-tst.out): Likewise.
43668         ($(objpfx)annexc.out): Likewise.
43669         ($(objpfx)tst-fnmatch-mem): Likewise.
43670         ($(objpfx)bug-regex2-mem): Likewise.
43671         ($(objpfx)bug-regex14-mem): Likewise.
43672         ($(objpfx)bug-regex21-mem): Likewise.
43673         ($(objpfx)bug-regex31-mem): Likewise.
43674         ($(objpfx)tst-vfork3-mem): Likewise.
43675         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43676         ($(objpfx)tst-pcre-mem): Likewise.
43677         ($(objpfx)tst-boost-mem): Likewise.
43678         ($(objpfx)tst-getconf.out): Likewise.
43679         ($(objpfx)bug-ga2-mem): Likewise.
43680         ($(objpfx)bug-glob2-mem): Likewise.
43681         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43682         ($(objpfx)mtrace-tst-leaks2): Likewise.
43683         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43684         ($(objpfx)tst-printf.out): Likewise.
43685         ($(objpfx)tst-setvbuf1.out): Likewise.
43686         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43687         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43688         ($(objpfx)tst-fmtmsg.out): Likewise.
43689         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43690         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43691
43692         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43693         * bits/sigaction.h [__USE_MISC]: Likewise.
43694         * bits/waitstatus.h: Update #endif comments.
43695         * ctype/ctype.h: Likewise.
43696         * dirent/dirent.h: Likewise.
43697         [__USE_MISC]: Remove redundant conditionals.
43698         * grp/grp.h: Update #endif comments.
43699         [__USE_GNU]: Remove redundant conditionals.
43700         [__USE_MISC]: Likewise.
43701         * inet/netinet/in.h [__USE_GNU]: Likewise.
43702         * io/sys/stat.h [__USE_MISC]: Likewise.
43703         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43704         * libio/bits/stdio.h: Update #endif comments.
43705         [__USE_MISC]: Remove redundant conditionals.
43706         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43707         * libio/stdio.h: Update #endif comments.
43708         [__USE_MISC]: Remove redundant conditionals.
43709         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43710         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43711         * math/math.h: Update #else and #endif comments.
43712         [__USE_MISC]: Remove redundant conditionals.
43713         * misc/sys/uio.h: Update #endif comments.
43714         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43715         * posix/glob.h [__USE_MISC]: Likewise.
43716         * posix/sys/types.h: Update #endif comments.
43717         [__USE_MISC]: Remove redundant conditionals.
43718         * posix/sys/wait.h: Update #endif comments.
43719         [__USE_MISC]: Remove redundant conditionals.
43720         * posix/unistd.h: Update #endif comments.
43721         [__USE_MISC]: Remove redundant conditionals.
43722         * pwd/pwd.h [__USE_GNU]: Likewise.
43723         [__USE_MISC]: Likewise.
43724         * resolv/netdb.h [__USE_GNU]: Likewise.
43725         * signal/signal.h: Update #endif comments.
43726         [__USE_MISC]: Remove redundant conditionals.
43727         * stdlib/stdlib.h: Update #else and #endif comments.
43728         [__USE_MISC]: Remove redundant conditionals.
43729         [__USE_GNU]: Likewise.
43730         * string/bits/string2.h [__USE_MISC]: Likewise.
43731         * string/string.h: Update #endif comments.
43732         [__USE_MISC]: Remove redundant conditionals.
43733         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43734         Likewise.
43735         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43736         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43737         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43738         Likewise.
43739         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43740         Likewise.
43741         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43742         comments.
43743         [__USE_MISC]: Remove redundant conditionals.
43744         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43745         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43746         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43747         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43748         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43749         Likewise.
43750         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43751         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43752         Likewise.
43753         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43754         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43755         Likewise.
43756         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43757         Likewise.
43758         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43759         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43760         Likewise.
43761         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43762         Likewise.
43763         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43764         * sysdeps/x86/bits/string.h: Update #endif comments.
43765         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43766         conditionals.
43767         * time/sys/time.h: Update #endif comments.
43768         * time/time.h: Likewise.
43769         [__USE_MISC]: Remove redundant conditionals.
43770
43771 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43772
43773         [BZ #16600]
43774         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43775
43776 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43777
43778         * Versions.def (librt): Add GLIBC_2.17.
43779
43780 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43781
43782         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43783         synonym for _SYS_AUXV_H to allow direct inclusion.
43784         * sysdeps/sparc/bits/hwcap.h: Likewise.
43785         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43786         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43787         * sysdeps/sparc/sysdep.h: Likewise.
43788
43789 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43790
43791         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43792
43793 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43794
43795         * benchtests/bench-strrchr.c: Print length instead of position.
43796
43797 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43798
43799         [BZ #16611]
43800         * sysdeps/unix/sysv/linux/kernel-features.h
43801         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43802         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43803         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43804         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43805         Likewise.
43806         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43807         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43808         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43809         (__ASSUME_SENDMMSG): Define instead of using previous
43810         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43811         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43812         (__ASSUME_SENDMMSG_SYSCALL): Define.
43813         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43814         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43815         Likewise.
43816         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43817         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43818         Likewise.
43819         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43820         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43821         Likewise.
43822         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43823         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43824         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43825         [__ASSUME_SENDMMSG]: Change conditionals to
43826         [__ASSUME_SENDMMSG_SOCKETCALL].
43827         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43828         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43829         Define.
43830         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43831         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43832         Likewise.
43833         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43834         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43835         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43836         [!__ASSUME_SENDMMSG]: Change conditional to
43837         [!__ASSUME_SENDMMSG_SOCKETCALL].
43838         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43839         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43840         Define.
43841
43842         [BZ #16610]
43843         * sysdeps/unix/sysv/linux/kernel-features.h
43844         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43845         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43846         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43847         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43848         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43849         [__i386__ || __sparc__]
43850         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43851         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43852         (__ASSUME_RECVMMSG): Define instead of using previous
43853         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43854         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43855         (__ASSUME_RECVMMSG_SYSCALL): Define.
43856         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43857         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43858         Likewise.
43859         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43860         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43861         Likewise.
43862         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43863         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43864         Likewise.
43865         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43866         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43867         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43868         [__ASSUME_RECVMMSG]: Change condition to
43869         [__ASSUME_RECVMMSG_SOCKETCALL].
43870         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43871         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43872         Define.
43873         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43874         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43875         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43876         Likewise.
43877         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43878         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43879         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43880         [!__ASSUME_RECVMMSG]: Change condition to
43881         [!__ASSUME_RECVMMSG_SOCKETCALL].
43882         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43883         (__ASSUME_RECVMMSG_SYSCALL): Define.
43884
43885         [BZ #16609]
43886         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43887         __powerpc__ || __s390__ || __sh__ || __sparc__]
43888         (__ASSUME_SOCKETCALL): Define.
43889         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43890         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43891         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43892         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43893         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43894         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43895         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43896         (__ASSUME_ACCEPT4): Define instead of using previous
43897         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43898         __powerpc__ || __sparc__ || __s390__)] condition.
43899         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43900         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43901         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43902         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43903         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43904         [!__ASSUME_ACCEPT4]: Change condition to
43905         [!__ASSUME_ACCEPT4_SOCKETCALL].
43906         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43907         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43908         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43909         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43910         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43911         __ASSUME_ACCEPT4_SYSCALL.
43912         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43913         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43914         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43915         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43916         __ASSUME_ACCEPT4_SYSCALL.
43917         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43918         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43919         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43920         [__ASSUME_ACCEPT4]: Change condition to
43921         [__ASSUME_ACCEPT4_SOCKETCALL].
43922         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43923         (__ASSUME_SOCKETCALL): Define.
43924         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43925         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43926         (__ASSUME_SOCKETCALL): Define.
43927         (__ASSUME_ACCEPT4): Remove.
43928         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43929         Define.
43930         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43931         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43932         Likewise.
43933         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43934         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43935
43936         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43937         macro.
43938         (HWCAP_ARM_LPAE): Likewise.
43939         (HWCAP_ARM_EVTSTRM): Likewise.
43940         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43941         Add vpfd32, lpae and evtstrm.
43942         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43943         Increase to 22.
43944
43945 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43946
43947         * math/auto-libm-test-in: Add tests of clog10.
43948         * math/auto-libm-test-out: Regenerated.
43949         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43950         * sysdeps/i386/fpu/libm-test-ulps: Update.
43951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43952
43953 2014-02-18  Andreas Schwab  <schwab@suse.de>
43954
43955         [BZ #16574]
43956         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43957         Store non-zero if the second buffer was newly allocated.
43958         (send_dg): Likewise.
43959         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43960         to send_vc and send_dg.
43961         (res_nsend): Pass NULL for ansp2_malloced.
43962         * resolv/res_query.c (__libc_res_nquery): Add parameter
43963         answerp2_malloced and pass it down to __libc_res_nsend.
43964         (res_nquery): Pass additional NULL to __libc_res_nquery.
43965         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43966         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43967         second answer buffer if answerp2_malloced was set.
43968         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43969         (__libc_res_nquerydomain): Add parameter
43970         answerp2_malloced and pass it down to __libc_res_nquery.
43971         (res_nquerydomain): Pass additional NULL to
43972         __libc_res_nquerydomain.
43973         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43974         additional NULL to __libc_res_nsend and __libc_res_nquery.
43975         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43976         additional NULL to __libc_res_nsearch.
43977         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43978         parameter of __libc_res_nsearch to check for separately allocated
43979         second buffer.
43980         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43981         __libc_res_nquery.
43982         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43983         additional NULL to __libc_res_nquery.
43984         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43985         __libc_res_nsearch.
43986         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43987         * include/resolv.h: Update prototypes of __libc_res_nquery,
43988         __libc_res_nsearch, __libc_res_nsend.
43989
43990 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43991
43992         * math/auto-libm-test-in: Add tests of fma.
43993         * math/auto-libm-test-out: Regenerated.
43994         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43995         (fma_towardzero_test_data): Likewise.
43996         (fma_downward_test_data): Likewise.
43997         (fma_upward_test_data): Likewise.
43998         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43999         mpc_mode.
44000         (rounding_modes): Add values for new field.
44001         (func_calc_method): Add value mpfr_fff_f.
44002         (func_calc_desc): Add mpfr_fff_f union field.
44003         (test_function): Add field exact_args.
44004         (FUNC): Add macro argument EXACT_ARGS.
44005         (FUNC_mpfr_f_f): Update call to FUNC.
44006         (FUNC_mpfr_f_f): Likewise.
44007         (FUNC_mpfr_ff_f): Likewise.
44008         (FUNC_mpfr_if_f): Likewise.
44009         (FUNC_mpc_c_f): Likewise.
44010         (FUNC_mpc_c_c): Likewise.
44011         (test_functions): Add fma.  Update calls to FUNC.
44012         (handle_input_arg): Add argument exact_args.
44013         (add_test): Update call to handle_input_arg.
44014         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
44015         (output_for_one_input_case): Update call to calc_generic_results.
44016         Recalculate exact zero results in each rounding mode.
44017
44018         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
44019         non-negative before setting low bit.
44020         * math/auto-libm-test-in: Mark one asin test possibly having
44021         spurious underflow.
44022         * math/auto-libm-test-out: Regenerated.
44023         * sysdeps/i386/fpu/libm-test-ulps: Update.
44024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44025
44026 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
44027
44028         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
44029         * sysdeps/unix/sysv/linux/microblaze: Move directory from
44030         ports/sysdeps/unix/sysv/linux/microblaze.
44031         * README: Add missing listing for microblaze*-*-linux-gnu.
44032
44033 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
44034
44035         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
44036         duplicate code
44037
44038 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
44039
44040         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
44041         * sysdeps/unix/sysv/linux/ia64: Move directory from
44042         ports/sysdeps/unix/sysv/linux/ia64.
44043         * README: Update listing for ia64-*-linux-gnu.
44044
44045 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
44046             Joseph Myers  <joseph@codesourcery.com>
44047
44048         * Makeconfig (test-name): New variable.
44049         (evaluate-test): Likewise.
44050         * Makerules (do-test-clean): Remove .test-result files.
44051         (common-mostlyclean): Likewise.
44052         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
44053         * scripts/evaluate-test.sh: New file.
44054
44055 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
44056
44057         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
44058         separate $(objpfx)tst-fopenloc-cmp.out and
44059         $(objpfx)tst-fopenloc-mem.out targets.
44060         (tests): Update dependencies.
44061         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
44062         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
44063         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
44064         (tst-rxspencer-no-utf8-ARGS): New variable.
44065         (tst-rxspencer-no-utf8-ENV): Likewise.
44066         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
44067         instead of $(objpfx)tst-rxspencer-mem.
44068         ($(objpfx)tst-rxspencer-mem): Change target to
44069         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
44070         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
44071         * posix/tst-rxspencer-no-utf8.c: New file.
44072
44073         * elf/Makefile ($(objpfx)order.out): Remove rule.
44074         [$(run-built-tests) = yes] (tests): Depend on
44075         $(objpfx)order-cmp.out.
44076         ($(objpfx)order-cmp.out): New rule.
44077         [$(run-built-tests) = yes] (tests): Depend on
44078         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
44079         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
44080         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
44081         $(objpfx)tst-array5-static-cmp.out.
44082         ($(objpfx)tst-array1.out): Remove rule.
44083         ($(objpfx)tst-array1-cmp.out): New rule.
44084         ($(objpfx)tst-array1-static.out): Remove rule.
44085         ($(objpfx)tst-array1-static-cmp.out): New rule.
44086         ($(objpfx)tst-array2.out): Remove rule.
44087         ($(objpfx)tst-array2-cmp.out): New rule.
44088         ($(objpfx)tst-array3.out): Remove rule.
44089         ($(objpfx)tst-array3-cmp.out): New rule.
44090         ($(objpfx)tst-array4.out): Remove rule.
44091         ($(objpfx)tst-array4-cmp.out): New rule.
44092         ($(objpfx)tst-array5.out): Remove rule.
44093         ($(objpfx)tst-array5-cmp.out): New rule.
44094         ($(objpfx)tst-array5-static.out): Remove rule.
44095         ($(objpfx)tst-array5-static-cmp.out): New rule.
44096         [$(run-built-tests) = yes] (tests): Depend on
44097         $(objpfx)order2-cmp.out.
44098         ($(objpfx)order2.out): Remove rule.
44099         ($(objpfx)order2-cmp.out): New rule.
44100         ($(objpfx)tst-initorder.out): Remove rule.
44101         [$(run-built-tests) = yes] (tests): Depend on
44102         $(objpfx)tst-initorder-cmp.out.
44103         ($(objpfx)tst-initorder-cmp.out): New rule.
44104         ($(objpfx)tst-initorder2.out): Remove rule.
44105         [$(run-built-tests) = yes] (tests): Depend on
44106         $(objpfx)tst-initorder2-cmp.out.
44107         ($(objpfx)tst-initorder2-cmp.out): New rule.
44108         [$(run-built-tests) = yes] (tests): Depend on
44109         $(objpfx)tst-unused-dep-cmp.out.
44110         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
44111         ($(objpfx)tst-unused-dep-cmp.out): New rule.
44112         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
44113         on $(objpfx)tst-setvbuf1-cmp.out.
44114         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
44115         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
44116         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
44117         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
44118         ($(objpfx)tst-svc.out): Remove rule.
44119         ($(objpfx)tst-svc-cmp.out): New rule.
44120
44121 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
44122
44123         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
44124         * ctype/ctype.h [__USE_MISC]: Likewise.
44125         * dirent/dirent.h [__USE_MISC]: Likewise.
44126         * grp/grp.h [__USE_MISC]: Likewise.
44127         * io/fcntl.h [__USE_MISC]: Likewise.
44128         * io/sys/stat.h [__USE_MISC]: Likewise.
44129         * libio/stdio.h [__USE_MISC]: Likewise.
44130         * posix/unistd.h [__USE_MISC]: Likewise.
44131         * pwd/pwd.h [__USE_MISC]: Likewise.
44132         * stdlib.h [__USE_MISC]: Likewise.
44133         * string/bits/string2.h [__USE_MISC]: Likewise.
44134         * string/string.h [__USE_MISC]: Likewise.
44135         * time/time.h [__USE_MISC]: Likewise.
44136
44137 2014-02-13  Andreas Schwab  <schwab@suse.de>
44138
44139         [BZ #16574]
44140         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
44141         second answer buffer if it was separately allocated.
44142
44143 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
44144
44145         * sysdeps/mips/math-tests.h: Include <features.h>.
44146         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
44147         (ROUNDING_TESTS_long_double): Do not define.
44148         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
44149         (EXCEPTION_TESTS_long_double): Likewise.
44150         * sysdeps/mips/mips64/libm-test-ulps: Update.
44151
44152         * include/features.h (__USE_BSD): Remove macro definitions.
44153         (__USE_SVID): Likewise.
44154         (_BSD_SOURCE): Likewise.
44155         (_SVID_SOURCE): Likewise.
44156         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
44157         from definition of _DEFAULT_SOURCE.
44158         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
44159         [_DEFAULT_SOURCE].
44160         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
44161         * bits/mman.h [__USE_BSD]: Likewise.
44162         * bits/termios.h [__USE_BSD]: Likewise.
44163         * bits/waitstatus.h [__USE_BSD]: Likewise.
44164         * ctype/ctype.h [__USE_SVID]: Likewise.
44165         * dirent/dirent.h [__USE_BSD]: Likewise.
44166         * grp/grp.h [__USE_SVID]: Likewise.
44167         [__USE_BSD]: Likewise.
44168         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
44169         * io/fcntl.h [__USE_BSD]: Likewise.
44170         * io/ftw.h [__USE_BSD]: Likewise.
44171         * io/sys/stat.h [__USE_BSD]: Likewise.
44172         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
44173         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
44174         * libio/stdio.h [__USE_SVID]: Likewise.
44175         [__USE_BSD]: Likewise.
44176         * math/math.h [__USE_SVID]: Likewise.
44177         [__USE_BSD]: Likewise.
44178         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
44179         * misc/bits/syslog.h [__USE_BSD]: Likewise.
44180         * misc/search.h [__USE_SVID]: Likewise.
44181         * misc/sys/mman.h [__USE_BSD]: Likewise.
44182         * misc/sys/syslog.h [__USE_BSD]: Likewise.
44183         * misc/sys/uio.h [__USE_BSD]: Likewise.
44184         * posix/bits/unistd.h [__USE_BSD]: Likewise.
44185         * posix/glob.h [__USE_BSD]: Likewise.
44186         * posix/regex.h [__USE_BSD]: Likewise.
44187         * posix/sys/types.h [__USE_BSD]: Likewise.
44188         [__USE_SVID]: Likewise.
44189         * posix/sys/utsname.h [__USE_SVID]: Likewise.
44190         * posix/sys/wait.h [__USE_BSD]: Likewise.
44191         [__USE_SVID]: Likewise.
44192         * posix/unistd.h [__USE_BSD]: Likewise.
44193         [__USE_SVID]: Likewise.
44194         * pwd/pwd.h [__USE_SVID]: Likewise.
44195         * resolv/netdb.h [__USE_BSD]: Likewise.
44196         * setjmp/setjmp.h [__USE_BSD]: Likewise.
44197         * signal/signal.h [__USE_BSD]: Likewise.
44198         [__USE_SVID]: Likewise.
44199         * socket/sys/socket.h [__USE_BSD]: Likewise.
44200         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
44201         * stdlib/stdlib.h [__USE_BSD]: Likewise.
44202         [__USE_SVID]: Likewise.
44203         * string/bits/string2.h [__USE_BSD]: Likewise.
44204         [__USE_SVID]: Likewise.
44205         * string/bits/string3.h [__USE_BSD]: Likewise.
44206         * string/endian.h [__USE_BSD]: Likewise.
44207         * string/string.h [__USE_SVID]: Likewise.
44208         [__USE_BSD]: Likewise.
44209         * string/strings.h [__USE_BSD]: Likewise.
44210         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
44211         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
44212         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
44213         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
44214         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
44215         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
44216         Likewise.
44217         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
44218         Likewise.
44219         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
44220         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
44221         Likewise.
44222         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
44223         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
44224         Likewise.
44225         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
44226         Likewise.
44227         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
44228         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
44229         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
44230         Likewise.
44231         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
44232         Likewise.
44233         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
44234         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
44235         * termios/termios.h [__USE_BSD]: Likewise.
44236         * time/sys/time.h [__USE_BSD]: Likewise.
44237         * time/time.h [__USE_BSD]: Likewise.
44238         [__USE_SVID]: Likewise.
44239
44240         * Makefile (subdir_targets): Remove subdir_lint.out.
44241
44242         * stdio-common/Makefile (do-tst-unbputc): Remove target.
44243         (do-tst-printf): Likewise.
44244         (tests): Depend directly on $(objpfx)tst-unbputc.out and
44245         $(objpfx)tst-printf.out.
44246
44247         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
44248
44249         * Makerules (check-abi-%): Change target to
44250         $(objpfx)check-abi-%.out.
44251         (check-abi target): Update dependencies.
44252         (check-abi-pattern variable): Redirect output of diff to $@.
44253         (check-abi variable): Likewise.
44254         * elf/Makefile (check-abi): Update dependencies.
44255
44256         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
44257         unused.
44258         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
44259         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
44260         subnormal range.
44261         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
44262         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
44263         value has largest subnormal exponent.
44264         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
44265         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
44266         * sysdeps/aarch64/soft-fp/sfp-machine.h
44267         (_FP_TININESS_AFTER_ROUNDING): New macro.
44268         * sysdeps/alpha/soft-fp/sfp-machine.h
44269         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44270         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44271         Likewise.
44272         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
44273         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44274         * sysdeps/mips/soft-fp/sfp-machine.h
44275         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44276         * sysdeps/powerpc/soft-fp/sfp-machine.h
44277         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44278         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44279         Likewise.
44280         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
44281         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44282         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
44283         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44284         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44285         Likewise.
44286
44287 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
44288
44289         [BZ #16545]
44290         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
44291         model 1.
44292
44293 2014-02-12  Richard Henderson  <rth@redhat.com>
44294
44295         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
44296         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
44297         * sysdeps/unix/sysv/linux/alpha: Move directory from
44298         ports/sysdeps/unix/sysv/linux/alpha.
44299         * README: Update listing for alpha-*-linux-gnu.
44300
44301 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
44302
44303         * include/features.h: Update comment documenting feature test
44304         macros.
44305         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
44306         _DEFAULT_SOURCE.
44307         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
44308         (_SVID_SOURCE): Likewise.
44309         (_DEFAULT_SOURCE): Update description of default features.
44310         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
44311         with _GNU_SOURCE.
44312         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
44313         (S_ISVTX): Likewise.
44314         * manual/math.texi (Mathematical Constants): Likewise.
44315         * manual/signal.texi (Interrupted Primitives): Likewise.
44316         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
44317         * math/test-matherr.c (_SVID_SOURCE): Do not define.
44318         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
44319         Don't refer to _SVID_SOURCE in warning text.
44320
44321         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44322
44323         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
44324         already defined.
44325         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
44326         * sysdeps/mips/dl-lookup.c: Remove.
44327         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
44328
44329 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
44330
44331         [BZ #16447]
44332         * math/auto-libm-test-in: Add testcase for expl.
44333         * math/auto-libm-test-out: Regenerate.
44334         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
44335         calculation of unsafe.
44336         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
44337
44338 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44339
44340         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
44341         * sysdeps/unix/sysv/linux/aarch64: Move directory from
44342         ports/sysdeps/unix/sysv/linux/aarch64.
44343         * README: Update listing for aarch64*-*-linux-gnu.
44344
44345 2014-02-11  Will Newton  <will.newton@linaro.org>
44346
44347         * manual/probes.texi (Mathematical Function Probes): Use
44348         "triggered" instead of "hit".
44349
44350         * manual/probes.texi (Internal Probes): Add documentation
44351         of setjmp, longjmp and longjmp_target probes.
44352
44353         * include/stap-probe.h: Add comment about probe argument
44354         format.
44355
44356         * malloc/mtrace.c (attribute_hidden): Remove unused macro
44357         definition.  (tr_where, tr_freehook, tr_mallochook,
44358         tr_reallochook, tr_memalignhook): Use ANSI protoype.
44359
44360 2014-02-11  David S. Miller  <davem@davemloft.net>
44361
44362         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
44363         processing int_tests.
44364
44365 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
44366
44367         * sysdeps/mips: Move directory from ports/sysdeps/mips.
44368         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
44369         * sysdeps/unix/sysv/linux/mips: Move directory from
44370         ports/sysdeps/unix/sysv/linux/mips.
44371         * README: Update listing for mips-*-linux-gnu and
44372         mips64-*-linux-gnu.
44373
44374 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
44375
44376         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
44377         * sysdeps/unix/sysv/linux/m68k: Move directory from
44378         ports/sysdeps/unix/sysv/linux/m68k.
44379         * README: Update listing for m68k-*-linux-gnu.
44380
44381 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
44382
44383         * sysdeps/tile: Move directory from ports/sysdeps/tile.
44384         * sysdeps/unix/sysv/linux/generic: Move directory from
44385         ports/sysdeps/unix/sysv/linux/generic.
44386         * sysdeps/unix/sysv/linux/tile: Move directory from
44387         ports/sysdeps/unix/sysv/linux/tile.
44388         * README: Update listing for tile*-*-linux-gnu.
44389
44390 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
44391
44392         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
44393         __builtin_expect.
44394         * benchtests/bench-memmem.c (simple_memmem): Likewise.
44395         * catgets/open_catalog.c (__open_catalog): Likewise.
44396         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
44397         * debug/confstr_chk.c: Likewise.
44398         * debug/fread_chk.c (__fread_chk): Likewise.
44399         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
44400         * debug/getgroups_chk.c: Likewise.
44401         * debug/mbsnrtowcs_chk.c: Likewise.
44402         * debug/mbsrtowcs_chk.c: Likewise.
44403         * debug/mbstowcs_chk.c: Likewise.
44404         * debug/memcpy_chk.c: Likewise.
44405         * debug/memmove_chk.c: Likewise.
44406         * debug/mempcpy_chk.c: Likewise.
44407         * debug/memset_chk.c: Likewise.
44408         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
44409         * debug/strcat_chk.c (__strcat_chk): Likewise.
44410         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
44411         * debug/strncat_chk.c (__strncat_chk): Likewise.
44412         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
44413         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
44414         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
44415         * debug/wcpncpy_chk.c: Likewise.
44416         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
44417         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
44418         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
44419         * debug/wcsncpy_chk.c: Likewise.
44420         * debug/wcsnrtombs_chk.c: Likewise.
44421         * debug/wcsrtombs_chk.c: Likewise.
44422         * debug/wcstombs_chk.c: Likewise.
44423         * debug/wmemcpy_chk.c: Likewise.
44424         * debug/wmemmove_chk.c: Likewise.
44425         * debug/wmempcpy_chk.c: Likewise.
44426         * debug/wmemset_chk.c: Likewise.
44427         * dirent/scandirat.c (SCANDIRAT): Likewise.
44428         * dlfcn/dladdr1.c (dladdr1): Likewise.
44429         * dlfcn/dladdr.c (dladdr): Likewise.
44430         * dlfcn/dlclose.c (dlclose_doit): Likewise.
44431         * dlfcn/dlerror.c (__dlerror): Likewise.
44432         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
44433         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
44434         * dlfcn/dlopen.c (dlopen_doit): Likewise.
44435         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
44436         * dlfcn/dlsym.c (dlsym_doit): Likewise.
44437         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
44438         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
44439         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
44440         Likewise.
44441         * elf/dl-conflict.c: Likewise.
44442         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
44443         * elf/dl-dst.h: Likewise.
44444         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
44445         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
44446         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
44447         * elf/dl-init.c (call_init, _dl_init): Likewise.
44448         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
44449         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
44450         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
44451         Likewise.
44452         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
44453         Likewise.
44454         * elf/dl-minimal.c (__libc_memalign): Likewise.
44455         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
44456         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
44457         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
44458         * elf/dl-sym.c (do_sym): Likewise.
44459         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
44460         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
44461         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
44462         * elf/dl-writev.h (_dl_writev): Likewise.
44463         * elf/ldconfig.c (search_dir): Likewise.
44464         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
44465         (dl_main): Likewise.
44466         * elf/setup-vdso.h (setup_vdso): Likewise.
44467         * grp/compat-initgroups.c (compat_call): Likewise.
44468         * grp/fgetgrent.c (fgetgrent): Likewise.
44469         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
44470         * grp/putgrent.c (putgrent): Likewise.
44471         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
44472         Likewise.
44473         * hurd/hurdinit.c: Likewise.
44474         * iconvdata/8bit-gap.c (struct): Likewise.
44475         * iconvdata/ansi_x3.110.c : Likewise.
44476         * iconvdata/big5.c : Likewise.
44477         * iconvdata/big5hkscs.c : Likewise.
44478         * iconvdata/cp1255.c: Likewise.
44479         * iconvdata/cp1258.c : Likewise.
44480         * iconvdata/cp932.c : Likewise.
44481         * iconvdata/euc-cn.c: Likewise.
44482         * iconvdata/euc-jisx0213.c : Likewise.
44483         * iconvdata/euc-jp.c: Likewise.
44484         * iconvdata/euc-jp-ms.c : Likewise.
44485         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
44486         * iconvdata/gb18030.c : Likewise.
44487         * iconvdata/gbbig5.c (const): Likewise.
44488         * iconvdata/gbgbk.c: Likewise.
44489         * iconvdata/gbk.c : Likewise.
44490         * iconvdata/ibm1364.c : Likewise.
44491         * iconvdata/ibm930.c : Likewise.
44492         * iconvdata/ibm932.c: Likewise.
44493         * iconvdata/ibm933.c : Likewise.
44494         * iconvdata/ibm935.c : Likewise.
44495         * iconvdata/ibm937.c : Likewise.
44496         * iconvdata/ibm939.c : Likewise.
44497         * iconvdata/ibm943.c: Likewise.
44498         * iconvdata/iso_11548-1.c: Likewise.
44499         * iconvdata/iso-2022-cn.c : Likewise.
44500         * iconvdata/iso-2022-cn-ext.c : Likewise.
44501         * iconvdata/iso-2022-jp-3.c: Likewise.
44502         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
44503         * iconvdata/iso-2022-kr.c : Likewise.
44504         * iconvdata/iso646.c (gconv_end): Likewise.
44505         * iconvdata/iso_6937-2.c : Likewise.
44506         * iconvdata/iso_6937.c : Likewise.
44507         * iconvdata/iso8859-1.c: Likewise.
44508         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
44509         * iconvdata/shift_jisx0213.c : Likewise.
44510         * iconvdata/sjis.c : Likewise.
44511         * iconvdata/t.61.c : Likewise.
44512         * iconvdata/tcvn5712-1.c : Likewise.
44513         * iconvdata/tscii.c: Likewise.
44514         * iconvdata/uhc.c : Likewise.
44515         * iconvdata/unicode.c (gconv_end): Likewise.
44516         * iconvdata/utf-16.c (gconv_end): Likewise.
44517         * iconvdata/utf-32.c (gconv_end): Likewise.
44518         * iconvdata/utf-7.c (base64): Likewise.
44519         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
44520         * iconv/gconv_close.c (__gconv_close): Likewise.
44521         * iconv/gconv_open.c (__gconv_open): Likewise.
44522         * iconv/gconv_simple.c (internal_ucs4_loop_single)
44523         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
44524         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
44525         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
44526         (ucs4le_internal_loop_single): Likewise.
44527         * iconv/iconv.c (iconv): Likewise.
44528         * iconv/iconv_close.c: Likewise.
44529         * iconv/loop.c (SINGLE): Likewise.
44530         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
44531         * include/atomic.h: Likewise.
44532         * inet/inet6_option.c (option_alloc): Likewise.
44533         * intl/bindtextdom.c (set_binding_values): Likewise.
44534         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
44535         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
44536         * intl/localealias.c (read_alias_file): Likewise.
44537         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
44538         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
44539         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
44540         * libio/fmemopen.c (fmemopen): Likewise.
44541         * libio/iofgets.c (_IO_fgets): Likewise.
44542         * libio/iofgets_u.c (fgets_unlocked): Likewise.
44543         * libio/iofgetws.c (fgetws): Likewise.
44544         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
44545         * libio/iogetdelim.c (_IO_getdelim): Likewise.
44546         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
44547         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
44548         * locale/findlocale.c (_nl_find_locale): Likewise.
44549         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
44550         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44551         Likewise.
44552         * locale/setlocale.c (setlocale): Likewise.
44553         * login/programs/pt_chown.c (main): Likewise.
44554         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44555         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44556         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44557         (mmap, mmap64, mremap, munmap): Likewise.
44558         * math/e_exp2l.c: Likewise.
44559         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44560         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44561         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44562         * math/s_catan.c (__catan): Likewise.
44563         * math/s_catanf.c (__catanf): Likewise.
44564         * math/s_catanh.c (__catanh): Likewise.
44565         * math/s_catanhf.c (__catanhf): Likewise.
44566         * math/s_catanhl.c (__catanhl): Likewise.
44567         * math/s_catanl.c (__catanl): Likewise.
44568         * math/s_ccosh.c (__ccosh): Likewise.
44569         * math/s_ccoshf.c (__ccoshf): Likewise.
44570         * math/s_ccoshl.c (__ccoshl): Likewise.
44571         * math/s_cexp.c (__cexp): Likewise.
44572         * math/s_cexpf.c (__cexpf): Likewise.
44573         * math/s_cexpl.c (__cexpl): Likewise.
44574         * math/s_clog10.c (__clog10): Likewise.
44575         * math/s_clog10f.c (__clog10f): Likewise.
44576         * math/s_clog10l.c (__clog10l): Likewise.
44577         * math/s_clog.c (__clog): Likewise.
44578         * math/s_clogf.c (__clogf): Likewise.
44579         * math/s_clogl.c (__clogl): Likewise.
44580         * math/s_csin.c (__csin): Likewise.
44581         * math/s_csinf.c (__csinf): Likewise.
44582         * math/s_csinh.c (__csinh): Likewise.
44583         * math/s_csinhf.c (__csinhf): Likewise.
44584         * math/s_csinhl.c (__csinhl): Likewise.
44585         * math/s_csinl.c (__csinl): Likewise.
44586         * math/s_csqrt.c (__csqrt): Likewise.
44587         * math/s_csqrtf.c (__csqrtf): Likewise.
44588         * math/s_csqrtl.c (__csqrtl): Likewise.
44589         * math/s_ctan.c (__ctan): Likewise.
44590         * math/s_ctanf.c (__ctanf): Likewise.
44591         * math/s_ctanh.c (__ctanh): Likewise.
44592         * math/s_ctanhf.c (__ctanhf): Likewise.
44593         * math/s_ctanhl.c (__ctanhl): Likewise.
44594         * math/s_ctanl.c (__ctanl): Likewise.
44595         * math/w_pow.c: Likewise.
44596         * math/w_powf.c: Likewise.
44597         * math/w_powl.c: Likewise.
44598         * math/w_scalb.c (sysv_scalb): Likewise.
44599         * math/w_scalbf.c (sysv_scalbf): Likewise.
44600         * math/w_scalbl.c (sysv_scalbl): Likewise.
44601         * misc/error.c (error_tail): Likewise.
44602         * misc/pselect.c (__pselect): Likewise.
44603         * nis/nis_callback.c (__nis_create_callback): Likewise.
44604         * nis/nis_call.c (__nisfind_server): Likewise.
44605         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44606         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44607         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44608         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44609         * nis/nis_lookup.c (nis_lookup): Likewise.
44610         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44611         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44612         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44613         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44614         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44615         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44616         * nis/nss_compat/compat-initgroups.c (add_group)
44617         (internal_getgrent_r): Likewise.
44618         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44619         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44620         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44621         (internal_getspnam_r): Likewise.
44622         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44623         (_nss_nis_getaliasbyname_r): Likewise.
44624         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44625         (_nss_nis_getntohost_r): Likewise.
44626         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44627         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44628         (_nss_nis_getgrgid_r): Likewise.
44629         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44630         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44631         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44632         (_nss_nis_gethostbyname4_r): Likewise.
44633         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44634         (initgroups_netid): Likewise.
44635         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44636         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44637         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44638         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44639         (_nss_nis_getprotobynumber_r): Likewise.
44640         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44641         (_nss_nis_getsecretkey): Likewise.
44642         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44643         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44644         (_nss_nis_getpwuid_r): Likewise.
44645         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44646         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44647         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44648         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44649         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44650         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44651         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44652         Likewise.
44653         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44654         (_nss_nisplus_getntohost_r): Likewise.
44655         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44656         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44657         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44658         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44659         Likewise.
44660         * nis/nss_nisplus/nisplus-initgroups.c
44661         (_nss_nisplus_initgroups_dyn): Likewise.
44662         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44663         (_nss_nisplus_getnetbyaddr_r): Likewise.
44664         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44665         (_nss_nisplus_getprotobynumber_r): Likewise.
44666         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44667         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44668         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44669         Likewise.
44670         * nis/nss_nisplus/nisplus-service.c
44671         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44672         (_nss_nisplus_getservbyport_r): Likewise.
44673         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44674         (_nss_nisplus_getspnam_r): Likewise.
44675         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44676         Likewise.
44677         * nscd/aicache.c (addhstaiX): Likewise.
44678         * nscd/cache.c (cache_search, prune_cache): Likewise.
44679         * nscd/connections.c (register_traced_file, send_ro_fd)
44680         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44681         (main_loop_epoll): Likewise.
44682         * nscd/grpcache.c (addgrbyX): Likewise.
44683         * nscd/hstcache.c (addhstbyX): Likewise.
44684         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44685         * nscd/mem.c (gc, mempool_alloc): Likewise.
44686         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44687         (addinnetgrX): Likewise.
44688         * nscd/nscd-client.h (__nscd_acquire_maplock)
44689         (__nscd_drop_map_ref): Likewise.
44690         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44691         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44692         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44693         Likewise.
44694         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44695         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44696         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44697         (__nscd_get_map_ref): Likewise.
44698         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44699         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44700         Likewise.
44701         * nscd/pwdcache.c (addpwbyX): Likewise.
44702         * nscd/selinux.c (preserve_capabilities): Likewise.
44703         * nscd/servicescache.c (addservbyX): Likewise.
44704         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44705         * posix/fnmatch.c (fnmatch): Likewise.
44706         * posix/getopt.c (_getopt_internal_r): Likewise.
44707         * posix/glob.c (glob, glob_in_dir): Likewise.
44708         * posix/wordexp.c (exec_comm_child): Likewise.
44709         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44710         (getanswer_r, gaih_getanswer_slice): Likewise.
44711         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44712         * resolv/res_init.c: Likewise.
44713         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44714         * resolv/res_query.c (__libc_res_nquery): Likewise.
44715         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44716         Likewise.
44717         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44718         * stdio-common/perror.c (perror): Likewise.
44719         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44720         * stdio-common/tmpnam.c (tmpnam): Likewise.
44721         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44722         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44723         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44724         Likewise.
44725         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44726         * stdlib/putenv.c (putenv): Likewise.
44727         * stdlib/setenv.c (__add_to_environ): Likewise.
44728         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44729         * stdlib/strtol_l.c (INTERNAL): Likewise.
44730         * string/memmem.c (memmem): Likewise.
44731         * string/strerror.c (strerror): Likewise.
44732         * string/strnlen.c (__strnlen): Likewise.
44733         * string/test-memmem.c (simple_memmem): Likewise.
44734         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44735         * sunrpc/pm_getport.c (__get_socket): Likewise.
44736         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44737         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44738         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44739         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44740         Likewise.
44741         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44742         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44743         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44744         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44745         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44746         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44747         Likewise.
44748         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44749         Likewise.
44750         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44751         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44752         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44753         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44754         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44755         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44756         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44757         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44758         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44759         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44760         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44761         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44762         Likewise.
44763         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44764         Likewise.
44765         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44766         Likewise.
44767         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44768         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44769         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44770         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44771         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44772         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44773         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44774         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44775         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44776         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44777         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44778         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44779         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44780         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44781         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44782         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44783         Likewise.
44784         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44785         Likewise.
44786         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44787         Likewise.
44788         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44789         Likewise.
44790         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44791         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44792         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44793         Likewise.
44794         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44795         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44796         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44797         * sysdeps/posix/sleep.c: Likewise.
44798         * sysdeps/posix/tempname.c: Likewise.
44799         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44800         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44801         Likewise.
44802         * sysdeps/powerpc/powerpc32/dl-machine.h
44803         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44804         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44805         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44806         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44807         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44808         Likewise.
44809         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44810         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44811         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44812         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44813         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44814         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44815         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44816         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44817         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44818         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44819         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44820         (elf_machine_lazy_rel): Likewise.
44821         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44822         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44823         (elf_machine_lazy_rel): Likewise.
44824         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44825         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44826         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44827         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44828         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44829         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44830         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44831         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44832         Likewise.
44833         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44834         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44835         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44836         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44837         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44838         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44839         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44840         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44841         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44842         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44843         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44844         Likewise.
44845         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44846         (__posix_fallocate64_l64): Likewise.
44847         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44848         (posix_fallocate): Likewise.
44849         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44850         Likewise.
44851         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44852         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44853         (getifaddrs_internal): Likewise.
44854         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44855         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44856         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44857         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44858         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44859         (__posix_fallocate64_l64): Likewise.
44860         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44861         Likewise.
44862         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44863         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44864         (__get_clockfreq): Likewise.
44865         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44866         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44867         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44868         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44869         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44870         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44871         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44872         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44873         Likewise.
44874         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44875         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44876         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44877         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44878         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44879         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44880         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44881         Likewise.
44882         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44883         (posix_fallocate): Likewise.
44884         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44885         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44886         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44887         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44888         (elf_machine_rela, elf_machine_rela_relative)
44889         (elf_machine_lazy_rel): Likewise.
44890         * time/asctime.c (asctime_internal): Likewise.
44891         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44892         * time/tzset.c (__tzset_parse_tz): Likewise.
44893         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44894         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44895         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44896         * wcsmbs/wcsmbsload.h: Likewise.
44897
44898         [BZ #15894]
44899         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44900
44901         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44902         (arena_get2): Remove THREAD_STATS conditionals.
44903         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44904         (__malloc_stats, int): Likewise.
44905
44906 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44907
44908         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44909         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44910
44911         * manual/setjmp.texi: Fix typos/grammar errors.
44912
44913         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44914         Only return early when n is <= 0.  Delete unused return statement.
44915
44916         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44917         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44918         * debug/tst-longjmp_chk3.c: New file.
44919
44920         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44921         (test_main): Replace code with set_fortify_handler call.
44922         * debug/test-strcpy_chk.c: Likewise.
44923         * debug/tst-chk1.c: Likewise.
44924         * debug/tst-longjmp_chk.c: Likewise.
44925         * test-skeleton.c: Include fcntl.h & paths.h
44926         (set_fortify_handler): Define.
44927
44928         * debug/tst-longjmp_chk.c: Add header comment and include
44929         ../test-skeleton.c.
44930         (do_test): Mark static.
44931         (TEST_FUNCTION): Define.
44932
44933         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44934         (IP_PMTUDISC_INTERFACE): Likewise.
44935         (IP_MULTICAST_IF): Likewise.
44936         (IP_MULTICAST_TTL): Likewise.
44937         (IP_MULTICAST_LOOP): Likewise.
44938         (IP_ADD_MEMBERSHIP): Likewise.
44939         (IP_DROP_MEMBERSHIP): Likewise.
44940         (IP_UNBLOCK_SOURCE): Likewise.
44941         (IP_BLOCK_SOURCE): Likewise.
44942         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44943         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44944         (IP_MSFILTER): Likewise.
44945         (MCAST_JOIN_GROUP): Likewise.
44946         (MCAST_BLOCK_SOURCE): Likewise.
44947         (MCAST_UNBLOCK_SOURCE): Likewise.
44948         (MCAST_LEAVE_GROUP): Likewise.
44949         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44950         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44951         (MCAST_MSFILTER): Likewise.
44952         (IP_MULTICAST_ALL): Likewise.
44953         (IP_UNICAST_IF): Likewise.
44954
44955         * timezone/Makefile: Delete $(have-ksh) check.
44956         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44957         * timezone/tzselect.ksh: Add +x mode bits.
44958
44959         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44960         (ANON_INODE_FS_MAGIC): Likewise.
44961         (BDEVFS_MAGIC): Likewise.
44962         (BINFMTFS_MAGIC): Likewise.
44963         (BTRFS_TEST_MAGIC): Likewise.
44964         (CRAMFS_MAGIC_WEND): Likewise.
44965         (DEBUGFS_MAGIC): Likewise.
44966         (ECRYPTFS_SUPER_MAGIC): Likewise.
44967         (EXT3_SUPER_MAGIC): Likewise.
44968         (EXT4_SUPER_MAGIC): Likewise.
44969         (FUTEXFS_SUPER_MAGIC): Likewise.
44970         (HOSTFS_SUPER_MAGIC): Likewise.
44971         (HUGETLBFS_MAGIC): Likewise.
44972         (MINIX3_SUPER_MAGIC): Likewise.
44973         (MTD_INODE_FS_MAGIC): Likewise.
44974         (NILFS_SUPER_MAGIC): Likewise.
44975         (OPENPROM_SUPER_MAGIC): Likewise.
44976         (PIPEFS_MAGIC): Likewise.
44977         (PSTOREFS_MAGIC): Likewise.
44978         (QNX6_SUPER_MAGIC): Likewise.
44979         (RAMFS_MAGIC): Likewise.
44980         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44981         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44982         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44983         (SECURITYFS_MAGIC): Likewise.
44984         (SELINUX_MAGIC): Likewise.
44985         (SMACK_MAGIC): Likewise.
44986         (SOCKFS_MAGIC): Likewise.
44987         (SQUASHFS_MAGIC): Likewise.
44988         (STACK_END_MAGIC): Likewise.
44989         (TMPFS_MAGIC): Likewise.
44990         (USBDEVICE_SUPER_MAGIC): Likewise.
44991         (V9FS_MAGIC): Likewise.
44992         (XENFS_SUPER_MAGIC): Likewise.
44993         (CRAMFS_MAGIC): Fix typo in comment.
44994         (EXT2_SUPER_MAGIC): Update comment.
44995         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44996
44997 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44998
44999         * sysdeps/arm: Move directory from ports/sysdeps/arm.
45000         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
45001         * sysdeps/unix/sysv/linux/arm: Move directory from
45002         ports/sysdeps/unix/sysv/linux/arm.
45003         * README: Update listing for arm-*-linux-gnueabi.
45004
45005         * README: Remove mention of am33.
45006
45007 2014-02-07  Roland McGrath  <roland@hack.frob.com>
45008
45009         * bits/sigset.h (__sigemptyset): Use a statement expression rather
45010         than the comma operator, to avoid "rhs of comma has no effect"
45011         compiler warnings.
45012         (__sigfillset, __sigandset, __sigorset): Likewise.
45013         * include/signal.h (__sigemptyset): Likewise.
45014         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
45015
45016 2014-02-07  Allan McRae  <allan@archlinux.org>
45017
45018         * version.h (RELEASE): Set to "development".
45019         (VERSION): Set to "2.19.90"
45020         * NEWS: Add 2.20 section.
45021
45022 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
45023
45024         [BZ #16529]
45025         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
45026
45027 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
45028
45029         * manual/contrib.texi: Update entry for Carlos O'Donell,
45030         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
45031
45032 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
45033
45034         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
45035
45036         * sysdeps/unix/sysv/linux/kernel-features.h
45037         [__LINUX_KERNEL_VERSION >= 0x020621]
45038         (__ASSUME_PROC_PID_TASK_COMM): Define.
45039
45040 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45041
45042         [BZ #16398]
45043         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
45044         conversion when destination buffer does not have enough space.
45045         * libio/tst-ftell-partial-wide.c: New test case.
45046         * libio/Makefile (tests): Add tst-ftell-partial-wide.
45047
45048         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
45049         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
45050         Leonard and Allan McRae.
45051
45052 2014-02-04  David S. Miller  <davem@davemloft.net>
45053
45054         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
45055         32-bit.
45056
45057 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45058
45059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
45060         New file
45061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
45062         New file
45063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
45064         New file.
45065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
45066         New file.
45067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
45068         New file.
45069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
45070         New file.
45071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
45072         New file.
45073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
45074         New file.
45075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
45076         New file.
45077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
45078         New file.
45079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
45080         New file.
45081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
45082         New file.
45083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
45084         New file.
45085
45086 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45087
45088         * nptl/shlib-versions: Change powerpc*le start to 2.17.
45089         * shlib-versions: Likewise.
45090
45091 2014-02-04  Roland McGrath  <roland@hack.frob.com>
45092             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45093
45094         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
45095         (abilist-pattern): New variable, set to %-le.abilist.
45096
45097         * Makerules (abilist-pattern): New variable.
45098         (vpath): Use $(abilist-pattern) in place of %.abilist.
45099         (check-abi-% pattern rule): Likewise.
45100         (check-abi, update-abi): Likewise.
45101
45102 2014-02-04  Eric Wong  <normalperson@yhbt.net>
45103
45104         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45105
45106 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
45107
45108         * manual/startup.texi: Add next, previous, and top entries for
45109         the `Program Arguments' and `Environment Variables' nodes.
45110
45111 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
45112
45113         * manual/macros.texi: Add comments before MTASC-safety macros.
45114
45115         * manual/users.texi: Document MTASC-safety properties.
45116
45117         * manual/threads.texi (pthread_key_create, pthread_key_delete)
45118         (pthread_getspecific, pthread_setspecific): Format with
45119         @deftypefun, and add @safety note.
45120         * manual/signal.texi: Move comments that analyze the above
45121         functions to their home place.
45122
45123 2014-02-03  Allan McRae  <allan@archlinux.org>
45124
45125         * po/sl.po: Update Slovenian translation from translation project.
45126
45127 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
45128
45129         * manual/time.texi (timegm): Add missing blank after @c.
45130         Reported by Joseph Myers <joseph@codesourcery.com>.
45131
45132 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
45133
45134         * manual/check-safety.sh: New.
45135         * manual/Makefile ($(objpfx)stamp-summary): Run it.
45136
45137         * manual/terminal.texi: Document MTASC-safety properties.
45138
45139         * manual/filesys.texi: Document MTASC-safety properties.
45140
45141         * manual/errno.texi: Document MTASC-safety properties.
45142
45143         * manual/intro.texi: Document safety identifiers and
45144         conditionals.
45145
45146         * manual/string.texi (wcstok): Fix prototype.
45147         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
45148
45149         * manual/time.texi: Document MTASC-safety properties.
45150
45151         * manual/string.texi: Document MTASC-safety properties.
45152
45153         * manual/threads.texi: Document MTASC-safety properties.
45154
45155         * manual/stdio.texi: Document MTASC-safety properties.
45156
45157         * manual/syslog.texi: Document MTASC-safety properties.
45158
45159         * manual/sysinfo.texi: Document MTASC-safety properties.
45160
45161         * manual/startup.texi: Document MTASC-safety properties.
45162
45163         * manual/socket.texi: Document MTASC-safety properties.
45164
45165         * manual/signal.texi: Document MTASC-safety properties.
45166
45167 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
45168
45169         * manual/setjmp.texi: Document MTASC-safety properties.
45170
45171         * manual/search.texi: Document MTASC-safety properties.
45172
45173         * manual/resource.texi: Document MTASC-safety properties.
45174
45175         * manual/process.texi: Document MTASC-safety properties.
45176
45177         * manual/platform.texi: Document MTASC-safety properties.
45178
45179         * manual/pipe.texi: Document MTASC-safety properties.
45180
45181         * manual/pattern.texi: Document MTASC-safety properties.
45182
45183         * manual/message.texi: Document MTASC-safety properties.
45184
45185         [BZ #12751]
45186         * manual/memory.texi: Document MTASC-safety properties.
45187
45188         * manual/math.texi: Document MTASC-safety properties.
45189
45190         * manual/locale.texi: Document MTASC-safety properties.
45191
45192         * manual/llio.texi: Document MTASC-safety properties.
45193
45194         * manual/libdl.texi: New.
45195
45196         * manual/lang.texi: Document MTASC-safety properties.
45197
45198         * manual/job.texi: Document MTASC-safety properties.
45199
45200         * manual/getopt.texi: Document MTASC-safety properties.
45201
45202         * manual/ctype.texi: Document MTASC-safety properties.
45203
45204 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
45205
45206         [BZ #16046]
45207         * csu/libc-tls.c (static_map): Remove variable.
45208         (__libc_setup_tls): Use main executable's link map for TLS data.
45209         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
45210         casing for LM_ID_BASE and GL(dl_nns).
45211         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
45212         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
45213         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
45214         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
45215         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
45216         member.
45217         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
45218         l_phnum members.
45219
45220 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
45221
45222         * manual/debug.texi: Document MTASC-safety properties.
45223
45224 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
45225
45226         [BZ #16510]
45227         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
45228         of __x86_64__ when disabling x87 inline functions.
45229
45230 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
45231
45232         * manual/charset.texi: Document MTASC-safety properties.
45233
45234         * manual/crypt.texi: Document MTASC-safety properties.
45235
45236         * manual/conf.texi: Document MTASC-safety properties.
45237
45238         * manual/arith.texi: Document MTASC-safety properties.
45239
45240         * manual/argp.texi: Document MTASC-safety properties.
45241
45242         * manual/macros.texi: Introduce macros to document multi
45243         thread, asynchronous signal and asynchronous cancellation
45244         safety properties.
45245         * manual/intro.texi: Introduce the properties themselves.
45246
45247 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45248
45249         * sysdeps/sh/sh4/Makefile: New file.
45250
45251 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
45252
45253         * math/gen-libm-test.pl ($srcdir): New variable.
45254         ($auto_input): Use it.
45255
45256 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45257
45258         [BZ #16506]
45259         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
45260         access beyond array bounds when parsing netgroups file.
45261
45262         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
45263         the old buffer before realloc.
45264
45265 2014-01-27  Allan McRae  <allan@archlinux.org>
45266
45267         * po/fr.po: Update French translation from translation project.
45268
45269 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45270
45271         * sysdeps/sh/libm-test-ulps: Regenerate.
45272
45273 2014-01-24  David S. Miller  <davem@davemloft.net>
45274
45275         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
45276
45277 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45278
45279         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
45280         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
45281
45282 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45283
45284         [BZ #16474]
45285         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
45286         string pointers after reallocation.
45287
45288 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45289
45290         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
45291         __SH4A__ instead of __SH_FPU_ANY__.
45292
45293 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45294
45295         * sysdeps/sh/fpu_control.h: New file.
45296         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
45297         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
45298         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
45299         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
45300         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
45301         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
45302         * sysdeps/sh/sys/ucontext.h: Remove.
45303         * sysdeps/sh/sys: Remove directory.
45304
45305 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45306
45307         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
45308         s390/sys/ucontext.h.
45309         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
45310         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
45311
45312 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45313
45314         [BZ #15605]
45315         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
45316
45317 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45318
45319         [BZ#16431]
45320         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
45321         Adjust the vDSO correctly for internal calls.
45322         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
45323
45324 2014-01-20  Allan McRae  <allan@archlinux.org>
45325
45326         * po/ca.po: Update Catalan translation from translation project.
45327
45328 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
45329
45330         * sysdeps/s390/sotruss-lib.c: New file.
45331
45332 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45333
45334         [BZ#16430]
45335         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
45336         (__GI___gettimeofday): Alias for a different internal symbol to avoid
45337         local calls issues by not having a PLT stub required for IFUNC calls.
45338         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
45339
45340 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
45341
45342         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
45343         * math/test-fpucw-static.c: Likewise.
45344
45345 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45346
45347         [BZ #16453]
45348         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
45349
45350 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45351
45352         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
45353         implementation for powerpc.
45354
45355 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45356
45357         [BZ #14782]
45358         * sysdeps/posix/system.c (__libc_system): Do not enable
45359         asynchronous cancellation.
45360
45361 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45362
45363         [BZ #16427]
45364         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
45365         handling only for numbers special also in the IEEE case.
45366
45367 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45368
45369         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45370
45371 2014-01-11  Allan McRae  <allan@archlinux.org>
45372
45373         * po/bg.po: Update Bulgarian translation from translation project.
45374
45375         * po/de.po: Update German translation from translation project.
45376
45377 2014-01-10  Roland McGrath  <roland@hack.frob.com>
45378
45379         * sysdeps/generic/gcc-compat.h: New file.
45380
45381 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45382
45383         * benchtests/asin-inputs: Correct slow inputs.
45384         * benchtests/acos-inputs: Likewise.
45385
45386 2014-01-10  Allan McRae  <allan@archlinux.org>
45387
45388         * po:sv.po: Update Swedish translation from translation project.
45389
45390         * po/vi.po: Update Vietnamese translation from translation project.
45391
45392         * po/eo.po: Update Esperanto translation from translation project.
45393
45394         * po/cs.po: Update Czech translation from translation project.
45395
45396         * po/nl.po: Update Dutch translation from translation project.
45397
45398         * po/pl.po: Update Polish translation from translation project.
45399
45400         * po/ru.po: Update Russian translation from translation project.
45401
45402         * po/uk.po: Update Ukrainian translation from translation project.
45403
45404 2014-01-08  Brooks Moses  <bmoses@google.com>
45405
45406         * elf/dl-load.c: Fix comment typo.
45407
45408 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
45409
45410         * po/header.pot: Rename to...
45411         * po/pot.header: ... this.
45412         * po/Makefile: Use pot.header.
45413
45414 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
45415             Maxim Kuvyrkov  <maxim@kugelworks.com>
45416
45417         [BZ #16394]
45418         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
45419         SRC and DEST against LEN.
45420
45421 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45422
45423         [BZ #16414]
45424         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
45425         implementation.
45426         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
45427
45428 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45429
45430         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45431
45432 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
45433
45434         [BZ #16408]
45435         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
45436         for large positive arguments.
45437
45438 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
45439
45440         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45441
45442         * math/auto-libm-test-in: Mark various tests with
45443         xfail-rounding:ldbl-128ibm.
45444         * math/auto-libm-test-out: Regenerated.
45445
45446         [BZ #16407]
45447         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
45448         Increase overflow threshold.
45449
45450 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
45451
45452         [BZ #14286]
45453         * stdio-common/vfprintf.c: Check for integer overflow.
45454
45455 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45456
45457         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
45458         the first argument and return value of __tls_get_addr_internal.
45459
45460 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45461
45462         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
45463         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
45464
45465 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45466
45467         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
45468         * sysdeps/s390/rtld-global-offsets.sym: New file.
45469         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
45470         GLIBC_2.19 symbol.
45471         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
45472         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
45473         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
45474         ... this.
45475         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
45476         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
45477         ... this.
45478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45479         Regenerate.
45480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45481         Regenerate.
45482         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
45483         halfs of GPRs for high_gprs contexts.
45484         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
45485         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
45486         field.
45487         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
45488         uc_flags field.
45489         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
45490         64 bit versions:
45491         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
45492         for high GPRs (uc_high_gprs) and for future extensions
45493         (__reserved).
45494         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
45495         for future extensions (__reserved).
45496         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
45497         64 bit versions:
45498         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
45499         SC_HIGHGPRS offset definition.
45500         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
45501         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
45502
45503         * Versions.def: Add GLIBC_2.19 for libpthread.
45504         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
45505         siglongjmp for libpthread with GLIBC_2.19 symver.
45506         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
45507         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
45508         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
45509         * sysdeps/s390/__longjmp.c: New file.
45510         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
45511         * sysdeps/s390/longjmp.c: New file.
45512         * sysdeps/s390/setjmp.S: New file.
45513         * sysdeps/s390/sigjmp.S: New file.
45514         * sysdeps/s390/v1-longjmp.c: New file.
45515         * sysdeps/s390/v1-setjmp.h: New file.
45516         * sysdeps/s390/v1-sigjmp.c: New file.
45517         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
45518         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
45519         GLIBC_2.19 version.
45520         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
45521         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
45522         versioned symbols for ____longjmp_chk.
45523         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
45524         Likewise.
45525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45526         Regenerate.
45527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45528         Regenerate.
45529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45530         Regenerate.
45531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45532         Regenerate.
45533         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
45534         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
45535         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
45536         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
45537         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
45538         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
45539         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
45540         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
45541         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
45542         * sysdeps/s390/rtld-__longjmp.c: New file.
45543         * sysdeps/s390/rtld-setjmp.S: New file.
45544
45545 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
45546
45547         [BZ #16400]
45548         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45549         Return -__logl (x) for small positive arguments without evaluating
45550         a polynomial.
45551
45552 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45553
45554         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45555         Rename to ...
45556         (__ptrace_peeksiginfo_args): ... this.
45557         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45558         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45559         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45560
45561 2014-01-06  Allan McRae  <allan@archlinux.org>
45562
45563         * inet/netinet/in.h: Fix typo in comment.
45564
45565 2014-01-05  Andreas Jaeger  <aj@suse.de>
45566
45567         * sysdeps/i386/fpu/libm-test-ulps: Update.
45568
45569 2014-01-05  Allan McRae  <allan@archlinux.org>
45570
45571         * po/libc.pot: Regenerated.
45572
45573         * malloc/memusagestat.c: Fix gettext call formatting.
45574
45575 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45576
45577         * nscd/nscd.c: Improve usage() output.
45578
45579 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45580
45581         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45582         * sysdeps/unix/sysv/linux/configure: Regenerated.
45583         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45584         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45585
45586 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45587
45588         [BZ #16390]
45589         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45590         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45591
45592 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45593
45594         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45595         extra tokens at end of #undef directive.
45596         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45597         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45598         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45599
45600 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45601
45602         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45603
45604         * math/auto-libm-test-in: Mark various tests with
45605         xfail-rounding:ldbl-128ibm.
45606         * math/auto-libm-test-out: Regenerated.
45607
45608 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45609
45610         [BZ #16386]
45611         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45612         numbers with subnormal high part when calculating exponent.
45613
45614         [BZ #16385]
45615         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45616         fabs.
45617
45618         [BZ #16384]
45619         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45620         M_LN2l.
45621         (__ieee754_acoshl): Use __log1pl not __log1p.
45622
45623 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45624
45625         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45626         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45627         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45628         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45629         (reused_arena, arena_get2): Convert to GNU style.
45630         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45631         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45632         (memalign_check, __malloc_set_state): Likewise.
45633         * malloc/mallocbug.c (main): Likewise.
45634         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45635         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45636         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45637         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45638         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45639         (__posix_memalign, malloc_info): Likewise.
45640         * malloc/malloc.h: Likewise.
45641         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45642         (mallochook, memalignhook, reallochook, mabort): Likewise.
45643         * malloc/mcheck.h: Likewise.
45644         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45645         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45646         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45647         * malloc/morecore.c (__default_morecore): Likewise.
45648         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45649         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45650         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45651         (print_and_abort): Likewise.
45652         * malloc/obstack.h: Likewise.
45653         * malloc/set-freeres.c (__libc_freeres): Likewise.
45654         * malloc/tst-mallocstate.c (main): Likewise.
45655         * malloc/tst-mtrace.c (main): Likewise.
45656         * malloc/tst-realloc.c (do_test): Likewise.
45657
45658 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45659
45660         [BZ #16366]
45661         * nscd/netgroupcache.c (do_notfound): New function.
45662         (addgetnetgrentX): Use it.
45663
45664         [BZ # 16365]
45665         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45666         NSS_STATUS_NOTFOUND.
45667
45668 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45669
45670         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45672
45673 2014-01-01  Allan McRae  <allan@archlinux.org>
45674
45675         * scripts/update-copyrights: Update configure input file suffix.
45676
45677         * NEWS: Update copyright year.
45678         * catgets/gencat.c: Likewise.
45679         * csu/version.c: Likewise.
45680         * debug/catchsegv.sh: Likewise.
45681         * debug/pcprofiledump.c: Likewise.
45682         * debug/xtrace.sh: Likewise.
45683         * elf/ldconfig.c: Likewise.
45684         * elf/ldd.bash.in: Likewise.
45685         * elf/pldd.c: Likewise.
45686         * elf/sotruss.ksh: Likewise.
45687         * elf/sprof.c: Likewise.
45688         * iconv/iconv_prog.c: Likewise.
45689         * iconv/iconvconfig.c: Likewise.
45690         * locale/programs/locale.c: Likewise.
45691         * locale/programs/localedef.c: Likewise.
45692         * login/programs/pt_chown.c: Likewise.
45693         * malloc/memusage.sh: Likewise.
45694         * malloc/memusagestat.c: Likewise.
45695         * malloc/mtrace.pl: Likewise.
45696         * manual/libc.texinfo: Likewise.
45697         * nscd/nscd.c: Likewise.
45698         * nss/getent.c: Likewise.
45699         * nss/makedb.c: Likewise.
45700         * posix/getconf.c: Likewise.
45701         * scripts/test-installation.pl: Likewise.
45702
45703         * All files with FSF copyright notices: Update copyright dates
45704         using scripts/update-copyrights.
45705         * intl/plural.c: Regenerated.
45706         * locale/programs/charmap-kw.h: Likewise.
45707         * locale/programs/locfile-kw.h: Likewise.
45708
45709 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45710
45711         * sysdeps/unix/sysv/linux/configure: Regenerated.
45712         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45713         the linux/fanotify.h header.
45714         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45715         HAVE_LINUX_FANOTIFY_H is defined.
45716
45717 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45718
45719         * benchtests/cos-inputs: New inputs.
45720         * benchtests/sin-inputs: Likewise.
45721
45722         * benchtests/atan-inputs: New inputs. Fix name of multiple
45723         precision fallback inputs.
45724
45725         * benchtests/atanh-inputs: New inputs.
45726         * benchtests/tanh-inputs: Likewise.
45727
45728         * benchtests/acosh-inputs: New inputs.
45729         * benchtests/asinh-inputs: Likewise.
45730
45731         * benchtests/cosh-inputs: New inputs.
45732         * benchtests/sinh-inputs: Likewise.
45733
45734         * benchtests/acos-inputs: Add more inputs.
45735         * benchtests/asin-inputs: Likewise.
45736
45737 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45738
45739         [BZ #16375]
45740         * manual/arith.texi: Fix spelling.
45741         * manual/charset.texi: Likewise.
45742         * manual/errno.texi: Likewise.
45743         * manual/filesys.texi: Likewise.
45744         * manual/lang.texi: Likewise.
45745         * manual/llio.texi: Likewise.
45746         * manual/locale.texi: Likewise.
45747         * manual/message.texi: Likewise.
45748         * manual/resource.texi: Likewise.
45749         * manual/search.texi: Likewise.
45750         * manual/setjmp.texi: Likewise.
45751         * manual/stdio.texi: Likewise.
45752         * manual/string.texi: Likewise.
45753         * manual/sysinfo.texi: Likewise.
45754         * manual/time.texi: Likewise.
45755
45756 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45757
45758         * po/sl.po: New file.
45759
45760 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45761
45762         * .gitignore: Add core/.gdbinit/.gdb_history.
45763
45764 2013-12-27  Allan McRae  <allan@archlinux.org>
45765
45766         [BZ #16369]
45767         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45768         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45769
45770 2013-12-24  Brooks Moses  <bmoses@google.com>
45771
45772         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45773         all compilers that claim C++98 compliance, not just GCC.
45774         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45775         Likewise.
45776
45777 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45778
45779         * NEWS: Restore accidentally deleted bug-fix entries.
45780
45781 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45782             Ondřej Bílka  <neleai@seznam.cz>
45783
45784         [BZ #15073]
45785         * malloc/malloc.c (_int_free): Perform sanity check only if we
45786         have_lock.
45787
45788 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45789
45790         [BZ #12986]
45791         * manual/stdio.texi (String Input Conversions): Clarify that character
45792         classes are not supported.
45793
45794 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45795
45796         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45797
45798 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45799
45800         [BZ #16337]
45801         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45802         Calculate results for small negative arguments directly rather
45803         than using reflection formula with special underflow handling.
45804
45805         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45806         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45807         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45808         (fchflags): Likewise.
45809         (revoke): Likewise.
45810         (setlogin): Likewise.
45811         (sigaltstack): Likewise.
45812         (wait4): Likewise.
45813         (sigblock): Remove.
45814         (sigsetmask): Likewise.
45815         (wait3): Likewise.
45816         (waitpid): Likewise.
45817         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45818         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45819         file.
45820         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45821         * sysdeps/unix/bsd/Makefile: ... here.
45822         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45823         * sysdeps/unix/bsd/Versions: ... here.
45824         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45825         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45826         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45827         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45828         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45829         * sysdeps/unix/bsd/sigblock.c: ... here.
45830         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45831         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45832         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45833         * sysdeps/unix/bsd/sigvec.c: ... here.
45834         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45835         * sysdeps/unix/bsd/tcdrain.c: ... here.
45836         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45837         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45838         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45839         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45840         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45841         * sysdeps/unix/bsd/wait.c: ... here.
45842         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45843         * sysdeps/unix/bsd/wait3.c: ... here.
45844         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45845         * sysdeps/unix/bsd/waitpid.c: ... here.
45846
45847 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45848
45849         [BZ #16356]
45850         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45851         round-to-nearest for [!USE_AS_EXPM1L].
45852         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45853         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45854         more tests of exp and exp10.  Expect some exp10 tests to miss
45855         exceptions or fail in directed rounding modes.
45856         * math/auto-libm-test-out: Regenerated.
45857         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45858         (exp10_test_tonearest): New function.
45859         (exp10_towardzero_test_data): New array.
45860         (exp10_test_towardzero): New function.
45861         (exp10_downward_test_data): New array.
45862         (exp10_test_downward): New function.
45863         (exp10_upward_test_data): New array.
45864         (exp10_test_upward): New function.
45865         (main): Call the new functions.
45866         * sysdeps/i386/fpu/libm-test-ulps: Update.
45867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45868
45869 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45870
45871         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45872         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45873         * math/auto-libm-test-out: Regenerated.
45874         * math/libm-test.inc (acosh_test_data): Add more tests.
45875         (atanh_test_data): Likewise.
45876         (ceil_test_data): Likewise.
45877         (copysign_test_data): Likewise.
45878         * sysdeps/i386/fpu/libm-test-ulps: Update.
45879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45880
45881         * timezone/checktab.awk: Update from tzcode 2013i.
45882         * timezone/private.h: Likewise.
45883         * timezone/scheck.c: Likewise.
45884         * timezone/tzfile.h: Likewise.
45885         * timezone/tzselect.ksh: Likewise.
45886         * timezone/zdump.c: Likewise.
45887         * timezone/zic.c: Likewise.
45888
45889         * math/auto-libm-test-in: Add tests of cpow.
45890         * math/auto-libm-test-out: Regenerated.
45891         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45892         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45893         mpc_cc_c.
45894         (func_calc_desc): Add mpc_cc_c union field.
45895         (test_functions): Add cpow.
45896         (special_fill_2pi): New function.
45897         (special_real_inputs): Add 2pi.
45898         (calc_generic_results): Handle mpc_cc_c.
45899         * sysdeps/i386/fpu/libm-test-ulps: Update.
45900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45901
45902         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45903         csqrt, ctan and ctanh.
45904         * math/auto-libm-test-out: Regenerated.
45905         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45906         (TEST_COND_x86): Likewise.
45907         (ccos_test_data): Use AUTO_TESTS_c_c.
45908         (ccosh_test_data): Likewise.
45909         (cexp_test_data): Likewise.
45910         (clog_test_data): Likewise.
45911         (csqrt_test_data): Likewise.
45912         (ctan_test_data): Likewise.
45913         (ctan_tonearest_test_data): Likewise.
45914         (ctan_towardzero_test_data): Likewise.
45915         (ctan_downward_test_data): Likewise.
45916         (ctan_upward_test_data): Likewise.
45917         (ctanh_test_data): Likewise.
45918         (ctanh_tonearest_test_data): Likewise.
45919         (ctanh_towardzero_test_data): Likewise.
45920         (ctanh_downward_test_data): Likewise.
45921         (ctanh_upward_test_data): Likewise.
45922         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45923         mpc_c_c.
45924         (func_calc_desc): Add mpc_c_c union field.
45925         (FUNC_mpc_c_c): New macro.
45926         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45927         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45928         ctanh.
45929         (special_fill_min_subnorm_p120): New function.
45930         (special_real_inputs): Add min_subnorm_p120.
45931         (calc_generic_results): Handle mpc_c_c.
45932         * sysdeps/i386/fpu/libm-test-ulps: Update.
45933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45934
45935 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45936
45937         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45938         (do_sin_slow): New functions.
45939         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45940         (cslow2, csloww1, csloww2): Use the new functions.
45941
45942         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45943         Use M to change sign of result instead of X.  Assume X is
45944         positive.
45945         (csloww1): Likewise.
45946         (__sin): Adjust.
45947         (__cos): Adjust.
45948
45949         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45950         arguments A and DA.
45951         (__sin): Adjust.
45952         (__cos): Likewise.
45953
45954         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45955         (__cos): Likewise.
45956         (sloww1): Don't adjust sign of DX.
45957         (csloww1): Likewise.
45958         (sloww2): Use X directly and don't adjust sign of DX.
45959         (csloww2): Likewise.
45960
45961 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45962
45963         * math/auto-libm-test-in: Add tests of cabs and carg.
45964         * math/auto-libm-test-out: Regenerated.
45965         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45966         (carg_test_data): Likewise.
45967         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45968         mpc_c_f.
45969         (func_calc_desc): Add mpc_c_f union field.
45970         (test_functions): Add cabs and carg.
45971         (calc_generic_results): Handle mpc_c_f.
45972
45973         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45974         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45975         as a macro and a compat symbol.
45976         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45977         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45978         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45979         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45980         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45981         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45982         not use .hidden.
45983         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45984         Likewise.
45985         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45986         Likewise.
45987         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45988         Likewise.
45989         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45990         Likewise.
45991         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45992         Likewise.
45993         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45994         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45995         from GLIBC_2.3.2.
45996
45997 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45998
45999         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46000
46001 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
46002
46003         * manual/texinfo.tex: Update to version 2013-11-26.10 with
46004         trailing whitespace removed.
46005         * scripts/config.guess: Update to version 2013-11-29.
46006         * scripts/config.sub: Update to version 2013-10-01.
46007
46008         * math/auto-libm-test-in: Add tests of sincos.
46009         * math/auto-libm-test-out: Regenerated.
46010         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
46011         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46012         mpfr_f_11.
46013         (func_calc_desc): Add mpfr_f_11 union field.
46014         (test_functions): Add sincos.
46015         (calc_generic_results): Handle mpfr_f_11.
46016         * sysdeps/i386/fpu/libm-test-ulps: Update.
46017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46018
46019 2013-12-19  Andreas Schwab  <schwab@suse.de>
46020
46021         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
46022         CALL_MCOUNT.
46023         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
46024         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
46025         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
46026
46027 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
46028
46029         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
46030         * sysdeps/i386/fpu/libm-test-ulps: Update.
46031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46032
46033         [BZ #16293]
46034         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
46035         round-to-nearest mode when using frndint.
46036         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
46037         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
46038         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
46039         Likewise.
46040         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
46041         sinh test to fail.
46042         * math/auto-libm-test-out: Regenerated.
46043         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
46044         (TEST_COND_x86): Likewise.
46045         (expm1_tonearest_test_data): New array.
46046         (expm1_test_tonearest): New function.
46047         (expm1_towardzero_test_data): New array.
46048         (expm1_test_towardzero): New function.
46049         (expm1_downward_test_data): New array.
46050         (expm1_test_downward): New function.
46051         (expm1_upward_test_data): New array.
46052         (expm1_test_upward): New function.
46053         (main): Run the new test functions.
46054         * sysdeps/i386/fpu/libm-test-ulps: Update.
46055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46056
46057         * include/features.h: Update comment documenting feature test
46058         macros.  Mention _DEFAULT_SOURCE in comment.
46059         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
46060         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
46061         _BSD_SOURCE and _SVID_SOURCE.
46062         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
46063         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
46064         !_SVID_SOURCE]: Likewise.
46065         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46066         (__USE_POSIX_IMPLICITLY): Define.
46067         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46068         (_POSIX_SOURCE): Undefine and redefine.
46069         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46070         (_POSIX_C_SOURCE): Likewise.
46071         * manual/creature.texi (_DEFAULT_SOURCE): Document.
46072         (Feature Test Macros): Update documentation of default features.
46073
46074 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
46075
46076         * benchtests/Makefile: Add bench-strtok.
46077         * benchtests/bench-strtok.c: New file: strtok benchtest.
46078
46079 2013-12-19  Allan McRae  <allan@archlinux.org>
46080
46081         * manual/install.texi: Suppress menu for plain text output.
46082         * INSTALL: Regenerated.
46083
46084 2013-12-18  Brooks Moses  <bmoses@google.com>
46085
46086         [BZ #15846]
46087         * misc/getauxval.c: Include errno.h.
46088         (__getauxval): Set errno to ENOENT if the requested type is not
46089         found.
46090         * misc/sys/auxv.h (getauxval): Document that it may set errno;
46091         don't declare with __attribute_const__.
46092         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
46093         * manual/startup.texi: Document that getauxval sets errno.
46094
46095 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
46096
46097         * math/auto-libm-test-in: Add tests of jn and yn.
46098         * math/auto-libm-test-out: Regenerated.
46099         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
46100         (yn_test_data): Likewise.
46101         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46102         mpfr_if_f.
46103         (func_calc_desc): Add mpfr_if_f union field.
46104         (FUNC_mpfr_if_f): New macro.
46105         (test_functions): Add jn and yn.
46106         (calc_generic_results): Assert type of second input for
46107         mpfr_ff_f.  Handle mpfr_if_f.
46108         (output_for_one_input_case): Disable all checking for arguments
46109         fitting floating-point types in case of an integer argument.
46110         * sysdeps/i386/fpu/libm-test-ulps: Update.
46111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46112
46113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
46114         Don't expect fegetround reference in libm.so.
46115
46116 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
46117
46118         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
46119         $(config-cflags-nofma).
46120
46121 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
46122
46123         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
46124         * math/auto-libm-test-out: Regenerated.
46125
46126         [BZ #16338]
46127         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
46128         to determine exponent and adjust argument to have exponent of -1.
46129         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
46130         log2.
46131         * math/auto-libm-test-out: Regenerated.
46132         * sysdeps/i386/fpu/libm-test-ulps: Update.
46133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46134
46135 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
46136
46137         * manual/probes.texi: Remove cases when per-thread arenas are
46138         disabled.
46139
46140 2013-12-18  Andreas Schwab  <schwab@suse.de>
46141
46142         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
46143         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
46144         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
46145         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
46146         * sysdeps/i386/i686/multiarch/Makefile: Update.
46147         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
46148
46149 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46150
46151         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
46152         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
46153
46154 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
46155
46156         [BZ #15968]
46157         Support TZ transition times < 00:00:00.
46158         This is needed for version-3 tz-format files; it supports time
46159         stamps past 2037 for America/Godthab (the only entry in the tz
46160         database for which this change is relevant).
46161         * manual/time.texi (TZ Variable): Document transition times
46162         from -167:59:59 through -00:00:01.
46163         * time/tzset.c (tz_rule): Time of day is now signed.
46164         (__tzset_parse_tz): Parse negative time of day.
46165
46166         Document TZ transition times >= 25:00:00.
46167         * manual/time.texi (TZ Variable): Document transition times from
46168         25:00:00 through 167:59:59.  These are already supported, and this
46169         support will help with version-3 tz-format files.
46170
46171         * manual/time.texi (TZ Variable): Modernize North America example
46172         to reflect current (i.e., 2007-and-later) daylight saving rules.
46173
46174         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
46175
46176 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46177
46178         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
46179         * sysdeps/unix/bsd/bits/stat.h: Likewise.
46180         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
46181         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
46182         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
46183         * sysdeps/unix/bsd/bsdstat.h: Likewise.
46184         * sysdeps/unix/bsd/clock.c: Likewise.
46185         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
46186         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
46187         * sysdeps/unix/bsd/init-posix.c: Likewise.
46188         * sysdeps/unix/bsd/poll.c: Likewise.
46189         * sysdeps/unix/bsd/ptsname.c: Likewise.
46190         * sysdeps/unix/bsd/seekdir.c: Likewise.
46191         * sysdeps/unix/bsd/setegid.c: Likewise.
46192         * sysdeps/unix/bsd/seteuid.c: Likewise.
46193         * sysdeps/unix/bsd/setgid.c: Likewise.
46194         * sysdeps/unix/bsd/setrgid.c: Likewise.
46195         * sysdeps/unix/bsd/setruid.c: Likewise.
46196         * sysdeps/unix/bsd/setsid.c: Likewise.
46197         * sysdeps/unix/bsd/setuid.c: Likewise.
46198         * sysdeps/unix/bsd/sigaction.c: Likewise.
46199         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
46200         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
46201         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
46202         * sysdeps/unix/bsd/telldir.c: Likewise.
46203         * sysdeps/unix/bsd/times.c: Likewise.
46204         * sysdeps/unix/bsd/usleep.c: Likewise.
46205
46206         * misc/Makefile (install-lib): Remove libbsd-compat.a.
46207         ($(objpfx)libbsd-compat.a): Remove rule.
46208
46209         * include/features.h (__FAVOR_BSD): Do not define.
46210         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
46211         features conflicting with POSIX.
46212         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
46213         (_BSD_SOURCE): Remove description of not being a subset of other
46214         feature test macros.
46215         * manual/job.texi (getpgrp): Do not document BSD version.
46216         (getpgid): Do not document by reference to BSD getpgrp.
46217         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
46218         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
46219         * signal/signal.h [__FAVOR_BSD]: Likewise.
46220         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
46221         instead of making contents conditional on [__FAVOR_BSD].
46222         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
46223
46224 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46225
46226         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46227
46228 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46229
46230         [BZ #16314]
46231         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
46232         values below 2**-450, not 2**-500.
46233         * math/auto-libm-test-in: Don't allow spurious underflow from
46234         hypot.
46235         * math/auto-libm-test-out: Regenerated.
46236
46237         [BZ #16316]
46238         [BZ #16330]
46239         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
46240         values of ha and hb and sort them after adjusting subnormal
46241         arguments.
46242         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
46243         Likewise.
46244         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
46245         values of ea and eb and sort them after adjusting subnormal
46246         arguments.
46247         * math/auto-libm-test-in: Do not expect some hypot tests of
46248         subnormals to fail.  Add more hypot tests.
46249         * math/auto-libm-test-out: Regenerated.
46250
46251 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46252
46253         [BZ #13304]
46254         * sysdeps/sh/s_fma.c: New file.
46255         * sysdeps/sh/s_fmaf.c: New file.
46256         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
46257         version.
46258         * sysdeps/sh/Implies: Add sh/soft-fp.
46259
46260 2013-12-16  Roland McGrath  <roland@hack.frob.com>
46261
46262         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
46263         level of indirection to members `objname', `errstring', `malloced'.
46264         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
46265         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
46266         it as the __longjmp argument (just pass 1 instead).
46267         (_dl_catch_error): Initialize C with argument pointers and address of
46268         volatile local ERRCODE rather than copying values out of C at return.
46269
46270 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
46271
46272         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
46273         * math/auto-libm-test-out: Regenerated.
46274         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
46275         (hypot_test_data): Likewise.
46276         (pow_test_data): Likewise.
46277         (pow_tonearest_test_data): Likewise.
46278         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46279         mpfr_ff_f.
46280         (func_calc_desc): Add mpfr_ff_f union field.
46281         (FUNC_mpfr_ff_f): New macro.
46282         (test_functions): Add atan2, hypot and pow.
46283         (special_fill_min): New function.
46284         (special_fill_minus_min): Likewise.
46285         (special_fill_min_subnorm): Likewise.
46286         (special_fill_minus_min_subnorm): Likewise.
46287         (special_real_inputs): Add min, -min, min_subnorm and
46288         -min_subnorm.
46289         (calc_generic_results): Handle mpfr_ff_f.
46290         * sysdeps/i386/fpu/libm-test-ulps: Update.
46291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46292
46293 2013-12-16  Will Newton  <will.newton@linaro.org>
46294
46295         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
46296         (Aligned Memory Blocks): Add documentation for aligned_alloc
46297         and suggest it as an alternative to posix_memalign.
46298         (Hooks for Malloc): Document __memalign_hook is also called
46299         for aligned_alloc.  (Summary of Malloc): Add summary for
46300         aligned alloc.  Document __memalign_hook is also called
46301         for aligned_alloc.
46302
46303 2013-12-16  Will Newton  <will.newton@linaro.org>
46304
46305         * manual/memory.texi (Malloc Examples): Clarify default
46306         alignment documentation.  Suggest posix_memalign rather
46307         than memalign or valloc.
46308         (Aligned Memory Blocks): Remove suggestion to use memalign
46309         or valloc.  Remove obsolete comment about BSD.
46310         Document memalign errno values and mark the function obsolete.
46311         Document posix_memalign returned error codes.  Mark valloc
46312         as obsolete.  (Hooks for Malloc): __memalign_hook is also
46313         called for posix_memalign and valloc.
46314         (Summary of Malloc): Add posix_memalign to function summary.
46315         __memalign_hook is also called for posix_memalign and valloc.
46316
46317 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46318
46319         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
46320         TAYLOR_SIN.
46321         (__sin): Adjust.
46322         (__cos): Likewise.
46323         (sloww): Use mynumber union.  Expand ternary operator into
46324         if-else statements.
46325         (cslow): use mynumber union.
46326
46327 2013-12-16  Allan McRae  <allan@archlinux.org>
46328
46329         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
46330         * configure: Regenerated.
46331
46332         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
46333
46334         [BZ #14120]
46335         * configure.ac: Added --enable-maintainer-mode. Check for
46336         autoconf when enabled.
46337         * configure: Regenerated.
46338
46339         * nscd/nscd.service: New file.
46340         * nscd/nscd.tmpfiles: New file.
46341
46342 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
46343
46344         [BZ #12100]
46345         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
46346         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
46347         * sysdeps/x86_64/multiarch/strstr.c: ... here.
46348         (strstr): Add __strstr_sse2_unaligned ifunc.
46349         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
46350         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
46351         (strcasestr): Remove __strcasestr_sse42 ifunc.
46352         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
46353         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
46354         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
46355
46356 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46357
46358         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
46359         * sysdeps/sh/bits/fenv.h: ... here.
46360         * sysdeps/sh/sh4/fpu/bits: Remove directory.
46361
46362 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46363
46364         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
46365
46366         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
46367         hypotf multiarch implementations.
46368         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
46369         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
46370         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
46371         multiarch hypot for PPC64.
46372         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
46373         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
46374         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
46375         multiarch hypotf for PPC64.
46376
46377         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
46378         modff multiarch implementations.
46379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
46380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
46381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
46382         multiarch modf for PPC64.
46383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
46384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
46385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
46386         multiarch modff for PPC64.
46387
46388         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
46389         and logl multiarch implementations.
46390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
46391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
46392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
46393         multiarch logb for PPC64.
46394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
46395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
46396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
46397         multiarch logb for PPC64.
46398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
46399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
46400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
46401         multiarch logb for PPC64.
46402
46403         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
46404         isinff multiarch implementation.
46405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
46406         file.
46407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
46408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
46409         multiarch isinf for PPC64.
46410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
46411         file.
46412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
46413         multiarch isinff for PPC64.
46414
46415         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
46416         finitef multiarch implementation.
46417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
46418         file.
46419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
46420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
46421         multiarch finite for PPC64.
46422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
46423         file.
46424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
46425         multiarch finitef for PPC64.
46426
46427         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
46428         lrint multiarch implementation.
46429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
46430         file.
46431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
46432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
46433         multiarch llrint for PPC64.
46434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
46435         multiarch lrint for PPC64.
46436
46437         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
46438         copysignf multiarch implementation.
46439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
46440         file.
46441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
46442         file.
46443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
46444         multiarch copysign for PPC64.
46445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
46446         multiarch copysignf for PPC64.
46447
46448         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
46449         multiarch implementation.
46450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
46451         file.
46452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
46453         file.
46454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
46455         file.
46456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
46457         file.
46458         multiarch llround for PPC64.
46459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
46460         multiarch trunc for PPC64.
46461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
46462         multiarch truncf for PPC64.
46463
46464         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
46465         multiarch implementation.
46466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
46467         file.
46468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
46469         file.
46470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
46471         file.
46472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
46473         file.
46474         multiarch llround for PPC64.
46475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
46476         multiarch round for PPC64.
46477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
46478         multiarch roundf for PPC64.
46479
46480         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
46481         multiarch implementation.
46482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
46483         file.
46484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
46485         file.
46486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
46487         file.
46488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
46489         file.
46490         multiarch llround for PPC64.
46491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
46492         multiarch floor for PPC64.
46493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
46494         multiarch floorf for PPC64.
46495
46496         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
46497         multiarch implementation.
46498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
46499         file.
46500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
46501         file.
46502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
46503         file.
46504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
46505         file.
46506         multiarch llround for PPC64.
46507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
46508         multiarch ceil for PPC64.
46509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
46510         multiarch ceilf for PPC64.
46511
46512         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
46513         multiarch implementation.
46514         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
46515         file.
46516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
46517         file.
46518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
46519         file.
46520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
46521         multiarch llround for PPC64.
46522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
46523         multiarch lround for PPC64.
46524
46525         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
46526         multiarch implementation.
46527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
46528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
46529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
46530         file.
46531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
46532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
46533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
46534         multiarch isnan for PPC64.
46535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
46536         multiarch isnanf for PPC64.
46537
46538         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
46539         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
46540         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
46541         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
46542         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
46543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
46544
46545         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
46546         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46547         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46548         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46549
46550         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46551         multiarch implementations.
46552         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46553         (__libc_ifunc_impl_list): Likewise.
46554         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46555         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46556         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46557         multiarch stpcpy for PPC64.
46558
46559         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46560         multiarch implementations.
46561         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46562         (__libc_ifunc_impl_list): Likewise.
46563         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46564         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46565         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46566         multiarch strcpy for PPC64.
46567
46568         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46569         redefine function name.
46570         (_wordcopy_fwd_dest_aligned): Likewise.
46571         (_wordcopy_bwd_aligned): Likewise.
46572         (_wordcopy_bwd_dest_aligned): Likewise.
46573         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46574         multiarch implementations.
46575         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46576         (__libc_ifunc_impl_list): Likewise.
46577         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46578         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46579         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46580         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46581         multiarch wcscpy for PPC64.
46582
46583         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46584         multiarch implementations.
46585         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46586         (__libc_ifunc_impl_list): Likewise.
46587         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46588         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46589         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46590         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46591         multiarch wcscpy for PPC64.
46592
46593         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46594         multiarch implementations.
46595         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46596         (__libc_ifunc_impl_list): Likewise.
46597         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46598         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46599         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46600         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46601         multiarch wcsrchr for PPC64.
46602
46603         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46604         multiarch implementations.
46605         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46606         (__libc_ifunc_impl_list): Likewise.
46607         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46608         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46609         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46610         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46611         multiarch wcschr for PPC64.
46612
46613         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46614         multiarch implementations.
46615         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46616         (__libc_ifunc_impl_list): Likewise.
46617         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46618         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46619         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46620         multiarch strchrnul for PPC64.
46621
46622         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46623         implementations.
46624         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46625         (__libc_ifunc_impl_list): Likewise.
46626         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46627         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46628         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46629         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46630         strchr for PPC64.
46631
46632         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46633         implementations.
46634         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46635         (__libc_ifunc_impl_list): Likewise.
46636         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46637         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46638         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46639         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46640         strncmp for PPC64.
46641
46642         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46643         multiarch implementations.
46644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46645         (__libc_ifunc_impl_list): Likewise.
46646         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46647         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46648         strncasecmp for PPC64.
46649         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46650         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46651         multiarch strncasecmp_l for PPC64.
46652
46653         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46654         multiarch implementations.
46655         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46656         (__libc_ifunc_impl_list): Likewise.
46657         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46658         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46659         multiarch strcasecmp for PPC64.
46660         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46661         file.
46662         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46663         multiarch strcasecmp_l for PPC64.
46664
46665         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46666         implementations.
46667         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46668         (__libc_ifunc_impl_list): Likewise.
46669         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46670         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46671         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46672         strnlen for PPC64.
46673
46674         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46675         implementations.
46676         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46677         (__libc_ifunc_impl_list): Likewise.
46678         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46679         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46680         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46681         strlen for PPC64.
46682
46683         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46684         implementations.
46685         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46686         (__libc_ifunc_impl_list): Likewise.
46687         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46688         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46689         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46690         rawmemrchr for PPC64.
46691
46692         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46693         implementation.
46694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46695         (__libc_ifunc_impl_list): Likewise.
46696         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46697         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46698         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46699         memrchr for PPC64.
46700
46701         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46702         implementation.
46703         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46704         (__libc_ifunc_impl_list): Likewise.
46705         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46706         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46707         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46708         memchr for PPC64.
46709
46710         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46711         implementation.
46712         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46713         (__libc_ifunc_impl_list): Likewise.
46714         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46715         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46716         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46717         mempcpy for PPC64.
46718
46719         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46720         avoid cretion of __bzero symbol.
46721         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46722         Likewise.
46723         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46724         Likewise.
46725         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46726         Likewise.
46727         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46728         multiarch implementations.
46729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46730         (__libc_ifunc_impl_list): Likewise.
46731         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46732         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46733         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46734         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46735         bzero for PPC32.
46736         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46737         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46738         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46739         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46740         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46741         memset for PPC64.
46742         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46743
46744         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46745         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46746         implementations.
46747         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46748         (__libc_ifunc_impl_list): Likewise.
46749         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46750         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46751         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46752         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46753         memcmp for PPC64.
46754
46755         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46756         multiarch for POWER/PPC64.
46757         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46758         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46759         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46760         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46761         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46762         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46763         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46764         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46765         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46766         memcpy for PPC64.
46767
46768         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46769         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46770         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46771         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46772         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46773         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46774         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46775         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46776         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46777         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46778         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46779         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46780         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46781         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46782         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46790
46791 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46792
46793         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46794
46795 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46796
46797         * benchtests/Makefile (bench): Add exp2 and log2.
46798         (LDLIBS-bench-exp2): Add -lm.
46799         (LDLIBS-bench-log2): Likewise.
46800         * benchtests/exp2-inputs: New inputs file.
46801         * benchtests/log2-inputs: New inputs file.
46802         * benchtests/log-inputs: Add new inputs.
46803         * benchtests/tan-inputs: Likewise.
46804
46805 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46806
46807         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46808         definition...
46809         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46810         (csloww2): ... from here.
46811
46812         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46813         instead of structures.
46814         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46815         (POLYNOMIAL): Likewise.
46816         (TAYLOR_SLOW): Likewise.
46817         (__sin): Likewise.
46818         (__cos): Likewise.
46819         (slow1): Likewise.
46820         (slow2): Likewise.
46821         (sloww): Likewise.
46822         (sloww1); Likewise.
46823         (sloww2): Likewise.
46824         (bsloww1): Likewise.
46825         (bsloww2): Likewise.
46826         (cslow2): Likewise.
46827         (csloww): Likewise.
46828         (csloww1): Likewise.
46829         (csloww2): Likewise.
46830
46831 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46832
46833         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46834         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46835         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46836         * malloc/hooks.c (realloc_check): Likewise.
46837
46838         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46839         * malloc/arena.c: Remove PER_THREAD conditional.
46840         [!PER_THREAD]: Remove code.
46841         (ptmalloc_unlock_all2): Likewise.
46842         (ptmalloc_init): Likewise.
46843         (_int_new_arena): Likewise.
46844         (arena_get2): Likewise.
46845         * malloc/hooks.c (__malloc_get_state): Likewise.
46846         (__malloc_set_state): Likewise.
46847         * malloc/malloc.c: Likewise.
46848         (struct malloc_state): Likewise.
46849         (struct malloc_par): Likewise.
46850         (__libc_realloc): Likewise.
46851         (__libc_mallopt): Likewise.
46852
46853 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46854
46855         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46856
46857 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46858
46859         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46860         macro to a function.  Check for zero perturb_byte.
46861         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46862
46863         * malloc/malloc.c: (force_reg): Remove.
46864         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46865         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46866         force_reg by atomic_forced_read.
46867         * malloc/arena.c (ptmalloc_init): Likewise.
46868         * malloc/hooks.c (top_check): Likewise.
46869
46870 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46871
46872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46873
46874 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46875
46876         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46877
46878 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46879
46880         * math/auto-libm-test-in: Add tests of lgamma.
46881         * math/auto-libm-test-out: Regenerated.
46882         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46883         (M_LOG_2_SQRT_PIl): Likewise.
46884         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46885         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46886         mpfr_f_f1.
46887         (func_calc_desc): Add mpfr_f_f1 union field.
46888         (ARGS1): New macro.
46889         (ARGS2): Likewise.
46890         (ARGS3): Likewise.
46891         (ARGS4): Likewise.
46892         (RET1): Likewise.
46893         (RET2): Likewise.
46894         (CALC): Likewise.
46895         (FUNC): Likewise.
46896         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46897         (test_functions): Add lgamma.
46898         (calc_generic_results): Handle mpfr_f_f1.
46899         * sysdeps/i386/fpu/libm-test-ulps: Update.
46900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46901
46902 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46903
46904         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46905         __mpn_add_n for PowerPC64/POWER7.
46906         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46907         __mpn_sub_n for PowerPC64/POWER7.
46908
46909         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46910         __mpn_addmul_1 for PowerPC64.
46911         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46912         __mpn_submul_1 for PowerPC64.
46913         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46914         for PowerPC64.
46915         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46916         for PowerPC64.
46917
46918 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46919
46920         [BZ #15089]
46921         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46922
46923 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46924
46925         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46926
46927         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46928         add multiarch folders.
46929         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46930         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46931         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46932         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46933         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46934         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46935         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46936         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46937         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46938         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46939         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46946
46947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46948         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46950         New file.
46951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46952         New file.
46953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46954         multiarch __ieee754_hypot for PowerPC32.
46955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46956         New file.
46957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46958         New file.
46959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46960         multiarch __ieee754_hypotf for PowerPC32.
46961
46962         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46963         long_double_symbol only if __logbl is defined.
46964         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46965         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46966         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46967         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46968         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46969         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46970         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46971         path for implementation.
46972         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46973         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46975         logb, and logbl multiarch implementations for PowerPC32.
46976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46977         file.
46978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46979         file.
46980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46981         multiarch logb for PowerPC32.
46982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46983         file.
46984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46985         file.
46986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46987         multiarch logbf for PowerPC32.
46988         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46990         file.
46991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46992         multiarch logbl implementation for PowerPC32.
46993
46994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46995         and modff multiarch implementations.
46996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46997         New file.
46998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46999         New file.
47000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
47001         multiarch modf for PowerPC32.
47002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
47003         New file.
47004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
47005         New file.
47006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
47007         multiarch modff for PowerPC32.
47008
47009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
47010         and lrintf multiarch implementations.
47011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
47012         New file.
47013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
47014         New file.
47015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
47016         multiarch lrint for PowerPC32.
47017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
47018         file: multiarch lrintf for PowerPC32.
47019
47020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
47021         and lroundf multiarch implementations.
47022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
47023         New file.
47024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
47025         New file.
47026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
47027         New file.
47028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
47029         multiarch lround for PowerPC32.
47030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
47031         file: multiarch lroundf for PowerPC32.
47032
47033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
47034         copysign and copysignf multiarch implementations.
47035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
47036         New file.
47037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
47038         New file.
47039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
47040         file: multiarch copysign for PowerPC32.
47041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
47042         file: multiarch copysignf for PowerPC32.
47043
47044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
47045         and truncf multiarch implementations.
47046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
47047         New file.
47048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
47049         file.
47050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
47051         multiarch trunc for PowerPC32.
47052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
47053         New file.
47054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
47055         New file.
47056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
47057         multiarch truncf for PowerPC32.
47058
47059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
47060         and roundf multiarch implementations.
47061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
47062         New file.
47063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
47064         file.
47065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
47066         multiarch round for PowerPC32.
47067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
47068         New file.
47069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
47070         New file.
47071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
47072         multiarch roundf for PowerPC32.
47073
47074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
47075         and floorf multiarch implementations.
47076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
47077         New file.
47078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
47079         file.
47080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
47081         multiarch floor for PowerPC32.
47082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
47083         New file.
47084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
47085         New file.
47086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
47087         multiarch floorf for PowerPC32.
47088
47089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
47090         and ceilf multiarch implementations.
47091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
47092         New file.
47093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
47094         file.
47095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
47096         multiarch ceil for PowerPC32.
47097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
47098         New file.
47099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
47100         file.
47101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
47102         multiarch ceilf for PowerPC32.
47103
47104         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
47105         is defined.
47106         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
47107         FINITEF is defined.
47108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
47109         and finitef multiarch implementations.
47110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
47111         New file.
47112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
47113         file.
47114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
47115         multiarch finite for PowerPC32.
47116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
47117         New file.
47118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
47119         file: multiarch finitef for PowerPC32.
47120
47121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
47122         and isinff multiarch implementations.
47123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
47124         file.
47125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
47126         file.
47127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
47128         multiarch isinf for PowerPC32.
47129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
47130         New file.
47131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
47132         multiarch isinff for PowerPC32.
47133
47134         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
47135         alias when __isnan is defined.
47136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
47137         and isnanf multiarch implementations.
47138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
47139         file.
47140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
47141         file.
47142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
47143         file.
47144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
47145         file.
47146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
47147         multiarch isnan for PowerPC32.
47148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
47149         New file.
47150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
47151         New file.
47152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
47153         multiarch isnanf for PowerPC32.
47154
47155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
47156         and sqrtf multiarch implementations.
47157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
47158         file.
47159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
47160         file.
47161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
47162         multiarch sqrt for PowerPC32.
47163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
47164         file.
47165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
47166         file.
47167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
47168         multiarch sqrtf for PowerPC32.
47169
47170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
47171         and llroundf multiarch implementations.
47172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
47173         New file.
47174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
47175         New file.
47176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
47177         New file.
47178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
47179         file: multiarch llround for PowerPC32.
47180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
47181         file: multiarch llroundf for PowerPC32.
47182
47183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
47184         multiarch PowerPC32 fpu implementations.
47185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
47186         New file.
47187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
47188         New file.
47189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
47190         multiarch llrint for PowerPC32.
47191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
47192         New file.
47193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
47194         New file.
47195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
47196         file.
47197
47198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
47199
47200         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
47201         file.
47202         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
47203         file.
47204         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
47205         file.
47206         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
47207         multiarch wordcopy for PPC32.
47208         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47209         wordcopy objects.
47210         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47211         (__libc_ifunc_impl_list): Likewise.
47212         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
47213         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
47214         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
47215         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
47216         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
47217         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
47218
47219         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
47220         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
47221         file.
47222         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
47223         file.
47224         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
47225         file.
47226         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
47227         multiarch wcscpy for PPC32.
47228         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47229         multiarch objects.
47230         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47231         (__libc_ifunc_impl_list): Likewise.
47232         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47233         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47234         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
47235         sysdeps/powerpc/power6/wcscpy.c.
47236
47237         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
47238         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
47239         file.
47240         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
47241         file.
47242         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
47243         file.
47244         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
47245         multiarch wcsrchr for PPC32.
47246         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47247         multiarch objects.
47248         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47249         (__libc_ifunc_impl_list): Likewise.
47250         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47251         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47252         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
47253         sysdeps/powerpc/power6/wcsrchr.c.
47254
47255         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
47256         file.
47257         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
47258         file.
47259         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
47260         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
47261         multiarch wcschr for PPc32.
47262         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47263         multiarch objects.
47264         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47265         (__libc_ifunc_impl_list): Likewise.
47266         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
47267         * sysdeps/powerpc/power6/wcschr.c: ... to here.
47268         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
47269         sysdeps/powerpc/power6/wcschr.c.
47270
47271         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
47272         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
47273         file.
47274         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
47275         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
47276         file: multiarch strchr for PPC32.
47277         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
47278         multiarch objects.
47279         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47280         (__libc_ifunc_impl_list): Likewise.
47281
47282         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
47283         name.
47284         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
47285         file.
47286         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
47287         file.
47288         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
47289         multiarch strchrnul for PPC32.
47290         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
47291         multiarch objects.
47292         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47293         (__libc_ifunc_impl_list): Likewise.
47294
47295         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
47296         file.
47297         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
47298         multiarch strncasecmp for PPC32.
47299         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
47300         file.
47301         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
47302         multiarch strncasecmp_l for PPC32.
47303         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
47304         strncasecmp multiarch objects.
47305         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47306         (__libc_ifunc_impl_list): Likewise.
47307
47308         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
47309         file.
47310         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
47311         multiarch strncasecmp for PPC32.
47312         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
47313         New file.
47314         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
47315         multiarch strcasecmp_l for PPC32.
47316         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
47317         multiarch objects.
47318         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47319         (__libc_ifunc_impl_list): Likewise.
47320
47321         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
47322         file.
47323         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
47324         file.
47325         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
47326         multiarch strncmp for PPC32.
47327         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
47328         multiarch objects.
47329         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47330         (__libc_ifunc_impl_list): Likewise.
47331
47332         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
47333         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
47334         file.
47335         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
47336         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
47337         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
47338         multiarch objects.
47339         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47340         (__libc_ifunc_impl_list): Likewise.
47341
47342         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
47343         file.
47344         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
47345         file.
47346         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
47347         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
47348         multiarch objects.
47349         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47350         (__libc_ifunc_impl_list): Likewise.
47351
47352         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
47353         file.
47354         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
47355         file.
47356         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
47357         multiarch rawmemchr for PPC32.
47358         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
47359         multiarch objects.
47360         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47361         (__libc_ifunc_impl_list): Likewise.
47362
47363         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
47364         file.
47365         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
47366         file.
47367         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
47368         file: memrchr multiarch for PPC32.
47369         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
47370         multiarch objects.
47371         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47372         (__libc_ifunc_impl_list): Likewise.
47373
47374         * string/memchr.c (__memchr): Using macro to redefine symbol name.
47375         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
47376         file.
47377         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
47378         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
47379         multiarch memchr for PPC32.
47380         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
47381         multiarch objects.
47382         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47383         (__libc_ifunc_impl_list): Likewise.
47384
47385         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
47386         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
47387         file.
47388         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
47389         file.
47390         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
47391         file: multiarch mempcpy for PPC32.
47392         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
47393         multiarch objects.
47394         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47395         (__libc_ifunc_impl_list): Likewise.
47396
47397         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
47398         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
47399         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
47400         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
47401         multiarch bzero for PPC32.
47402         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
47403         file.
47404         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
47405         file.
47406         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
47407         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
47408         file: multiarch memset for PPC32.
47409         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
47410         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
47411         memset multiarch objects.
47412         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47413         (__libc_ifunc_impl_list): Likewise.
47414
47415         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
47416         file.
47417         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
47418         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
47419         memcmp for PPC32.
47420         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
47421         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
47422         multiarch objects.
47423         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47424         (__libc_ifunc_impl_list): Likewise.
47425
47426         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
47427         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
47428         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
47429         file.
47430         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
47431         file.
47432         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
47433         file.
47434         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
47435         multiarch memcpy for PPC32.
47436         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
47437         multiarch objects.
47438         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47439         (__libc_ifunc_impl_list): Likewise.
47440
47441         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
47442         support multiarch for POWER/PPC32.
47443         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
47444         Likewise.
47445         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
47446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
47447         Implies file to make multiarch folder appers before the fpu and
47448         default folder for power4 configuration.
47449
47450 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
47451
47452         * scripts/bench.pl: Append volatile keyword to type.
47453
47454 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47455
47456         * sysdeps/sh/sotruss-lib.c: New file.
47457         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
47458
47459 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47460
47461         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47462
47463 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
47464
47465         [BZ #6810]
47466         * math/w_tgamma.c: Include <errno.h>.
47467         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
47468         * math/w_tgammaf.c: Include <errno.h>.
47469         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
47470         * math/w_tgammal.c: Include <errno.h>.
47471         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
47472         * math/auto-libm-test-in: Do not allow missing errno on tgamma
47473         underflow.  Add more tgamma tests.
47474         * math/auto-libm-test-out: Regenerated.
47475         * sysdeps/i386/fpu/libm-test-ulps: Update.
47476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47477
47478         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
47479         sin, sinh, tan, tanh, tgamma, y0 and y1.
47480         * math/auto-libm-test-out: Regenerated.
47481         * math/libm-test.inc (TEST_COND_x86_64): New macro.
47482         (TEST_COND_x86): Likewise.
47483         (M_E2l): Remove macro.
47484         (M_E3l): Likewise.
47485         (M_2_SQRT_PIl): Likewise.
47486         (M_SQRT_PIl): Likewise.
47487         (M_1_DIV_El): Likewise.
47488         (log_test_data): Use AUTO_TESTS_f_f.
47489         (log10_test_data): Likewise.
47490         (log1p_test_data): Likewise.
47491         (log2_test_data): Likewise.
47492         (sin_test_data): Likewise.
47493         (sin_tonearest_test_data): Likewise.
47494         (sin_towardzero_test_data): Likewise.
47495         (sin_downward_test_data): Likewise.
47496         (sin_upward_test_data): Likewise.
47497         (sinh_test_data): Likewise.
47498         (sinh_tonearest_test_data): Likewise.
47499         (sinh_towardzero_test_data): Likewise.
47500         (sinh_downward_test_data): Likewise.
47501         (sinh_upward_test_data): Likewise.
47502         (tan_test_data): Likewise.
47503         (tan_tonearest_test_data): Likewise.
47504         (tan_towardzero_test_data): Likewise.
47505         (tan_downward_test_data): Likewise.
47506         (tan_upward_test_data): Likewise.
47507         (tanh_test_data): Likewise.
47508         (tgamma_test_data): Likewise.
47509         (y0_test_data): Likewise.
47510         (y1_test_data): Likewise.
47511         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
47512         (special_real_inputs): Add pi/4.
47513         * sysdeps/i386/fpu/libm-test-ulps: Update.
47514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47515
47516 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47517
47518         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
47519         "longjmp_target" static probes.
47520         (__longjmp): Rename to __longjmp_symbol.
47521         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47522         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
47523         on which longjmp to generate.
47524         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
47525         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
47526         probe.
47527         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47528         (__sigjmp_save): Rename to __sigjmp_save_symbol.
47529         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
47530         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
47531         and __sigjmp_save_symbol based on which sigsetjmp to generated.
47532         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
47533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
47534         __longjmp_symbol based on which __longjmp to generate.
47535         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
47536         probe.
47537         (setjmp): Rename to setjmp_symbol.
47538         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47539         (_setjmp): Rename to _setjmp_symbol.
47540         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47541         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
47542         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
47543         which setjmp to generate.
47544         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
47545         "longjmp_target" static probes.
47546
47547 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47548
47549         * benchtests/README: Add note about output arguments.
47550         * benchtests/bench-sincos.c: Remove file.
47551         * benchtests/sincos-inputs: New file.
47552         * scripts/bench.pl: Identify output arguments and define
47553         static variables for them.
47554
47555         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47556
47557         [BZ #15941]
47558         * Makefile (INSTALL): Add install-plain.texi as the primary
47559         dependency.
47560         * manual/install-plain.texi: New file.
47561         * manual/install.texi: Include node directive only for
47562         non-plaintext output.
47563
47564 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47565
47566         * stdlib/longlong.h: Update from GCC.
47567
47568         [BZ #6807]
47569         [BZ #15901]
47570         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47571         * math/w_j0f.c (y0f): Likewise.
47572         * math/w_j0l.c (__y0l): Likewise.
47573         * math/w_j1.c (y1): Likewise.
47574         * math/w_j1f.c (y1f): Likewise.
47575         * math/w_j1l.c (__y1l): Likewise.
47576         * math/w_jn.c (yn): Likewise.
47577         * math/w_jnf.c (ynf): Likewise.
47578         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47579         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47580         value for Bessel function domain errors outside _SVID_ mode.
47581         Adjust sign of return value for yn (negative integer, 0).
47582         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47583         by zero in return for negative x and set sign appropriately for
47584         negative n.
47585         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47586         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47587         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47588         expectations in error cases.
47589         (y1_test_data): Likewise.
47590         (yn_test_data): Likewise.
47591         * sysdeps/i386/fpu/libm-test-ulps: Update.
47592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47593
47594 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47595
47596         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47597         "64" to "64-v1".  Add "64-v2".
47598         (abi-64-options): Rename to ...
47599         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47600         (abi-64-condition): Rename to ...
47601         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47602         (abi-64-ld-soname): Rename to ...
47603         (abi-64-v1-ld-soname): ... this.
47604         (abi-64-v2-options): Define.
47605         (abi-64-v2-condition): Likewise.
47606         (abi-64-v2-ld-soname): Likewise.
47607         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47608         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47612
47613 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47614             Alan Modra  <amodra@gmail.com>
47615
47616         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47617         New versions for use with the ELFv2 ABI.
47618         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47619         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47620         declaration.
47621         (struct La_ppc64v2_retval): Likewise.
47622         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47623         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47624         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47625         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47626         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47627         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47628         Do not save or restore CR.
47629         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47630         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47631         return values for ELFv2 ABI.  Fix location of FPR return registers.
47632         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47633         updated values for _CALL_ELF == 2.
47634         (La_regs, La_retval, int_retval): Likewise.
47635
47636 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47637
47638         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47639         (FRAME_MIN_SIZE_PARM): Likewise.
47640         (FRAME_BACKCHAIN): Likewise.
47641         (FRAME_CR_SAVE): Likewise.
47642         (FRAME_LR_SAVE): Likewise.
47643         (FRAME_TOC_SAVE): Likewise.
47644         (FRAME_PARM_SAVE): Likewise.
47645         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47646         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47647         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47648         (call_mcount_parm_offset): New macro.
47649         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47650         (PROF): Use symbolic stack frame offsets.
47651         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47652         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47653         Redefine in terms of FRAME_MIN_SIZE.
47654         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47655         (_dl_profile_resolve): Likewise.  Update comment.
47656         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47657         symbols stack frame offsets.
47658         (__sigsetjmp): Likewise.
47659         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47660         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47661         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47662         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47663
47664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47665         (FRAME_BACKCHAIN): Remove.
47666         (FRAME_CR_SAVE): Likewise.
47667         (FRAME_LR_SAVE): Likewise.
47668         (FRAME_COMPILER_DW): Likewise.
47669         (FRAME_LINKER_DW): Likewise.
47670         (FRAME_TOC_SAVE): Likewise.
47671         (FRAME_PARM_SAVE): Likewise.
47672         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47673         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47674         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47676         (CHECK_SP): Use symbolic stack frame offsets.
47677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47678         zone" instead of caller's parameter save area for temp storage.
47679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47680         Likewise.  Also, use symbolic stack frame offsets.
47681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47682         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47683         our own stack frame instead of the caller's.
47684         (__socket): Use symbolic stack frame offsets.
47685
47686 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47687             Alan Modra  <amodra@gmail.com>
47688
47689         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47690         Define.
47691         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47692         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47693         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47694         New function.
47695         (elf_machine_fixup_plt): Call it.
47696         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47697         reloc arguments.
47698         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47699         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47700         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47701         r2 before calling target.
47702
47703 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47704             Alan Modra  <amodra@gmail.com>
47705
47706         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47707         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47708         versions of macros to support ELFv2 ABI.
47709         (LOCALENTRY): New macro.
47710         (ENTRY, EALIGN): Use it.
47711         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47712         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47713         fall through into ENTRY entry point.
47714         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47715         Only define if _CALL_ELF != 2.
47716
47717         (elf_machine_matches_host): Verify ABI version matches.
47718         (RTLD_START): Use LOCALENTRY.
47719         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47720         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47721         (PLT_ENTRY_WORDS): New macro.
47722         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47723         (elf_machine_runtime_setup): Support ELFv2 ABI.
47724         (elf_machine_fixup_plt): Likewise.
47725         (elf_machine_plt_conflict): Likewise.
47726         (resolve_ifunc): Likewise.
47727         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47728         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47729         Likewise.
47730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47731         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47733         (makecontext): Support ELFv2 ABI.
47734         * elf/elf.h (EF_PPC64_ABI): Define.
47735
47736 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47737
47738         * sysdeps/powerpc/powerpc64/sysdep.h
47739         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47740         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47741         (ENTRY) [ASSEMBLER]: ... but instead here ...
47742         (EALIGN) [ASSEMBLER]: ... and here.
47743         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47744         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47745         (ENTRY_2) [!ASSEMBLER]: Use it.
47746         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47747         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47748         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47749         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47750         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47752         Use PPC64_LOAD_FUNCPTR.
47753
47754         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47755
47756 2013-12-04  Alan Modra  <amodra@gmail.com>
47757
47758         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47759         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47760         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47761         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47762
47763         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47764         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47765         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47766         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47767         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47768         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47769
47770 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47771
47772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47773         (__makecontext): Fix incorrect CFI when backtracing out of
47774         context created via makecontext.
47775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47776         (__setcontext): Fix incorrect CFI during switch to new context.
47777         (__novec_setcontext): Likewise.
47778
47779 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47780
47781         [BZ #4772]
47782         * time/strptime_l.c (__strptime_internal): Allow modifiers
47783         in strptime.
47784         * time/tst-strptime.c (day_tests): Add testcase.
47785
47786 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47787
47788         * scripts/bench.pl: Skip over blank lines.
47789
47790 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         [BZ #926]
47793         * manual/time.texi (Calendar Time): Clarify what timezone functions
47794         use.
47795
47796 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47797
47798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47799
47800 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47801
47802         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47803         implementation.
47804         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47805         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47806         * debug/memset_chk.c (__memset_chk): Likewise.
47807         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47808         * debug/strncpy_chk.c: Likewise.
47809
47810 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47811
47812         [BZ #15268]
47813         [BZ #15425]
47814         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47815         (__ieee754_exp): For possibly underflowing results, check size of
47816         result and force underflow exception if required.
47817         * math/auto-libm-test-in: Add more tests of exp.
47818         * math/auto-libm-test-out: Regenerated.
47819         * sysdeps/i386/fpu/libm-test-ulps: Update.
47820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47821
47822         [BZ #16283]
47823         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47824         * math/w_exp2f.c (__exp2f): Likewise.
47825         * math/w_exp2l.c (__exp2l): Likewise.
47826         * math/auto-libm-test-in: Do not allow missing errno on exp2
47827         underflow.
47828         * math/auto-libm-test-out: Regenerated.
47829
47830 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47831
47832         [BZ #16274]
47833         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47834         handle filename validation.
47835         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47836         (do_open): Delete.
47837
47838 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47839
47840         [BZ #6786]
47841         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47842         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47843         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47844         <float.h>.
47845         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47846         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47847         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47848         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47849         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47850         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47851         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47852         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47853         Add more erfc tests.
47854         * math/auto-libm-test-out: Regenerated.
47855         * sysdeps/i386/fpu/libm-test-ulps: Update.
47856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47857
47858         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47859         exp2, expm1, j0 and j1.
47860         * math/auto-libm-test-out: Regenerated.
47861         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47862         (erfc_test_data): Likewise.
47863         (exp_test_data): Likewise.
47864         (exp_tonearest_test_data): Likewise.
47865         (exp_towardzero_test_data): Likewise.
47866         (exp_downward_test_data): Likewise.
47867         (exp_upward_test_data): Likewise.
47868         (exp10_test_data): Likewise.
47869         (exp2_test_data): Likewise.
47870         (expm1_test_data): Likewise.
47871         (j0_test_data): Likewise.
47872         (j1_test_data): Likewise.
47873         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47874         (input_flag_type): Add flag_xfail_rounding.
47875         (input_flags): Add xfail-rounding.
47876         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47877         (output_for_one_input_case): Handle flag_xfail_rounding.
47878         * sysdeps/i386/fpu/libm-test-ulps: Update.
47879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47880
47881 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47882
47883         [BZ #16289]
47884         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47885         division by 0.
47886
47887 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47888
47889         [BZ #16195]
47890         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47891         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47892         (STAP_PROBE0): New macro.
47893         (STAP_PROBE1): Likewise.
47894         (STAP_PROBE2): Likewise.
47895         (STAP_PROBE3): Likewise.
47896         (STAP_PROBE4): Likewise.
47897
47898 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47899
47900         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47901
47902 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47903
47904         * benchtests/Makefile (bench): Add sqrt.
47905         (LDLIBS-bench-sqrt): New.
47906         * benchtests/sqrt-input: New.
47907
47908 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47909
47910         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47911         (GAIH_EAI): Likewise.
47912         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47913         (gaih_inet): Likewise.
47914         (getaddrinfo): Don't use GAIH_EAI.
47915
47916         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47917         (struct gaih): Remove definition.
47918
47919 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47920
47921         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47922         Use HERRNOP directly.
47923
47924 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47925
47926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47927
47928 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47929
47930         * math/gen-auto-libm-tests.c (test_functions): Add more
47931         single-argument functions.
47932         (special_fill_pi_2): New function.
47933         (special_fill_minus_pi_2): Likewise.
47934         (special_fill_pi_6): Likewise.
47935         (special_fill_minus_pi_6): Likewise.
47936         (special_fill_pi_3): Likewise.
47937         (special_fill_2pi_3): Likewise.
47938         (special_fill_e): Likewise.
47939         (special_fill_1_e): Likewise.
47940         (special_fill_e_minus_1): Likewise.
47941         (special_real_inputs): Add more special inputs.
47942         (output_for_one_input_case): Do not require ERANGE on underflow to
47943         zero if round-to-nearest result does not underflow to zero, unless
47944         exact results required.
47945         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47946         atan, atanh, cbrt, cos and cosh.
47947         * math/auto-libm-test-out: Regenerated.
47948         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47949         (acos_tonearest_test_data): Likewise.
47950         (acos_towardzero_test_data): Likewise.
47951         (acos_downward_test_data): Likewise.
47952         (acos_upward_test_data): Likewise.
47953         (acosh_test_data): Likewise.
47954         (asin_test_data): Likewise.
47955         (asin_tonearest_test_data): Likewise.
47956         (asin_towardzero_test_data): Likewise.
47957         (asin_upward_test_data): Likewise.
47958         (asinh_test_data): Likewise.
47959         (atan_test_data): Likewise.
47960         (atanh_test_data): Likewise.
47961         (cbrt_test_data): Likewise.
47962         (cos_test_data): Likewise.
47963         (cos_tonearest_test_data): Likewise.
47964         (cos_towardzero_test_data): Likewise.
47965         (cos_downward_test_data): Likewise.
47966         (cos_upward_test_data): Likewise.
47967         (cosh_test_data): Likewise.
47968         (cosh_tonearest_test_data): Likewise.
47969         (cosh_towardzero_test_data): Likewise.
47970         (cosh_downward_test_data): Likewise.
47971         (cosh_upward_test_data): Likewise.
47972         * sysdeps/i386/fpu/libm-test-ulps: Update.
47973         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47974
47975 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47976
47977         [BZ #6787]
47978         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47979         * math/w_exp10f.c (__exp10f): Likewise.
47980         * math/w_exp10l.c (__exp10l): Likewise.
47981         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47982         errno settings in existing tests.
47983
47984         [BZ #14032]
47985         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47986         precision control set to double precision.
47987         * sysdeps/i386/fpu/w_sqrt.c: New file.
47988         * math/auto-libm-test-in: Add more tests.
47989         * math/auto-libm-test-out: Update.
47990
47991         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47992         (sqrt_test_tonearest): New function.
47993         (sqrt_towardzero_test_data): New variable.
47994         (sqrt_test_towardzero): New function.
47995         (sqrt_downward_test_data): New variable.
47996         (sqrt_test_downward): New function.
47997         (sqrt_upward_test_data): New variable.
47998         (sqrt_test_upward): New function.
47999         (main): Call the new functions.
48000
48001         * math/gen-auto-libm-tests.c: New file.
48002         * math/auto-libm-test-in: Likewise.
48003         * math/auto-libm-test-out: New generated file.
48004         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
48005         variables.
48006         (%beautify): Add generated representations of zero.
48007         (top level): Set $auto_input and call parse_auto_input.
48008         (beautify): Remove trailing "f" from hex float constants.
48009         (parse_args): Handle XFAIL_TEST.
48010         (convert_condition): New function.
48011         (or_value): Likewise.
48012         (or_cond_value): Likewise.
48013         (generate_testfile): Handle AUTO_TESTS_* lines.
48014         (parse_auto_input): New function.
48015         * math/libm-test.inc (XFAIL_TEST): New macro.
48016         (ERRNO_UNCHANGED): Update value.
48017         (ERRNO_EDOM): Likewise.
48018         (ERRNO_ERANGE): Likewise.
48019         (IGNORE_RESULT): Likewise.
48020         (TEST_COND_flt_32): New macro.
48021         (TEST_COND_dbl_64): Likewise.
48022         (TEST_COND_ldbl_96_intel): Likewise.
48023         (TEST_COND_ldbl_96_m68k): Likewise.
48024         (TEST_COND_ldbl_128): Likewise.
48025         (TEST_COND_ldbl_128ibm): Likewise.
48026         (TEST_COND_long32): Likewise.
48027         (TEST_COND_long64): Likewise.
48028         (TEST_COND_before_rounding): Likewise.
48029         (TEST_COND_after_rounding): Likewise.
48030         (enable_test): Handle XFAIL_TEST flag.
48031         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
48032         with finite results.
48033         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
48034         auto-libm-test-out.
48035
48036 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48037             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48038
48039         [BZ #16214]
48040         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
48041         __tls_get_addr_internal instead of __tls_get_offset in order to
48042         avoid GOT pointer dependency.  Make rtld export
48043         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
48044         __tls_get_addr since we are a __tls_get_offset platform.
48045         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
48046         GOT pointer being set up before.
48047         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
48048
48049 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
48050
48051         * manual/math.texi (Errors in Math Functions): Document accuracy
48052         goals.
48053
48054         [BZ #15004]
48055         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
48056         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
48057         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
48058         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
48059         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
48060         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
48061         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
48062         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
48063         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
48064         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
48065         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
48066         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
48067         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
48068         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
48069         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
48070         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
48071
48072         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
48073         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
48074         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
48075         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
48076         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
48077         Likewise.
48078         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
48079         Likewise.
48080         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
48081         Likewise.
48082         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
48083         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
48084         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
48085         atomic-feupdateenv and flt-rounds.
48086         * sysdeps/powerpc/nofpu/Versions (libc): Add
48087         __atomic_feholdexcept, __atomic_feclearexcept,
48088         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
48089         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
48090         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
48091         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
48092         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
48093         here.
48094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
48095         Update.
48096
48097         * manual/arith.texi (FP Exceptions): Document that exceptions may
48098         not be raised when matherr is used.
48099         (Math Error Reporting): Document overflow in directed rounding
48100         modes.  Document that errno may not be set when finite values are
48101         returned on overflow.  Document intent to set errno on underflow
48102         only for underflow to zero.
48103
48104         [BZ #16271]
48105         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
48106         round-to-nearest then adjust result for other rounding modes.
48107         * include/fenv.h (fegetround): Use libm_hidden_proto.
48108         * math/fegetround.c (fegetround): Use libm_hidden_def.
48109         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
48110         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
48111         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48112         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
48113         Likewise.
48114         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
48115         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
48116         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
48117         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
48118
48119 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48120
48121         [BZ #16077]
48122         * nss/Versions (libnss_files): Add
48123         _nss_files_gethostbyname3_r.
48124         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
48125         New function.
48126         (HOST_DB_LOOKUP): Remove macro.
48127         (_nss_files_gethostbyname_r): Implement function without the
48128         HOST_DB_LOOKUP macro.
48129         (_nss_files_gethostbyname2_r): Likewise.
48130
48131 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
48132
48133         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
48134
48135 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
48136
48137         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
48138         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
48139         warning.
48140
48141 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48142
48143         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
48144         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
48145         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
48146         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
48147         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
48148         __fe_nomask_env_priv and attribute_hidden.
48149         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
48150         (libc_feupdateenv_test_ppc): Likewise.
48151         (libc_feresetround_ppc): Likewise.
48152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48153         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
48154         compat_symbol macro.
48155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48156         (__fe_nomask_env): Likewise.
48157         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
48158
48159 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48160
48161         * string/Makefile: Remove ifunc tests.
48162         * string/test-string.h: Define TEST_IFUNC.
48163         * string/test-bcopy-ifunc.c: Remove.
48164         * string/test-bzero-ifunc.c: Likewise.
48165         * string/test-memccpy-ifunc.c: Likewise.
48166         * string/test-memchr-ifunc.c: Likewise.
48167         * string/test-memcmp-ifunc.c: Likewise.
48168         * string/test-memcpy-ifunc.c: Likewise.
48169         * string/test-memmem-ifunc.c: Likewise.
48170         * string/test-memmove-ifunc.c: Likewise.
48171         * string/test-mempcpy-ifunc.c: Likewise.
48172         * string/test-memrchr-ifunc.c: Likewise.
48173         * string/test-memset-ifunc.c: Likewise.
48174         * string/test-rawmemchr-ifunc.c: Likewise.
48175         * string/test-stpcpy-ifunc.c: Likewise.
48176         * string/test-stpncpy-ifunc.c: Likewise.
48177         * string/test-strcasecmp-ifunc.c: Likewise.
48178         * string/test-strcasestr-ifunc.c: Likewise.
48179         * string/test-strcat-ifunc.c: Likewise.
48180         * string/test-strchr-ifunc.c: Likewise.
48181         * string/test-strchrnul-ifunc.c: Likewise.
48182         * string/test-strcmp-ifunc.c: Likewise.
48183         * string/test-strcpy-ifunc.c: Likewise.
48184         * string/test-strcspn-ifunc.c: Likewise.
48185         * string/test-strlen-ifunc.c: Likewise.
48186         * string/test-strncasecmp-ifunc.c: Likewise.
48187         * string/test-strncat-ifunc.c: Likewise.
48188         * string/test-strncmp-ifunc.c: Likewise.
48189         * string/test-strncpy-ifunc.c: Likewise.
48190         * string/test-strnlen-ifunc.c: Likewise.
48191         * string/test-strpbrk-ifunc.c: Likewise.
48192         * string/test-strrchr-ifunc.c: Likewise.
48193         * string/test-strspn-ifunc.c: Likewise.
48194         * string/test-strstr-ifunc.c: Likewise.
48195
48196 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48197
48198         * benchtests/Makefile: Remove ifunc tests.
48199         * benchtests/bench-string.h: Define TEST_IFUNC.
48200         * benchtests/bench-bcopy-ifunc.c: Remove.
48201         * benchtests/bench-bzero-ifunc.c: Likewise.
48202         * benchtests/bench-memccpy-ifunc.c: Likewise.
48203         * benchtests/bench-memchr-ifunc.c: Likewise.
48204         * benchtests/bench-memcmp-ifunc.c: Likewise.
48205         * benchtests/bench-memcpy-ifunc.c: Likewise.
48206         * benchtests/bench-memmem-ifunc.c: Likewise.
48207         * benchtests/bench-memmove-ifunc.c: Likewise.
48208         * benchtests/bench-mempcpy-ifunc.c: Likewise.
48209         * benchtests/bench-memrchr-ifunc.c: Likewise.
48210         * benchtests/bench-memset-ifunc.c: Likewise.
48211         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
48212         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
48213         * benchtests/bench-stpcpy-ifunc.c: Likewise.
48214         * benchtests/bench-stpncpy-ifunc.c: Likewise.
48215         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
48216         * benchtests/bench-strcasestr-ifunc.c: Likewise.
48217         * benchtests/bench-strcat-ifunc.c: Likewise.
48218         * benchtests/bench-strchr-ifunc.c: Likewise.
48219         * benchtests/bench-strchrnul-ifunc.c: Likewise.
48220         * benchtests/bench-strcmp-ifunc.c: Likewise.
48221         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
48222         * benchtests/bench-strcpy-ifunc.c: Likewise.
48223         * benchtests/bench-strcspn-ifunc.c: Likewise.
48224         * benchtests/bench-strlen-ifunc.c: Likewise.
48225         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
48226         * benchtests/bench-strncat-ifunc.c: Likewise.
48227         * benchtests/bench-strncmp-ifunc.c: Likewise.
48228         * benchtests/bench-strncpy-ifunc.c: Likewise.
48229         * benchtests/bench-strnlen-ifunc.c: Likewise.
48230         * benchtests/bench-strpbrk-ifunc.c: Likewise.
48231         * benchtests/bench-strrchr-ifunc.c: Likewise.
48232         * benchtests/bench-strsep-ifunc.c: Likewise.
48233         * benchtests/bench-strspn-ifunc.c: Likewise.
48234         * benchtests/bench-strstr-ifunc.c: Likewise.
48235
48236 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48237
48238         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
48239
48240 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48241
48242         * resolv/netdb.h: Use __glibc_reserved instead __unused.
48243         * rt/aio.h: Likewise.
48244         * sysdeps/gnu/bits/utmp.h: Likewise.
48245         * sysdeps/gnu/bits/utmpx.h: Likewise.
48246         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
48247         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
48248         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
48249         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
48250         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
48251         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
48252         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
48253         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
48254         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
48255         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
48256         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
48257         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
48258         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
48259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
48260         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
48261         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
48262         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
48263         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
48264         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
48265         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
48266         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
48267         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
48268         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
48269         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
48270         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
48271         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48272         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
48273         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
48274         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
48275         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
48276         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
48277         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
48278         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
48279         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
48280         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
48281         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
48282         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
48283         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
48284         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
48285         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
48286         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
48287         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48288
48289 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
48290
48291         [BZ #16245]
48292         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
48293         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
48294
48295 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
48296
48297         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
48298         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
48299         Likewise.
48300
48301 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48302
48303         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
48304         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
48305         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
48306         (__fesetround): Remove define.
48307         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
48308         rounding and exceptions handling.
48309         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
48310         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
48311         (__fe_nomask_env): Likewise.
48312         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
48313         __fegetround instead of fegetround.
48314         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
48315         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
48316
48317 2013-11-21  Roland McGrath  <roland@hack.frob.com>
48318
48319         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
48320         it's there.
48321
48322         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
48323
48324 2013-11-21  Meador Inge  <meadori@codesourcery.com>
48325
48326         [BZ #11157]
48327         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
48328         (encrypt_r): Likewise.
48329         * malloc/obstack.h (obstack_free): Likewise.
48330         * posix/unistd.h (encrypt): Likewise.
48331
48332 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
48333
48334         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
48335         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
48336         DL_CALL_DT_FINI() that call the functions directly.
48337         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
48338         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
48339         * elf/dl-fini.c: Likewise.
48340
48341 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
48342
48343         * malloc/hooks.c (memalign_check): Add alignment rounding.
48344         * malloc/malloc.c (_mid_memalign): New function.
48345         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
48346         Implement by calling _mid_memalign.
48347         * manual/probes.texi (Memory Allocation Probes): Remove
48348         memory_valloc_retry and memory_pvalloc_retry.
48349
48350 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48351
48352         * locale/programs/locarchive.c (open_archive): Add const
48353         qualifier to ARCHIVEFNAME and copy default fname to
48354         DEFAULT_FNAME.
48355
48356         [BZ #15601]
48357         * libio/tst-widetext.input: Rename Oriya to Odia.
48358         * locale/iso-639.def: Likewise.
48359
48360         * manual/probes.texi (Mathematical Function Probes): Add
48361         documentation for sin, cos, asin and acos probes.
48362         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
48363         (__sin32): Add slowasin probe.
48364         (__cos32): Add slowacos probe.
48365         (__mpsin): Add slowsin probe.
48366         (__mpcos): Add slowcos probe.
48367
48368 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
48369
48370         [BZ #15483]
48371         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
48372         thread-local __sim_exceptions_thread and global
48373         __sim_exceptions_global.
48374         (__sim_disabled_exceptions): Change to thread-local
48375         __sim_disabled_exceptions_thread and global
48376         __sim_disabled_exceptions_global.
48377         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48378         and global __sim_round_mode_global.
48379         (__simulate_exceptions): Use thread-local floating-point state and
48380         set global state from it as needed.
48381         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
48382         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
48383         __sim_round_mode_thread.
48384         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
48385         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
48386         and global __sim_exceptions_global.
48387         (__sim_disabled_exceptions): Change to thread-local
48388         __sim_disabled_exceptions_thread and global
48389         __sim_disabled_exceptions_global.
48390         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48391         and global __sim_round_mode_global.
48392         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
48393         (SIM_SET_GLOBAL): Likewise.
48394         * sysdeps/powerpc/soft-fp/sfp-machine.h
48395         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
48396         __sim_round_mode_thread.
48397         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
48398         __sim_disabled_exceptions_thread.
48399         (__sim_exceptions): Change to __sim_exceptions_thread.
48400         (__sim_disabled_exceptions): Change to
48401         __sim_disabled_exceptions_thread.
48402         (__sim_round_mode): Change to __sim_round_mode_thread.
48403         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
48404         thread-local floating-point state and set global state from it as
48405         needed.
48406         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
48407         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
48408         (__sim_disabled_exceptions): Remove extern declaration.
48409         (feenableexcept): Use thread-local floating-point state and set
48410         global state from it as needed.
48411         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
48412         extern declaration.
48413         (__sim_disabled_exceptions): Likewise.
48414         (__sim_round_mode): Likewise.
48415         (__fegetenv): Use thread-local floating-point state.
48416         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
48417         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48418         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
48419         floating-point state and set global state from it as needed.
48420         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
48421         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
48422         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
48423         Likewise.
48424         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
48425         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
48426         Likewise.
48427         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
48428         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
48429         Use __sim_round_mode_thread.
48430         * math/test-fenv-tls.c: New file.
48431         * math/Makefile (tests): Add test-fenv-tls.
48432         ($(objpfx)test-fenv-tls): Depend on
48433         $(common-objpfx)nptl/libpthread.so.
48434
48435 2013-11-19  Andreas Schwab  <schwab@suse.de>
48436
48437         * locale/programs/locale.c (show_info): Decode wordarray elements.
48438         * locale/categories.def (LC_MONETARY): Add element for
48439         _NL_MONETARY_CRNCYSTR.
48440         * locale/C-monetary.c (conversion_rate): New variable.
48441         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
48442         element.
48443
48444 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
48445
48446         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
48447         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
48448
48449 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
48450
48451         * elf/Makefile (tst-auxv): New test.
48452         * elf/tst-auxv.c: New
48453         * elf/rtld.c (dl_main): Adjust AT_EXECFN
48454
48455 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
48456
48457         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
48458         (hidden_proto): Caller changed.
48459         (hidden_tls_proto): New macro.
48460         (libc_hidden_tls_proto): Likewise.
48461         (rtld_hidden_tls_proto): Likewise.
48462         (libm_hidden_tls_proto): Likewise.
48463         (libresolv_hidden_tls_proto): Likewise.
48464         (librt_hidden_tls_proto): Likewise.
48465         (libdl_hidden_tls_proto): Likewise.
48466         (libnss_files_hidden_tls_proto): Likewise.
48467         (libnsl_hidden_tls_proto): Likewise.
48468         (libnss_nisplus_hidden_tls_proto): Likewise.
48469         (libutil_hidden_tls_proto): Likewise.
48470
48471 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
48472
48473         [BZ #10253]
48474         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
48475         (decompose_rpath): Defer expansion to fillin_rpath.
48476         (_dl_init_paths): Pass linkmap to fillin_rpath.
48477
48478 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
48479
48480         * benchtests/Makefile: Add strsep.
48481         * benchtests/bench-strsep.c: New file: strsep benchtest.
48482         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
48483
48484 2013-11-18  Andreas Schwab  <schwab@suse.de>
48485
48486         * locale/programs/locale.c (show_info) [case byte]: Check for
48487         '\377' instead of '\177'.
48488         * locale/C-monetary.c (not_available): Always use "\377".
48489         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
48490         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
48491         detect unavailable sign_posn locale elements.
48492         * locale/localeconv.c (__localeconv): For grouping and
48493         mon_grouping handle "\177" and "\377" like no grouping.
48494         (INT_ELEM): New macro.  Use it to set all numeric members.
48495         * locale/programs/ld-monetary.c (monetary_read)
48496         <tok_mon_grouping>: Normalize single -1 to the empty string.
48497         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
48498         Likewise.
48499
48500 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48501
48502         [BZ #16055]
48503         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
48504         when we match (nil).
48505         * stdio-common/tst-sscanf.c (struct test): Add testcase.
48506
48507 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
48508
48509         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
48510         (NO_TEST_INLINE): Update value.
48511         (ERRNO_UNCHANGED): Likewise.
48512         (ERRNO_EDOM): Likewise.
48513         (ERRNO_ERANGE): Likewise.
48514         (IGNORE_RESULT): Likewise.
48515         (check_float_internal): Check signs of NaN results if
48516         TEST_NAN_SIGN used.
48517         (check_complex): Pass TEST_NAN_SIGN flag through to second
48518         check_float_internal call.
48519         (copysign_test_data): Add tests with quiet NaNs as second
48520         argument.  Use TEST_NAN_SIGN.
48521         (fabs_test_data): Add test of negative quiet NaN argument.  Use
48522         TEST_NAN_SIGN.
48523         (signbit_test_data): Add tests of quiet NaN argument.
48524         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
48525
48526         * math/gen-libm-test.pl (show_exceptions): Take extra argument
48527         $ignore_result.
48528         (parse_args): Handle function results specified as IGNORE.
48529         * math/libm-test.inc (IGNORE_RESULT): New macro.
48530         (check_float_internal): Do not check numerical result if flag
48531         IGNORE_RESULT set.
48532         (check_complex): Pass through IGNORE_RESULT to second
48533         check_float_internal call.
48534         (check_int): Do not check numerical result if flag IGNORE_RESULT
48535         set.
48536         (check_long): Likewise.
48537         (check_bool): Likewise.
48538         (check_longlong): Likewise.
48539         (lrint_test_data): Add tests of infinite and NaN arguments.
48540         (lrint_tonearest_test_data): Likewise.
48541         (lrint_towardzero_test_data): Likewise.
48542         (lrint_downward_test_data): Likewise.
48543         (lrint_upward_test_data): Likewise.
48544         (llrint_test_data): Likewise.
48545         (llrint_tonearest_test_data): Likewise.
48546         (llrint_towardzero_test_data): Likewise.
48547         (llrint_downward_test_data): Likewise.
48548         (llrint_upward_test_data): Likewise.
48549         (lround_test_data): Likewise.
48550         (llround_test_data): Likewise.
48551
48552         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48553         (ERRNO_UNCHANGED): Update value.
48554         (ERRNO_EDOM): Likewise.
48555         (ERRNO_ERANGE): Likewise.
48556         (NO_TEST_INLINE_FLOAT): New macro.
48557         (NO_TEST_INLINE_DOUBLE): Likewise.
48558         (enable_test): New function.
48559         (RUN_TEST_f_f): Check enable_test before running test.
48560         (RUN_TEST_2_f): Likewise.
48561         (RUN_TEST_fff_f): Likewise.
48562         (RUN_TEST_c_f): Likewise.
48563         (RUN_TEST_f_f1): Likewise.
48564         (RUN_TEST_fF_f1): Likewise.
48565         (RUN_TEST_fI_f1): Likewise.
48566         (RUN_TEST_ffI_f1): Likewise.
48567         (RUN_TEST_c_c): Likewise.
48568         (RUN_TEST_cc_c): Likewise.
48569         (RUN_TEST_f_i): Likewise.
48570         (RUN_TEST_f_i_tg): Likewise.
48571         (RUN_TEST_ff_i_tg): Likewise.
48572         (RUN_TEST_f_b): Likewise.
48573         (RUN_TEST_f_b_tg): Likewise.
48574         (RUN_TEST_f_l): Likewise.
48575         (RUN_TEST_f_L): Likewise.
48576         (RUN_TEST_fFF_11): Likewise.
48577         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48578         conditionals.
48579         (cosh_test_data): Likewise.
48580         (exp_test_data): Likewise.
48581         (expm1_test_data): Likewise.
48582         (hypot_test_data): Likewise.
48583         (pow_test_data): Likewise.
48584         (sinh_test_data): Likewise.
48585         (tanh_test_data): Likewise.
48586         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48587         flags argument.
48588
48589         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48590         tests with quiet NaN input and output.
48591         (acosh_test_data): Likewise.
48592         (asin_test_data): Likewise.
48593         (asinh_test_data): Likewise.
48594         (atan_test_data): Likewise.
48595         (atanh_test_data): Likewise.
48596         (atan2_test_data): Likewise.
48597         (cbrt_test_data): Likewise.
48598         (cos_test_data): Likewise.
48599         (cosh_test_data): Likewise.
48600         (erf_test_data): Likewise.
48601         (erfc_test_data): Likewise.
48602         (exp_test_data): Likewise.
48603         (exp10_test_data): Likewise.
48604         (exp2_test_data): Likewise.
48605         (expm1_test_data): Likewise.
48606         (hypot_test_data): Likewise.
48607         (j0_test_data): Likewise.
48608         (j1_test_data): Likewise.
48609         (jn_test_data): Likewise.
48610         (lgamma_test_data): Likewise.
48611         (log_test_data): Likewise.
48612         (log10_test_data): Likewise.
48613         (log1p_test_data): Likewise.
48614         (log2_test_data): Likewise.
48615         (pow_test_data): Likewise.
48616         (scalb_test_data): Likewise.
48617         (sin_test_data): Likewise.
48618         (sincos_test_data): Likewise.
48619         (sinh_test_data): Likewise.
48620         (tan_test_data): Likewise.
48621         (tanh_test_data): Likewise.
48622         (tgamma_test_data): Likewise.
48623         (y0_test_data): Likewise.
48624         (y1_test_data): Likewise.
48625         (yn_test_data): Likewise.
48626
48627         [BZ #16167]
48628         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48629         argument being NaN and avoid computations with second argument in
48630         that case.
48631         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48632         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48633         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48634
48635 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48636
48637         * locale/iso-639.def: Add Chitwani Tharu (the).
48638
48639 2013-11-14  Andreas Schwab  <schwab@suse.de>
48640
48641         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48642         word instead of empty string.
48643
48644 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48645
48646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48647         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48649         (__fe_nomask_env): Likewise.
48650
48651 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48652
48653         * benchtests/bench-timing.h: Include time.h.
48654
48655 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48656
48657         [BZ #15997]
48658         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48659         to 3.4.0 for x32.
48660         * sysdeps/unix/sysv/linux/configure: Regenerated.
48661
48662 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48663
48664         [BZ #16151]
48665         * stdlib/strtod_l.c (round_and_return): Do not consider
48666         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48667         exponent one less than half the least subnormal exponent.
48668         * stdlib/test-strtod-round-data: Add more tests.
48669         * stdlib/tst-strtod-round.c (tests): Regenerated.
48670
48671 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48672
48673         [BZ #14143]
48674         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48675         (__fe_mask_env): Likewise.
48676         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48677         libm_hidden_proto and add function prototype.
48678         (__fe_mask_env): Add function prototype.
48679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48680         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48682         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48684         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48685
48686 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48687
48688         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48689         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48690
48691 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48692
48693         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48694         of htab_find_slot().
48695
48696 2013-11-11  David S. Miller  <davem@davemloft.net>
48697
48698         [BZ #16150]
48699         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48700         symbol in the non-vis3 case in static builds.
48701         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48702         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48703         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48704         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48705
48706 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48707
48708         [BZ #387]
48709         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48710         it is empty.
48711
48712 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48713
48714         * benchtests/Makefile: Add bench-strtod.
48715         * benchtests/bench-strtod.c: New file: strtod benchtest
48716
48717 2013-11-11  Andreas Schwab  <schwab@suse.de>
48718
48719         [BZ #16153]
48720         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48721         terminating NUL in key length.
48722
48723 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48724
48725         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48726         Add artificial ODP entry for vDSO symbol for PPC64.
48727         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48728         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48729
48730 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48731
48732         [BZ #15374]
48733         * nss/getent.c (services_keys): Recognize services starting with digit.
48734
48735 2013-11-06  David S. Miller  <davem@davemloft.net>
48736
48737         [BZ #15985]
48738         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48739         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48740
48741 2013-11-06  Will Newton  <will.newton@linaro.org>
48742
48743         * manual/memory.texi (Malloc Examples): Remove register
48744         keyword from examples.
48745
48746 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48747
48748         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48749
48750 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48751
48752         [BZ #6981]
48753         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48754         depending on [__GCC_IEC_559 > 0].
48755         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48756         depending on [__GCC_IEC_559_COMPLEX > 0].
48757
48758 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48759
48760         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48761         to iso-639.def.
48762
48763 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48764
48765         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48766
48767 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48768
48769         [BZ #16112]
48770         * malloc/malloc (malloc_info): Do not handle first bin as
48771         special case.
48772
48773 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48774
48775         * locale/iso-639.def: Add Central Nahuatl (nhn).
48776
48777 2013-11-01  Bruno Haible  <bruno@clisp.org>
48778
48779         [BZ #7003]
48780         * manual/math.texi (BSD Random): Specify range upper bound as
48781         in POSIX.
48782
48783 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48784
48785         * locale/iso-639.def: Add Meadow Mari (mhr).
48786
48787 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48788
48789         [BZ #14752], [BZ #15763]
48790         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48791         Validate name.
48792         * rt/tst_shm.c: Add test for escaping directory.
48793
48794 2013-10-31  Andreas Schwab  <schwab@suse.de>
48795
48796         [BZ #15917]
48797         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48798         followed by 'x' as part of digit sequence.
48799         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48800
48801 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48802
48803         [BZ #16037]
48804         * configure.ac: allow GNU Make 4.0 and greater.
48805         * configure: Regenerated.
48806
48807 2013-10-30  Will Newton  <will.newton@linaro.org>
48808
48809         [BZ #16038]
48810         * malloc/hooks.c (memalign_check): Limit alignment to the
48811         maximum representable power of two.
48812         * malloc/malloc.c (__libc_memalign): Likewise.
48813         * malloc/tst-memalign.c (do_test): Add test for very
48814         large alignment values.
48815         * malloc/tst-posix_memalign.c (do_test): Likewise.
48816
48817 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48818
48819         [BZ #11087]
48820         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48821         (munmap_chunk): Likewise.
48822         (mremap_chunk): Likewise.
48823
48824 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48825
48826         [BZ #15799]
48827         * stdlib/div.c (div): Remove obsolete code.
48828         * stdlib/ldiv.c (ldiv): Likewise.
48829         * stdlib/lldiv.c (lldiv): Likewise.
48830
48831 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48832
48833         [BZ #16071]
48834         * nss/nss_files/files-XXX.c (get_contents_ret): New
48835         enumerator.
48836         (get_contents): New function.
48837         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48838
48839 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48840
48841         * configure.in: Moved to ...
48842         * configure.ac: ... here. Change reference to configure.in
48843         to configure.ac.
48844         * sysdeps/arm/preconfigure.ac: ... here.
48845         configure.in to configure.ac.
48846         * sysdeps/gnu/configure.in: Moved to ...
48847         * sysdeps/gnu/configure.ac: ... here.
48848         * sysdeps/i386/configure.in: Moved to ...
48849         * sysdeps/i386/configure.ac: ... here.
48850         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48851         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48852         * sysdeps/mach/configure.in: Moved to ...
48853         * sysdeps/mach/configure.ac: ... here.
48854         * sysdeps/mach/hurd/configure.in: Moved to ...
48855         * sysdeps/mach/hurd/configure.ac: ... here.
48856         * sysdeps/powerpc/configure.in: Moved to ...
48857         * sysdeps/powerpc/configure.ac: ... here.
48858         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48859         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48860         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48861         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48862         * sysdeps/s390/s390-32/configure.in: Moved to ...
48863         * sysdeps/s390/s390-32/configure.ac: ... here.
48864         * sysdeps/s390/s390-64/configure.in: Moved to ...
48865         * sysdeps/s390/s390-64/configure.ac: ... here.
48866         * sysdeps/sh/configure.in: Moved to ...
48867         * sysdeps/sh/configure.ac: ... here.
48868         * sysdeps/sparc/configure.in: Moved to ...
48869         * sysdeps/sparc/configure.ac: ... here.
48870         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48871         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48872         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48873         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48874         * sysdeps/x86_64/configure.in: Moved to ...
48875         * sysdeps/x86_64/configure.ac: ... here.
48876         * sysdeps/x86_64/preconfigure.in: Moved to ...
48877         * sysdeps/x86_64/preconfigure.ac: ... here.
48878         * aclocal.m4: Change reference to configure.in to configure.ac.
48879         * config.h.in: Likewise.
48880         * manual/install.texi: Likewise.
48881         * manual/maint.texi: Likewise.
48882         * Makefile: Likewise.
48883         * malloc/Makefile: Likewise.
48884         * nscd/Makefile: Likewise.
48885         * Makeconfig: Change reference to configure.in and
48886         preconfigure.in to configure.ac and preconfigure.ac
48887         respectively.
48888         * INSTALL: Regenerated.
48889         * configure: Likewise.
48890         * sysdeps/gnu/configure: Likewise.
48891         * sysdeps/i386/configure: Likewise.
48892         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48893         * sysdeps/mach/configure: Likewise.
48894         * sysdeps/mach/hurd/configure: Likewise.
48895         * sysdeps/powerpc/configure: Likewise.
48896         * sysdeps/powerpc/powerpc32/configure: Likewise.
48897         * sysdeps/powerpc/powerpc64/configure: Likewise.
48898         * sysdeps/s390/s390-32/configure: Likewise.
48899         * sysdeps/s390/s390-64/configure: Likewise.
48900         * sysdeps/sh/configure: Likewise.
48901         * sysdeps/sparc/configure: Likewise.
48902         * sysdeps/unix/sysv/linux/configure: Likewise.
48903         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48904         * sysdeps/x86_64/configure: Likewise.
48905         * sysdeps/x86_64/preconfigure: Likewise.
48906
48907 2013-10-29  Andreas Schwab  <schwab@suse.de>
48908
48909         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48910
48911 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48912
48913         * benchtests/pow-inputs: Add new inputs.
48914
48915         * benchtests/exp-inputs: Add new inputs.
48916
48917         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48918         conditional check for return value.
48919         (__cos32): Likewise.
48920
48921 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48922
48923         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48924         to provide a boost for large inputs with word alignment.
48925         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48926         implementation based on optimized PPC64 strcpy.
48927         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48928         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48929         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48930         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48931
48932 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48933
48934         [BZ #2801]
48935         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48936
48937 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48938
48939         [BZ #14876]
48940         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48941         * time/tst-strptime.c (day_tests): Add testcase.
48942
48943 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48944
48945         [BZ #14029]
48946         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48947
48948 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48949
48950         [BZ #16074]
48951         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48952         MAP_FAILED on error.
48953
48954 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48955
48956         [BZ #16072]
48957         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48958         heap for large requests.
48959
48960 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48961
48962         [BZ #9954]
48963         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48964         result if the result has no associated interface.
48965         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48966         interface for all 127.X.Y.Z addresses.
48967
48968 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48969
48970         * locale/iso-639.def: Add Ligurian (lij)
48971
48972 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48973
48974         [BZ #15825]
48975         * sunrpc/rpc_main.c: Document rpcgen -5.
48976
48977 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48978
48979         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48980
48981 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48982
48983         [BZ #10278]
48984         * posix/glob.c: Match only directories when trailing slash is present.
48985         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48986         (main): Add testcase.
48987
48988 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48989
48990         [BZ #15670]
48991         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48992
48993 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48994
48995         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48996         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48997         AUTH_DES and cindex for FIPS 140-2.
48998         (DES Encryption): Add cindex FIPS 46-3.
48999
49000         * locale/locarchive.h (struct locarhandle): Add fname.
49001         * locale/programs/localedef.c (main): Pass ARGV[remaining]
49002         if an optional argument was specified to --list-archive,
49003         otherwise NULL.
49004         * locale/programs/locarchive.c (show_archive_content): Take new
49005         argument fname and pass it via ah.fname to open_archive.
49006         * locale/programs/localedef.h: Update decl.
49007         (open_archive): If AH->fname is non-null, open that file
49008         rather than the default file name, and don't ignore ENOENT.
49009         (create_archive): Set AH.fname to NULL.
49010         (delete_locales_from_archive): Likewise.
49011         (add_locales_to_archive): Likewise.
49012         * locale/programs/locfile.c (write_all_categories): Likewise.
49013
49014 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
49015             Aldy Hernandez  <aldyh@redhat.com>
49016
49017         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
49018         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
49019         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
49020         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
49021         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
49022         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
49023         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
49024         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
49025         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
49026         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
49027         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
49028         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
49029         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
49030         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
49031         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
49032         Likewise.
49033         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
49034         Likewise.
49035         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
49036         Likewise.
49037         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
49038         Likewise.
49039         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
49040         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
49041         Likewise.
49042         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
49043         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
49044         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
49045         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
49046         Likewise.
49047         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
49048         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
49049         * sysdeps/powerpc/preconfigure: Likewise.
49050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
49051         Likewise.
49052         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
49053         Replace contents of file by #include of <fenv_libc.h>.
49054         * sysdeps/powerpc/soft-fp/sfp-machine.h
49055         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
49056         and <sys/prctl.h>.
49057         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
49058         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
49059         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
49060         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
49061         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
49062         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
49063         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
49064         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
49065         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
49066         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
49067         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
49068         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
49069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
49070         Allow copysignl PLT reference to be missing.
49071
49072 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
49073             Joseph Myers  <joseph@codesourcery.com
49074
49075         [BZ #15948]
49076         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
49077         single character.
49078         (add_to_tablewc): Assert sequence of wide characters is nonempty.
49079
49080 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
49081
49082         * elf/tst-tls-dlinfo.c: Don't include tls.h.
49083         * elf/tst-tls1.c: Likewise.
49084         * elf/tst-tls10.h: Likewise.
49085         * elf/tst-tls14.c: Likewise.
49086         * elf/tst-tls2.c: Likewise.
49087         * elf/tst-tls3.c: Likewise.
49088         * elf/tst-tls4.c: Likewise.
49089         * elf/tst-tls5.c: Likewise.
49090         * elf/tst-tls6.c: Likewise.
49091         * elf/tst-tls7.c: Likewise.
49092         * elf/tst-tls8.c: Likewise.
49093         * elf/tst-tls9.c: Likewise.
49094         * elf/tst-tlsmod1.c: Likewise.
49095         * elf/tst-tlsmod13.c: Likewise.
49096         * elf/tst-tlsmod13a.c: Likewise.
49097         * elf/tst-tlsmod14a.c: Likewise.
49098         * elf/tst-tlsmod16a.c: Likewise.
49099         * elf/tst-tlsmod16b.c: Likewise.
49100         * elf/tst-tlsmod2.c: Likewise.
49101         * elf/tst-tlsmod3.c: Likewise.
49102         * elf/tst-tlsmod4.c: Likewise.
49103         * elf/tst-tlsmod5.c: Likewise.
49104         * elf/tst-tlsmod6.c: Likewise.
49105
49106 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
49107
49108         [BZ #12486]
49109         * malloc/malloc.c: remove checks for statistics.
49110
49111 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
49112
49113         [BZ #15277]
49114         * inet/inet_net.c (inet_network): Detect additional invalid strings.
49115         * inet/tst-network.c: Add testcase.
49116
49117 2013-10-17  Andreas Schwab  <schwab@suse.de>
49118
49119         [BZ #15218]
49120         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
49121         to determine canonical name.
49122
49123 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
49124
49125         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
49126         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
49127         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
49128         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
49129         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
49130         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
49131         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
49132         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
49133         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
49134         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
49135         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
49136         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
49137         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
49138         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
49139         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
49140         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
49141         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
49142         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
49143         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
49144         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
49145         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
49146         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
49147         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
49148         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
49149         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
49150         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
49151         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
49152         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
49153         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
49154         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
49155         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
49156         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
49157         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
49158         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
49159         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
49160         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
49161         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
49162         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
49163         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
49164         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
49165         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
49166         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
49167         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
49168         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
49169         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
49170         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
49171         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
49172         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
49173         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
49174         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
49175         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
49176         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
49177         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
49178         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
49179         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49180         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
49181         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
49182         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
49183
49184 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
49185
49186         [BZ #16041]
49187         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
49188         make result into a quiet NaN.
49189
49190 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
49191
49192         * soft-fp/adddf3.c: Fix horizontal whitespace.
49193         * soft-fp/addsf3.c: Likewise.
49194         * soft-fp/addtf3.c: Likewise.
49195         * soft-fp/divdf3.c: Likewise.
49196         * soft-fp/divsf3.c: Likewise.
49197         * soft-fp/divtf3.c: Likewise.
49198         * soft-fp/double.h: Likewise.
49199         * soft-fp/eqdf2.c: Likewise.
49200         * soft-fp/eqsf2.c: Likewise.
49201         * soft-fp/eqtf2.c: Likewise.
49202         * soft-fp/extenddftf2.c: Likewise.
49203         * soft-fp/extended.h: Likewise.
49204         * soft-fp/extendsfdf2.c: Likewise.
49205         * soft-fp/extendsftf2.c: Likewise.
49206         * soft-fp/extendxftf2.c: Likewise.
49207         * soft-fp/fixdfdi.c: Likewise.
49208         * soft-fp/fixdfsi.c: Likewise.
49209         * soft-fp/fixdfti.c: Likewise.
49210         * soft-fp/fixsfdi.c: Likewise.
49211         * soft-fp/fixsfsi.c: Likewise.
49212         * soft-fp/fixsfti.c: Likewise.
49213         * soft-fp/fixtfdi.c: Likewise.
49214         * soft-fp/fixtfsi.c: Likewise.
49215         * soft-fp/fixtfti.c: Likewise.
49216         * soft-fp/fixunsdfdi.c: Likewise.
49217         * soft-fp/fixunsdfsi.c: Likewise.
49218         * soft-fp/fixunsdfti.c: Likewise.
49219         * soft-fp/fixunssfdi.c: Likewise.
49220         * soft-fp/fixunssfsi.c: Likewise.
49221         * soft-fp/fixunssfti.c: Likewise.
49222         * soft-fp/fixunstfdi.c: Likewise.
49223         * soft-fp/fixunstfsi.c: Likewise.
49224         * soft-fp/fixunstfti.c: Likewise.
49225         * soft-fp/floatdidf.c: Likewise.
49226         * soft-fp/floatdisf.c: Likewise.
49227         * soft-fp/floatditf.c: Likewise.
49228         * soft-fp/floatsidf.c: Likewise.
49229         * soft-fp/floatsisf.c: Likewise.
49230         * soft-fp/floatsitf.c: Likewise.
49231         * soft-fp/floattidf.c: Likewise.
49232         * soft-fp/floattisf.c: Likewise.
49233         * soft-fp/floattitf.c: Likewise.
49234         * soft-fp/floatundidf.c: Likewise.
49235         * soft-fp/floatundisf.c: Likewise.
49236         * soft-fp/floatunditf.c: Likewise.
49237         * soft-fp/floatunsidf.c: Likewise.
49238         * soft-fp/floatunsisf.c: Likewise.
49239         * soft-fp/floatunsitf.c: Likewise.
49240         * soft-fp/floatuntidf.c: Likewise.
49241         * soft-fp/floatuntisf.c: Likewise.
49242         * soft-fp/floatuntitf.c: Likewise.
49243         * soft-fp/fmadf4.c: Likewise.
49244         * soft-fp/fmasf4.c: Likewise.
49245         * soft-fp/fmatf4.c: Likewise.
49246         * soft-fp/gedf2.c: Likewise.
49247         * soft-fp/gesf2.c: Likewise.
49248         * soft-fp/getf2.c: Likewise.
49249         * soft-fp/ledf2.c: Likewise.
49250         * soft-fp/lesf2.c: Likewise.
49251         * soft-fp/letf2.c: Likewise.
49252         * soft-fp/muldf3.c: Likewise.
49253         * soft-fp/mulsf3.c: Likewise.
49254         * soft-fp/multf3.c: Likewise.
49255         * soft-fp/negdf2.c: Likewise.
49256         * soft-fp/negsf2.c: Likewise.
49257         * soft-fp/negtf2.c: Likewise.
49258         * soft-fp/op-1.h: Likewise.
49259         * soft-fp/op-2.h: Likewise.
49260         * soft-fp/op-4.h: Likewise.
49261         * soft-fp/op-8.h: Likewise.
49262         * soft-fp/op-common.h: Likewise.
49263         * soft-fp/quad.h: Likewise.
49264         * soft-fp/single.h: Likewise.
49265         * soft-fp/soft-fp.h: Likewise.
49266         * soft-fp/sqrtdf2.c: Likewise.
49267         * soft-fp/sqrtsf2.c: Likewise.
49268         * soft-fp/sqrttf2.c: Likewise.
49269         * soft-fp/subdf3.c: Likewise.
49270         * soft-fp/subsf3.c: Likewise.
49271         * soft-fp/subtf3.c: Likewise.
49272         * soft-fp/truncdfsf2.c: Likewise.
49273         * soft-fp/trunctfdf2.c: Likewise.
49274         * soft-fp/trunctfsf2.c: Likewise.
49275         * soft-fp/trunctfxf2.c: Likewise.
49276         * soft-fp/unorddf2.c: Likewise.
49277         * soft-fp/unordsf2.c: Likewise.
49278         * soft-fp/unordtf2.c: Likewise.
49279
49280 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
49281
49282         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
49283         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
49284
49285 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
49286
49287         * elf/dl-libc.c: Clear initfini list after freeing.
49288
49289 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
49290
49291         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
49292         * soft-fp/addsf3.c: Likewise.
49293         * soft-fp/addtf3.c: Likewise.
49294         * soft-fp/divdf3.c: Likewise.
49295         * soft-fp/divsf3.c: Likewise.
49296         * soft-fp/divtf3.c: Likewise.
49297         * soft-fp/double.h: Likewise.
49298         * soft-fp/eqdf2.c: Likewise.
49299         * soft-fp/eqsf2.c: Likewise.
49300         * soft-fp/eqtf2.c: Likewise.
49301         * soft-fp/extenddftf2.c: Likewise.
49302         * soft-fp/extended.h: Likewise.
49303         * soft-fp/extendsfdf2.c: Likewise.
49304         * soft-fp/extendsftf2.c: Likewise.
49305         * soft-fp/extendxftf2.c: Likewise.
49306         * soft-fp/fixdfdi.c: Likewise.
49307         * soft-fp/fixdfsi.c: Likewise.
49308         * soft-fp/fixdfti.c: Likewise.
49309         * soft-fp/fixsfdi.c: Likewise.
49310         * soft-fp/fixsfsi.c: Likewise.
49311         * soft-fp/fixsfti.c: Likewise.
49312         * soft-fp/fixtfdi.c: Likewise.
49313         * soft-fp/fixtfsi.c: Likewise.
49314         * soft-fp/fixtfti.c: Likewise.
49315         * soft-fp/fixunsdfdi.c: Likewise.
49316         * soft-fp/fixunsdfsi.c: Likewise.
49317         * soft-fp/fixunsdfti.c: Likewise.
49318         * soft-fp/fixunssfdi.c: Likewise.
49319         * soft-fp/fixunssfsi.c: Likewise.
49320         * soft-fp/fixunssfti.c: Likewise.
49321         * soft-fp/fixunstfdi.c: Likewise.
49322         * soft-fp/fixunstfsi.c: Likewise.
49323         * soft-fp/fixunstfti.c: Likewise.
49324         * soft-fp/floatdidf.c: Likewise.
49325         * soft-fp/floatdisf.c: Likewise.
49326         * soft-fp/floatditf.c: Likewise.
49327         * soft-fp/floatsidf.c: Likewise.
49328         * soft-fp/floatsisf.c: Likewise.
49329         * soft-fp/floatsitf.c: Likewise.
49330         * soft-fp/floattidf.c: Likewise.
49331         * soft-fp/floattisf.c: Likewise.
49332         * soft-fp/floattitf.c: Likewise.
49333         * soft-fp/floatundidf.c: Likewise.
49334         * soft-fp/floatundisf.c: Likewise.
49335         * soft-fp/floatunsidf.c: Likewise.
49336         * soft-fp/floatunsisf.c: Likewise.
49337         * soft-fp/floatuntidf.c: Likewise.
49338         * soft-fp/floatuntisf.c: Likewise.
49339         * soft-fp/floatuntitf.c: Likewise.
49340         * soft-fp/fmadf4.c: Likewise.
49341         * soft-fp/fmasf4.c: Likewise.
49342         * soft-fp/fmatf4.c: Likewise.
49343         * soft-fp/gedf2.c: Likewise.
49344         * soft-fp/gesf2.c: Likewise.
49345         * soft-fp/getf2.c: Likewise.
49346         * soft-fp/ledf2.c: Likewise.
49347         * soft-fp/lesf2.c: Likewise.
49348         * soft-fp/letf2.c: Likewise.
49349         * soft-fp/muldf3.c: Likewise.
49350         * soft-fp/mulsf3.c: Likewise.
49351         * soft-fp/multf3.c: Likewise.
49352         * soft-fp/negdf2.c: Likewise.
49353         * soft-fp/negsf2.c: Likewise.
49354         * soft-fp/negtf2.c: Likewise.
49355         * soft-fp/op-1.h: Likewise.
49356         * soft-fp/op-2.h: Likewise.
49357         * soft-fp/op-4.h: Likewise.
49358         * soft-fp/op-8.h: Likewise.
49359         * soft-fp/op-common.h: Likewise.
49360         * soft-fp/quad.h: Likewise.
49361         * soft-fp/single.h: Likewise.
49362         * soft-fp/soft-fp.h: Likewise.
49363         * soft-fp/sqrtdf2.c: Likewise.
49364         * soft-fp/sqrtsf2.c: Likewise.
49365         * soft-fp/sqrttf2.c: Likewise.
49366         * soft-fp/subdf3.c: Likewise.
49367         * soft-fp/subsf3.c: Likewise.
49368         * soft-fp/subtf3.c: Likewise.
49369         * soft-fp/truncdfsf2.c: Likewise.
49370         * soft-fp/trunctfdf2.c: Likewise.
49371         * soft-fp/trunctfsf2.c: Likewise.
49372         * soft-fp/trunctfxf2.c: Likewise.
49373         * soft-fp/unorddf2.c: Likewise.
49374         * soft-fp/unordsf2.c: Likewise.
49375         * soft-fp/unordtf2.c: Likewise.
49376
49377 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
49378
49379         [BZ #15672]
49380         * misc/error.c (error_tail): Fix possible buffer overflow.
49381
49382 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
49383
49384         [BZ #13028]
49385         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
49386         address.
49387
49388 2013-10-14  P. J. McDermott  <pj@pehjota.net>
49389
49390         [BZ #832]
49391         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
49392         testing pipefail option.
49393
49394 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49395
49396         * soft-fp/double.h: Indent preprocessor directives inside #if.
49397         * soft-fp/extended.h: Likewise.
49398         * soft-fp/op-2.h: Likewise.
49399         * soft-fp/op-4.h: Likewise.
49400         * soft-fp/op-common.h: Likewise.
49401         * soft-fp/quad.h: Likewise.
49402         * soft-fp/single.h: Likewise.
49403         * soft-fp/soft-fp.h: Likewise.
49404
49405 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
49406
49407         * iconv/iconv_prog.c: Fix typos.
49408         * stdio-common/psiginfo-data.h: Likewise.
49409
49410 2013-10-12   Reuben Thomas <rrt@sc3d.org>
49411
49412         [BZ #15764]
49413         * locale/setlocale.c: Fix typo.
49414
49415 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49416
49417         [BZ #16036]
49418         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
49419         signaling NaN arguments.
49420         * soft-fp/unordsf2.c (__unordsf2): Likewise.
49421         * soft-fp/unordtf2.c (__unordtf2): Likewise.
49422
49423         [BZ #14910]
49424         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
49425         unordered operands.
49426         * soft-fp/gesf2.c (__gesf2): Likewise.
49427         * soft-fp/getf2.c (__getf2): Likewise.
49428         * soft-fp/ledf2.c (__ledf2): Likewise.
49429         * soft-fp/lesf2.c (__lesf2): Likewise.
49430         * soft-fp/letf2.c (__letf2): Likewise.
49431
49432         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
49433         * soft-fp/eqsf2.c (__eqsf2): Likewise.
49434         * soft-fp/eqtf2.c (__eqtf2): Likewise.
49435         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
49436         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
49437         * soft-fp/fixdfti.c (__fixdfti): Likewise.
49438         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
49439         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
49440         * soft-fp/fixsfti.c (__fixsfti): Likewise.
49441         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
49442         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
49443         * soft-fp/fixtfti.c (__fixtfti): Likewise.
49444         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
49445         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
49446         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
49447         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
49448         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
49449         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
49450         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
49451         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
49452         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
49453         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
49454         * soft-fp/floatdisf.c (__floatdisf): Likewise.
49455         * soft-fp/floatsisf.c (__floatsisf): Likewise.
49456         * soft-fp/floattidf.c (__floattidf): Likewise.
49457         * soft-fp/floattisf.c (__floattisf): Likewise.
49458         * soft-fp/floattitf.c (__floattitf): Likewise.
49459         * soft-fp/floatundidf.c (__floatundidf): Likewise.
49460         * soft-fp/floatundisf.c (__floatundisf): Likewise.
49461         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
49462         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
49463         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
49464         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
49465         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
49466         * soft-fp/gesf2.c (__gesf2): Likewise.
49467         * soft-fp/getf2.c (__getf2): Likewise.
49468         * soft-fp/ledf2.c (__ledf2): Likewise.
49469         * soft-fp/lesf2.c (__lesf2): Likewise.
49470         * soft-fp/letf2.c (__letf2): Likewise.
49471
49472         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
49473         Undefine and redefine.
49474         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
49475         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
49476         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
49477         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
49478         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49479         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
49480         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49481         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
49482         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49483         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
49484         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49485         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
49486         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49487         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
49488         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49489
49490         [BZ #16032]
49491         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
49492         without decrementing exponent if mantissa >= that for the
49493         denominator, not >.
49494         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
49495         denominator, not >.  Decrement exponent in < case instead of
49496         incrementing in >= case.
49497         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
49498         without decrementing exponent if mantissa >= that for the
49499         denominator, not >.
49500
49501         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
49502         computing saturated result for unsigned overflow.
49503
49504 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49505             Jeff Law  <law@redhat.com>
49506
49507         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
49508         (atan2Mp): Add systemtap probe marker.
49509         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
49510         (__ieee754_log): Add systemtap probe marker.
49511         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
49512         (atanMp): Add systemtap probe marker.
49513         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
49514         (tanMp): Add systemtap probe marker.
49515         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
49516         (__slowexp): Add systemtap probe marker.
49517         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49518         (__slowpow): Add systemtap probe marker.
49519         * manual/probes.texi: Document probes.
49520
49521 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
49522
49523         [BZ #15362]
49524         * libio/fileops.c (_IO_new_file_write): Return count of bytes
49525         written.
49526         (_IO_new_file_xsputn): Don't return EOF if nothing has been
49527         written.
49528         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
49529         written to buffer but not flushed.
49530         * libio/iofwrite_u.c:  Likewise.
49531         * libio/iopadn.c:  Return bytes returned even if EOF was
49532         encountered.
49533         * libio/iowpadn.c:  Likewise.
49534         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
49535         if _IO_padn does not write the whole buffer.
49536         [!COMPILE_WPRINTF] (PAD): Likewise.
49537
49538 2013-10-10  David S. Miller  <davem@davemloft.net>
49539
49540         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
49541         directory block.
49542
49543 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49544
49545         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
49546         instead of FSF address.
49547         * soft-fp/fixdfti.c: Likewise.
49548         * soft-fp/fixsfti.c: Likewise.
49549         * soft-fp/fixtfti.c: Likewise.
49550         * soft-fp/fixunsdfti.c: Likewise.
49551         * soft-fp/fixunssfti.c: Likewise.
49552         * soft-fp/fixunstfti.c: Likewise.
49553         * soft-fp/floattidf.c: Likewise.
49554         * soft-fp/floattisf.c: Likewise.
49555         * soft-fp/floattitf.c: Likewise.
49556         * soft-fp/floatuntidf.c: Likewise.
49557         * soft-fp/floatuntisf.c: Likewise.
49558         * soft-fp/floatuntitf.c: Likewise.
49559         * soft-fp/trunctfxf2.c: Likewise.
49560
49561         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49562         * soft-fp/fixdfti.c: Likewise.
49563         * soft-fp/fixsfti.c: Likewise.
49564         * soft-fp/fixtfti.c: Likewise.
49565         * soft-fp/fixunsdfti.c: Likewise.
49566         * soft-fp/fixunssfti.c: Likewise.
49567         * soft-fp/fixunstfti.c: Likewise.
49568         * soft-fp/floattidf.c: Likewise.
49569         * soft-fp/floattisf.c: Likewise.
49570         * soft-fp/floattitf.c: Likewise.
49571         * soft-fp/floatuntidf.c: Likewise.
49572         * soft-fp/floatuntisf.c: Likewise.
49573         * soft-fp/floatuntitf.c: Likewise.
49574         * soft-fp/trunctfxf2.c: Likewise.
49575
49576 2013-10-10  David S. Miller  <davem@davemloft.net>
49577
49578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49579
49580 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49581
49582         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49583         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49584         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49585         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49586         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49587         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49588         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49589
49590         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49591         for NaNs before doing comparisons on argument.
49592         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49593         Likewise.
49594
49595 2013-10-10  Will Newton  <will.newton@linaro.org>
49596
49597         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49598         passed to _int_memalign does not overflow.
49599
49600 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49601
49602         * scripts/bench.pl: Add include-sources directive.
49603         * benchtests/README: Update documentation.
49604
49605 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49606
49607         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49608         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49609         instead of FP_INIT_ROUNDMODE.
49610         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49611         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49612
49613         [BZ #16034]
49614         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49615         copy class of input value.
49616         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49617         not handle exceptions.
49618         * soft-fp/negsf2.c (__negsf2): Likewise.
49619         * soft-fp/negtf2.c (__negtf2): Likewise.
49620         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49621
49622 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49623
49624         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49625         semicolon.  From Linux kernel.
49626
49627 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49628
49629         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49630
49631 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49632
49633         [BZ #156]
49634         * manual/socket.texi: Added statement about buffer
49635         for gethostbyname2_r.
49636
49637 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49638
49639         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49640         Use .p2align directive instead, throughout.
49641         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49642         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49643         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49644         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49645         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49646         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49647         * sysdeps/x86_64/strchr.S: Likewise.
49648         * sysdeps/x86_64/strrchr.S: Likewise.
49649
49650 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49651
49652         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49653
49654         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49655
49656         * sysdeps/generic/math_private.h (__mpsin1): Remove
49657         declaration.
49658         (__mpcos1): Likewise.
49659         (__mpsin): New argument __range_reduce.
49660         (__mpcos): Likewise.
49661         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49662         (slow): Use __mpsin and __mpcos.
49663         (slow1): Likewise.
49664         (slow2): Likewise.
49665         (sloww): Likewise.
49666         (sloww1): Likewise.
49667         (sloww2): Likewise.
49668         (bsloww): Likewise.
49669         (bsloww1): Likewise.
49670         (bsloww2): Likewise.
49671         (cslow2): Likewise.
49672         (csloww): Likewise.
49673         (csloww1): Likewise.
49674         (csloww2): Likewise.
49675         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49676         range_reduce.  Merge in __mpsin1.
49677         (__mpcos): Likewise.
49678         (__mpsin1): Remove.
49679         (__mpcos1): Likewise.
49680
49681 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49682
49683         * locale/loadlocale.c (_nl_intern_locale_data): Use
49684         LOCFILE_ALIGNED_P.
49685         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49686         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49687         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49688         obstack data is appropriately aligned.
49689         (obstack_int32_grow_fast): Likewise.
49690         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49691         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49692         (add_locale_uint32_array): Likewise.
49693
49694 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49695
49696         * benchtests/Makefile: Remove ARGLIST and RET variables.
49697         ($(objpfx)bench-%.c): Pass only function name to the script.
49698         * benchtests/README: Update documentation.
49699         * benchtests/acos-inputs: Add new directives.
49700         * benchtests/acosh-inputs: Likewise.
49701         * benchtests/asin-inputs: Likewise.
49702         * benchtests/asinh-inputs: Likewise.
49703         * benchtests/atan-inputs: Likewise.
49704         * benchtests/atanh-inputs: Likewise.
49705         * benchtests/cos-inputs: Likewise.
49706         * benchtests/cosh-inputs: Likewise.
49707         * benchtests/exp-inputs: Likewise.
49708         * benchtests/log-inputs: Likewise.
49709         * benchtests/pow-inputs: Likewise.
49710         * benchtests/rint-inputs: Likewise.
49711         * benchtests/sin-inputs: Likewise.
49712         * benchtests/sinh-inputs: Likewise.
49713         * benchtests/tan-inputs: Likewise.
49714         * benchtests/tanh-inputs: Likewise.
49715         * scripts/bench.pl: Add support for new directives.
49716
49717 2013-10-07  Alan Modra  <amodra@gmail.com>
49718
49719         * README: Fix careless merge.
49720
49721 2013-10-05  Alan Modra  <amodra@gmail.com>
49722
49723         * NEWS: Mention powerpc64le support and bugs fixed.
49724         * README: Both big-endian and little-endian powerpc64 supported.
49725
49726 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49727
49728         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49729         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49730         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49731         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49732
49733 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49734
49735         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49736         match prototype.
49737
49738 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49739
49740         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49741         Move -mhard-float appending from
49742         ports/sysdeps/powerpc/powerpc32/Makefile.
49743         [$(with-fp) = yes] (ASFLAGS): Likewise.
49744         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49745         * sysdeps/powerpc/nofpu: Move directory from
49746         ports/sysdeps/powerpc/nofpu.
49747         * sysdeps/powerpc/soft-fp: Move directory from
49748         ports/sysdeps/powerpc/soft-fp.
49749         * sysdeps/powerpc/powerpc32/405: Move directory from
49750         ports/sysdeps/powerpc/powerpc32/405.
49751         * sysdeps/powerpc/powerpc32/440: Move directory from
49752         ports/sysdeps/powerpc/powerpc32/440.
49753         * sysdeps/powerpc/powerpc32/464: Move directory from
49754         ports/sysdeps/powerpc/powerpc32/464.
49755         * sysdeps/powerpc/powerpc32/476: Move directory from
49756         ports/sysdeps/powerpc/powerpc32/476.
49757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49758         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49760         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49762         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49764         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49766         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49767         * README: Update for powerpc-*-linux-gnu software floating point
49768         support in libc.
49769
49770         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49771         case to powerpc/powerpc32*.
49772         * sysdeps/unix/sysv/linux/configure: Regenerated.
49773
49774         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49775         (_FPU_MASK_OM): Define as 0x04.
49776         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49777         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49778         0x00c10080.
49779         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49780         0x0000003c.
49781         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49782
49783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49784         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49785         getcontext_e500.
49786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49787         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49788         setcontext_e500.
49789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49790         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49791         and setcontext_e500.
49792
49793 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49794
49795         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49796
49797 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49798
49799         * manual/threads.texi (Default Thread Attributes): Fix typo.
49800
49801 2013-10-04  Will Newton  <will.newton@linaro.org>
49802
49803         * malloc/Makefile: Add tst-memalign.
49804         * malloc/tst-memalign.c: New file.
49805
49806         * malloc/tst-posix_memalign.c: Add comments.
49807         (do_test): Add comments and call free on all potentially
49808         allocated pointers. Add space after cast.
49809
49810         * malloc/tst-pvalloc.c: Add comments.
49811         (do_test): Add comments and call free on all potentially
49812         allocated pointers. Remove duplicate check for NULL pointer.
49813         Add space after cast.
49814
49815         * malloc/tst-valloc.c: Add comments.
49816         (do_test): Add comments and call free on all potentially
49817         allocated pointers. Remove duplicate check for NULL pointer.
49818         Add space after cast.
49819
49820 2013-10-04  Alan Modra  <amodra@gmail.com>
49821
49822         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49823         Use stdint types in rather than __attribute__((mode())).
49824         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49825
49826 2013-10-04  Alan Modra  <amodra@gmail.com>
49827
49828         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49829         Correct handling of unaligned relocs for little-endian.
49830         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49831
49832 2013-10-04  Alan Modra  <amodra@gmail.com>
49833
49834         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49835         * configure: Regenerate.
49836         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49837         * shlib-versions: Likewise.
49838
49839 2013-10-04  Alan Modra  <amodra@gmail.com>
49840
49841         * string/tester.c (test_memrchr): Increment reported test cycle.
49842
49843 2013-10-04  Alan Modra  <amodra@gmail.com>
49844
49845         * string/test-memcpy.c (do_one_test): When reporting errors, print
49846         string address and don't overrun end of string.
49847
49848 2013-10-04  Alan Modra  <amodra@gmail.com>
49849
49850         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49851         insrdi.  Make better use of reg selection to speed exit slightly.
49852         Schedule entry path a little better.  Remove useless "are we done"
49853         checks on entry to main loop.  Handle wrapping around zero address.
49854         Correct main loop count.  Handle single left-over word from main
49855         loop inline rather than by using loop_small.  Remove extra word
49856         case in loop_small caused by wrong loop count.  Add little-endian
49857         support.
49858         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49859         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49860         cache hint.
49861         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49862         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49863         support.  Avoid rlwimi.
49864         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49865
49866 2013-10-04  Alan Modra  <amodra@gmail.com>
49867
49868         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49869         insrdi.  Formatting.
49870         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49871         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49872         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49873         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49874         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49875         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49876
49877 2013-10-04  Alan Modra  <amodra@gmail.com>
49878
49879         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49880         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49881         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49882         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49883         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49884         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49885         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49886         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49887         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49888         use of regs.  Use power7 mtocrf.  Tidy function tails.
49889
49890 2013-10-04  Alan Modra  <amodra@gmail.com>
49891
49892         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49893         Formatting.  Consistently use rXXX register defines or rN defines.
49894         Use early exit labels that avoid restoring unused non-volatile regs.
49895         Make cr field use more consistent with rWORDn compares.  Rename
49896         regs used as shift registers for unaligned loop, using rN defines
49897         for short lifetime/multiple use regs.
49898         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49899         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49900         addi 1,1,64 to pop stack frame.  Simplify return value code.
49901         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49902
49903 2013-10-04  Alan Modra  <amodra@gmail.com>
49904
49905         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49906         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49907         rather than rlwimi.
49908         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49909         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49910         little-endian support.  Correct typos.
49911         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49912         rather than rlwimi.
49913         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49914         in loop and entry code to keep "and." results.
49915         (strchr): Add little-endian support.  Comment.  Move cntlzd
49916         earlier in tail.
49917         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49918
49919 2013-10-04  Alan Modra  <amodra@gmail.com>
49920
49921         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49922         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49923         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49924         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49925
49926 2013-10-04  Alan Modra  <amodra@gmail.com>
49927
49928         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49929         (rTMP): Define as r11.
49930         (strcmp): Add little-endian support.  Optimise tail.
49931         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49932         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49933         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49934         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49935         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49936         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49937         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49938
49939 2013-10-04  Alan Modra  <amodra@gmail.com>
49940
49941         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49942         little-endian support.  Remove unnecessary "are we done" tests.
49943         Handle "s" wrapping around zero and extremely large "size".
49944         Correct main loop count.  Handle single left-over word from main
49945         loop inline rather than by using small_loop.  Correct comments.
49946         Delete "zero" tail, use "end_max" instead.
49947         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49948
49949 2013-10-04  Alan Modra  <amodra@gmail.com>
49950
49951         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49952         support.  Don't branch over align.
49953         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49954         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49955         support.  Rearrange tmp reg use to suit.  Comment.
49956         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49957
49958 2013-10-04  Alan Modra  <amodra@gmail.com>
49959
49960         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49961
49962 2013-10-04  Alan Modra  <amodra@gmail.com>
49963
49964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49965         conditional form of branch and link when obtaining pc.
49966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49967
49968 2013-10-04  Alan Modra  <amodra@gmail.com>
49969
49970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49971         HIWORD/LOWORD.
49972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49974
49975 2013-10-04  Alan Modra  <amodra@gmail.com>
49976
49977         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49978         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49979         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49980         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49981         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49982         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49983         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49984         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49985         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49986         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49987
49988 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49989             Alistair Popple <alistair@ozlabs.au.ibm.com>
49990             Alan Modra <amodra@gmail.com>
49991
49992         [BZ #15723]
49993         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49994         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49995         _dl_hwcap access for little-endian.
49996         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49997         destroy vmx regs when saving unaligned.
49998         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49999         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
50000         destroy vmx regs when saving unaligned.
50001
50002 2013-10-04  Alan Modra  <amodra@gmail.com>
50003
50004         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
50005         Don't use a union to pack hi/low value.
50006
50007 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50008
50009         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
50010         for little-endian.
50011         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
50012         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
50013         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
50014         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
50015         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
50016
50017 2013-10-04  Alan Modra  <amodra@gmail.com>
50018
50019         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
50020         constants to usual value for .cst8 section, and remove redundant
50021         high address load.
50022         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
50023         constant for 0x1p52.  Load little-endian words of double from
50024         correct stack offsets.
50025
50026 2013-10-04  Alan Modra  <amodra@gmail.com>
50027
50028         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
50029         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
50030         words of double from correct stack offsets.
50031         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
50032         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
50033         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
50034         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
50035         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
50036         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
50037         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
50038         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
50039         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
50040         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
50041         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
50042         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
50043         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
50044         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
50045         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
50046         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
50047         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
50048
50049 2013-10-04  Alan Modra  <amodra@gmail.com>
50050
50051         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
50052         64-bit int/double union.
50053         (_FPU_SETCW): Likewise.
50054         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
50055         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
50056
50057 2013-10-04  Alan Modra  <amodra@gmail.com>
50058
50059         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
50060         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
50061
50062 2013-10-04  Alan Modra  <amodra@gmail.com>
50063
50064         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
50065         use vector int constants.
50066         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
50067
50068 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50069
50070         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
50071         array with long long.
50072         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
50073         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
50074         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
50075         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
50076         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
50077         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
50078         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
50079         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
50080         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
50081         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
50082         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
50083         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
50084         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
50085
50086 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50087
50088         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
50089         (__signbit): Likewise.  Correct for little-endian.
50090         (__signbitl): Call __signbit.
50091         (lrint): Correct for little-endian.
50092         (lrintf): Call lrint.
50093
50094 2013-10-04  Alan Modra  <amodra@gmail.com>
50095
50096         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
50097         union 32-bit int array member with 64-bit int array.
50098         (t515, tm256): Double rather than long double.
50099         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
50100
50101 2013-10-04  Alan Modra  <amodra@gmail.com>
50102
50103         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
50104         Delete.
50105         (IEEE854_LONG_DOUBLE_BIAS): Delete.
50106         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
50107         version of math_ldbl.h.
50108
50109 2013-10-04  Alan Modra  <amodra@gmail.com>
50110
50111         [BZ #15734], [BZ #15735]
50112         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
50113         all uses of ieee875 long double macros and unions.  Simplify test
50114         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
50115         ldbl_extract_mantissa value for ix,iy exponents.  Properly
50116         normalize after ldbl_extract_mantissa, and don't add hidden bit
50117         already handled.  Don't treat low word of ieee854 mantissa like
50118         low word of IBM long double and mask off bit when testing for
50119         zero.
50120         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
50121         all uses of ieee875 long double macros and unions.  Simplify tests
50122         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
50123         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
50124         two1022, instead use their values.  Recognise that tests for large
50125         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
50126         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
50127         Rewrite all uses of ieee875 long double macros and unions.  Simplify
50128         test for 0.0L and nan.  Correct negation.
50129         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
50130         ieee875 long double macros and unions.  Correct output for large
50131         magnitude x.  Correct absolute value calculation.
50132         (__erfcl): Likewise.
50133         * math/libm-test.inc: Add tests for errors discovered in IBM long
50134         double versions of fmodl, remainderl, erfl and erfcl.
50135
50136 2013-10-04  Alan Modra  <amodra@gmail.com>
50137
50138         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
50139         all uses of ieee854 long double macros and unions.  Simplify tests
50140         for long doubles that are fully specified by the high double.
50141         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
50142         Likewise.
50143         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
50144         Remove dead code too.
50145         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
50146         (__ieee754_ynl): Likewise.
50147         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
50148         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
50149         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
50150         Remove dead code too.
50151         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
50152         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
50153         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
50154         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
50155         Simplify.
50156         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
50157         Simplify.
50158         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
50159         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
50160         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
50161         Comment on variable precision.
50162         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
50163         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
50164         Likewise.
50165         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
50166         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
50167         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
50168         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
50169         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
50170
50171 2013-10-04  Alan Modra  <amodra@gmail.com>
50172
50173         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
50174         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
50175         all uses of ieee854 long double macros and unions.
50176         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
50177         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
50178         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
50179         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
50180         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
50181         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
50182         Likewise.
50183         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
50184         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
50185         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
50186         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
50187         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
50188         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
50189         Simplify sign and nan test too.
50190         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
50191         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
50192         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
50193         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
50194         Likewise.
50195         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
50196         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
50197         Likewise.
50198         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
50199         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
50200         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
50201         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
50202         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
50203         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
50204
50205 2013-10-04  Alan Modra  <amodra@gmail.com>
50206
50207         * stdio-common/printf_size.c (__printf_size): Don't use
50208         union ieee854_long_double in fpnum union.
50209         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
50210         signbit macro to retrieve sign from long double.
50211         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
50212         retrieve sign from long double.
50213         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
50214         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
50215         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
50216         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
50217         * math/test-misc.c (main): Don't use union ieee854_long_double.
50218
50219 2013-10-04  Alan Modra  <amodra@gmail.com>
50220
50221         [BZ #15680]
50222         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
50223         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
50224         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
50225         calculation.  Remove unnecessary test for denormal exponent.
50226         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
50227         Correct handling of denormals.  Avoid undefined shift behaviour.
50228         Correct normalisation of low mantissa when low double is denormal.
50229         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
50230         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
50231         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
50232         Correct normalisation of low mantissa.  Test for overflow of high
50233         mantissa and normalise.
50234         (ldbl_nearbyint): Use more readable constant for two52.
50235         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
50236         (__mpn_construct_long_double): Fix test for overflow of high
50237         mantissa and correct normalisation.  Avoid undefined shift.
50238
50239 2013-10-04  Alan Modra  <amodra@gmail.com>
50240
50241         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50242         (union ibm_extended_long_double): Define as an array of ieee754_double.
50243         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
50244         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
50245         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
50246         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
50247         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50248         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
50249         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
50250         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
50251         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
50252         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
50253         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
50254
50255 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
50256
50257         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
50258         page size instead of calling getpagesize.
50259
50260         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
50261         (LOCFILE_ALIGN_MASK): Likewise.
50262         (LOCFILE_ALIGN_UP): Likewise.
50263         (LOCFILE_ALIGNED_P): Likewise.
50264         * locale/programs/ld-collate.c (collate_output): Use the new
50265         macros instead of __alignof__ (int32_t).
50266         * locale/weight.h (findidx): Likewise.
50267
50268 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
50269
50270         [BZ #431]
50271         * manual/string.texi: Fix strncat and wcsncat.
50272
50273 2013-10-03  Brooks Moses  <bmoses@google.com>
50274
50275         [BZ #15915]
50276         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
50277         * Makerules: ...here, and adjust associated comments.
50278
50279 2013-10-02  Will Newton  <will.newton@linaro.org>
50280
50281         * malloc/Makefile: Add tst-pvalloc.
50282         * malloc/tst-pvalloc.c: New file.
50283
50284 2013-10-02  Will Newton  <will.newton@linaro.org>
50285
50286         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
50287         improve test coverage.
50288
50289 2013-10-02  Will Newton  <will.newton@linaro.org>
50290
50291         * malloc/Makefile: Add tst-posix_memalign.
50292         * malloc/tst-posix_memalign.c: New file.
50293
50294 2013-10-01  Eric Blake  <eblake@redhat.com>
50295
50296         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
50297         Use __THROWNL rather than __THROW on static functions.
50298
50299 2013-09-30  Petr Machata  <pmachata@redhat.com>
50300
50301         * elf/elf.h (R_AARCH64_ABS16): New macro.
50302         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
50303         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
50304         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
50305         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
50306         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
50307         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
50308         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
50309         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
50310         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
50311         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
50312         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
50313         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
50314         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
50315         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
50316         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
50317         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
50318         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
50319         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
50320         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
50321         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
50322         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
50323         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
50324         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
50325         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
50326         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
50327         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
50328         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
50329         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
50330         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
50331         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
50332         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
50333         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
50334         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
50335         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
50336         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
50337         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
50338         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
50339         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
50340         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
50341         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
50342         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
50343         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
50344         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
50345         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
50346         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
50347         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
50348         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
50349         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
50350         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
50351         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
50352         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
50353         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
50354         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
50355         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
50356         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
50357         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
50358         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
50359         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
50360         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
50361         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
50362         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
50363         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
50364         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
50365         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
50366         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
50367         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
50368         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
50369         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
50370         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
50371         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
50372         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
50373         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
50374         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
50375         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
50376         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
50377         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
50378         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
50379         (R_AARCH64_TLSDESC_LDR): Likewise.
50380         (R_AARCH64_TLSDESC_ADD): Likewise.
50381         (R_AARCH64_TLSDESC_CALL): Likewise.
50382
50383 2013-09-30  Andreas Schwab  <schwab@suse.de>
50384
50385         [BZ #15048]
50386         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
50387         the nss database lookup.
50388         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50389         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50390
50391 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
50392
50393         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
50394
50395 2013-09-28  P. J. McDermott  <pj@pehjota.net>
50396
50397         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
50398         ${Bash-specific parameter/pattern/string} parameter expansion.
50399         * sysdeps/unix/make-syscalls.sh: Likewise.
50400
50401 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50402
50403         * sysdeps/sh/stackguard-macros.h: New file.
50404
50405 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
50406
50407         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
50408         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
50409         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
50410         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
50411         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50412         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
50413
50414 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50415
50416         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
50417         Fix thread ID register.
50418
50419 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
50420
50421         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
50422         [POSIX || UNIX98]: Require rather than permitting all symbols from
50423         <time.h>.
50424         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
50425         element of struct sched_param.
50426         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
50427         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
50428         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
50429         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
50430         constant.
50431
50432 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
50433
50434         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
50435         argument calculation.
50436
50437 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50438
50439         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
50440         Expect macro.
50441         [POSIX] (pthread_attr_t): Do not require type.
50442         [POSIX] (pthread_cond_t): Likewise.
50443         [POSIX] (pthread_condattr_t): Likewise.
50444         [POSIX] (pthread_key_t): Likewise.
50445         [POSIX] (pthread_mutex_t): Likewise.
50446         [POSIX] (pthread_mutexattr_t): Likewise.
50447         [POSIX] (pthread_once_t): Likewise.
50448         [POSIX] (pthread_t): Likewise.
50449         [POSIX-based standards] (pthread_atfork): Expect function.
50450
50451 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50452             Richard Sandiford  <richard@codesourcery.com>
50453
50454         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
50455         (swap_endianness_p): New extern variable.
50456         (set_big_endian): New inline function.
50457         (maybe_swap_uint32): Likewise.
50458         (maybe_swap_uint32_array): Likewise.
50459         (maybe_swap_uint32_obstack): Likewise.
50460         * locale/programs/locfile.c: Include <stdbool.h>.
50461         (swap_endianness_p): New variable.
50462         (add_locale_uint32): Call maybe_swap_uint32.
50463         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
50464         (write_locale_data): Call maybe_swap_uint32_array.
50465         * locale/programs/ld-collate.c (obstack_int32_grow): Call
50466         maybe_swap_uint32.
50467         (obstack_int32_grow_fast): Likewise.
50468         (output_weightwc): Call maybe_swap_uint32_obstack.
50469         (collate_output): Likewise.
50470         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
50471         (OPT_LITTLE_ENDIAN): Likewise.
50472         (options): Add --little-endian and --big-endian options.
50473         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
50474         * locale/programs/locarchive.c: Include "locfile.h".
50475         (GET): New macro.
50476         (SET): Likewise.
50477         (INC): Likewise.
50478         (create_archive): Use the new macros to access fields of
50479         structures directly mapped from or written to locale archives.
50480         (oldlocrecentcmp): Likewise.
50481         (enlarge_archive): Likewise.
50482         (insert_name): Likewise.
50483         (add_alias): Likewise.
50484         (add_locale): Likewise.
50485         (delete_locales_from_archive): Likewise.
50486         (show_archive_content): Likewise.
50487         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
50488         locale data.
50489
50490 2013-09-24  Roland McGrath  <roland@hack.frob.com>
50491
50492         * manual/freemanuals.texi: Updated from (newly) canonical copy at
50493         http://www.gnu.org/doc/freemanuals.texi.
50494         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
50495
50496 2013-09-24  Will Newton  <will.newton@linaro.org>
50497
50498         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
50499         macro.
50500
50501 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
50502
50503         * locale/hashval.h (compute_hashval): Interpret bytes of key as
50504         unsigned char.
50505
50506 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
50507
50508         * manual/threads.texi (POSIX Threads): Fix a typo.
50509
50510 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
50511
50512         [BZ #14547]
50513         * string/tst-strcoll-overflow.c: New test case.
50514         * string/Makefile (xtests): Add tst-strcoll-overflow.
50515         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
50516         cache if string sizes may cause integer overflow.
50517
50518         [BZ #14547]
50519         * string/strcoll_l.c (coll_seq): New members rule, idx,
50520         save_idx and back_us.
50521         (get_next_seq_nocache): New function.
50522         (do_compare_nocache): New function.
50523         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
50524         when malloc fails.
50525
50526 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
50527
50528         [BZ #15754]
50529         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
50530         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
50531         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
50532
50533         [BZ #15754]
50534         * elf/Makefile (tests): Add tst-ptrguard1.
50535         (tests-static): Add tst-ptrguard1-static.
50536         (tst-ptrguard1-ARGS): Define.
50537         (tst-ptrguard1-static-ARGS): Define.
50538         * elf/tst-ptrguard1.c: New file.
50539         * elf/tst-ptrguard1-static.c: New file.
50540         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
50541         * sysdeps/i386/stackguard-macros.h: Likewise.
50542         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
50543         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
50544         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
50545         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
50546         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
50547         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
50548
50549 2013-09-23  Hector Marco  <hecmargi@upv.es>
50550             Ismael Ripoll  <iripoll@disca.upv.es>
50551             Carlos O'Donell  <carlos@redhat.com>
50552
50553         [BZ #15754]
50554         * sysdeps/generic/stackguard-macros.h: Define
50555         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50556         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50557         Define __pointer_chk_guard_local.
50558         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50559         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50560
50561 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50562
50563         [BZ #15859]
50564         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50565
50566 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50567
50568         * include/string.h (__ffs): Declare as hidden.
50569         * string/ffs.c (__ffs): Define as hidden.
50570         * sysdeps/i386/ffs.c (__ffs): Likewise.
50571         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50572         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50573         * sysdeps/s390/ffs.c (__ffs): Likewise.
50574         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50575
50576 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50577
50578         * NEWS: Mention malloc probes.
50579
50580         * malloc/arena.c (new_heap): New memory_heap_new probe.
50581         (grow_heap): New memory_heap_more probe.
50582         (shrink_heap): New memory_heap_less probe.
50583         (heap_trim): New memory_heap_free probe.
50584         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50585         (systrim): New memory_sbrk_less probe.
50586         * manual/probes.texi: Document them.
50587
50588         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50589         * manual/probes.texi: Document it.
50590
50591         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50592         (__libc_realloc): Add memory_realloc_retry probe.
50593         (__libc_memalign): Add memory_memalign_retry probe.
50594         (__libc_valloc): Add memory_valloc_retry probe.
50595         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50596         (__libc_calloc): Add memory_calloc_retry probe.
50597         * manual/probes.texi: Document them.
50598
50599         * malloc/arena.c (get_free_list): Add probe
50600         memory_arena_reuse_free_list.
50601         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50602         and memory_arena_reuse.
50603         (arena_get2) [!PER_THREAD]: Likewise.
50604         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50605         memory_arena_reuse_realloc.
50606         * manual/probes.texi: Document them.
50607
50608         * malloc/malloc.c (__libc_free): Add
50609         memory_mallopt_free_dyn_thresholds probe.
50610         (__libc_mallopt): Add multiple memory_mallopt probes.
50611         * manual/probes.texi: Document them.
50612
50613         * malloc/malloc.c: Include stap-probe.h.
50614         (__libc_mallopt): Add memory_mallopt probe.
50615         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50616         * manual/probes.texi: New.
50617         * manual/Makefile (chapters): Add probes.
50618         * manual/threads.texi: Set next node.
50619
50620 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50621
50622         [BZ #15963, #13985]
50623         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50624         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50625         Add `Chinese' to `nan' entry name.
50626
50627 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50628
50629         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50630         (POLYNOMIAL): Likewise.
50631         (TAYLOR_SINCOS): Likewise.
50632         (TAYLOR_SLOW): Likewise.
50633         (__sin): Use TAYLOR_SINCOS.
50634         (__cos): Likewise.
50635         (slow): Use TAYLOR_SLOW.
50636         (sloww): Likewise.
50637         (bsloww): Likewise.
50638         (csloww): Likewise.
50639
50640 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50641
50642         * stdlib/strtod_l.c: Fix buffer overrun.
50643
50644 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50645
50646         * benchtests/Makefile (bench): Add sincos.
50647         * benchtests/bench-sincos.c: New file.
50648
50649         * math/libm-test.inc (cos_test_data): New test inputs.
50650         (sin_test_data): Likewise.
50651
50652         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50653         macro.
50654         (__sin): Use it.
50655         (__cos): Likewise.
50656         (slow1): Likewise.
50657         (slow2): Likewise.
50658         (sloww1): Likewise.
50659         (sloww2): Likewise.
50660         (bsloww1): Likewise.
50661         (bsloww2): Likewise.
50662         (cslow2): Likewise.
50663         (csloww1): Likewise.
50664         (csloww2): Likewise.
50665
50666         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50667         function.
50668         (__sin): Use it.
50669         (__cos): Likewise.
50670
50671         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50672         gotos.
50673         (__cos): Likewise.
50674
50675 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50676
50677         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50678         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50679         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50680         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50681         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50682         * elf/cache.c (print_entry): Handle the new cache flags.
50683
50684 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50685             Aldy Hernandez  <aldyh@redhat.com>
50686
50687         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50688         Change condition to [_SOFT_FLOAT].
50689         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50690         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50691         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50692         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50693         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50694         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50695         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50697         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50698         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50699         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50700         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50701         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50702         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50703         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50704         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50705         declaration.
50706
50707 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50708
50709         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50710         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50711         (__longjmp): Use LOAD_GP to load saved GPRs.
50712         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50713         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50714         (__sigsetjmp): Use SAVE_GP to save GPRs.
50715
50716         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50717         Do not append -msoft-float.
50718         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50719
50720 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50721
50722         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50723
50724 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50725
50726         [BZ #15966]
50727         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50728         (_FPU_GETCW): Use initial "__" on variable and field names but not
50729         on macro parameter name.
50730         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50731         parentheses around reference to macro parameter.
50732
50733 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50734
50735         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50736         prototype.
50737         (ctype_startup): Use uint32_t in cast and sizeof for
50738         ctype->charnames.
50739
50740 2013-09-11  Jia Liu  <proljc@gmail.com>
50741
50742         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50743         __daddr_t_defined.
50744         [__FreeBSD__]: Likewise.
50745
50746 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50747
50748         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50749         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50750         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50751         (strchr): Remove __strchr_sse42 ifunc selection.
50752         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50753         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50754
50755 2013-09-11  Will Newton  <will.newton@linaro.org>
50756
50757         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50758         parameter to RES. Remove hardcoded 1000 value.
50759         * benchtests/bench-skeleton.c (main): Pass RES parameter
50760         to TIMING_INIT and multiply result by 1000.
50761
50762 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50763
50764         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50765
50766 2013-09-11  Andreas Schwab  <schwab@suse.de>
50767
50768         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50769         if not defined.
50770         (O_TMPFILE) [__USE_GNU]: Define.
50771         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50772         Define.
50773
50774 2013-09-11  Will Newton  <will.newton@linaro.org>
50775
50776         [BZ #15857]
50777         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50778         does not overflow.
50779
50780 2013-09-11  Will Newton  <will.newton@linaro.org>
50781
50782         [BZ #15856]
50783         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50784         does not overflow.
50785
50786 2013-09-11  Will Newton  <will.newton@linaro.org>
50787
50788         [BZ #15855]
50789         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50790         does not overflow.
50791
50792 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50793
50794         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50795         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50796         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50797         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50798         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50799
50800 2013-09-10  Allan McRae  <allan@archlinux.org>
50801
50802         [BZ #15748]
50803         * manual/arith.texi (Parsing of Floats): Clarify
50804         cross-reference.
50805
50806         [BZ #15849]
50807         * manual/install.texi (Running make install): Mention
50808         --enable-pt-chown.
50809         * INSTALL: Regenerated.
50810
50811 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50812
50813         * csu/init-first.c (_init): Remove the !SHARED condition around
50814         FPU control word initialization.
50815         * elf/dl-support.c (_dl_fpu_control): New variable.
50816         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50817         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50818         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50819         * math/test-fpucw-static.c: New file.
50820         * math/test-fpucw-ieee.c: New file.
50821         * math/test-fpucw-ieee-static.c: New file.
50822         * math/Makefile (tests): Add `test-fpucw-ieee' and
50823         `$(tests-static)'.
50824         (tests-static): New variable.
50825         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50826         dependency to...
50827         [($(build-shared),yes)]
50828         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50829         ... this.
50830         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50831         New dependency.
50832
50833 2013-09-09  Allan McRae  <allan@archlinux.org>
50834
50835         [BZ #15939]
50836         * manual/string.texi (Collation Functions): Fix typo in
50837         strcoll example.
50838         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50839
50840         [BZ #15893]
50841         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50842
50843         [BZ #15892]
50844         * libio/memstream.c (open_memstream): Fix memory leak.
50845         * libio/wmemstream.c (open_wmemstream): Likewise.
50846
50847         [BZ #15895]
50848         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50849
50850 2013-09-09  Will Newton  <will.newton@linaro.org>
50851
50852         * malloc/Makefile: Add tst-realloc to tests.
50853         * malloc/tst-realloc.c: New file.
50854
50855 2013-09-09  Allan McRae  <allan@archlinux.org>
50856
50857         [BZ #15844]
50858         * COPYING: Update from GNU website to fix FSF address.
50859         * COPYING.LIB: Likewise.
50860
50861 2013-09-06  David S. Miller  <davem@davemloft.net>
50862
50863         * po/zh_TW.po: Update Chinese (traditional) translation from
50864         translation project.
50865
50866 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50867             Joseph Myers  <joseph@codesourcery.com>
50868
50869         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50870         "localeinfo.h".
50871         (obstack_chunk_alloc): New macro.
50872         (obstack_chunk_free): Likewise.
50873         (record_offset): New function.
50874         (init_locale_data): Likewise.
50875         (align_locale_data): Likewise.
50876         (add_locale_empty): Likewise.
50877         (add_locale_raw_data): Likewise.
50878         (add_locale_raw_obstack): Likewise.
50879         (add_locale_string): Likewise.
50880         (add_locale_wstring): Likewise.
50881         (add_locale_uint32): Likewise.
50882         (add_locale_uint32_array): Likewise.
50883         (add_locale_char): Likewise.
50884         (start_locale_structure): Likewise.
50885         (end_locale_structure): Likewise.
50886         (start_locale_prelude): Likewise.
50887         (end_locale_prelude): Likewise.
50888         (write_locale_data): Take locale_file structure rather than an
50889         iovec.
50890         * locale/programs/locfile.h: Include "obstack.h".
50891         (struct locale_file): Change to store locale file contents instead
50892         of header.
50893         (init_locale_data): New prototype.
50894         (align_locale_data): Likewise.
50895         (add_locale_empty): Likewise.
50896         (add_locale_raw_data): Likewise.
50897         (add_locale_raw_obstack): Likewise.
50898         (add_locale_string): Likewise.
50899         (add_locale_wstring): Likewise.
50900         (add_locale_uint32): Likewise.
50901         (add_locale_uint32_array): Likewise.
50902         (add_locale_char): Likewise.
50903         (start_locale_structure): Likewise.
50904         (end_locale_structure): Likewise.
50905         (start_locale_prelude): Likewise.
50906         (end_locale_prelude): Likewise.
50907         (write_locale_data): Update prototype.
50908         * locale/programs/3level.h (struct TABLE): Remove result field.
50909         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50910         Use new locale_file interface.
50911         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50912         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50913         * locale/programs/ld-address.c (address_output): Use new
50914         locale_file interface.
50915         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50916         NO_ADD_LOCALE.
50917         (collate_finish): Don't call collseq_table_finalize.
50918         (collate_output): Use new locale_file interface.
50919         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50920         in file.
50921         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50922         (TABLE): Move defines earlier in file.
50923         (ELEMENT): Likewise.
50924         (DEFAULT): Likewise.
50925         (wctrans_table_add): Move macro and inline function earlier in
50926         file.
50927         (struct wctype_table): Move type earlier in file.
50928         (add_locale_wctype_table): New static prototype.
50929         (struct locale_ctype_t): Use logical types instead of struct iovec
50930         pointers for members.
50931         (ctype_output): Use new locale_file interface.
50932         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50933         new locale_file interface.
50934         (allocate_arrays): Update for use of new locale_file interface.
50935         * locale/programs/ld-identification.c (identification_output): Use
50936         new locale_file interface.
50937         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50938         * locale/programs/ld-messages.c (messages_output): Likewise.
50939         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50940         * locale/programs/ld-name.c (name_output): Likewise.
50941         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50942         * locale/programs/ld-paper.c (paper_output): Likewise.
50943         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50944         * locale/programs/ld-time.c (time_output): Likewise.
50945
50946 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50947
50948         * benchtests/Makefile: Add memrchr benchmark.
50949         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50950         benchmark as memrchr.
50951         * benchtests/bench-memrchr-ifunc.c: New file.
50952         * benchtests/bench-memrchr.c: New file.
50953
50954 2013-09-06   Will Newton  <will.newton@linaro.org>
50955
50956         * benchtests/Makefile (string-bench): Add memcpy.
50957
50958 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50959             Cong Wang  <amwang@redhat.com>
50960
50961         [BZ #15850]
50962         * sysdeps/unix/sysv/linux/bits/in.h
50963         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50964         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50965         before __USE_KERNEL_IPV6_DEFS uses.
50966         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50967         IPPROTO_BEETPH.
50968         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50969         sockaddr_in6, or ipv6_mreq.
50970
50971 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50972
50973         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50974         memory access for final bytes in some large inputs.
50975         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50976
50977 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50978
50979         * string/test-memrchr.c: New file.
50980         * string/test-memrchr-ifunc.c: New file.
50981         * string/Makefile: Add new memrchr testcase.
50982
50983 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50984
50985         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50986         fanotify_init returns EPERM.
50987
50988 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50989
50990         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50991         errors.
50992         (top level): Treat second token from macro or constant entries for
50993         allowed headers as allowed.
50994         * include/complex.h: Condition internal declarations on
50995         [!_ISOMAC].
50996         * include/fenv.h: Condition include of <stdbool.h> and internal
50997         declarations on [!_ISOMAC].
50998
50999 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
51000
51001         [BZ #15923]
51002         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
51003
51004 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
51005
51006         * configure.in (--enable-versioning): Remove configure option.
51007         (libc_cv_asm_symver_directive): Remove configure test.
51008         (libc_cv_ld_version_script_option): Likewise.
51009         (VERSIONING): Remove variable and AC_SUBST.
51010         (DO_VERSIONING): Remove AC_DEFINE.
51011         * configure: Regenerated.
51012         * config.h.in (DO_VERSIONING): Remove macro.
51013         * Makerules [$(versioning) = yes]: Change conditionals to
51014         [$(build-shared) = yes].
51015         * config.make.in (versioning): Remove variable.
51016         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
51017         [$(build-shared) = yes].
51018         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
51019         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
51020         * elf/Makefile [$(versioning) = yes]: Change conditionals to
51021         [$(build-shared) = yes].
51022         * extra-lib.mk [$(versioning) = yes]: Likewise.
51023         * hurd/Makefile [$(versioning) = yes]: Likewise.
51024         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
51025         [SHARED].
51026         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
51027         [SHARED].
51028         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
51029         [SHARED && !NO_HIDDEN].
51030         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
51031         [SHARED].
51032         [SHARED && DO_VERSIONING]: Likewise..
51033         * libio/Makefile [$(versioning) = yes]: Change conditionals to
51034         [$(build-shared) = yes].
51035         * manual/install.texi (--disable-versioning): Remove
51036         documentation.
51037         * INSTALL: Regenerated.
51038         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
51039         to [SHARED].
51040         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
51041         [$(build-shared) = yes].
51042         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
51043         * sysdeps/i386/i686/multiarch/strstr-c.c
51044         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
51045         [SHARED && !NO_HIDDEN].
51046         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
51047         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
51048         * sysdeps/powerpc/powerpc32/dl-machine.c
51049         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
51050         * sysdeps/powerpc/powerpc32/sysdep.h
51051         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
51052         to [SHARED && PIC && !NO_HIDDEN].
51053         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
51054         conditional to [SHARED].
51055
51056 2013-09-04   Will Newton  <will.newton@linaro.org>
51057
51058         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
51059         * benchtests/bench-string.h: Include bench-timing.h instead
51060         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
51061         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
51062         call to HP_TIMING_DIFF_INIT.
51063         * benchtests/bench-memccpy.c: Use bench-timing.h macros
51064         instead of hp-timing.h macros.
51065         * benchtests/bench-memchr.c: Likewise.
51066         * benchtests/bench-memcmp.c: Likewise.
51067         * benchtests/bench-memcpy.c: Likewise.
51068         * benchtests/bench-memmem.c: Likewise.
51069         * benchtests/bench-memmove.c: Likewise.
51070         * benchtests/bench-memset.c: Likewise.
51071         * benchtests/bench-rawmemchr.c: Likewise.
51072         * benchtests/bench-strcasecmp.c: Likewise.
51073         * benchtests/bench-strcasestr.c: Likewise.
51074         * benchtests/bench-strcat.c: Likewise.
51075         * benchtests/bench-strchr.c: Likewise.
51076         * benchtests/bench-strcmp.c: Likewise.
51077         * benchtests/bench-strcpy.c: Likewise.
51078         * benchtests/bench-strcpy_chk.c: Likewise.
51079         * benchtests/bench-strlen.c: Likewise.
51080         * benchtests/bench-strncasecmp.c: Likewise.
51081         * benchtests/bench-strncat.c: Likewise.
51082         * benchtests/bench-strncmp.c: Likewise.
51083         * benchtests/bench-strncpy.c: Likewise.
51084         * benchtests/bench-strnlen.c: Likewise.
51085         * benchtests/bench-strpbrk.c: Likewise.
51086         * benchtests/bench-strrchr.c: Likewise.
51087         * benchtests/bench-strspn.c: Likewise.
51088         * benchtests/bench-strstr.c: Likewise.
51089
51090 2013-09-04  Will Newton  <will.newton@linaro.org>
51091
51092         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
51093
51094 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
51095
51096         [BZ #15427]
51097         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
51098         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
51099         * math/libm-test.inc (lgamma_test_data): Add more tests.
51100         * sysdeps/i386/fpu/libm-test-ulps: Update.
51101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51102
51103 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
51104
51105         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
51106         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
51107         Add ifunc.
51108         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
51109         Add strcmp-sse2-unaligned
51110         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
51111
51112 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
51113
51114         * Versions.def (libc): Add GLIBC_2.19.
51115
51116 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
51117
51118         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
51119         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
51120
51121 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
51122
51123         [BZ #14155]
51124         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
51125         intermediate calculations in recurrence.
51126         (__ieee754_ynf): Likewise.
51127         * math/libm-test.inc (jn_test_data): Do not allow spurious
51128         underflow exception.  Add more tests.
51129         (yn_test_data): Add more tests.
51130         * sysdeps/i386/fpu/libm-test-ulps: Update.
51131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51132
51133 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
51134
51135         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
51136
51137 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
51138
51139         * csu/init-first.c: Fix then/than typos.
51140         * locale/programs/ld-collate.c: Likewise.
51141         * locale/programs/linereader.h: Likewise.
51142         * manual/charset.texi: Likewise.
51143         * manual/filesys.texi: Likewise.
51144         * manual/stdio.texi: Likewise.
51145         * manual/string.texi: Likewise.
51146         * stdlib/fmtmsg.c: Likewise.
51147         * sysdeps/i386/stpncpy.S: Likewise.
51148         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
51149         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
51150         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
51151         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
51152
51153 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
51154
51155         * elf/dl-open.c: Fix typos.
51156         * iconvdata/gbbig5.c: Likewise.
51157         * iconvdata/iso-2022-jp.c: Likewise.
51158         * iconv/gconv_int.h: Likewise.
51159         * iconv/loop.c: Likewise.
51160         * nis/rpcsvc/nis.h: Likewise.
51161         * resolv/ns_name.c: Likewise.
51162         * stdio-common/vfscanf.c: Likewise.
51163         * streams/stropts.h: Likewise.
51164         * sunrpc/rpc_thread.c: Likewise.
51165         * sysdeps/i386/strpbrk.S: Likewise.
51166         * sysdeps/ieee754/k_standard.c: Likewise.
51167         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
51168         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
51169         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
51170         * sysdeps/mach/hurd/profil.c: Likewise.
51171         * sysdeps/s390/dl-procinfo.h: Likewise.
51172         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
51173         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
51174         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
51175         * sysdeps/x86_64/dl-trampoline.S: Likewise.
51176         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
51177
51178 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
51179
51180         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
51181         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
51182
51183 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
51184
51185         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
51186         aix specific files.
51187         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
51188         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
51189         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
51190         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
51191         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
51192         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
51193         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
51194         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
51195
51196 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
51197             Roland McGrath  <roland@hack.frob.com>
51198
51199         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
51200         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
51201
51202 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
51203
51204         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
51205         __executable_start symbol instead of _start.
51206
51207 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
51208
51209         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
51210         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
51211         Move macros to...
51212         * sysdeps/gnu/ldsodefs.h: ... this new file.
51213
51214         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
51215         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
51216         instead of ELFOSABI_LINUX.
51217
51218         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
51219         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
51220         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
51221         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
51222         Likewise.
51223         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
51224         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
51225         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
51226         Likewise.
51227         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
51228         (ibm_extended_long_double): Add ieee_nan member.
51229         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
51230         (do_test): New function.
51231
51232         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
51233         TEST_TRUNC.
51234         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
51235         functions, renamed from truncdfsf_test, trunctfsf_test,
51236         trunctfdf_test.
51237         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
51238         functions.
51239         (do_test): Run all these.
51240
51241 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
51242
51243         * argp/argp-help.c: Fix typos.
51244         * argp/argp-parse.c: Likewise.
51245         * debug/backtracesyms.c: Likewise.
51246         * elf/elf.h: Likewise.
51247         * malloc/malloc.c: Likewise.
51248         * nis/nis_print.c: Likewise.
51249         * resolv/res_comp.c: Likewise.
51250         * stdlib/stdlib.h: Likewise.
51251         * sunrpc/clnt_tcp.c: Likewise.
51252         * sunrpc/clnt_udp.c: Likewise.
51253         * sunrpc/clnt_unix.c: Likewise.
51254         * sysdeps/unix/bsd/ptsname.c: Likewise.
51255         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
51256         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
51257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51258         Likewise.
51259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
51260         Likewise.
51261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
51262         Likewise.
51263         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
51264
51265 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51266
51267         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
51268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
51269
51270 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
51271
51272         [BZ #15897]
51273         * dlfcn/Makefile (tests): Add bug-dl-leaf.
51274         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
51275         ($(objpfx)bug-dl-leaf): New rule.
51276         ($(objpfx)bug-dl-leaf.so): Likewise.
51277         ($(objpfx)bug-dl-leaf.out): Likewise.
51278         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
51279         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
51280         * dlfcn/bug-dl-leaf.c: New test.
51281         * dlfcn/bug-dl-leaf-lib.c: Likewise.
51282         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
51283         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
51284         (dlclose): Likewise.
51285         (dlmopen): Likewise.
51286
51287 2013-08-27  Roland McGrath  <roland@hack.frob.com>
51288
51289         * include/netdb.h [!_ISOMAC]:
51290         Don't include <tls.h>.
51291         (h_errno, __libc_h_errno): Move declaration and macros out of
51292         [_LIBC_REENTRANT].
51293
51294         * include/resolv.h [_RESOLV_H_]:
51295         Don't include <tls.h>.
51296         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
51297         * resolv/res_libc.c: Don't include <tls.h>.
51298         (_res): Use __attribute__ ((nocommon)) in place of
51299         __attribute__ ((section (".bss"))).
51300
51301         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
51302         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
51303
51304         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
51305
51306         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
51307         only under [SIOCGIFCONF && SIOCGIFNETMASK].
51308
51309         * resolv/res_mkquery.c: Include <sys/time.h>.
51310
51311         * inet/ifreq.c: Moved to ...
51312         * sysdeps/unix/ifreq.c: ... here.
51313         * inet/ifreq.c: New file, true stub version.
51314
51315         * socket/sa_len.c: New file.
51316         * socket/Makefile (aux): Add it.
51317         * sysdeps/unix/sysv/linux/Makefile
51318         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
51319         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
51320         and #include <socket/sa_len.c>.
51321         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
51322         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
51323
51324         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
51325         * bits/socket.h: ... here.
51326
51327         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
51328         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
51329         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
51330
51331 2013-08-27  Andreas Schwab  <schwab@suse.de>
51332
51333         [BZ #15736]
51334         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
51335         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
51336         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
51337         * string/test-strcasecmp.c (test_main): Run tests in several
51338         locales.
51339         * string/test-strncasecmp.c (test_main): Likewise.
51340
51341         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
51342         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
51343         to __strcasecmp_nonascii and __strncasecmp_nonascii.
51344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
51345         (__strncasecmp_ssse3) [PIC]: Likewise.
51346
51347 2013-08-26  Roland McGrath  <roland@hack.frob.com>
51348
51349         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
51350
51351         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
51352         instead of explicitly declaring xdecrypt.
51353         * nis/nss_nis/nis-publickey.c: Likewise.
51354
51355 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51356
51357         [BZ #15890]
51358         * nscd/aicache.c: Include res_hconf.h.
51359         (addhstaiX): Initialize res_hconf.
51360
51361 2013-08-26  Andreas Schwab  <schwab@suse.de>
51362
51363         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
51364         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
51365
51366 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51367
51368         * nscd/aicache.c (addhstaiX): Fix indentation.
51369
51370 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
51371
51372         * configure.ac: Quote $build_pt_chown test.
51373         * configure: Regenerated.
51374
51375 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
51376
51377         [BZ #15532]
51378         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
51379         * math/s_cexpf.c (__cexpf): Likewise.
51380         * math/s_cexpl.c (__cexpl): Likewise.
51381         * math/libm-test.inc (cexp_test_data): Correct expected return
51382         value for NaN + i0.  Add another test.
51383
51384 2013-08-22  David S. Miller  <davem@davemloft.net>
51385
51386         * po/ca.po: Update Catalan translation from translation project.
51387         * po/uk.po: Add Ukrainian translations from translation project.
51388
51389 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
51390
51391         [BZ #15797]
51392         * math/s_fdim.c (__fdim): Check for infinite arguments if result
51393         is infinite, not alongside NaN test.
51394         * math/s_fdimf.c (__fdimf): Likewise.
51395         * math/s_fdiml.c (__fdiml): Likewise.
51396         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
51397         errno is unchanged.
51398
51399 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
51400
51401         * argp/argp-help.c: Fix typos.
51402         * crypt/speeds.c: Likewise.
51403         * csu/check_fds.c: Likewise.
51404         * elf/dl-load.c: Likewise.
51405         * elf/dl-open.c: Likewise.
51406         * elf/reldep3.c: Likewise.
51407         * elf/reldep.c: Likewise.
51408         * elf/sprof.c: Likewise.
51409         * iconv/iconv_charmap.c: Likewise.
51410         * iconv/skeleton.c: Likewise.
51411         * iconv/strtab.c: Likewise.
51412         * io/lockf64.c: Likewise.
51413         * libio/libioP.h: Likewise.
51414         * resolv/gai_notify.c: Likewise.
51415         * resolv/ns_name.c: Likewise.
51416         * resolv/ns_samedomain.c: Likewise.
51417         * resolv/res_send.c: Likewise.
51418         * stdlib/random.c: Likewise.
51419         * sunrpc/rpc/xdr.h: Likewise.
51420         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
51421         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
51422         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
51423         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
51424         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
51425         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
51426         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
51427         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
51428         * sysdeps/mach/hurd/check_fds.c: Likewise.
51429         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
51430         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
51431         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
51432         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
51433         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
51434         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
51435         * sysdeps/pthread/aio_notify.c: Likewise.
51436         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
51437         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
51438         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
51439         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
51440         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
51441
51442 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51443
51444         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
51445         version if bit_Slow_SSE4_2 is set.
51446         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
51447         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
51448
51449 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51450
51451         [BZ #15867]
51452         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
51453         trampoline stack frame information.
51454         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
51455         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
51456         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
51457         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
51458         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
51459         * sysdeps/unix/sysv/linux/powerpc/init-first.c
51460         (_libc_vdso_platform_setup): Initialize the signal trampolines.
51461         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
51462         sa_flags value.
51463         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
51464         interrupting a syscall and set with option SA_SIGINFO.
51465
51466 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51467
51468         [BZ #15531]
51469         * math/s_cproj.c (__cproj): Only return an infinity if one part of
51470         argument is infinite.
51471         * math/s_cprojf.c (__cprojf): Likewise.
51472         * math/s_cprojl.c (__cprojl): Likewise.
51473         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
51474         * math/libm-test.inc (cproj_test_data): Add more tests.
51475
51476         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
51477
51478         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
51479         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
51480         size.  Use __ffs to determine corresponding shift.
51481
51482 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51483             Roland McGrath  <roland@hack.frob.com>
51484
51485         * Makefile (INSTALL): Remove trailing blank lines from output of
51486         makeinfo.
51487
51488 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51489
51490         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
51491         Align 32 bit compat elf_greg to 8 bytes.
51492
51493 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51494
51495         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
51496
51497 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51498
51499         * string/strcoll_l.c (coll_seq): New structure.
51500         (get_next_seq_cached): New function.
51501         (get_next_seq): New function.
51502         (do_compare): New function.
51503         (STRCOLL): Use GNU style definition.  Simplify implementation
51504         by using get_next_seq, get_next_seq_cached and do_compare.
51505
51506 2013-08-16  Florian Weimer  <fweimer@redhat.com>
51507
51508         [BZ #14699]
51509         CVE-2013-4237
51510         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
51511         member.
51512         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
51513         member.
51514         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
51515         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51516         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
51517         conditional.
51518         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
51519         GETDENTS_64BIT_ALIGNED.
51520         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
51521         * manual/filesys.texi (Reading/Closing Directory): Document
51522         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
51523         strongly.
51524         * manual/conf.texi (Limits for Files): Add portability note to
51525         NAME_MAX, PATH_MAX.
51526         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
51527
51528 2013-08-13  Andreas Schwab  <schwab@suse.de>
51529
51530         [BZ #15749]
51531         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
51532         of fabs.
51533         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
51534         LDBL_MAX_EXP >= 16384]: Add tests for it.
51535
51536 2013-08-12  David S. Miller  <davem@davemloft.net>
51537
51538         * version.h (RELEASE): Set to "development".
51539         (VERSION): Set to "2.18.90".
51540         * NEWS: Add 2.19 section.
51541
51542 2013-08-03  David S. Miller  <davem@davemloft.net>
51543
51544         * po/ko.po: Update Korean translation from translation project.
51545
51546 2013-08-01  David S. Miller  <davem@davemloft.net>
51547
51548         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
51549         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
51550         Bilka.
51551
51552 2013-07-30  David S. Miller  <davem@davemloft.net>
51553
51554         * po/fr.po: Update French translation from translation project.
51555
51556 2013-07-28  David S. Miller  <davem@davemloft.net>
51557
51558         * po/cs.po: Update Czech translation from translation project.
51559
51560         * po/sv.po: Update Swedish translation from translation project.
51561
51562 2013-07-27  David S. Miller  <davem@davemloft.net>
51563
51564         * po/eo.po: Update Esperanto translation from translation project.
51565
51566         * po/vi.po: Update Vietnamese translation from translation project.
51567
51568         * po/de.po: Update German translation from translation project.
51569
51570 2013-07-26  David S. Miller  <davem@davemloft.net>
51571
51572         * po/bg.po: Update Bulgarian translation from translation project.
51573
51574         * po/nl.po: Update Dutch translation from translation project.
51575         * po/pl.po: Update Polish translation from translation project.
51576         * po/ru.po: Update Russian translation from translation project.
51577
51578 2013-07-24  David S. Miller  <davem@davemloft.net>
51579
51580         * po/libc.pot: Update.
51581
51582 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51583
51584         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51585         variable page size.
51586         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51587         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51588         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51589
51590 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51591
51592         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51593
51594 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51595             Andreas Schwab  <schwab@suse.de>
51596             Roland McGrath  <roland@hack.frob.com>
51597             Joseph Myers  <joseph@codesourcery.com>
51598             Carlos O'Donell  <carlos@redhat.com>
51599
51600         [BZ #15755]
51601         * config.h.in: Define HAVE_PT_CHOWN.
51602         * config.make.in (build-pt-chown): New variable.
51603         * configure.in (--enable-pt_chown): New configure option.
51604         * configure: Regenerate.
51605         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51606         build-pt-chown is enabled.
51607         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51608         pt_chown to fix pty ownership.
51609         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51610         CLOSE_ALL_FDS.
51611         * manual/install.texi (Configuring and compiling): Mention
51612         --enable-pt_chown. Add @findex for grantpt.
51613         * INSTALL: Regenerate.
51614
51615 2013-07-20  David S. Miller  <davem@davemloft.net>
51616
51617         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51618         difference between 32-bit and 64-bit.
51619
51620 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51621
51622         [BZ #15711]
51623         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51624         Avoid system header dependency with -ffreestanding.
51625         ($(objpfx)bits/syscall%d): Likewise.
51626
51627 2013-07-13  David S. Miller  <davem@davemloft.net>
51628
51629         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51630         underflows from atanl/atan2l due to bug 15319.
51631         (casinh_test_data): Likewise.
51632
51633 2013-07-07  David S. Miller  <davem@davemloft.net>
51634
51635         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51636
51637 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51638
51639         * sysdeps/i386/fpu/libm-test-ulps: Update.
51640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51641
51642 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51643
51644         * configure.in (--enable-lock-elision): Fix message text.
51645         * INSTALL: Regenerate.
51646         * configure: Regenerate.
51647
51648 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51649
51650         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51651
51652 2013-07-03  Andreas Jaeger  <aj@suse.de>
51653
51654         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51655         define.
51656         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51657         (ptrace_peeksiginfo_args): Add.
51658         (__ptrace_peeksiginfo_flags): Add.
51659         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51660         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51661         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51662
51663 2013-07-03  Allan McRae  <allan@archlinux.org>
51664
51665         * sysdeps/i386/fpu/libm-test-ulps: Update.
51666
51667 2013-07-02  David S. Miller  <davem@davemloft.net>
51668
51669         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51670
51671 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51672
51673         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51674
51675 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51676
51677         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51679
51680 2013-07-02  Andi Kleen <ak@linux.intel.com>
51681
51682         * config.h.in (ENABLE_LOCK_ELISION): Add.
51683         * configure.in (--enable-lock-elision): Add option.
51684         * manual/install.texi: Document --enable lock elision.
51685         * configure: Regenerate
51686         * INSTALL: Regenerate.
51687
51688 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51689
51690         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51691         SSE4.2 strcasecmp for libc.a.
51692         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51693
51694 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51695
51696         [BZ #13304]
51697         * soft-fp/op-common.h (_FP_FMA): New macro.
51698         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51699         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51700         (_FP_MUL_MEAT_1_imm): ... here.
51701         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51702         (_FP_MUL_MEAT_1_wide): ... here.
51703         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51704         (_FP_MUL_MEAT_1_hard): ... here.
51705         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51706         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51707         (_FP_MUL_MEAT_2_wide): ... here.
51708         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51709         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51710         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51711         (_FP_MUL_MEAT_2_gmp): ... here.
51712         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51713         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51714         (_FP_MUL_MEAT_4_wide): ... here.
51715         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51716         (_FP_MUL_MEAT_4_gmp): ... here.
51717         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51718         (_FP_WFRACBITS_DW_S): Likewise.
51719         (_FP_WFRACXBITS_DW_S): Likewise.
51720         (_FP_HIGHBIT_DW_S): Likewise.
51721         (FP_FMA_S): Likewise.
51722         (_FP_FRAC_HIGH_DW_S): Likewise.
51723         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51724         (_FP_WFRACBITS_DW_D): Likewise.
51725         (_FP_WFRACXBITS_DW_D): Likewise.
51726         (_FP_HIGHBIT_DW_D): Likewise.
51727         (FP_FMA_D): Likewise.
51728         (_FP_FRAC_HIGH_DW_D): Likewise.
51729         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51730         (_FP_WFRACBITS_DW_E): Likewise.
51731         (_FP_WFRACXBITS_DW_E): Likewise.
51732         (_FP_HIGHBIT_DW_E): Likewise.
51733         (FP_FMA_E): Likewise.
51734         (_FP_FRAC_HIGH_DW_E): Likewise.
51735         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51736         (_FP_WFRACBITS_DW_Q): Likewise.
51737         (_FP_WFRACXBITS_DW_Q): Likewise.
51738         (_FP_HIGHBIT_DW_Q): Likewise.
51739         (FP_FMA_Q): Likewise.
51740         (_FP_FRAC_HIGH_DW_Q): Likewise.
51741         * soft-fp/fmasf4.c: New file.
51742         * soft-fp/fmadf4.c: Likewise.
51743         * soft-fp/fmatf4.c: Likewise.
51744
51745 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51746
51747         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51748         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51749         Silvermont.
51750         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51751         macro.
51752         (index_Slow_SSE4_2): Likewise.
51753         (index_Prefer_PMINUB_for_stringop): Likewise.
51754         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51755         bit_Slow_SSE4_2 is set.
51756         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51757         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51758
51759 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51760
51761         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51762         rtld_global._dl_hwcap2.
51763         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51764         POWER8.
51765         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51766         POWER8 feature descriptions defined in _dl_hwcap2.
51767         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51768         string handling for POWER8 feature bits.
51769         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51770         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51771         _dl_powerpc_cap_flags.
51772         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51773         * sysdeps/powerpc/rtld-global-offsets.sym
51774         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51775         _dl_hwcap2 in the rtld_global_ro structure.
51776
51777 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51778
51779         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51780         hardware capabilities in support of AT_HWCAP2.
51781         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51782         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51783         GLRO(dl_hwcap2).
51784         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51785         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51786         explicitly the unknown a_type display mechanism is used.
51787         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51788         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51789         struct member.
51790         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51791         to macro prototype for AT_HWCAP2 support.
51792         * sysdeps/i386/dl-procinfo.h: Likewise.
51793         * sysdeps/s390/dl-procinfo.h: Likewise.
51794         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51795         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51796         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51797         return -1 for unknown a_type display fallback.
51798         * sysdeps/sparc/dl-procinfo.h: Likewise.
51799         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51800         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51801
51802 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51803
51804         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51805         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51806
51807 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51808
51809         [BZ #12492]
51810         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51811         mprotect making __stack_prot writable.
51812
51813 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51814             Joseph Myers  <joseph@codesourcery.com>
51815
51816         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51817         as being properly aligned.
51818
51819 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51820
51821         * dlfcn/modstatic5.c: New file.
51822         * dlfcn/tststatic5.c: New file.
51823         * dlfcn/Makefile (tests): Add tststatic5.
51824         (tests-static): Likewise.
51825         (modules-names): Add modstatic5.
51826         (tststatic5-ENV): New variable.
51827         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51828
51829         [BZ #15022]
51830         * elf/dl-support.c (_dl_main_map): New variable.
51831         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51832         (_dl_nns, _dl_load_adds): Set to 1.
51833         (_dl_initial_searchlist): Refer to _dl_main_map.
51834         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51835         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51836         call to _dl_get_origin.
51837         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51838         around call_map.
51839         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51840         * dlfcn/modstatic3.c: New file.
51841         * dlfcn/tststatic3.c: New file.
51842         * dlfcn/tststatic4.c: New file.
51843         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51844         (tests-static): Likewise.
51845         (modules-names): Add modstatic3.
51846         (tststatic3-ENV, tststatic4-ENV): New variables.
51847         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51848         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51849
51850 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51851
51852         * configure.in (CC): Require GCC version 4.4 or later.
51853         * configure: Regenerated.
51854         * manual/install.texi (Tools for Compilation): Update GCC version
51855         requirement.
51856         * INSTALL: Regenerated.
51857
51858 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51859
51860         [BZ #15674]
51861         * string/test-memcmp.c (check2): New.
51862         (main): Call check2.
51863
51864         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51865
51866 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51867
51868         [BZ #15022]
51869         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51870         over to...
51871         (dl_open_worker) [!SHARED]: ... here.
51872
51873 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51874
51875         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51876
51877 2013-06-25  Richard Henderson  <rth@redhat.com>
51878
51879         * locale/programs/locarchive.c: Include <libc-internal.h>
51880
51881 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51882
51883         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51884         trailing whitespace removed.
51885
51886 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51887
51888         [BZ #10283]
51889         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51890         * locale/programs/locarchive.c: Include libc-mmap.h.
51891         (prepare_address_space): Take two new outputs (the mmap base and len).
51892         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51893         values.
51894         (create_archive): Declare new mmap base and len values for
51895         prepare_address_space, and store the result in ah.
51896         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51897         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51898         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51899         Declare new mmap base and len values for
51900         prepare_address_space, and store the result in new_ah.
51901         (open_archive): Declare new mmap base and len values for
51902         prepare_address_space, and store the result in ah.
51903         (close_archive): If ah->mmap_base is not NULL, use that and
51904         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51905         * sysdeps/generic/libc-mmap.h: New file.
51906
51907 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51908
51909         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51910         (ALIGN_UP): Likewise.
51911         (PTR_ALIGN_DOWN): Likewise.
51912         (PTR_ALIGN_UP): Likewise.
51913
51914 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51915
51916         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51917         entry mapped to PPC_PLATFORM_POWER8.
51918         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51919         POWER8.
51920         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51921         (_dl_string_platform): Add case for exporting platform position for
51922         POWER8.
51923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51924         search path to sysdeps/powerpc/powerpc32/power8 directory.
51925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51926         search path to sysdeps/powerpc/powerpc64/power8 directory.
51927         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51928         power7 directories.
51929         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51930         power7 directories.
51931
51932 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51933
51934         * INSTALL: Regenerate.
51935
51936         * nscd/connections.c (nscd_init): Fix comment.
51937
51938 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51939
51940         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51941
51942         [BZ #15667]
51943         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51944         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51945
51946 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51947
51948         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51949         DL_DST_REQ_STATIC.
51950         (DL_DST_REQ_STATIC): Remove macro.
51951
51952 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51953
51954         [BZ #7006]
51955         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51956         with a shift of 0 bits.
51957
51958 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51959
51960         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51961         $(tststatic-ENV).
51962
51963 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51964
51965         [BZ #15655]
51966         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51967
51968 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51969
51970         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51971         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51972         accepts -fno-tree-loop-distribute-patterns.
51973         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51974         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51975         recursive call.
51976         * string/memset.c (memset): Likewise.
51977         * string/test-memmove.c (simple_memmove): Disable loop transformation
51978         to library calls.
51979         * string/test-memset.c (simple_memset): Likewise.
51980         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51981         * benchtests/bench-memset.c (simple_memset): Likewise.
51982         * configure: Regenerated.
51983
51984 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51985
51986         * math/test-misc.c (main): Ignore fesetround failure when failures
51987         of subsequent rounding tests would be ignored.
51988
51989         [BZ #15654]
51990         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51991         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51992         * math/fegetenv.c (__fegetenv): Return 0.
51993         * math/fegetexcept.c (fegetexcept): Return 0.
51994         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51995         FE_TONEAREST.
51996         * math/feholdexcpt.c (feholdexcept): Return 0.
51997         * math/fesetenv.c (__fesetenv): Return 0.
51998         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51999         argument FE_TONEAREST.
52000         * math/feupdateenv.c (__feupdateenv): Return 0.
52001         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
52002
52003 2013-06-18  Roland McGrath  <roland@hack.frob.com>
52004
52005         * elf/rtld-Rules (rtld-compile-command.S): New variable.
52006         (rtld-compile-command.s, rtld-compile-command.c): New variables.
52007         ($(objpfx)rtld-%.os rules): Use them.
52008
52009 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52010
52011         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
52012         fields.
52013
52014 2013-06-17  Roland McGrath  <roland@hack.frob.com>
52015
52016         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
52017         length of target pattern, then descending length of dependency pattern.
52018         * configure.in (AWK): Require gawk 3.1.2 or newer.
52019         * manual/install.texi (Tools for Compilation): Say that we do.
52020         * configure: Regenerated.
52021
52022         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
52023         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
52024         * scripts/sysd-rules.awk: ... this new script.
52025         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
52026         than a glob-style pattern.
52027
52028 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
52029
52030         * math/test-misc.c (main): Do not treat incorrectly rounded
52031         conversions as failure unless ROUNDING_TESTS passes.
52032
52033 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
52034
52035         [BZ #15631]
52036         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
52037         restore exception state around main square root computation, then
52038         check for inexactness explicitly.
52039
52040         * math/libm-test.inc (fma_test_data): Add another test.
52041
52042 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52043
52044         * manual/threads.texi (Non-POSIX Extensions): New document
52045         node.  Document pthread_getattr_default_np and
52046         pthread_setattr_default_np.
52047
52048         * Versions.def (libpthread): Add GLIBC_2.18.
52049         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
52050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
52051         Likewise.
52052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
52053         Likewise.
52054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52055         Likewise.
52056         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52057         Likewise.
52058         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
52059         Likewise.
52060         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
52061         Likewise.
52062         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
52063         Likewise.
52064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
52065         Likewise.
52066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
52067         Likewise.
52068
52069 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
52070
52071         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52072         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
52073
52074 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52075             H.J. Lu  <hjl.tools@gmail.com>
52076
52077         [BZ #15627]
52078         * sysdeps/x86_64/rtld-memset.c: Remove file.
52079         * sysdeps/x86_64/rtld-memset.S: New file.
52080
52081 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
52082
52083         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
52084         (test_in_one_mode): Take arguments for whether the rounding mode
52085         is supported for each floating-point type.
52086         (do_test): Pass new arguments to test_in_one_mode using
52087         ROUNDING_TESTS.
52088
52089 2013-06-13  Roland McGrath  <roland@hack.frob.com>
52090
52091         * posix/tst-waitid.c (do_test): Distinguish different instances of
52092         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
52093         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
52094         before entering the kernel for waitpid.
52095
52096 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52097
52098         * NEWS: Fix note on clock function precision.  Text by Roland
52099         McGrath.
52100
52101 2013-06-13  Roland McGrath  <roland@hack.frob.com>
52102
52103         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
52104         it into place only when and if the sanity check passes.
52105
52106 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
52107
52108         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
52109         output for whether conversion result is exact.  Take argument
52110         indicating whether type is IBM long double.
52111         (round_for_all): Change need_exact field to ibm_ld.
52112         * stdlib/tst-strtod-round.c (struct exactness): New type.
52113         (struct test): Change bool ld_ok field to struct exactness exact.
52114         (TEST): Update all definitions for change to field.
52115         (tests): Regenerate array contents.
52116         (test_in_one_mode): Take pointer to new field instead of old ld_ok
52117         field value.  Check for IBM long double here.
52118         (do_test): Update calls to test_in_one_mode.
52119
52120 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52121
52122         [BZ #12515]
52123         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
52124         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
52125
52126 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52127
52128         [BZ #15605]
52129         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
52130         generated by the compiler on loop optimizations.
52131         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
52132         general definitions.
52133
52134 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
52135
52136         * math/bug-nextafter.c: Include <math-tests.h>.
52137         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52138         the relevant type.
52139         * math/bug-nexttoward.c: Include <math-tests.h>.
52140         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52141         the relevant type.
52142         * math/test-misc.c: Include <math-tests.h>.
52143         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52144         the relevant type.
52145
52146 2013-06-12  Andreas Jaeger  <aj@suse.de>
52147
52148         * po/ia.po: Update Interlingua translation from translation
52149         project.
52150
52151 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
52152
52153         * include/fenv.h: Include stdbool.h.
52154         (struct rm_ctx): New structure.
52155         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
52156         Define macro.
52157         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
52158         (SET_RESTORE_ROUNDF): Likewise.
52159         (SET_RESTORE_ROUNDL): Likewise.
52160         (SET_RESTORE_ROUND_NOEX): Likewise.
52161         (SET_RESTORE_ROUND_NOEXF): Likewise.
52162         (SET_RESTORE_ROUND_NOEXL): Likewise.
52163         (SET_RESTORE_ROUND_53BIT): Likewise.
52164         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
52165         (libc_feresetround_noexf_ctx): Likewise.
52166         (libc_feresetround_noexl_ctx): Likewise.
52167         (libc_feholdsetround_53bit_ctx): Likewise.
52168         (libc_feresetround_53bit_ctx): Likewise.
52169         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
52170         (libc_feholdexcept_setround_sse_ctx): New function.
52171         (libc_fesetenv_sse_ctx): Likewise.
52172         (libc_feupdateenv_sse_ctx): Likewise.
52173         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
52174         (libc_feholdexcept_setround_387_ctx): Likewise.
52175         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
52176         (libc_feholdsetround_387_prec_ctx): Likewise.
52177         (libc_feholdsetround_387_ctx): Likewise.
52178         (libc_feholdsetround_387_53bit_ctx): Likewise.
52179         (libc_feholdsetround_sse_ctx): Likewise.
52180         (libc_feresetround_sse_ctx): Likewise.
52181         (libc_feresetround_387_ctx): Likewise.
52182         (libc_feupdateenv_387_ctx): Likewise.
52183         (libc_feholdexcept_setroundf_ctx): Define macro.
52184         (libc_fesetenvf_ctx): Likewise.
52185         (libc_feupdateenvf_ctx): Likewise.
52186         (libc_feholdsetroundf_ctx): Likewise.
52187         (libc_feresetroundf_ctx): Likewise.
52188         (libc_feholdexcept_setround_ctx): Likewise.
52189         (libc_fesetenv_ctx): Likewise.
52190         (libc_feupdateenv_ctx): Likewise.
52191         (libc_feholdsetround_ctx): Likewise.
52192         (libc_feresetround_ctx): Likewise.
52193         (libc_feholdexcept_setroundl_ctx): Likewise.
52194         (libc_feupdateenvl_ctx): Likewise.
52195         (libc_feholdsetroundl_ctx): Likewise.
52196         (libc_feresetroundl_ctx): Likewise.
52197         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
52198         (libc_feresetround_53bit_ctx): Likewise.
52199
52200 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52201
52202         * locale/iso-639.def: Convert to UTF-8.
52203
52204 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
52205
52206         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
52207         (EXCEPTION_TESTS_double): Likewise.
52208         (EXCEPTION_TESTS_long_double): Likewise.
52209         (EXCEPTION_TESTS): Likewise.
52210         * math/libm-test.inc (test_exceptions): Only test exceptions if
52211         EXCEPTION_TESTS (FLOAT).
52212
52213 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52214
52215         * benchtests/Makefile (string-bench): Add strcpy_chk and
52216         stpcpy_chk.
52217         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
52218         * benchtests/bench-stpcpy_chk.c: New file.
52219         * benchtests/bench-strcpy_chk-ifunc.c: New file.
52220         * benchtests/bench-strcpy_chk.c: New file.
52221         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
52222         code.
52223         (do_test): Likewise.
52224
52225 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52226
52227         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
52228         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
52229         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
52230         with tabs where appropriate.
52231         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
52232         dl-procinfo.h.
52233         [PPC_PLATFORM_PPC440]: Likewise.
52234         [PPC_PLATFORM_PPC464]: Likewise.
52235         [PPC_PLATFORM_PPC476]: Likewise.
52236         (_dl_string_platform): Add support for detecting ppc405, ppc440,
52237         ppc464, and ppc476 platform strings merging from ports/
52238         dl-procinfo.h.
52239
52240 2013-06-11  Andreas Schwab  <schwab@suse.de>
52241
52242         [BZ #14991]
52243         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
52244         (from_ucs4_idx): Regenerate.
52245         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
52246         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
52247         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
52248         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
52249         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
52250         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
52251         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
52252         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
52253         from FROM_LOOP and TO_LOOP specific macros.
52254         (BODY): Handle combining characters.
52255         * iconvdata/BIG5HKSCS.irreversible: Update.
52256         * iconvdata/BIG5HKSCS.precomposed: New file.
52257         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
52258         characters.
52259         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
52260
52261 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52262
52263         * include/sys/time.h: Fix indentation and add copyright header.
52264
52265         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
52266         (do_test): Likewise.
52267         * string/test-memchr.c (do_one_test): Likewise.
52268         (do_test): Likewise.
52269         * string/test-memcmp.c (do_one_test): Likewise.
52270         (do_test): Likewise.
52271         * string/test-memcpy.c (do_one_test): Likewise.
52272         (do_test): Likewise.
52273         * string/test-memmem.c (do_one_test): Likewise.
52274         (do_test): Likewise.
52275         (do_random_tests): Likewise.
52276         * string/test-memmove.c (do_one_test): Likewise.
52277         (do_test): Likewise.
52278         * string/test-memset.c (do_one_test): Likewise.
52279         (do_test): Likewise.
52280         * string/test-rawmemchr.c (do_one_test): Likewise.
52281         (do_test): Likewise.
52282         * string/test-strcasecmp.c (do_one_test): Likewise.
52283         (do_test): Likewise.
52284         * string/test-strcasestr.c (do_one_test): Likewise.
52285         (do_test): Likewise.
52286         * string/test-strcat.c (do_one_test): Likewise.
52287         (do_test): Likewise.
52288         * string/test-strchr.c (do_one_test): Likewise.
52289         (do_test): Likewise.
52290         * string/test-strcmp.c (do_one_test): Likewise.
52291         (do_test): Likewise.
52292         * string/test-strcpy.c (do_one_test): Likewise.
52293         (do_test): Likewise.
52294         * string/test-string.h: Likewise.
52295         (test_init): Likewise.
52296         * string/test-strlen.c (do_one_test): Likewise.
52297         (do_test): Likewise.
52298         * string/test-strncasecmp.c (do_one_test): Likewise.
52299         (do_test): Likewise.
52300         * string/test-strncat.c (do_one_test): Likewise.
52301         (do_test): Likewise.
52302         * string/test-strncmp.c (do_one_test): Likewise.
52303         (do_test_limit): Likewise.
52304         (do_test): Likewise.
52305         * string/test-strncpy.c (do_one_test): Likewise.
52306         (do_test): Likewise.
52307         * string/test-strnlen.c (do_one_test): Likewise.
52308         (do_test): Likewise.
52309         * string/test-strpbrk.c (do_one_test): Likewise.
52310         (do_test): Likewise.
52311         * string/test-strrchr.c (do_one_test): Likewise.
52312         (do_test): Likewise.
52313         * string/test-strspn.c (do_one_test): Likewise.
52314         (do_test): Likewise.
52315         * string/test-strstr.c (do_one_test): Likewise.
52316         (do_test): Likewise.
52317
52318         * benchtests/Makefile (string-bench): Add string benchmarks.
52319         * benchtests/bench-bcopy-ifunc.c: New file.
52320         * benchtests/bench-bcopy.c: New file.
52321         * benchtests/bench-bzero-ifunc.c: New file.
52322         * benchtests/bench-bzero.c: New file.
52323         * benchtests/bench-memccpy-ifunc.c: New file.
52324         * benchtests/bench-memccpy.c: New file.
52325         * benchtests/bench-memchr-ifunc.c: New file.
52326         * benchtests/bench-memchr.c: New file.
52327         * benchtests/bench-memcmp-ifunc.c: New file.
52328         * benchtests/bench-memcmp.c: New file.
52329         * benchtests/bench-memmem-ifunc.c: New file.
52330         * benchtests/bench-memmem.c: New file.
52331         * benchtests/bench-memmove-ifunc.c: New file.
52332         * benchtests/bench-memmove.c: New file.
52333         * benchtests/bench-mempcpy-ifunc.c: New file.
52334         * benchtests/bench-mempcpy.c: New file.
52335         * benchtests/bench-memset-ifunc.c: New file.
52336         * benchtests/bench-memset.c: New file.
52337         * benchtests/bench-rawmemchr-ifunc.c: New file.
52338         * benchtests/bench-rawmemchr.c: New file.
52339         * benchtests/bench-stpcpy-ifunc.c: New file.
52340         * benchtests/bench-stpcpy.c: New file.
52341         * benchtests/bench-stpncpy-ifunc.c: New file.
52342         * benchtests/bench-stpncpy.c: New file.
52343         * benchtests/bench-strcasecmp-ifunc.c: New file.
52344         * benchtests/bench-strcasecmp.c: New file.
52345         * benchtests/bench-strcasestr-ifunc.c: New file.
52346         * benchtests/bench-strcasestr.c: New file.
52347         * benchtests/bench-strcat-ifunc.c: New file.
52348         * benchtests/bench-strcat.c: New file.
52349         * benchtests/bench-strchr-ifunc.c: New file.
52350         * benchtests/bench-strchr.c: New file.
52351         * benchtests/bench-strchrnul-ifunc.c: New file.
52352         * benchtests/bench-strchrnul.c: New file.
52353         * benchtests/bench-strcmp-ifunc.c: New file.
52354         * benchtests/bench-strcmp.c: New file.
52355         * benchtests/bench-strcpy-ifunc.c: New file.
52356         * benchtests/bench-strcpy.c: New file.
52357         * benchtests/bench-strcspn-ifunc.c: New file.
52358         * benchtests/bench-strcspn.c: New file.
52359         * benchtests/bench-strlen-ifunc.c: New file.
52360         * benchtests/bench-strlen.c: New file.
52361         * benchtests/bench-strncasecmp-ifunc.c: New file.
52362         * benchtests/bench-strncasecmp.c: New file.
52363         * benchtests/bench-strncat-ifunc.c: New file.
52364         * benchtests/bench-strncat.c: New file.
52365         * benchtests/bench-strncmp-ifunc.c: New file.
52366         * benchtests/bench-strncmp.c: New file.
52367         * benchtests/bench-strncpy-ifunc.c: New file.
52368         * benchtests/bench-strncpy.c: New file.
52369         * benchtests/bench-strnlen-ifunc.c: New file.
52370         * benchtests/bench-strnlen.c: New file.
52371         * benchtests/bench-strpbrk-ifunc.c: New file.
52372         * benchtests/bench-strpbrk.c: New file.
52373         * benchtests/bench-strrchr-ifunc.c: New file.
52374         * benchtests/bench-strrchr.c: New file.
52375         * benchtests/bench-strspn-ifunc.c: New file.
52376         * benchtests/bench-strspn.c: New file.
52377         * benchtests/bench-strstr-ifunc.c: New file.
52378         * benchtests/bench-strstr.c: New file.
52379
52380         * benchtests/Makefile: Disable parallel execution of targets.
52381         (string-bench): Add memcpy.
52382         (benchset): New variable to store a list of benchmark sets.
52383         (bench-func): Renamed from bench.
52384         (bench-set): New target.
52385         (bench): Depend on bench-func and bench-set.
52386         * benchtests/README: Add section on benchmark sets.
52387         * benchtests/bench-memcpy-ifunc.c: New file.
52388         * benchtests/bench-memcpy.c: New file.
52389         * benchtests/bench-string.h: New file.
52390
52391 2013-06-11  Andreas Schwab  <schwab@suse.de>
52392
52393         [BZ #15577]
52394         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
52395         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
52396         values in the triple.
52397         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
52398         terminator in the group key.
52399
52400 2013-06-11  Andreas Jaeger  <aj@suse.de>
52401
52402         * po/zh_TW.po: Update Chinese (traditional) translation from
52403         translation project.
52404
52405 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52406
52407         * include/time.h (__clock_gettime): Add libc_hidden_proto.
52408         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
52409         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
52410         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
52411         (clock_getcpuclockid): Likewise.
52412         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
52413         Add weak_alias and libc_hidden_def.
52414         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
52415         * rt/clock_gettime.c (clock_gettime): Rename to
52416         __clock_gettime.  Add weak_alias and libc_hidden_def.
52417         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
52418         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
52419         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
52420         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
52421         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
52422         Likewise.
52423         * rt/clock_settime.c (clock_settime): Rename to
52424         __clock_settime.  Add weak_alias and libc_hidden_def.
52425         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
52426
52427 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
52428
52429         * mach/err_boot.sub: Remove trailing whitespace.
52430         * mach/err_ipc.sub: Likewise.
52431         * mach/err_mach.sub: Likewise.
52432
52433         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
52434         (ROUNDING_TESTS_double): Likewise.
52435         (ROUNDING_TESTS_long_double): Likewise.
52436         (ROUNDING_TESTS): Likewise.
52437         * math/libm-test.inc: Include <math-tests.h>.
52438         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
52439         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
52440         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
52441         (IF_ROUND_INIT_FE_UPWARD): Likewise.
52442
52443 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52444
52445         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
52446         of assigning.
52447
52448 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
52449
52450         * sysdeps/gnu/errlist.awk: Do not generate space at end of
52451         otherwise empty TRANS lines.
52452         * sysdeps/gnu/errlist.c: Regenerated.
52453
52454         * catgets/gencat.c (error_print): Use (void) in function
52455         definition.
52456         * crypt/crypt_util.c (__init_des): Likewise.
52457         * crypt/speeds.c (Stop): Likewise.
52458         (main): Likewise.
52459         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
52460         * inet/ruserpass.c (token): Likewise.
52461         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
52462         * intl/localealias.c (extend_alias_table): Likewise.
52463         * intl/plural-exp.c (init_germanic_plural): Likewise.
52464         * libio/fcloseall.c (__fcloseall): Likewise.
52465         * libio/genops.c (_IO_flush_all): Likewise.
52466         (_IO_flush_all_linebuffered): Likewise.
52467         (_IO_cleanup): Likewise.
52468         (_IO_iter_begin): Likewise.
52469         (_IO_iter_end): Likewise.
52470         (_IO_list_lock): Likewise.
52471         (_IO_list_unlock): Likewise.
52472         (_IO_list_resetlock): Likewise.
52473         * libio/getchar.c (getchar): Likewise.
52474         * libio/getchar_u.c (getchar_unlocked): Likewise.
52475         * libio/getwchar.c (getwchar): Likewise.
52476         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
52477         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
52478         * login/getpt.c (__getpt): Likewise.
52479         * login/tst-utmp.c (main): Likewise.
52480         * malloc/hooks.c (__malloc_check_init): Likewise.
52481         * malloc/malloc.c (__malloc_stats): Likewise.
52482         * malloc/mtrace.c (tr_break): Likewise.
52483         (mtrace): Likewise.
52484         (muntrace): Likewise.
52485         * misc/fstab.c (endfsent): Likewise.
52486         * misc/getclktck.c (__getclktck): Likewise.
52487         * misc/getdtsz.c (__getdtablesize): Likewise.
52488         * misc/gethostid.c (gethostid): Likewise.
52489         * misc/getpagesize.c (__getpagesize): Likewise.
52490         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
52491         (__get_nprocs): Likewise.
52492         (__get_phys_pages): Likewise.
52493         (__get_avphys_pages): Likewise.
52494         * misc/getttyent.c (getttyent): Likewise.
52495         (setttyent): Likewise.
52496         (endttyent): Likewise.
52497         * misc/getusershell.c (getusershell): Likewise.
52498         (endusershell): Likewise.
52499         (setusershell): Likewise.
52500         (initshells): Likewise.
52501         * misc/hsearch.c (__hdestroy): Likewise.
52502         * misc/sync.c (sync): Likewise.
52503         * misc/syslog.c (closelog_internal): Likewise.
52504         (closelog): Likewise.
52505         * misc/ttyslot.c (ttyslot): Likewise.
52506         * misc/vhangup.c (vhangup): Likewise.
52507         * posix/fork.c (__fork): Likewise.
52508         * posix/getegid.c (__getegid): Likewise.
52509         * posix/geteuid.c (__geteuid): Likewise.
52510         * posix/getgid.c (__getgid): Likewise.
52511         * posix/getpid.c (__getpid): Likewise.
52512         * posix/getppid.c (__getppid): Likewise.
52513         * posix/getuid.c (__getuid): Likewise.
52514         * posix/pause.c (pause): Likewise.
52515         * posix/setpgrp.c (setpgrp): Likewise.
52516         * posix/setsid.c (__setsid): Likewise.
52517         * posix/test-vfork.c (noop): Likewise.
52518         * resolv/gethnamaddr.c (_endhtent): Likewise.
52519         (_gethtent): Likewise.
52520         (ht_endhostent): Likewise.
52521         (gethostent): Likewise.
52522         (dns_service): Likewise.
52523         * stdlib/drand48.c (drand48): Likewise.
52524         * stdlib/lrand48.c (lrand48): Likewise.
52525         * stdlib/mrand48.c (mrand48): Likewise.
52526         * stdlib/rand.c (rand): Likewise.
52527         * stdlib/random.c (__random): Likewise.
52528         * stdlib/setenv.c (clearenv): Likewise.
52529         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
52530         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
52531         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
52532         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
52533         (__get_nprocs): Likewise.
52534         (__get_phys_pages): Likewise.
52535         (__get_avphys_pages): Likewise.
52536         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
52537         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
52538         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
52539         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
52540         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
52541         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
52542         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
52543         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
52544         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
52545         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
52546         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
52547         * sysdeps/mach/hurd/sync.c (sync): Likewise.
52548         * sysdeps/posix/clock.c (clock): Likewise.
52549         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
52550         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52551         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52552         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52553         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52554         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52555         (__get_nprocs_conf): Likewise.
52556         (__get_phys_pages): Likewise.
52557         (__get_avphys_pages): Likewise.
52558         * time/clock.c (clock): Likewise.
52559         * time/tzset.c (__tzname_max): Likewise.
52560
52561 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52562
52563         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52564         (__bswap_32): Do not use "register".
52565         * crypt/crypt.c (_ufc_doit_r): Likewise.
52566         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52567         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52568         * gmon/gmon.c (__monstartup): Likewise.
52569         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52570         * hurd/hurdmalloc.c (more_memory): Likewise.
52571         (malloc): Likewise.
52572         (free): Likewise.
52573         (realloc): Likewise.
52574         (malloc_fork_prepare): Likewise.
52575         (malloc_fork_parent): Likewise.
52576         (malloc_fork_child): Likewise.
52577         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52578         (_svcauth_des): Likewise.
52579         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52580         * inet/inet_net.c (inet_network): Likewise.
52581         * inet/inet_netof.c (inet_netof): Likewise.
52582         * inet/rcmd.c (__validuser2_sa): Likewise.
52583         * io/fts.c (fts_open): Likewise.
52584         (fts_load): Likewise.
52585         (fts_close): Likewise.
52586         (fts_read): Likewise.
52587         (fts_children): Likewise.
52588         (fts_build): Likewise.
52589         (fts_stat): Likewise.
52590         (fts_sort): Likewise.
52591         (fts_alloc): Likewise.
52592         (fts_lfree): Likewise.
52593         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52594         (_IO_file_xsgetn): Likewise.
52595         (_IO_file_xsgetn_mmap): Likewise.
52596         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52597         (_IO_cookie_write): Likewise.
52598         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52599         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52600         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52601         * malloc/obstack.c (_obstack_begin): Likewise.
52602         (_obstack_begin_1): Likewise.
52603         (_obstack_newchunk): Likewise.
52604         (_obstack_allocated_p): Likewise.
52605         (obstack_free): Likewise.
52606         (_obstack_memory_used): Likewise.
52607         * misc/getttyent.c (getttynam): Likewise.
52608         (getttyent): Likewise.
52609         (skip): Likewise.
52610         (value): Likewise.
52611         * misc/getusershell.c (initshells): Likewise.
52612         * misc/syslog.c (__vsyslog_chk): Likewise.
52613         * misc/ttyslot.c (ttyslot): Likewise.
52614         * nis/nis_hash.c (__nis_hash): Likewise.
52615         * posix/fnmatch_loop.c (FCT): Likewise.
52616         * posix/getconf.c (print_all): Likewise.
52617         (main): Likewise.
52618         * posix/getopt.c (exchange): Likewise.
52619         * posix/glob.c (globfree): Likewise.
52620         (prefix_array): Likewise.
52621         (__glob_pattern_type): Likewise.
52622         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52623         (NS_GET32): Likewise.
52624         (NS_PUT16): Likewise.
52625         (NS_PUT32): Likewise.
52626         * resolv/gethnamaddr.c (getanswer): Likewise.
52627         (gethostbyname2): Likewise.
52628         (gethostbyaddr): Likewise.
52629         (_gethtent): Likewise.
52630         (_gethtbyname2): Likewise.
52631         (_gethtbyaddr): Likewise.
52632         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52633         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52634         * resolv/res_init.c (__res_vinit): Likewise.
52635         (net_mask): Likewise.
52636         * resolv/res_mkquery.c (outchar): Likewise.
52637         (PRINT): Likewise.
52638         * stdio-common/printf_fp.c (outchar): Likewise.
52639         (PRINT): Likewise.
52640         * stdio-common/printf_fphex.c (outchar): Likewise.
52641         (PRINT): Likewise.
52642         * stdio-common/printf_size.c (outchar): Likewise.
52643         (PRINT): Likewise.
52644         * stdio-common/test_rdwr.c (main): Likewise.
52645         * stdio-common/tfformat.c (matches): Likewise.
52646         * stdio-common/vfprintf.c (outchar): Likewise.
52647         (printf_unknown): Likewise.
52648         (buffered_vfprintf): Likewise.
52649         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52650         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52651         (ReadFile): Likewise.
52652         * stdlib/qsort.c (SWAP): Likewise.
52653         (_quicksort): Likewise.
52654         * stdlib/setenv.c (__add_to_environ): Likewise.
52655         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52656         * stdlib/strtol_l.c (__strtol_l): Likewise.
52657         * stdlib/tst-strtod.c (main): Likewise.
52658         * stdlib/tst-strtol.c (main): Likewise.
52659         * stdlib/tst-strtoll.c (main): Likewise.
52660         * string/bits/string2.h (__strcmp_cc): Likewise.
52661         (__strcmp_cg): Likewise.
52662         (__strcspn_c1): Likewise.
52663         (__strcspn_c2): Likewise.
52664         (__strcspn_c3): Likewise.
52665         (__strspn_c1): Likewise.
52666         (__strspn_c2): Likewise.
52667         (__strspn_c3): Likewise.
52668         (__strsep_1c): Likewise.
52669         (__strsep_2c): Likewise.
52670         (__strsep_3c): Likewise.
52671         * string/memccpy.c (__memccpy): Likewise.
52672         * string/stpcpy.c (__stpcpy): Likewise.
52673         * string/strcmp.c (strcmp): Likewise.
52674         * string/strrchr.c (strrchr): Likewise.
52675         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52676         Likewise.
52677         * sysdeps/mach/hurd/getcwd.c
52678         (_hurd_canonicalize_directory_name_internal): Likewise.
52679         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52680         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52681         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52682         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52683         Likewise, in both definitions.
52684         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52685         definitions.
52686         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52687         64] (__bswap_64): Likewise.
52688         * time/test_time.c (main): Likewise.
52689         * time/tzfile.c (__tzfile_read): Likewise.
52690         (__tzfile_compute): Likewise.
52691         * time/tzset.c (__tzset_parse_tz): Likewise.
52692         (tzset_internal): Likewise.
52693         (compute_change): Likewise.
52694         * wcsmbs/wcscat.c (__wcscat): Likewise.
52695         * wcsmbs/wcschr.c (wcschr): Likewise.
52696         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52697         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52698         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52699         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52700         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52701         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52702         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52703         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52704         * wcsmbs/wmemset.c (wmemset): Likewise.
52705
52706 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52707
52708         * scripts/config.guess: Update to version 2013-05-16.
52709         * scripts/config.sub: Update to version 2013-04-24.
52710         * scripts/install-sh: Update to version 2011-11-20.07.
52711         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52712         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52713
52714 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52715
52716         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52717         * elf/sln.c: Likewise.
52718         * hurd/hurd/ioctl.h: Likewise.
52719         * hurd/hurdmalloc.c: Likewise.
52720         * hurd/xattr.c: Likewise.
52721         * include/shlib-compat.h: Likewise.
52722         * inet/ruserpass.c: Likewise.
52723         * libio/iofgets_u.c: Likewise.
52724         * libio/iofgetws_u.c: Likewise.
52725         * locale/programs/ld-identification.c: Likewise.
52726         * locale/programs/ld-time.c: Likewise.
52727         * mach/msg-destroy.c: Likewise.
52728         * nss/nss_files/files-netgrp.c: Likewise.
52729         * resolv/res_data.c: Likewise.
52730         * soft-fp/op-1.h: Likewise.
52731         * soft-fp/op-2.h: Likewise.
52732         * soft-fp/op-4.h: Likewise.
52733         * soft-fp/op-common.h: Likewise.
52734         * stdio-common/printf_fphex.c: Likewise.
52735         * stdlib/strtod_l.c: Likewise.
52736         * sunrpc/rpc/clnt.h: Likewise.
52737         * sysdeps/generic/framestate.c: Likewise.
52738         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52739         * sysdeps/i386/bsd-setjmp.S: Likewise.
52740         * sysdeps/i386/__longjmp.S: Likewise.
52741         * sysdeps/i386/setjmp.S: Likewise.
52742         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52743         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52744         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52745         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52746         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52747         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52748         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52749         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52750         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52751         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52752         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52753         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52754         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52755         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52756         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52757         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52758         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52759         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52760         * sysdeps/ieee754/support.c: Likewise.
52761         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52762         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52763         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52764         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52765         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52766         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52767         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52768         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52769         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52770         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52771         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52772         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52773         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52774         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52775         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52776         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52777         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52779
52780 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52781
52782         * posix/transbug.c: Remove executable mode.
52783
52784 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52785
52786         * crypt/speeds.c: Remove trailing whitespace.
52787         * dlfcn/default.c: Likewise.
52788         * elf/ifuncdep2.c: Likewise.
52789         * elf/ifuncmain1.c: Likewise.
52790         * elf/ifuncmain1vis.c: Likewise.
52791         * elf/testobj.h: Likewise.
52792         * elf/tst-stackguard1.c: Likewise.
52793         * gmon/sys/gmon.h: Likewise.
52794         * hurd/hurdmsg.c: Likewise.
52795         * hurd/new-fd.c: Likewise.
52796         * hurd/ports-get.c: Likewise.
52797         * iconvdata/ibm1008_420.c: Likewise.
52798         * inet/tst-getni1.c: Likewise.
52799         * inet/tst-getni2.c: Likewise.
52800         * libio/ioungetc.c: Likewise.
52801         * libio/wfiledoalloc.c: Likewise.
52802         * manual/libm-err-tab.pl: Likewise.
52803         * math/w_dremf.c: Likewise.
52804         * misc/ftruncate.c: Likewise.
52805         * posix/bug-glob2.c: Likewise.
52806         * posix/tst-pcre.c: Likewise.
52807         * posix/wait4.c: Likewise.
52808         * resolv/README: Likewise.
52809         * resolv/res_debug.h: Likewise.
52810         * resolv/tst-inet_ntop.c: Likewise.
52811         * setjmp/bug269-setjmp.c: Likewise.
52812         * soft-fp/extended.h: Likewise.
52813         * soft-fp/op-1.h: Likewise.
52814         * soft-fp/op-2.h: Likewise.
52815         * soft-fp/op-4.h: Likewise.
52816         * soft-fp/op-8.h: Likewise.
52817         * soft-fp/testit.c: Likewise.
52818         * stdio-common/bug16.c: Likewise.
52819         * stdlib/random.c: Likewise.
52820         * sunrpc/rpcsvc/rquota.x: Likewise.
52821         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52822         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52823         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52824         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52825         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52826         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52827         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52828         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52829         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52830         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52831         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52832         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52833         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52834         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52835         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52836         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52837         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52838         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52839         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52840         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52841         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52842         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52843         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52844         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52845         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52846         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52847         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52848         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52849         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52850         * sysdeps/ieee754/s_lib_version.c: Likewise.
52851         * sysdeps/mach/hurd/check_fds.c: Likewise.
52852         * sysdeps/mach/hurd/getsockname.c: Likewise.
52853         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52854         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52855         * sysdeps/powerpc/bits/link.h: Likewise.
52856         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52857         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52858         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52859         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52860         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52861         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52862         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52863         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52864         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52865         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52866         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52867         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52868         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52869         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52870         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52871         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52872         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52873         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52874         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52875         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52876         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52877         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52878         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52879         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52880         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52881         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52882         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52883         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52884         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52885         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52886         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52887         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52888         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52889         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52890         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52891         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52892         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52893         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52894         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52895         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52896         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52897         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52898         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52899         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52900         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52901         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52902         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52903         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52904         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52905         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52906         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52907         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52908         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52909         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52910         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52911         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52912         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52913         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52914         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52915         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52916         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52917         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52918         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52919         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52920         * sysdeps/powerpc/sysdep.h: Likewise.
52921         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52922         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52923         * sysdeps/sh/dl-trampoline.S: Likewise.
52924         * sysdeps/sh/memset.S: Likewise.
52925         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52926         * sysdeps/sh/strlen.S: Likewise.
52927         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52928         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52929         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52930         * sysdeps/sparc/sparc32/rem.S: Likewise.
52931         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52932         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52933         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52934         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52935         * sysdeps/sparc/sparc32/urem.S: Likewise.
52936         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52937         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52938         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52939         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52940         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52941         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52942         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52943         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52944         * sysdeps/unix/bsd/times.c: Likewise.
52945         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52946         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52950         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52951         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52952         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52953         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52954         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52955         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52956         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52957         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52958         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52959         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52960         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52961         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52962         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52963         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52964         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52965         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52966         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52967         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52968         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52969         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52970         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52971         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52972         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52973         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52974         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52975         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52976         * sysdeps/x86_64/strcspn.S: Likewise.
52977
52978 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52979
52980         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52981         generated file.  Regenerate properly from gen-translit.pl.
52982         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52983         locale/C-translit.h.
52984
52985 2013-06-05  Andreas Schwab  <schwab@suse.de>
52986
52987         [BZ #15100]
52988         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52989         week as 6 instead of -1.
52990         * time/tst-strptime.c (day_tests): Add test case.
52991
52992 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52993
52994         * sysdeps/generic/math_private.h
52995         (libc_feholdexcept_setround_53bit): Replace with
52996         libc_feholdsetround_53bit.
52997         (libc_feupdateenv_53bit): Replace with
52998         libc_feresetround_53bit.
52999         (SET_RESTORE_ROUND_53BIT): Adjust.
53000
53001 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
53002
53003         * string/test-strchrnul.c: Add copyright header.
53004
53005         * posix/tst-getaddrinfo4.c: Increase test timeout.
53006
53007 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
53008
53009         [BZ #15536]
53010         * math/libm-test.inc (MAX_EXP): Remove
53011         (MIN_EXP): Define.
53012         (ulp): Use MIN_EXP - MANT_DIG.
53013         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
53014
53015 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
53016
53017         * po/be.po: Revert last change.
53018         * po/zh_CN.po: Likewise.
53019         * po/header.pot: Likewise.
53020
53021 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
53022
53023         * Makefile ($(common-objpfx)linkobj/libc.so): Define
53024         link-libc-deps to empty as target-specific variable.
53025         * Makerules (link-libc-args): New variable.
53026         (libc-for-link): Likewise.
53027         (link-libc-deps): Likewise.
53028         (lib%.so): Depend on $(link-libc-deps).  Link with
53029         $(link-libc-args).
53030         (build-module): Link with $(link-libc-args).
53031         (build-module-asneeded): Likewise.
53032         (build-module-helper-objlist): Filter out $(link-libc-deps) from
53033         list of objects.
53034         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
53035         target-specific variable.
53036         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
53037         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
53038         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
53039         libc.
53040         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
53041         libc and ld.so.
53042         ($(objpfx)libpcprofile.so): Likewise.
53043         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
53044         libc_nonshared.a.
53045         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
53046         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
53047         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
53048         $(link-libc-deps).
53049         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
53050         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
53051         * login/Makefile ($(objpfx)libutil.so): Likewise.
53052         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
53053         * math/Makefile ($(objpfx)libm.so): Likewise.
53054         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
53055         $(objpfx)libnsl.so): Define libc-for-link as target-specific
53056         variable instead of depending directly on libc.
53057         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
53058         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
53059         $(link-libc-deps).
53060         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
53061         libc.
53062         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
53063         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
53064         ($(objpfx)libanl.so): Likewise.
53065         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
53066         ld.so.
53067         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
53068         $(link-libc-deps).
53069         * sysdeps/i386/fpu/Makefile: Remove file.
53070         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
53071         ($(objpfx)libm.so): Remove dependency on ld.so.
53072
53073 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
53074
53075         [BZ # 15553]
53076         * nis/yp_xdr.c (XDRMAXNAME): Define.
53077         (XDRMAXRECORD): Define.
53078         (xdr_domainname): Use XDRMAXNAME.
53079         (xdr_mapname): Likewise.
53080         (xdr_peername): Likewise.
53081         (xdr_keydat): Use XDRMAXRECORD.
53082         (xdr_valdat): Likewise.
53083
53084 2013-05-30  Jeff Law  <law@redhat.com>
53085
53086         [BZ #14256]
53087         * manual/errno.texi (ESTALE): Update to account for more than
53088         just NFS file systems.
53089         * sysdeps/gnu/errlist.c: Regenerated.
53090
53091 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53092
53093         [BZ #15465]
53094         * elf/Makefile (tests): Add tst-null-argv.
53095         (modules-names):  Add tst-null-argv-lib.
53096         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
53097         (tst-null-argv-ENV): Set environment for tst-null-argv.
53098         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
53099         (RTLD_PROGNAME): New macro.
53100         * elf/tst-null-argv.c: New test case.
53101         * elf/tst-null-argv-lib.c: Library for test case.
53102         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
53103         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
53104         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
53105         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
53106         * elf/dl-init.c (call_init): Likewise.
53107         (_dl_init): Likewise.
53108         * elf/dl-load.c (print_search_path): Likewise.
53109         (_dl_map_object): Likewise.
53110         * elf/dl-lookup.c (do_lookup_x): Likewise.
53111         (add_dependency): Likewise.
53112         (_dl_lookup_symbol_x): Likewise.
53113         (_dl_debug_bindings): Likewise.
53114         * elf/dl-open.c (_dl_show_scope): Likewise.
53115         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
53116         * elf/dl-version.c (match_symbol): Likewise.
53117         (_dl_check_map_versions): Likewise.
53118         * elf/rtld.c (dl_main): Likewise.
53119         (print_unresolved): Use RTLD_PROGNAME.
53120         (print_missing_version): Likewise.
53121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
53122         (elf_machine_rela): Likewise.
53123         * sysdeps/powerpc/powerpc32/dl-machine.c
53124         (__process_machine_rela): Likewise.
53125         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
53126         Likewise.
53127         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
53128         Likewise.
53129         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
53130         Likewise.
53131         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
53132         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
53133         Likewise.
53134         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
53135         Likewise.
53136         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
53137
53138 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
53139
53140         * po/be.po: Add descriptive title.
53141         * po/zh_CN.po: Likewise.
53142         * po/header.pot: Likewise.
53143
53144 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
53145
53146         * locale/programs/locarchive.c (create_archive): Inlucde fname in
53147         error message.
53148         (enlarge_archive): Likewise.
53149
53150 2013-05-28  Ben North  <ben@redfrontdoor.org>
53151
53152         * manual/arith.texi (frexp): It is the magnitude of the return
53153         value which lies in [0.5, 1), not the return value itself.
53154
53155 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53156
53157         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53158
53159 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
53160
53161         * stdio-common/bug26.c (main): Correct fscanf template.
53162
53163         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
53164         declare _dl_skip_args.
53165
53166         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
53167         Don't declare.
53168
53169         * manual/platform.texi: Add missing @end deftypefun.
53170
53171 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
53172
53173         [BZ #15529]
53174         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
53175         bit of mantissa of 2^16382.
53176         * math/libm-test.inc (hypot_test_data): Add more tests.
53177
53178         * math/libm-test.inc: Add drem and pow10 to list of tested
53179         functions.
53180         (pow10_test): New function.
53181         (drem_test): Likewise.
53182         (drem_test_tonearest): Likewise.
53183         (drem_test_towardzero): Likewise.
53184         (drem_test_downward): Likewise.
53185         (drem_test_upward): Likewise.
53186         (main): Call the new functions.
53187
53188         * math/libm-test.inc (finite_test_data): Remove.
53189         (finite_test): Run tests from isfinite_test_data.
53190         (gamma_test_data): Remove.
53191         (gamma_test): Run tests from lgamma_test_data.
53192         * sysdeps/i386/fpu/libm-test-ulps: Update.
53193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53194
53195 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53196
53197         * manual/platform.texi: Add PowerPC PPR function set documentation.
53198         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
53199         implementation.
53200
53201 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
53202
53203         * math/libm-test.inc (MAX_EXP): Define.
53204         (ULPDIFF): Define.
53205         (ulp): New function.
53206         (check_float_internal): Use ULPDIFF.
53207         (cpow_test): Disable failing test.
53208         (check_ulp): Test ulp() implemetnation.
53209         (main): Call check_ulp before starting tests.
53210
53211 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
53212
53213         * math/gen-libm-test.pl (generate_testfile): Do not handle
53214         START_DATA and END_DATA.
53215         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
53216         END_DATA.
53217         (acos_tonearest_test_data): Likewise.
53218         (acos_towardzero_test_data): Likewise.
53219         (acos_downward_test_data): Likewise.
53220         (acos_upward_test_data): Likewise.
53221         (acosh_test_data): Likewise.
53222         (asin_test_data): Likewise.
53223         (asin_tonearest_test_data): Likewise.
53224         (asin_towardzero_test_data): Likewise.
53225         (asin_downward_test_data): Likewise.
53226         (asin_upward_test_data): Likewise.
53227         (asinh_test_data): Likewise.
53228         (atan_test_data): Likewise.
53229         (atanh_test_data): Likewise.
53230         (atan2_test_data): Likewise.
53231         (cabs_test_data): Likewise.
53232         (cacos_test_data): Likewise.
53233         (cacosh_test_data): Likewise.
53234         (carg_test_data): Likewise.
53235         (casin_test_data): Likewise.
53236         (casinh_test_data): Likewise.
53237         (catan_test_data): Likewise.
53238         (catanh_test_data): Likewise.
53239         (cbrt_test_data): Likewise.
53240         (ccos_test_data): Likewise.
53241         (ccosh_test_data): Likewise.
53242         (ceil_test_data): Likewise.
53243         (cexp_test_data): Likewise.
53244         (cimag_test_data): Likewise.
53245         (clog_test_data): Likewise.
53246         (clog10_test_data): Likewise.
53247         (conj_test_data): Likewise.
53248         (copysign_test_data): Likewise.
53249         (cos_test_data): Likewise.
53250         (cos_tonearest_test_data): Likewise.
53251         (cos_towardzero_test_data): Likewise.
53252         (cos_downward_test_data): Likewise.
53253         (cos_upward_test_data): Likewise.
53254         (cosh_test_data): Likewise.
53255         (cosh_tonearest_test_data): Likewise.
53256         (cosh_towardzero_test_data): Likewise.
53257         (cosh_downward_test_data): Likewise.
53258         (cosh_upward_test_data): Likewise.
53259         (cpow_test_data): Likewise.
53260         (cproj_test_data): Likewise.
53261         (creal_test_data): Likewise.
53262         (csin_test_data): Likewise.
53263         (csinh_test_data): Likewise.
53264         (csqrt_test_data): Likewise.
53265         (ctan_test_data): Likewise.
53266         (ctan_tonearest_test_data): Likewise.
53267         (ctan_towardzero_test_data): Likewise.
53268         (ctan_downward_test_data): Likewise.
53269         (ctan_upward_test_data): Likewise.
53270         (ctanh_test_data): Likewise.
53271         (ctanh_tonearest_test_data): Likewise.
53272         (ctanh_towardzero_test_data): Likewise.
53273         (ctanh_downward_test_data): Likewise.
53274         (ctanh_upward_test_data): Likewise.
53275         (erf_test_data): Likewise.
53276         (erfc_test_data): Likewise.
53277         (exp_test_data): Likewise.
53278         (exp_tonearest_test_data): Likewise.
53279         (exp_towardzero_test_data): Likewise.
53280         (exp_downward_test_data): Likewise.
53281         (exp_upward_test_data): Likewise.
53282         (exp10_test_data): Likewise.
53283         (exp2_test_data): Likewise.
53284         (expm1_test_data): Likewise.
53285         (fabs_test_data): Likewise.
53286         (fdim_test_data): Likewise.
53287         (finite_test_data): Likewise.
53288         (floor_test_data): Likewise.
53289         (fma_test_data): Likewise.
53290         (fma_towardzero_test_data): Likewise.
53291         (fma_downward_test_data): Likewise.
53292         (fma_upward_test_data): Likewise.
53293         (fmax_test_data): Likewise.
53294         (fmin_test_data): Likewise.
53295         (fmod_test_data): Likewise.
53296         (fpclassify_test_data): Likewise.
53297         (frexp_test_data): Likewise.
53298         (gamma_test_data): Likewise.
53299         (hypot_test_data): Likewise.
53300         (ilogb_test_data): Likewise.
53301         (isfinite_test_data): Likewise.
53302         (isgreater_test_data): Likewise.
53303         (isgreaterequal_test_data): Likewise.
53304         (isinf_test_data): Likewise.
53305         (isless_test_data): Likewise.
53306         (islessequal_test_data): Likewise.
53307         (islessgreater_test_data): Likewise.
53308         (isnan_test_data): Likewise.
53309         (isnormal_test_data): Likewise.
53310         (issignaling_test_data): Likewise.
53311         (isunordered_test_data): Likewise.
53312         (j0_test_data): Likewise.
53313         (j1_test_data): Likewise.
53314         (jn_test_data): Likewise.
53315         (ldexp_test_data): Likewise.
53316         (lgamma_test_data): Likewise.
53317         (lrint_test_data): Likewise.
53318         (lrint_tonearest_test_data): Likewise.
53319         (lrint_towardzero_test_data): Likewise.
53320         (lrint_downward_test_data): Likewise.
53321         (lrint_upward_test_data): Likewise.
53322         (llrint_test_data): Likewise.
53323         (llrint_tonearest_test_data): Likewise.
53324         (llrint_towardzero_test_data): Likewise.
53325         (llrint_downward_test_data): Likewise.
53326         (llrint_upward_test_data): Likewise.
53327         (log_test_data): Likewise.
53328         (log10_test_data): Likewise.
53329         (log1p_test_data): Likewise.
53330         (log2_test_data): Likewise.
53331         (logb_test_data): Likewise.
53332         (logb_downward_test_data): Likewise.
53333         (lround_test_data): Likewise.
53334         (llround_test_data): Likewise.
53335         (modf_test_data): Likewise.
53336         (nearbyint_test_data): Likewise.
53337         (nextafter_test_data): Likewise.
53338         (nexttoward_test_data): Likewise.
53339         (pow_test_data): Likewise.
53340         (pow_tonearest_test_data): Likewise.
53341         (pow_towardzero_test_data): Likewise.
53342         (pow_downward_test_data): Likewise.
53343         (pow_upward_test_data): Likewise.
53344         (remainder_test_data): Likewise.
53345         (remainder_tonearest_test_data): Likewise.
53346         (remainder_towardzero_test_data): Likewise.
53347         (remainder_downward_test_data): Likewise.
53348         (remainder_upward_test_data): Likewise.
53349         (remquo_test_data): Likewise.
53350         (rint_test_data): Likewise.
53351         (rint_tonearest_test_data): Likewise.
53352         (rint_towardzero_test_data): Likewise.
53353         (rint_downward_test_data): Likewise.
53354         (rint_upward_test_data): Likewise.
53355         (round_test_data): Likewise.
53356         (scalb_test_data): Likewise.
53357         (scalbn_test_data): Likewise.
53358         (scalbln_test_data): Likewise.
53359         (signbit_test_data): Likewise.
53360         (sin_test_data): Likewise.
53361         (sin_tonearest_test_data): Likewise.
53362         (sin_towardzero_test_data): Likewise.
53363         (sin_downward_test_data): Likewise.
53364         (sin_upward_test_data): Likewise.
53365         (sincos_test_data): Likewise.
53366         (sinh_test_data): Likewise.
53367         (sinh_tonearest_test_data): Likewise.
53368         (sinh_towardzero_test_data): Likewise.
53369         (sinh_downward_test_data): Likewise.
53370         (sinh_upward_test_data): Likewise.
53371         (sqrt_test_data): Likewise.
53372         (tan_test_data): Likewise.
53373         (tan_tonearest_test_data): Likewise.
53374         (tan_towardzero_test_data): Likewise.
53375         (tan_downward_test_data): Likewise.
53376         (tan_upward_test_data): Likewise.
53377         (tanh_test_data): Likewise.
53378         (tgamma_test_data): Likewise.
53379         (trunc_test_data): Likewise.
53380         (y0_test_data): Likewise.
53381         (y1_test_data): Likewise.
53382         (yn_test_data): Likewise.
53383         (significand_test_data): Likewise.
53384
53385         * math/gen-libm-test.pl (@functions): Remove variable.
53386         (generate_testfile): Don't handle START and END lines.
53387         * math/libm-test.inc (START): New macro.
53388         (END): Likewise.
53389         (END_COMPLEX): Likewise.
53390         (acos_test): Use END macro without arguments.
53391         (acos_test_tonearest): Likewise.
53392         (acos_test_towardzero): Likewise.
53393         (acos_test_downward): Likewise.
53394         (acos_test_upward): Likewise.
53395         (acosh_test): Likewise.
53396         (asin_test): Likewise.
53397         (asin_test_tonearest): Likewise.
53398         (asin_test_towardzero): Likewise.
53399         (asin_test_downward): Likewise.
53400         (asin_test_upward): Likewise.
53401         (asinh_test): Likewise.
53402         (atan_test): Likewise.
53403         (atanh_test): Likewise.
53404         (atan2_test): Likewise.
53405         (cabs_test): Likewise.
53406         (cacos_test): Use END_COMPLEX macro without arguments.
53407         (cacosh_test): Likewise.
53408         (carg_test): Use END macro without arguments.
53409         (casin_test): Use END_COMPLEX macro without arguments.
53410         (casinh_test): Likewise.
53411         (catan_test): Likewise.
53412         (catanh_test): Likewise.
53413         (cbrt_test): Use END macro without arguments.
53414         (ccos_test): Use END_COMPLEX macro without arguments.
53415         (ccosh_test): Likewise.
53416         (ceil_test): Use END macro without arguments.
53417         (cexp_test): Use END_COMPLEX macro without arguments.
53418         (cimag_test): Use END macro without arguments.
53419         (clog_test): Use END_COMPLEX macro without arguments.
53420         (clog10_test): Likewise.
53421         (conj_test): Likewise.
53422         (copysign_test): Use END macro without arguments.
53423         (cos_test): Likewise.
53424         (cos_test_tonearest): Likewise.
53425         (cos_test_towardzero): Likewise.
53426         (cos_test_downward): Likewise.
53427         (cos_test_upward): Likewise.
53428         (cosh_test): Likewise.
53429         (cosh_test_tonearest): Likewise.
53430         (cosh_test_towardzero): Likewise.
53431         (cosh_test_downward): Likewise.
53432         (cosh_test_upward): Likewise.
53433         (cpow_test): Use END_COMPLEX macro without arguments.
53434         (cproj_test): Likewise.
53435         (creal_test): Use END macro without arguments.
53436         (csin_test): Use END_COMPLEX macro without arguments.
53437         (csinh_test): Likewise.
53438         (csqrt_test): Likewise.
53439         (ctan_test): Likewise.
53440         (ctan_test_tonearest): Likewise.
53441         (ctan_test_towardzero): Likewise.
53442         (ctan_test_downward): Likewise.
53443         (ctan_test_upward): Likewise.
53444         (ctanh_test): Likewise.
53445         (ctanh_test_tonearest): Likewise.
53446         (ctanh_test_towardzero): Likewise.
53447         (ctanh_test_downward): Likewise.
53448         (ctanh_test_upward): Likewise.
53449         (erf_test): Use END macro without arguments.
53450         (erfc_test): Likewise.
53451         (exp_test): Likewise.
53452         (exp_test_tonearest): Likewise.
53453         (exp_test_towardzero): Likewise.
53454         (exp_test_downward): Likewise.
53455         (exp_test_upward): Likewise.
53456         (exp10_test): Likewise.
53457         (exp2_test): Likewise.
53458         (expm1_test): Likewise.
53459         (fabs_test): Likewise.
53460         (fdim_test): Likewise.
53461         (finite_test): Likewise.
53462         (floor_test): Likewise.
53463         (fma_test): Likewise.
53464         (fma_test_towardzero): Likewise.
53465         (fma_test_downward): Likewise.
53466         (fma_test_upward): Likewise.
53467         (fmax_test): Likewise.
53468         (fmin_test): Likewise.
53469         (fmod_test): Likewise.
53470         (fpclassify_test): Likewise.
53471         (frexp_test): Likewise.
53472         (gamma_test): Likewise.
53473         (hypot_test): Likewise.
53474         (ilogb_test): Likewise.
53475         (isfinite_test): Likewise.
53476         (isgreater_test): Likewise.
53477         (isgreaterequal_test): Likewise.
53478         (isinf_test): Likewise.
53479         (isless_test): Likewise.
53480         (islessequal_test): Likewise.
53481         (islessgreater_test): Likewise.
53482         (isnan_test): Likewise.
53483         (isnormal_test): Likewise.
53484         (issignaling_test): Likewise.
53485         (isunordered_test): Likewise.
53486         (j0_test): Likewise.
53487         (j1_test): Likewise.
53488         (jn_test): Likewise.
53489         (ldexp_test): Likewise.
53490         (lgamma_test): Likewise.
53491         (lrint_test): Likewise.
53492         (lrint_test_tonearest): Likewise.
53493         (lrint_test_towardzero): Likewise.
53494         (lrint_test_downward): Likewise.
53495         (lrint_test_upward): Likewise.
53496         (llrint_test): Likewise.
53497         (llrint_test_tonearest): Likewise.
53498         (llrint_test_towardzero): Likewise.
53499         (llrint_test_downward): Likewise.
53500         (llrint_test_upward): Likewise.
53501         (log_test): Likewise.
53502         (log10_test): Likewise.
53503         (log1p_test): Likewise.
53504         (log2_test): Likewise.
53505         (logb_test): Likewise.
53506         (logb_test_downward): Likewise.
53507         (lround_test): Likewise.
53508         (llround_test): Likewise.
53509         (modf_test): Likewise.
53510         (nearbyint_test): Likewise.
53511         (nextafter_test): Likewise.
53512         (nexttoward_test): Likewise.
53513         (pow_test): Likewise.
53514         (pow_test_tonearest): Likewise.
53515         (pow_test_towardzero): Likewise.
53516         (pow_test_downward): Likewise.
53517         (pow_test_upward): Likewise.
53518         (remainder_test): Likewise.
53519         (remainder_test_tonearest): Likewise.
53520         (remainder_test_towardzero): Likewise.
53521         (remainder_test_downward): Likewise.
53522         (remainder_test_upward): Likewise.
53523         (remquo_test): Likewise.
53524         (rint_test): Likewise.
53525         (rint_test_tonearest): Likewise.
53526         (rint_test_towardzero): Likewise.
53527         (rint_test_downward): Likewise.
53528         (rint_test_upward): Likewise.
53529         (round_test): Likewise.
53530         (scalb_test): Likewise.
53531         (scalbn_test): Likewise.
53532         (scalbln_test): Likewise.
53533         (signbit_test): Likewise.
53534         (sin_test): Likewise.
53535         (sin_test_tonearest): Likewise.
53536         (sin_test_towardzero): Likewise.
53537         (sin_test_downward): Likewise.
53538         (sin_test_upward): Likewise.
53539         (sincos_test): Likewise.
53540         (sinh_test): Likewise.
53541         (sinh_test_tonearest): Likewise.
53542         (sinh_test_towardzero): Likewise.
53543         (sinh_test_downward): Likewise.
53544         (sinh_test_upward): Likewise.
53545         (sqrt_test): Likewise.
53546         (tan_test): Likewise.
53547         (tan_test_tonearest): Likewise.
53548         (tan_test_towardzero): Likewise.
53549         (tan_test_downward): Likewise.
53550         (tan_test_upward): Likewise.
53551         (tanh_test): Likewise.
53552         (tgamma_test): Likewise.
53553         (trunc_test): Likewise.
53554         (y0_test): Likewise.
53555         (y1_test): Likewise.
53556         (yn_test): Likewise.
53557         (significand_test): Likewise.
53558
53559 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53560
53561         [BZ #15381]
53562         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53563
53564 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53565
53566         [BZ #14894]
53567         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53568         __ppc_mdoio and __ppc_mdoom.
53569         * manual/platform.texi: Document new functions __ppc_yield,
53570         __ppc_mdoio and __ppc_mdoom.
53571
53572 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53573
53574         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53575         (main): Mention "tls" pseudo-hwcap is legacy.
53576         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53577
53578 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53579
53580         * math/gen-libm-test.pl (parse_args): Output only string of
53581         arguments as text for test name, not full call or descriptions of
53582         tests for extra outputs.
53583         (generate_testfile): Do not pass function name to parse_args.
53584         Generate this_func variable from START.
53585         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53586         field to arg_str.
53587         (struct test_ff_f_data): Likewise.
53588         (test_ff_f_data_nexttoward): Likewise.
53589         (struct test_fi_f_data): Likewise.
53590         (struct test_fl_f_data): Likewise.
53591         (struct test_if_f_data): Likewise.
53592         (struct test_fff_f_data): Likewise.
53593         (struct test_c_f_data): Likewise.
53594         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53595         (struct test_fF_f1_data): Likewise.
53596         (struct test_ffI_f1_data): Likewise.
53597         (struct test_c_c_data): Rename test_name field to arg_str.
53598         (struct test_cc_c_data): Likewise.
53599         (struct test_f_i_data): Likewise.
53600         (struct test_ff_i_data): Likewise.
53601         (struct test_f_l_data): Likewise.
53602         (struct test_f_L_data): Likewise.
53603         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53604         and extra2_name.
53605         (COMMON_TEST_SETUP): New macro.
53606         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53607         (COMMON_TEST_CLEANUP): Likewise.
53608         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53609         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53610         macros.
53611         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53612         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53613         macros.
53614         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53615         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53616         cleanup macros.
53617         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53618         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53619         macros.
53620         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53621         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53622         macros.
53623         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53624         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53625         cleanup macros.
53626         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53627         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53628         cleanup macros.
53629         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53630         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53631         cleanup macros.
53632         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53633         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53634         macros.
53635         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53636         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53637         macros.
53638         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53639         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53640         macros.
53641         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53642         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53643         cleanup macros.
53644         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53645         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53646         cleanup macros.
53647         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53648         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53649         macros.
53650         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53651         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53652         cleanup macros.
53653         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53654         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53655         macros.
53656         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53657         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53658         macros.
53659         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53660         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53661         cleanup macros.
53662         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53663
53664 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53665
53666         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53667         to _sifields.sigfault.
53668         (si_addr_lsb): Define new macro.
53669         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53670         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53671         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53672
53673 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53674
53675         [BZ #15441]
53676         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53677         returns -1.
53678         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53679         null return -1.
53680         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53681         loading the domain.
53682
53683 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53684
53685         * math/gen-libm-test.pl (parse_args): Do not include expected
53686         result in test name.
53687         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53688         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53689         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53690         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53691         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53693
53694 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53695
53696         * benchtests/Makefile: Sort function entries.
53697
53698         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53699         tanh, asinh, acosh, atanh.
53700         * benchtests/acos-inputs: New file.
53701         * benchtests/acosh-inputs: New file.
53702         * benchtests/asin-inputs: New file.
53703         * benchtests/asinh-inputs: New file.
53704         * benchtests/atanh-inputs: New file.
53705         * benchtests/cosh-inputs: New file.
53706         * benchtests/log-inputs: New file.
53707         * benchtests/sinh-inputs: New file.
53708         * benchtests/tanh-inputs: New file.
53709
53710 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53711
53712         [BZ #15339]
53713         * posix/tst-getaddrinfo4.c: New test.
53714         * posix/Makefile (tests): Add it.
53715
53716 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53717
53718         [BZ #15339]
53719         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53720         when no services were used.
53721         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53722         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53723
53724 2013-05-21  Andreas Schwab  <schwab@suse.de>
53725
53726         [BZ #15014]
53727         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53728         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53729         successful.
53730         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53731         redundant variable declarations and reallocation of buffer when
53732         parsing as IPv6 address.  Always set NSS status when called from
53733         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53734         buffer too small.  Correct computation of needed size.
53735         * nss/Makefile (tests): Add test-digits-dots.
53736         * nss/test-digits-dots.c: New test.
53737
53738 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53739
53740         * benchtests/Makefile: Remove instructions for adding
53741         benchmark tests.
53742         * benchtests/README: New file to explain how to execute and
53743         enhance the benchmark tests.
53744
53745 2013-05-21  Andreas Schwab  <schwab@suse.de>
53746
53747         [BZ #15493]
53748         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53749         * setjmp/tst-sigsetjmp.c: New test.
53750
53751 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53752
53753         * sysdeps/x86_64/memset.S (memset): New implementation.
53754         (__bzero): Likewise.
53755         (__memset_tail): New function.
53756
53757 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53758
53759         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53760         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53761         __memcpy_sse2_unaligned ifunc selection.
53762         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53763         Add memcpy-sse2-unaligned.S.
53764         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53765         Add: __memcpy_sse2_unaligned.
53766
53767 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53768
53769         [BZ #15490]
53770         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53771         math_force_eval before restoring floating-point envrionment.
53772         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53773         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53774         Likewise.
53775         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53776         <math_private.h>.
53777         (__nearbyintl): Use math_force_eval before restoring
53778         floating-point environment.
53779         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53780
53781         * math/gen-libm-test.pl (special_functions): Remove.
53782         (parse_args): Don't handle TEST_extra.  Handle functions with no
53783         return value.
53784         * math/libm-test.inc (struct test_sincos_data): Replace with
53785         struct test_fFF_11_data.
53786         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53787         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53788         (sincos_test_data): Change element type to struct
53789         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53790         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53791         RUN_TEST_LOOP_sincos.
53792         * math/README.libm-test: Don't mention special handling of
53793         individual functions.
53794         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53795         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53796         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53797         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53798         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53800
53801         * math/gen-libm-test.pl (get_variable): Remove function.
53802         (parse_args): Don't show pointer parameters to call in test
53803         names.  Use "extra output N" in test names for extra outputs
53804         rather than naming variables.
53805
53806 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53807
53808         [BZ #15488]
53809         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53810         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53811         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53812         double tests.
53813         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53814         disable.
53815         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53816         check_long_double.
53817
53818         * math/gen-libm-test.pl (@tests): Remove variable.
53819         ($count): Likewise.
53820         (new_test): Remove function.
53821         (show_exceptions): New function.
53822         (special_functions): Use show_exceptions instead of new_test.
53823         (parse_args): Likewise.
53824         (generate_testfile): Pass only function name in generated call to
53825         print_max_error or print_complex_max_error.
53826         (get_ulps): Do not handle complex tests specially.
53827         (output_test): Rename to ...
53828         (get_all_ulps_for_test): ... this.  Return a string rather than
53829         printing to a file.  Require ulps to be present.
53830         (output_ulps): Generate arrays rather than #defines.
53831         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53832         (struct ulp_data): New type.
53833         (BUILD_COMPLEX_ULP): Remove macro.
53834         (compare_ulp_data): New function.
53835         (find_ulps): Likewise.
53836         (find_test_ulps): Likewise.
53837         (find_function_ulps): Likewise.
53838         (find_complex_function_ulps): Likewise.
53839         (print_max_error): Determine allowed ulps using
53840         find_function_ulps.
53841         (print_complex_max_error): Determine allowed ulps using
53842         find_complex_function_ulps.
53843         (check_float_internal): Determine max ulps using find_test_ulps.
53844         (check_float): Do not take max_ulp parameter.  Update call to
53845         check_float_internal.
53846         (check_complex): Likewise.
53847         (check_int): Do not take max_ulp parameter.
53848         (check_long): Likewise.
53849         (check_bool): Likewise.
53850         (check_longlong): Likewise.
53851         (struct test_f_f_data): Remove max_ulp field.
53852         (struct test_ff_f_data): Likewise.
53853         (struct test_ff_f_data_nexttoward): Likewise.
53854         (struct test_fi_f_data): Likewise.
53855         (struct test_fl_f_data): Likewise.
53856         (struct test_if_f_data): Likewise.
53857         (struct test_fff_f_data): Likewise.
53858         (struct test_c_f_data): Likewise.
53859         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53860         (struct test_fF_f1_data): Likewise.
53861         (struct test_ffI_f1_data): Likewise.
53862         (struct test_c_c_data): Remove max_ulp field.
53863         (struct test_cc_c_data): Likewise.
53864         (struct test_f_i_data): Likewise.
53865         (struct test_ff_i_data): Likewise.
53866         (struct test_f_l_data): Likewise.
53867         (struct test_f_L_data): Likewise.
53868         (struct test_sincos_data): Likewise.
53869         (RUN_TEST_f_f): Do not handle ulps.
53870         (RUN_TEST_LOOP_f_f): Likewise.
53871         (RUN_TEST_2_f): Likewise.
53872         (RUN_TEST_LOOP_2_f): Likewise.
53873         (RUN_TEST_fff_f): Likewise.
53874         (RUN_TEST_LOOP_fff_f): Likewise.
53875         (RUN_TEST_c_f): Likewise.
53876         (RUN_TEST_LOOP_c_f): Likewise.
53877         (RUN_TEST_f_f1): Likewise.
53878         (RUN_TEST_LOOP_f_f1): Likewise.
53879         (RUN_TEST_fF_f1): Likewise.
53880         (RUN_TEST_LOOP_fF_f1): Likewise.
53881         (RUN_TEST_fI_f1): Likewise.
53882         (RUN_TEST_LOOP_fI_f1): Likewise.
53883         (RUN_TEST_ffI_f1): Likewise.
53884         (RUN_TEST_LOOP_ffI_f1): Likewise.
53885         (RUN_TEST_c_c): Likewise.
53886         (RUN_TEST_LOOP_c_c): Likewise.
53887         (RUN_TEST_cc_c): Likewise.
53888         (RUN_TEST_LOOP_cc_c): Likewise.
53889         (RUN_TEST_f_i): Likewise.
53890         (RUN_TEST_LOOP_f_i): Likewise.
53891         (RUN_TEST_f_i_tg): Likewise.
53892         (RUN_TEST_LOOP_f_i_tg): Likewise.
53893         (RUN_TEST_ff_i_tg): Likewise.
53894         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53895         (RUN_TEST_f_b): Likewise.
53896         (RUN_TEST_LOOP_f_b): Likewise.
53897         (RUN_TEST_f_b_tg): Likewise.
53898         (RUN_TEST_LOOP_f_b_tg): Likewise.
53899         (RUN_TEST_f_l): Likewise.
53900         (RUN_TEST_LOOP_f_l): Likewise.
53901         (RUN_TEST_f_L): Likewise.
53902         (RUN_TEST_LOOP_f_L): Likewise.
53903         (RUN_TEST_sincos): Likewise.
53904         (RUN_TEST_LOOP_sincos): Likewise.
53905
53906 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53907
53908         [BZ #15480]
53909         [BZ #15485]
53910         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53911         main case of finite arguments, set rounding mode to FE_TONEAREST
53912         and discard exceptions.
53913         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53914         exceptions.
53915         (remainder_tonearest_test_data): New variable.
53916         (remainder_test_tonearest): New function.
53917         (remainder_towardzero_test_data): New variable.
53918         (remainder_test_towardzero): New function.
53919         (remainder_downward_test_data): New variable.
53920         (remainder_test_downward): New function.
53921         (remainder_upward_test_data): New variable.
53922         (remainder_test_upward): New function.
53923         (main): Call the new test functions.
53924
53925         * math/libm-test.inc (struct test_f_f1_data): Remove field
53926         extra_init.
53927         (struct test_fF_f1_data): Likewise.
53928         (struct test_ffI_f1_data): Likewise.
53929         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53930         based on value of EXTRA_EXPECTED.
53931         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53932         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53933         EXTRA_VAR based on value of EXTRA_EXPECTED.
53934         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53935         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53936         EXTRA_VAR based on value of EXTRA_EXPECTED.
53937         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53938         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53939         EXTRA_VAR based on value of EXTRA_EXPECTED.
53940         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53941         * math/gen-libm-test.pl (parse_args): Don't output initializers
53942         for extra output values.
53943
53944         * math/libm-test.inc (check_int): Expect result to be exactly
53945         equal to expected value and do not handle ulps.
53946         (check_long): Likewise.
53947         (check_longlong): Likewise.
53948
53949         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53950         exceptions.
53951         (cimag_test_data): Likewise.
53952         (conj_test_data): Likewise.
53953         (copysign_test_data): Likewise.
53954         (cproj_test_data): Likewise.
53955         (creal_test_data): Likewise.
53956         (fabs_test_data): Likewise.
53957         (fdim_test_data): Likewise.
53958         (finite_test_data): Likewise.
53959         (floor_test_data): Likewise.
53960         (fmax_test_data): Likewise.
53961         (fmin_test_data): Likewise.
53962         (fmod_test_data): Likewise.
53963         (fpclassify_test_data): Likewise.
53964         (frexp_test_data): Likewise.
53965         (ilogb_test_data): Likewise.
53966         (isfinite_test_data): Likewise.
53967         (isgreater_test_data): Likewise.
53968         (isgreaterequal_test_data): Likewise.
53969         (isinf_test_data): Likewise.
53970         (isless_test_data): Likewise.
53971         (islessequal_test_data): Likewise.
53972         (islessgreater_test_data): Likewise.
53973         (isnan_test_data): Likewise.
53974         (isnormal_test_data): Likewise.
53975         (issignaling_test_data): Likewise.
53976         (isunordered_test_data): Likewise.
53977         (ldexp_test_data): Likewise.
53978         (lrint_test_data): Likewise.
53979         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53980         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53981         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53982         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53983         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53984         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53985         test input.
53986         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53987         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53988         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53989         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53990         that test input.
53991         (lrint_downward_test_data): Test for "inexact" exceptions.
53992         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53993         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53994         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53995         test input.
53996         (lrint_upward_test_data): Test for "inexact" exceptions.
53997         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53998         test input.
53999         (llrint_test_data): Test for "inexact" exceptions.
54000         (llrint_test_data) [TEST_FLOAT]: Disable one test.
54001         (llrint_tonearest_test_data): Test for "inexact" exceptions.
54002         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
54003         (llrint_towardzero_test_data): Test for "inexact" exceptions.
54004         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
54005         (llrint_downward_test_data): Test for "inexact" exceptions.
54006         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
54007         (llrint_upward_test_data): Test for "inexact" exceptions.
54008         (logb_test_data): Likewise.
54009         (logb_downward_test_data): Likewise.
54010         (nextafter_test_data): Likewise.
54011         (nexttoward_test_data): Likewise.
54012         (remainder_test_data): Likewise.
54013         (remquo_test_data): Likewise.
54014         (scalbn_test_data): Likewise.
54015         (scalbln_test_data): Likewise.
54016         (signbit_test_data): Likewise.
54017         (sqrt_test_data): Likewise.
54018         (significand_test_data): Likewise.
54019
54020 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
54021
54022         [BZ #15424]
54023         * benchtests/bench-modf.c (struct args): Mark arg0 as
54024         volatile.
54025         * scripts/bench.pl: Mark members of struct args as volatile.
54026
54027 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54028
54029         [BZ # 15497]
54030         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
54031         negative infinity on POWER6 or lower.
54032         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
54033
54034 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
54035
54036         [BZ #15442]
54037         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
54038         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
54039         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
54040         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
54041         (_FP_SETQNAN): New macro.
54042         (_FP_SETQNAN_SEMIRAW): Likewise.
54043         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
54044         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
54045         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
54046         (FP_EXTEND): Use _FP_FRAC_SNANP.
54047         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
54048         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
54049         into account.
54050         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
54051         New macro.
54052         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
54053         Likewise.
54054
54055 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54056
54057         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
54058         with DIVIDE_BY_ZERO_EXCEPTION.
54059         (gamma_test_data): Likewise.
54060         (lgamma_test_data): Likewise.
54061         (log_test_data): Likewise.
54062         (log10_test_data): Likewise.
54063         (log2_test_data): Likewise.
54064         (tgamma_test_data): Likewise.
54065
54066         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
54067         (acos_test_tonearest): Likewise.
54068         (acos_test_towardzero): Likewise.
54069         (acos_test_downward): Likewise.
54070         (acos_test_upward): Likewise.
54071         (acosh_test): Likewise.
54072         (asin_test): Likewise.
54073         (asin_test_tonearest): Likewise.
54074         (asin_test_towardzero): Likewise.
54075         (asin_test_downward): Likewise.
54076         (asin_test_upward): Likewise.
54077         (asinh_test): Likewise.
54078         (atan_test): Likewise.
54079         (atanh_test): Likewise.
54080         (atan2_test): Likewise.
54081         (cabs_test): Likewise.
54082         (cacos_test): Likewise.
54083         (cacosh_test): Likewise.
54084         (casin_test): Likewise.
54085         (casinh_test): Likewise.
54086         (catan_test): Likewise.
54087         (catanh_test): Likewise.
54088         (cbrt_test): Likewise.
54089         (ccos_test): Likewise.
54090         (ccosh_test): Likewise.
54091         (cexp_test): Likewise.
54092         (clog_test): Likewise.
54093         (clog10_test): Likewise.
54094         (cos_test): Likewise.
54095         (cos_test_tonearest): Likewise.
54096         (cos_test_towardzero): Likewise.
54097         (cos_test_downward): Likewise.
54098         (cos_test_upward): Likewise.
54099         (cosh_test): Likewise.
54100         (cosh_test_tonearest): Likewise.
54101         (cosh_test_towardzero): Likewise.
54102         (cosh_test_downward): Likewise.
54103         (cosh_test_upward): Likewise.
54104         (cpow_test): Likewise.
54105         (csin_test): Likewise.
54106         (csinh_test): Likewise.
54107         (csqrt_test): Likewise.
54108         (ctan_test): Likewise.
54109         (ctan_test_tonearest): Likewise.
54110         (ctan_test_towardzero): Likewise.
54111         (ctan_test_downward): Likewise.
54112         (ctan_test_upward): Likewise.
54113         (ctanh_test): Likewise.
54114         (ctanh_test_tonearest): Likewise.
54115         (ctanh_test_towardzero): Likewise.
54116         (ctanh_test_downward): Likewise.
54117         (ctanh_test_upward): Likewise.
54118         (erf_test): Likewise.
54119         (erfc_test): Likewise.
54120         (exp_test): Likewise.
54121         (exp_test_tonearest): Likewise.
54122         (exp_test_towardzero): Likewise.
54123         (exp_test_downward): Likewise.
54124         (exp_test_upward): Likewise.
54125         (exp10_test): Likewise.
54126         (exp2_test): Likewise.
54127         (expm1_test): Likewise.
54128         (fmod_test): Likewise.
54129         (gamma_test): Likewise.
54130         (hypot_test): Likewise.
54131         (j0_test): Likewise.
54132         (j1_test): Likewise.
54133         (jn_test): Likewise.
54134         (lgamma_test): Likewise.
54135         (log_test): Likewise.
54136         (log10_test): Likewise.
54137         (log1p_test): Likewise.
54138         (log2_test): Likewise.
54139         (logb_test_downward): Likewise.
54140         (pow_test): Likewise.
54141         (pow_test_tonearest): Likewise.
54142         (pow_test_towardzero): Likewise.
54143         (pow_test_downward): Likewise.
54144         (pow_test_upward): Likewise.
54145         (remainder_test): Likewise.
54146         (remquo_test): Likewise.
54147         (sin_test): Likewise.
54148         (sin_test_tonearest): Likewise.
54149         (sin_test_towardzero): Likewise.
54150         (sin_test_downward): Likewise.
54151         (sin_test_upward): Likewise.
54152         (sincos_test): Likewise.
54153         (sinh_test): Likewise.
54154         (sinh_test_tonearest): Likewise.
54155         (sinh_test_towardzero): Likewise.
54156         (sinh_test_downward): Likewise.
54157         (sinh_test_upward): Likewise.
54158         (sqrt_test): Likewise.
54159         (tan_test): Likewise.
54160         (tan_test_tonearest): Likewise.
54161         (tan_test_towardzero): Likewise.
54162         (tan_test_downward): Likewise.
54163         (tan_test_upward): Likewise.
54164         (tanh_test): Likewise.
54165         (tgamma_test): Likewise.
54166         (y0_test): Likewise.
54167         (y1_test): Likewise.
54168         (yn_test): Likewise.
54169
54170         * math/gen-libm-test.pl (adjust_arg): Remove function.
54171         (special_function): Remove argument $in_func.  Only handle
54172         generating output for tables of tests, not inside functions.
54173         (parse_args): Likewise.
54174         (generate_testfile): Remove variable $in_func.  Update call to
54175         parse_args.
54176         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
54177         (MINUS_ZERO_INIT): Rename macro to minus_zero.
54178         (PLUS_INFTY_INIT): Rename macro to plus_infty.
54179         (MINUS_INFTY_INIT): Rename macro to minus_infty.
54180         (QNAN_VALUE_INIT): Rename macro to qnan_value.
54181         (MAX_VALUE_INIT): Rename macro to max_value.
54182         (MIN_VALUE_INIT): Rename macro to min_value.
54183         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
54184         (plus_zero): Remove variable.
54185         (minus_zero): Likewise.
54186         (plus_infty): Likewise.
54187         (minus_infty): Likewise.
54188         (qnan_value): Likewise.
54189         (max_value): Likewise.
54190         (min_value): Likewise.
54191         (min_subnorm_value): Likewise.
54192
54193 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
54194
54195         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
54196         uint64_t or uint32_t usage.
54197         * crypt/sha256-block.c: Likewise.
54198         * crypt/sha256-crypt.c: Likewise.
54199         * crypt/sha256.c: Likewise.
54200         * crypt/sha512-block.c: Likewise.
54201         * crypt/sha512-crypt.c: Likewise.
54202         * crypt/sha512.c: Likewise.
54203         * debug/backtrace-tst.c: Likewise.
54204         * debug/pcprofiledump.c: Likewise.
54205         * elf/cache.c: Likewise.
54206         * elf/dl-cache.c: Likewise.
54207         * elf/dl-misc.c: Likewise.
54208         * elf/dl-profile.c: Likewise.
54209         * elf/dl-support.c: Likewise.
54210         * elf/ldconfig.c: Likewise.
54211         * elf/sprof.c: Likewise.
54212         * iconv/dummy-repertoire.c: Likewise.
54213         * iconv/iconv_charmap.c: Likewise.
54214         * iconv/skeleton.c: Likewise.
54215         * iconvdata/8bit-generic.c: Likewise.
54216         * iconvdata/cp737.h: Likewise.
54217         * iconvdata/cp775.h: Likewise.
54218         * iconvdata/ibm1008.h: Likewise.
54219         * iconvdata/ibm1025.h: Likewise.
54220         * iconvdata/ibm1046.h: Likewise.
54221         * iconvdata/ibm1097.h: Likewise.
54222         * iconvdata/ibm1112.h: Likewise.
54223         * iconvdata/ibm1122.h: Likewise.
54224         * iconvdata/ibm1123.h: Likewise.
54225         * iconvdata/ibm1124.h: Likewise.
54226         * iconvdata/ibm1129.h: Likewise.
54227         * iconvdata/ibm1130.h: Likewise.
54228         * iconvdata/ibm1132.h: Likewise.
54229         * iconvdata/ibm1133.h: Likewise.
54230         * iconvdata/ibm1137.h: Likewise.
54231         * iconvdata/ibm1140.h: Likewise.
54232         * iconvdata/ibm1141.h: Likewise.
54233         * iconvdata/ibm1142.h: Likewise.
54234         * iconvdata/ibm1143.h: Likewise.
54235         * iconvdata/ibm1144.h: Likewise.
54236         * iconvdata/ibm1145.h: Likewise.
54237         * iconvdata/ibm1146.h: Likewise.
54238         * iconvdata/ibm1147.h: Likewise.
54239         * iconvdata/ibm1148.h: Likewise.
54240         * iconvdata/ibm1149.h: Likewise.
54241         * iconvdata/ibm1153.h: Likewise.
54242         * iconvdata/ibm1154.h: Likewise.
54243         * iconvdata/ibm1155.h: Likewise.
54244         * iconvdata/ibm1156.h: Likewise.
54245         * iconvdata/ibm1157.h: Likewise.
54246         * iconvdata/ibm1158.h: Likewise.
54247         * iconvdata/ibm1160.h: Likewise.
54248         * iconvdata/ibm1161.h: Likewise.
54249         * iconvdata/ibm1162.h: Likewise.
54250         * iconvdata/ibm1163.h: Likewise.
54251         * iconvdata/ibm1164.h: Likewise.
54252         * iconvdata/ibm1166.h: Likewise.
54253         * iconvdata/ibm1167.h: Likewise.
54254         * iconvdata/ibm12712.h: Likewise.
54255         * iconvdata/ibm1390.h: Likewise.
54256         * iconvdata/ibm1399.h: Likewise.
54257         * iconvdata/ibm16804.h: Likewise.
54258         * iconvdata/ibm4517.h: Likewise.
54259         * iconvdata/ibm4899.h: Likewise.
54260         * iconvdata/ibm4909.h: Likewise.
54261         * iconvdata/ibm4971.h: Likewise.
54262         * iconvdata/ibm5347.h: Likewise.
54263         * iconvdata/ibm803.h: Likewise.
54264         * iconvdata/ibm856.h: Likewise.
54265         * iconvdata/ibm901.h: Likewise.
54266         * iconvdata/ibm902.h: Likewise.
54267         * iconvdata/ibm9030.h: Likewise.
54268         * iconvdata/ibm9066.h: Likewise.
54269         * iconvdata/ibm921.h: Likewise.
54270         * iconvdata/ibm922.h: Likewise.
54271         * iconvdata/ibm9448.h: Likewise.
54272         * iconvdata/isiri-3342.h: Likewise.
54273         * iconvdata/jis0201.h: Likewise.
54274         * include/link.h: Likewise.
54275         * include/netdb.h: Likewise.
54276         * inet/check_native.c: Likewise.
54277         * inet/check_pf.c: Likewise.
54278         * inet/getipv4sourcefilter.c: Likewise.
54279         * inet/getnameinfo.c: Likewise.
54280         * inet/getsourcefilter.c: Likewise.
54281         * inet/htonl.c: Likewise.
54282         * inet/setipv4sourcefilter.c: Likewise.
54283         * inet/setsourcefilter.c: Likewise.
54284         * inet/test-inet6_opt.c: Likewise.
54285         * inet/tst-network.c: Likewise.
54286         * locale/C-collate.c: Likewise.
54287         * locale/C-ctype.c: Likewise.
54288         * locale/C-time.c: Likewise.
54289         * locale/C-translit.h: Likewise.
54290         * locale/loadarchive.c: Likewise.
54291         * locale/programs/3level.h: Likewise.
54292         * locale/programs/charmap.c: Likewise.
54293         * locale/programs/charmap.h: Likewise.
54294         * locale/programs/ld-address.c: Likewise.
54295         * locale/programs/ld-collate.c: Likewise.
54296         * locale/programs/ld-ctype.c: Likewise.
54297         * locale/programs/ld-identification.c: Likewise.
54298         * locale/programs/ld-measurement.c: Likewise.
54299         * locale/programs/ld-messages.c: Likewise.
54300         * locale/programs/ld-monetary.c: Likewise.
54301         * locale/programs/ld-name.c: Likewise.
54302         * locale/programs/ld-numeric.c: Likewise.
54303         * locale/programs/ld-paper.c: Likewise.
54304         * locale/programs/ld-telephone.c: Likewise.
54305         * locale/programs/ld-time.c: Likewise.
54306         * locale/programs/linereader.c: Likewise.
54307         * locale/programs/locale.c: Likewise.
54308         * locale/programs/locarchive.c: Likewise.
54309         * locale/programs/locfile.h: Likewise.
54310         * locale/programs/repertoire.c: Likewise.
54311         * locale/programs/simple-hash.c: Likewise.
54312         * locale/programs/simple-hash.h: Likewise.
54313         * malloc/memusage.c: Likewise.
54314         * malloc/memusagestat.c: Likewise.
54315         * nis/nis_defaults.c: Likewise.
54316         * nis/nis_hash.c: Likewise.
54317         * nis/nis_print.c: Likewise.
54318         * nis/nis_xdr.c: Likewise.
54319         * nscd/connections.c: Likewise.
54320         * nscd/hstcache.c: Likewise.
54321         * nscd/nscd_gethst_r.c: Likewise.
54322         * nscd/nscd_getserv_r.c: Likewise.
54323         * nscd/nscd_helper.c: Likewise.
54324         * nscd/servicescache.c: Likewise.
54325         * nss/makedb.c: Likewise.
54326         * nss/nss_db/db-XXX.c: Likewise.
54327         * nss/nss_db/db-initgroups.c: Likewise.
54328         * nss/nss_db/db-netgrp.c: Likewise.
54329         * nss/nss_files/files-network.c: Likewise.
54330         * nss/nss_files/files-parse.c: Likewise.
54331         * posix/bug-regex5.c: Likewise.
54332         * posix/fnmatch_loop.c: Likewise.
54333         * posix/regcomp.c: Likewise.
54334         * posix/regexec.c: Likewise.
54335         * posix/tst-rfc3484-2.c: Likewise.
54336         * posix/tst-rfc3484-3.c: Likewise.
54337         * posix/tst-rfc3484.c: Likewise.
54338         * resolv/nss_dns/dns-canon.c: Likewise.
54339         * resolv/nss_dns/dns-network.c: Likewise.
54340         * resolv/res_init.c: Likewise.
54341         * resolv/res_mkquery.c: Likewise.
54342         * resolv/tst-aton.c: Likewise.
54343         * stdlib/cxa_atexit.c: Likewise.
54344         * stdlib/cxa_finalize.c: Likewise.
54345         * stdlib/gen-fpioconst.c: Likewise.
54346         * stdlib/strtol_l.c: Likewise.
54347         * string/tst-endian.c: Likewise.
54348         * sunrpc/auth_des.c: Likewise.
54349         * sunrpc/clnt_udp.c: Likewise.
54350         * sunrpc/rtime.c: Likewise.
54351         * sunrpc/svcauth_des.c: Likewise.
54352         * sunrpc/xdr.c: Likewise.
54353         * sunrpc/xdr_intXX_t.c: Likewise.
54354         * sunrpc/xdr_rec.c: Likewise.
54355         * sysdeps/generic/ldconfig.h: Likewise.
54356         * sysdeps/generic/ldsodefs.h: Likewise.
54357         * sysdeps/generic/memusage.h: Likewise.
54358         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
54359         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
54360         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
54361         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
54362         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
54363         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
54364         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
54365         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
54366         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
54367         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
54368         * sysdeps/posix/getaddrinfo.c: Likewise.
54369         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
54370         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54371         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
54372         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
54373         * sysdeps/powerpc/test-gettimebase.c: Likewise.
54374         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
54375         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
54376         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
54377         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
54378         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
54379         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
54380         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
54381         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
54382         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
54383         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
54384         * sysdeps/x86_64/dl-tls.h: Likewise.
54385         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
54386         * time/alt_digit.c: Likewise.
54387         * time/era.c: Likewise.
54388         * wcsmbs/tst-c16c32-1.c: Likewise.
54389
54390 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54391
54392         * math/libm-test.inc (struct test_sincos_data): New type.
54393         (RUN_TEST_LOOP_sincos): New macro.
54394         (sincos_test_data): New variable.
54395         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
54396
54397 2013-05-16  Richard Henderson  <rth@redhat.com>
54398
54399         * math/atest-exp2.c (LIMB64): New macro.
54400         (CONSTSZ): New macro.
54401         (mp_exp1, mp_exp_m1, mp_log2): New variables.
54402         (hexdig): Move ...
54403         (print_mpn_fp): ... to function scope.
54404         (read_mpn_hex): Remove.
54405         (get_log2): Remove.
54406         (exp2_mpn): Use mp_log2.
54407         (main): Use mp_exp1.
54408
54409 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54410
54411         * math/libm-test.inc: Remove comment about not testing "inexact"
54412         exceptions.
54413         (INEXACT_EXCEPTION): New macro.
54414         (NO_INEXACT_EXCEPTION): Likewise.
54415         (INVALID_EXCEPTION_OK): Update value.
54416         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
54417         (OVERFLOW_EXCEPTION_OK): Likewise.
54418         (UNDERFLOW_EXCEPTION_OK): Likewise.
54419         (IGNORE_ZERO_INF_SIGN): Likewise.
54420         (ERRNO_UNCHANGED): Likewise.
54421         (ERRNO_EDOM): Likewise.
54422         (ERRNO_ERANGE): Likewise.
54423         (test_exceptions): Handle testing "inexact" exceptions.
54424         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
54425         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
54426         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
54427         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
54428         INEXACT_EXCEPTION.
54429         (rint_towardzero_test_data): Likewise.
54430         (rint_downward_test_data): Likewise.
54431         (rint_upward_test_data): Likewise.
54432
54433         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
54434         with OVERFLOW_EXCEPTION.
54435         (exp10_test_data): Likewise.
54436         (exp2_test_data): Likewise.
54437         (expm1_test_data): Likewise.
54438         (lgamma_test_data): Likewise.
54439         (pow_test_data): Likewise.
54440         (tgamma_test_data): Likewise.
54441         (yn_test_data): Remove duplicate test of overflow.
54442
54443         * math/libm-test.inc (struct test_cc_c_data): New type.
54444         (RUN_TEST_LOOP_cc_c): New macro.
54445         (cpow_test_data): New variable.
54446         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
54447
54448         * math/libm-test.inc (struct test_f_L_data): New type.
54449         (RUN_TEST_LOOP_f_L): New macro.
54450         (llrint_test_data): New variable.
54451         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
54452         (llrint_tonearest_test_data): New variable.
54453         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
54454         (llrint_towardzero_test_data): New variable.
54455         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
54456         (llrint_downward_test_data): New variable.
54457         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
54458         (llrint_upward_test_data): New variable.
54459         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
54460         (llround_test_data): New variable.
54461         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
54462
54463 2013-05-13  Peter Collingbourne  <pcc@google.com>
54464
54465         * math/atest-exp2.c (get_log2): Remove const attribute.
54466
54467 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54468
54469         * math/libm-test.inc (struct test_f_l_data): New type.
54470         (RUN_TEST_LOOP_f_l): New macro.
54471         (lrint_test_data): New variable.
54472         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
54473         (lrint_tonearest_test_data): New variable.
54474         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
54475         (lrint_towardzero_test_data): New variable.
54476         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
54477         (lrint_downward_test_data): New variable.
54478         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
54479         (lrint_upward_test_data): New variable.
54480         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
54481         (lround_test_data): New variable.
54482         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
54483
54484 2013-05-15  Peter Collingbourne  <pcc@google.com>
54485
54486         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
54487         (EXTRACT_WORDS64) Use where appropriate.
54488         (INSERT_WORDS64) Likewise.
54489
54490         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
54491         constraints with x constraints.
54492         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
54493
54494         * malloc/obstack.c (_obstack_compat): Add initializer.
54495
54496 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54497
54498         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
54499         si_trapno and add si_addr_lsb to _sifields.sigfault.
54500         (si_trapno): Remove macro.
54501         (si_addr_lsb): Define new macro.
54502         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54503
54504 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54505
54506         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
54507         instead of TEST_f_l.
54508         (llrint_test_tonearest): Likewise.
54509         (llrint_test_towardzero): Likewise.
54510         (llrint_test_downward): Likewise.
54511         (llrint_test_upward): Likewise.
54512         (llround_test): Likewise.
54513
54514         * math/libm-test.inc (struct test_f_i_data): Add comment.
54515         (RUN_TEST_LOOP_f_b): New macro.
54516         (RUN_TEST_LOOP_f_b_tg): Likewise.
54517         (finite_test_data): New variable.
54518         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
54519         (isfinite_test_data): New variable.
54520         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54521         (isinf_test_data): New variable.
54522         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54523         (isnan_test_data): New variable.
54524         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54525         (isnormal_test_data): New variable.
54526         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54527         (issignaling_test_data): New variable.
54528         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54529         (signbit_test_data): New variable.
54530         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54531
54532         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
54533         with INVALID_EXCEPTION.
54534         (acosh_test_data): Likewise.
54535         (asin_test_data): Likewise.
54536         (atanh_test_data): Likewise.
54537         (fmod_test_data): Likewise.
54538         (log_test_data): Likewise.
54539         (log10_test_data): Likewise.
54540         (log2_test_data): Likewise.
54541         (pow_test_data): Likewise.
54542         (sqrt_test_data): Likewise.
54543         (y0_test_data): Likewise.
54544         (y1_test_data): Likewise.
54545         (yn_test_data): Likewise.
54546
54547         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
54548         function contents.
54549
54550         * math/libm-test.inc (struct test_ff_i_data): New type.
54551         (RUN_TEST_LOOP_ff_i_tg): New macro.
54552         (isgreater_test_data): New variable.
54553         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54554         (isgreaterequal_test_data): New variable.
54555         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54556         (isless_test_data): New variable.
54557         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54558         (islessequal_test_data): New variable.
54559         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54560         (islessgreater_test_data): New variable.
54561         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54562         (isunordered_test_data): New variable.
54563         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54564
54565 2013-05-14  David S. Miller  <davem@davemloft.net>
54566
54567         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54568
54569 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54570
54571         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54572
54573         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54574         extra_test to int.
54575         (struct test_f_i_data): Change type of max_ulp to int.
54576
54577         * math/libm-test.inc (test_ffI_f1_data): New type.
54578         (RUN_TEST_LOOP_ffI_f1): New macro.
54579         (remquo_test_data): New variable.
54580         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54581
54582         * setjmp/tst-setjmp-fp.c: New file.
54583         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54584         (link-libm): New variable.
54585         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54586
54587         * math/libm-test.inc (struct test_f_i_data): New type.
54588         (RUN_TEST_LOOP_f_i): New macro.
54589         (RUN_TEST_LOOP_f_i_tg): Likewise.
54590         (fpclassify_test_data): New variable.
54591         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54592         (ilogb_test_data): New variable.
54593         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54594
54595         * math/libm-test.inc (scalbln_test): Correct function name in END
54596         call.
54597
54598         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54599         (RUN_TEST_LOOP_fI_f1): New macro.
54600         (frexp_test_data): New variable.
54601         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54602
54603         * math/libm-test.inc (struct test_fF_f1_data): New type.
54604         (RUN_TEST_LOOP_fF_f1): New macro.
54605         (modf_test_data): New variable.
54606         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54607
54608         * math/libm-test.inc (struct test_f_f1_data): New type.
54609         (RUN_TEST_LOOP_f_f1): New macro.
54610         (gamma_test_data): New variable.
54611         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54612         (lgamma_test_data): New variable.
54613         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54614
54615 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54616
54617         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54618         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54619         (main): Comment "tls" pseudo-hwcap.
54620
54621 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54622
54623         * math/libm-test.inc (struct test_fl_f_data): New type.
54624         (RUN_TEST_LOOP_fl_f): New variable.
54625         (scalbln_test_data): New variable.
54626         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54627
54628         * math/libm-test.inc (struct test_fi_f_data): New type.
54629         (RUN_TEST_LOOP_fi_f): New macro.
54630         (ldexp_test_data): New variable.
54631         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54632         (scalbn_test_data): New variable.
54633         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54634
54635         * math/libm-test.inc (struct test_c_f_data): New type.
54636         (RUN_TEST_LOOP_c_f): New macro.
54637         (cabs_test_data): New variable.
54638         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54639         (carg_test_data): New variable.
54640         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54641         (cimag_test_data): New variable.
54642         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54643         (creal_test_data): New variable.
54644         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54645
54646         * math/libm-test.inc (struct test_if_f_data): New type.
54647         (RUN_TEST_LOOP_if_f): New macro.
54648         (jn_test_data): New variable.
54649         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54650         (yn_test_data): New variable.
54651         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54652
54653         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54654
54655 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54656
54657         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54658         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54659
54660 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54661
54662         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54663         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54664         (bench-deps): Add bench-timing.h.
54665         * benchtests-bench-skeleton.c: Include bench-timing.h.
54666         (main): Use TIMING_* macros instead of clock_gettime.
54667         * benchtests/bench-timing.h: New file.
54668
54669         [BZ #14582]
54670         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54671         Renamed from _LIB_VERSION.
54672         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54673
54674 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54675
54676         * math/libm-test.inc (struct test_fff_f_data): New type.
54677         (RUN_TEST_LOOP_fff_f): New macro.
54678         (fma_test_data): New variable.
54679         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54680         (fma_towardzero_test_data): New variable.
54681         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54682         (fma_downward_test_data): New variable.
54683         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54684         (fma_upward_test_data): New variable.
54685         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54686
54687         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54688         (struct test_c_c_data): New type.
54689         (RUN_TEST_LOOP_c_c): New macro.
54690         (cacos_test_data): New variable.
54691         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54692         (cacosh_test_data): New variable.
54693         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54694         (casin_test_data): New variable.
54695         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54696         (casinh_test_data): New variable.
54697         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54698         (catan_test_data): New variable.
54699         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54700         (catanh_test_data): New variable.
54701         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54702         (ccos_test_data): New variable.
54703         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54704         (ccosh_test_data): New variable.
54705         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54706         (cexp_test_data): New variable.
54707         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54708         (clog_test_data): New variable.
54709         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54710         (clog10_test_data): New variable.
54711         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54712         (conj_test_data): New variable.
54713         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54714         (cproj_test_data): New variable.
54715         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54716         (csin_test_data): New variable.
54717         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54718         (csinh_test_data): New variable.
54719         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54720         (csqrt_test_data): New variable.
54721         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54722         (ctan_test_data): New variable.
54723         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54724         (ctan_tonearest_test_data): New variable.
54725         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54726         (ctan_towardzero_test_data): New variable.
54727         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54728         (ctan_downward_test_data): New variable.
54729         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54730         (ctan_upward_test_data): New variable.
54731         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54732         (ctanh_test_data): New variable.
54733         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54734         (ctanh_tonearest_test_data): New variable.
54735         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54736         (ctanh_towardzero_test_data): New variable.
54737         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54738         (ctanh_downward_test_data): New variable.
54739         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54740         (ctanh_upward_test_data): New variable.
54741         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54742         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54743         of BUILD_COMPLEX.
54744
54745         * math/libm-test.inc (struct test_ff_f_data): New type.
54746         (struct test_ff_f_data_nexttoward): Likewise.
54747         (RUN_TEST_LOOP_2_f): New macro.
54748         (RUN_TEST_LOOP_ff_f): Likewise.
54749         (atan2_test_data): New variable.
54750         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54751         (copysign_test_data): New variable.
54752         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54753         (fdim_test_data): New variable.
54754         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54755         (fmax_test_data): New variable.
54756         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54757         (fmin_test_data): New variable.
54758         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54759         (fmod_test_data): New variable.
54760         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54761         (hypot_test_data): New variable.
54762         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54763         (nextafter_test_data): New variable.
54764         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54765         (nexttoward_test_data): New variable.
54766         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54767         (pow_test_data): New variable.
54768         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54769         (pow_tonearest_test_data): New variable.
54770         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54771         (pow_towardzero_test_data): New variable.
54772         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54773         (pow_downward_test_data): New variable.
54774         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54775         (pow_upward_test_data): New variable.
54776         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54777         (remainder_test_data): New variable.
54778         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54779         (scalb_test_data): New variable.
54780         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54781         * sysdeps/i386/fpu/libm-test-ulps: Update.
54782
54783 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54784
54785         * math/libm-test.inc (fma_test): Use max_value instead of local
54786         variable fltmax.
54787         (nextafter_test): Likewise.
54788
54789         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54790         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54791         (acos_downward_test_data): New variable.
54792         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54793         (acos_upward_test_data): New variable.
54794         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54795         (acosh_test_data): New variable.
54796         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54797         (asin_test_data): New variable.
54798         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54799         (asin_tonearest_test_data): New variable.
54800         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54801         (asin_towardzero_test_data): New variable.
54802         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54803         (asin_downward_test_data): New variable.
54804         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54805         (asin_upward_test_data): New variable.
54806         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54807         (asinh_test_data): New variable.
54808         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54809         (atan_test_data): New variable.
54810         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54811         (atanh_test_data): New variable.
54812         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54813         (cbrt_test_data): New variable.
54814         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54815         (ceil_test_data): New variable.
54816         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54817         (cos_test_data): New variable.
54818         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54819         (cos_tonearest_test_data): New variable.
54820         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54821         (cos_towardzero_test_data): New variable.
54822         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54823         (cos_downward_test_data): New variable.
54824         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54825         (cos_upward_test_data): New variable.
54826         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54827         (cosh_test_data): New variable.
54828         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54829         (cosh_tonearest_test_data): New variable.
54830         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54831         (cosh_towardzero_test_data): New variable.
54832         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54833         (cosh_downward_test_data): New variable.
54834         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54835         (cosh_upward_test_data): New variable.
54836         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54837         (erf_test_data): New variable.
54838         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54839         (erfc_test_data): New variable.
54840         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54841         (exp_test_data): New variable.
54842         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54843         (exp_tonearest_test_data): New variable.
54844         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54845         (exp_towardzero_test_data): New variable.
54846         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54847         (exp_downward_test_data): New variable.
54848         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54849         (exp_upward_test_data): New variable.
54850         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54851         (exp10_test_data): New variable.
54852         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54853         (exp2_test_data): New variable.
54854         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54855         (expm1_test_data): New variable.
54856         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54857         (fabs_test_data): New variable.
54858         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54859         (floor_test_data): New variable.
54860         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54861         (j0_test_data): New variable.
54862         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54863         (j1_test_data): New variable.
54864         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54865         (log_test_data): New variable.
54866         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54867         (log10_test_data): New variable.
54868         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54869         (log1p_test_data): New variable.
54870         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54871         (log2_test_data): New variable.
54872         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54873         (logb_test_data): New variable.
54874         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54875         (logb_downward_test_data): New variable.
54876         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54877         (nearbyint_test_data): New variable.
54878         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54879         (rint_test_data): New variable.
54880         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54881         (rint_tonearest_test_data): New variable.
54882         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54883         (rint_towardzero_test_data): New variable.
54884         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54885         (rint_downward_test_data): New variable.
54886         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54887         (rint_upward_test_data): New variable.
54888         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54889         (round_test_data): New variable.
54890         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54891         (sin_test_data): New variable.
54892         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54893         (sin_tonearest_test_data): New variable.
54894         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54895         (sin_towardzero_test_data): New variable.
54896         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54897         (sin_downward_test_data): New variable.
54898         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54899         (sin_upward_test_data): New variable.
54900         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54901         (sinh_test_data): New variable.
54902         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54903         (sinh_tonearest_test_data): New variable.
54904         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54905         (sinh_towardzero_test_data): New variable.
54906         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54907         (sinh_downward_test_data): New variable.
54908         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54909         (sinh_upward_test_data): New variable.
54910         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54911         (sqrt_test_data): New variable.
54912         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54913         (tan_test_data): New variable.
54914         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54915         (tan_tonearest_test_data): New variable.
54916         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54917         (tan_towardzero_test_data): New variable.
54918         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54919         (tan_downward_test_data): New variable.
54920         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54921         (tan_upward_test_data): New variable.
54922         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54923         (tanh_test_data): New variable.
54924         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54925         (tgamma_test_data): New variable.
54926         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54927         (trunc_test_data): New variable.
54928         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54929         (y0_test_data): New variable.
54930         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54931         (y1_test_data): New variable.
54932         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54933         (significand_test_data): New variable.
54934         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54935
54936 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54937
54938         [BZ #12387]
54939         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54940
54941 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54942
54943         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54944
54945 2013-05-10  Andreas Jaeger  <aj@suse.de>
54946
54947         [BZ #15448]
54948         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54949         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54950
54951 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54952
54953         * math/gen-libm-test.pl (adjust_arg): New function.
54954         (special_functions): Handle generating output in both functions
54955         and arrays.
54956         (parse_args): Likewise.
54957         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54958         $in_func argument to parse_args.
54959         * math/libm-test.inc (struct test_f_f_data): New type.
54960         (IF_ROUND_INIT_): New macro.
54961         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54962         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54963         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54964         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54965         (ROUND_RESTORE_): Likewise.
54966         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54967         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54968         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54969         (ROUND_RESTORE_FE_UPWARD): Likewise.
54970         (RUN_TEST_LOOP_f_f): New macro.
54971         (acos_test_data): New variable.
54972         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54973         (acos_tonearest_test_data): New variable.
54974         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54975
54976 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54977
54978         * benchtests/bench-skeleton.c (startup): Fix coding style.
54979
54980 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54981
54982         [BZ #6809]
54983         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54984         negative infinity argument.
54985         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54986         negative infinity argument.
54987         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54988         negative infinity argument.
54989         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54990         domain errors.
54991
54992 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54993
54994         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54995         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54996         * iconv/iconv_prog.c (main): Likewise.
54997         * locale/programs/charmap-dir.c (charmap_readdir)
54998         (fopen_uncompressed): Likewise.
54999         * locale/programs/locfile.c (siblings_uncached)
55000         (write_locale_data): Use lstat64 instead of lstat.
55001         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
55002         stat.
55003
55004 2013-05-10  Andreas Jaeger  <aj@suse.de>
55005
55006         [BZ #15395]
55007         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
55008         localization.
55009         Include <locale.h>.
55010
55011 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
55012
55013         * elf/dl-close.c (_dl_close_worker): Add comments.
55014
55015 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
55016
55017         [BZ #15359]
55018         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
55019         high part of pi/2.
55020         (__ieee754_rem_pio2l): Update comments.
55021
55022         [BZ #15429]
55023         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
55024         high part of pi/2.
55025         (__ieee754_rem_pio2l): Update comments.
55026
55027         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
55028         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
55029
55030         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
55031         M_PI_4l.
55032
55033         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
55034         (M_PI_34_LOG10El): Likewise.
55035         (M_PI2_LOG10El): Likewise.
55036         (M_PI4_LOG10El): Likewise.
55037         (M_PI_LOG10El): Likewise.
55038
55039 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55040
55041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55042
55043 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
55044
55045         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
55046         (MINUS_ZERO_INIT): Likewise.
55047         (PLUS_INFTY_INIT): Likewise.
55048         (MINUS_INFTY_INIT): Likewise.
55049         (QNAN_VALUE_INIT): Likewise.
55050         (MAX_VALUE_INIT): Likewise.
55051         (MIN_VALUE_INIT): Likewise.
55052         (MIN_SUBNORM_VALUE_INIT): Likewise.
55053         (plus_zero): Initialize with PLUS_ZERO_INIT.
55054         (minus_zero): Initialize with MINUS_ZERO_INIT.
55055         (plus_infty): Initialize with PLUS_INFTY_INIT.
55056         (minus_infty): Initialize with MINUS_INFTY_INIT.
55057         (qnan_value): Initialize with QNAN_VALUE_INIT.
55058         (max_value): Initialize with MAX_VALUE_INIT.
55059         (min_value): Initialize with MIN_VALUE_INIT.
55060         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
55061
55062         * math/libm-test.inc (RUN_TEST_if_f): New macro.
55063         (jn_test): Use TEST_if_f instead of TEST_ff_f.
55064         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
55065         (yn_test): Use TEST_if_f instead of TEST_ff_f.
55066
55067         * math/libm-test.inc (RUN_TEST_f_f): New macro.
55068         (RUN_TEST_2_f): Likewise.
55069         (RUN_TEST_ff_f): Likewise.
55070         (RUN_TEST_fi_f): Likewise.
55071         (RUN_TEST_fl_f): Likewise.
55072         (RUN_TEST_fff_f): Likewise.
55073         (RUN_TEST_c_f): Likewise.
55074         (RUN_TEST_f_f1): Likewise.
55075         (RUN_TEST_fF_f1): Likewise.
55076         (RUN_TEST_fI_f1): Likewise.
55077         (RUN_TEST_ffI_f1): Likewise.
55078         (RUN_TEST_c_c): Likewise.
55079         (RUN_TEST_cc_c): Likewise.
55080         (RUN_TEST_f_i): Likewise.
55081         (RUN_TEST_f_i_tg): Likewise.
55082         (RUN_TEST_ff_i_tg): Likewise.
55083         (RUN_TEST_f_b): Likewise.
55084         (RUN_TEST_f_b_tg): Likewise.
55085         (RUN_TEST_f_l): Likewise.
55086         (RUN_TEST_f_L): Likewise.
55087         (RUN_TEST_sincos): Likewise.
55088         * math/gen-libm-test.pl (new_test): Take new argument to indicate
55089         whether to show exceptions.  Do not include ");\n" in return
55090         value.
55091         (special_functions): Output call to RUN_TEST_sincos instead of
55092         check_float calls.  Update calls to new_test.
55093         (parse_args): Output call to single RUN_TEST_* macro instead of
55094         check_* calls and other assignments.  Update calls to new_test.
55095
55096         [BZ #2546]
55097         [BZ #2560]
55098         [BZ #5159]
55099         [BZ #15426]
55100         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
55101         input to result for tgamma overflow.
55102         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
55103         (gamma_coeff): New variable.
55104         (NCOEFF): New macro.
55105         (gamma_positive): New function.
55106         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
55107         underflow here.  Use gamma_positive instead of exp (lgamma) for
55108         other arguments.
55109         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
55110         (gamma_coeff): New variable.
55111         (NCOEFF): New macro.
55112         (gammaf_positive): New function.
55113         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
55114         underflow here.  Use gamma_positive instead of exp (lgamma) for
55115         other arguments.
55116         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
55117         (gamma_coeff): New variable.
55118         (NCOEFF): New macro.
55119         (gammal_positive): New function.
55120         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
55121         underflow here.  Use gamma_positive instead of exp (lgamma) for
55122         other arguments.
55123         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
55124         (gamma_coeff): New variable.
55125         (NCOEFF): New macro.
55126         (gammal_positive): New function.
55127         (__ieee754_gammal_r): Handle positive infinity, overflow and
55128         underflow here.  Handle NaN the same as positive infinity.  Remove
55129         check x < 0xffffffff for negative integers.  Use gamma_positive
55130         instead of exp (lgamma) for other arguments.
55131         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
55132         (gamma_coeff): New variable.
55133         (NCOEFF): New macro.
55134         (gammal_positive): New function.
55135         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
55136         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
55137         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
55138         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
55139         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
55140         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
55141         * sysdeps/generic/math_private.h (__gamma_productf): New
55142         prototype.
55143         (__gamma_product): Likewise.
55144         (__gamma_productl): Likewise.
55145         * math/Makefile (libm-calls): Add gamma_product.
55146         * math/libm-test.inc (tgamma_test): Add more tests.
55147         * sysdeps/i386/fpu/libm-test-ulps: Update.
55148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55149
55150 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
55151
55152         * benchtests/bench-skeleton.c (main): Preheat CPU.
55153
55154 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
55155
55156         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
55157
55158 2013-05-07  Roland McGrath  <roland@hack.frob.com>
55159
55160         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
55161         and _dl_skip_args_internal.
55162
55163 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
55164
55165         * manual/message.texi (Message Translation): Talk about users.
55166         Message to key mapping impacts design.
55167
55168 2013-05-06  Roland McGrath  <roland@hack.frob.com>
55169
55170         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
55171
55172         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
55173
55174         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
55175         * sysdeps/wordsize-64/glob64.c: ... here.
55176
55177         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
55178         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
55179         New macros.
55180
55181         * debug/getlogin_r_chk.c: Moved to ...
55182         * login/getlogin_r_chk.c: ... here.
55183         * debug/Makefile (routines): Move getlogin_r_chk to ...
55184         * login/Makefile (routines): ... here.
55185         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
55186         * login/Versions (libc: GLIBC_2.4): ... here.
55187
55188         * io/poll.c (__poll): Renamed from poll.
55189         Add libc_hidden_def.
55190         (poll): Define as weak alias.
55191
55192         * debug/ptsname_r_chk.c: Moved to ...
55193         * login/ptsname_r_chk.c: ... here.
55194         * debug/Makefile (routines): Move ptsname_r_chk to ...
55195         * login/Makefile (routines): ... here.
55196         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
55197         * login/Versions (libc: GLIBC_2.4): ... here.
55198
55199         * posix/getlogin.c: Moved to ...
55200         * login/getlogin.c: ... here.
55201         * posix/getlogin_r.c: Moved to ...
55202         * login/getlogin_r.c: ... here.
55203         * posix/getlogin_r.c: Moved to ...
55204         * login/getlogin_r.c: ... here.
55205         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
55206         * login/Makefile (routines): ... here.
55207         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
55208         * login/Versions (libc: GLIBC_2.0): ... here.
55209
55210         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
55211         (setrlimit): Define as weak alias.
55212
55213         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
55214         Call __ names for open, ftruncate, and close.
55215         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
55216         (truncate): Define as weak alias.
55217
55218 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
55219
55220         * math/gen-libm-test.pl (parse_args): Initialize x before each
55221         test of frexp, modf and remquo.
55222
55223         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
55224         test signgam value.
55225
55226 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55227
55228         [BZ #15418]
55229         [BZ #15419]
55230         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
55231         internal tests.
55232         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
55233
55234 2013-05-06  Roland McGrath  <roland@hack.frob.com>
55235
55236         * elf/dl-writev.h: New file.
55237         * elf/dl-misc.c: Include it.
55238         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
55239         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
55240
55241 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
55242
55243         * math/libm-test.inc (noXFails): Remove variable.
55244         (noXPasses): Likewise.
55245         (BUILD_COMPLEX_INT): Remove macro.
55246         (print_screen): Remove xfail argument.
55247         (print_screen_max_error): Likewise.
55248         (update_stats): Likewise.
55249         (print_max_error): Likewise.  Update calls to other affected
55250         functions.
55251         (print_complex_max_error): Likewise.
55252         (test_single_exception): Update calls to print_screen.
55253         (test_single_errno): Likewise.
55254         (check_float_internal): Remove xfail argument.  Update calls to
55255         other affected functions.
55256         (check_float): Likewise.
55257         (check_complex): Likewise.
55258         (check_int): Likewise.
55259         (check_long): Likewise.
55260         (check_bool): Likewise.
55261         (check_longlong): Likewise.
55262         (main): Don't print noXFails and noXPasses.
55263         * math/gen-libm-test.pl (top level): Don't mention expected
55264         failure handling in comment.
55265         (new_test): Don't handle expected failures.
55266         (parse_args): Don't mention expected failure handling in comment.
55267         (generate_testfile): Don't handle expected failures.
55268         (parse_ulps): Likewise.
55269         (print_ulps_file): Likewise.
55270         (get_failure): Remove function.
55271         (output_test): Don't handle expected failures.
55272         * make/README.libm-test: Don't mention expected failure handling.
55273
55274         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
55275         (minus_zero): Likewise.
55276         (plus_infty): Likewise.
55277         (minus_infty): Likewise.
55278         (qnan_value): Likewise.
55279         (max_value): Likewise.
55280         (min_value): Likewise.
55281         (min_subnorm_value): Likewise.
55282         (initialize): Do not initialize those variables dynamically.
55283
55284 2013-05-03  Roland McGrath  <roland@hack.frob.com>
55285
55286         * io/open.c (__open_2): Moved to ...
55287         * io/open_2.c: ... this new file.
55288         * io/open64.c (__open64_2): Moved to ...
55289         * io/open64_2.c: ... this new file.
55290         * io/openat.c (__openat_2): Moved to ...
55291         * io/openat_2.c: ... this new file.
55292         * io/openat64.c (__openat64_2): Moved to ...
55293         * io/openat64_2.c: ... this new file.
55294         * io/Makefile (routines): Add them.
55295         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
55296         * sysdeps/unix/sysv/linux/open_2.c: File removed.
55297         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
55298         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
55299         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
55300         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
55301         (__openat64): Add hidden_ver.
55302         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
55303         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
55304
55305         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
55306         Separately conditionalize setting of GLRO(dl_sysinfo) so
55307         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
55308         as well, but the actual setting is only under [NEED_DL_SYSINFO].
55309
55310 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55311
55312         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
55313         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
55314         definition.
55315         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
55316         * sysdeps/unix/sysv/linux/powerpc/init-first.c
55317         (_libc_vdso_platform_setup): Add __vdso_time initialization.
55318         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
55319         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
55320
55321 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
55322
55323         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
55324         test signgam value.
55325
55326         * math/libm-test.inc (hypot_test): Do not use
55327         IGNORE_ZERO_INF_SIGN.
55328
55329 2013-05-03  Andreas Jaeger  <aj@suse.de>
55330
55331         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
55332         Linux 3.9.
55333         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
55334         (PF_MAX): Adjust for VSOCK change.
55335
55336 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55337
55338         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55339
55340 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
55341
55342         [BZ #15264]
55343         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
55344         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
55345         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
55346
55347 2013-05-02  David S. Miller  <davem@davemloft.net>
55348
55349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55350
55351 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
55352
55353         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
55354
55355 2013-05-01  Roland McGrath  <roland@hack.frob.com>
55356
55357         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
55358
55359 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
55360
55361         [BZ #14952]
55362         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
55363         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55364         Use __attribute__ ((__gnu_inline__)).
55365         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55366         Don't use __attribute__ ((__gnu_inline__)).
55367
55368 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
55369
55370         [BZ #15423]
55371         * math/s_catan.c (__catan): Handle small real or imaginary part of
55372         input specially to avoid spurious underflow.
55373         * math/s_catanf.c (__catanf): Likewise.
55374         * math/s_catanh.c (__catanh): Likewise.
55375         * math/s_catanhf.c (__catanhf): Likewise.
55376         * math/s_catanhl.c (__catanhl): Likewise.
55377         * math/s_catanl.c (__catanl): Likewise.
55378         * math/libm-test.inc (catan_test): Add more tests.
55379         (catanh_test): Likewise.
55380         * sysdeps/i386/fpu/libm-test-ulps: Update.
55381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55382
55383 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55384
55385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55386
55387 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
55388
55389         [BZ #15416]
55390         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
55391         accurately for denominator in atan2.
55392         * math/s_catanf.c (__catanf): Likewise.
55393         * math/s_catanh.c (__catanh): Likewise.
55394         * math/s_catanhf.c (__catanhf): Likewise.
55395         * math/s_catanhl.c (__catanhl): Likewise.
55396         * math/s_catanl.c (__catanl): Likewise.
55397         * math/libm-test.inc (catan_test): Add more tests.
55398         (catanh_test): Likewise.
55399         * sysdeps/i386/fpu/libm-test-ulps: Update.
55400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55401
55402 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55403
55404         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
55405
55406         * benchtests/Makefile (bench): Remove slow benchmarks.
55407         * benchtests/atan-inputs: Add slow benchmark inputs.
55408         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
55409         (BENCH_FUNC): Accept variant offset.
55410         (VARIANT): Define.
55411         * benchtests/bench-skeleton.c (main): Run benchmark for each
55412         variant.
55413         * benchtests/cos-inputs: Add slow benchmark inputs.
55414         * benchtests/exp-inputs: Likewise.
55415         * benchtests/pow-inputs: Likewise.
55416         * benchtests/sin-inputs: Likewise.
55417         * benchtests/slowatan-inputs: Remove.
55418         * benchtests/slowatan.c: Remove.
55419         * benchtests/slowcos-inputs: Remove.
55420         * benchtests/slowcos.c: Remove.
55421         * benchtests/slowexp-inputs: Remove.
55422         * benchtests/slowexp.c: Remove.
55423         * benchtests/slowpow-inputs: Remove.
55424         * benchtests/slowpow.c: Remove.
55425         * benchtests/slowsin-inputs: Remove.
55426         * benchtests/slowsin.c: Remove.
55427         * benchtests/slowtan-inputs: Remove.
55428         * benchtests/slowtan.c: Remove.
55429         * benchtests/tan-inputs: Add slow benchmark inputs.
55430         * scripts/bench.pl: Parse comments and directives.
55431
55432         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
55433         in CPPFLAGS.
55434         ($(objpfx)bench-%.c): Remove *-ITER.
55435         * benchtests/bench-modf.c: Remove definition of ITER.
55436         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
55437         (main): Loop for DURATION seconds instead of fixed number of
55438         iterations.
55439         * scripts/bench.pl: Don't expect iterations in parameters.
55440
55441 2013-04-29  Roland McGrath  <roland@hack.frob.com>
55442
55443         * io/fchdir.c (__fchdir): Renamed from fchdir.
55444         (fchdir): Define as weak alias.
55445
55446 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55447
55448         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
55449         (ERRNO_EDOM): Likewise.
55450         (ERRNO_ERANGE): Likewise.
55451         (noErrnoTests): New variable.
55452         (init_max_error): Set errno to 0.
55453         (test_single_errno): New function.
55454         (test_errno): Likewise.
55455         (check_float_internal): Call test_errno.  Set errno to 0.
55456         (check_complex): Refer to errno tests in comment.
55457         (check_int): Call test_errno.  Set errno to 0.
55458         (check_long): Likewise.
55459         (check_bool): Likewise.
55460         (check_longlong): Likewise.
55461         (cos_test): Use ERRNO_* flags for errno tests instead of
55462         check_int.
55463         (expm1_test): Likewise.
55464         (fmod_test): Likewise.
55465         (ilogb_test): Likewise.
55466         (lgamma_test): Likewise.
55467         (pow_test): Likewise.
55468         (remainder_test): Likewise.
55469         (sin_test): Likewise.
55470         (tan_test): Likewise.
55471         (yn_test): Likewise.
55472         (initialize): Set errno to 0.
55473         (main): Print number of errno tests.
55474         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
55475
55476 2013-04-29  Andreas Jaeger  <aj@suse.de>
55477
55478         [BZ #15084]
55479         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
55480         and RES_USEVC.
55481
55482         [BZ #15085]
55483         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
55484         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
55485         unimplemented.
55486
55487         [BZ #15380]
55488         * stdlib/random.c (__initstate): Return NULL if
55489         __initstate fails.
55490
55491         [BZ #15086]
55492         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
55493         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
55494         RES_SNGLKUPREOP.
55495
55496 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55497
55498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55499
55500 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55501
55502         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
55503         of individual tests.
55504         (casin_test): Likewise.
55505         (casinh_test): Likewise.
55506
55507 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
55508
55509         [BZ #15409]
55510         * math/s_catan.c (__catan): Handle arguments with large real or
55511         imaginary part separately without squaring.
55512         * math/s_catanf.c (__catanf): Likewise.
55513         * math/s_catanh.c (__catanh): Likewise.
55514         * math/s_catanhf.c (__catanhf): Likewise.
55515         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55516         and redefine.
55517         (__catanhl): Handle arguments with large real or imaginary part
55518         separately without squaring.
55519         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55520         and redefine.
55521         (__catanl): Handle arguments with large real or imaginary part
55522         separately without squaring.
55523         * math/libm-test.inc (catan_test): Add more tests.
55524         (catanh_test): Likewise.
55525         * sysdeps/i386/fpu/libm-test-ulps: Update.
55526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55527
55528 2013-04-27  Andreas Jaeger  <aj@suse.de>
55529
55530         [BZ #15007]
55531         * stdlib/stdlib.h: Update guards for qecvt.
55532         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
55533         <stdlib.h>.
55534
55535 2013-04-27  Allan McRae  <allan@archlinux.org>
55536
55537         * sysdeps/i386/fpu/libm-test-ulps: Update.
55538
55539 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
55540
55541         [BZ #15406]
55542         * math/s_catan.c: Include <float.h>.
55543         (__catan): Ensure underflow exception occurs for underflowed
55544         result.
55545         * math/s_catanf.c: Include <float.h>.
55546         (__catanf): Ensure underflow exception occurs for underflowed
55547         result.
55548         * math/s_catanh.c: Include <float.h>.
55549         (__catanh): Ensure underflow exception occurs for underflowed
55550         result.
55551         * math/s_catanhf.c: Include <float.h>.
55552         (__catanhf): Ensure underflow exception occurs for underflowed
55553         result.
55554         * math/s_catanhl.c: Include <float.h>.
55555         (__catanhl): Ensure underflow exception occurs for underflowed
55556         result.
55557         * math/s_catanl.c: Include <float.h>.
55558         (__catanl): Ensure underflow exception occurs for underflowed
55559         result.
55560         * math/libm-test.inc (catan_test): Add more tests.
55561         (catanh_test): Likewise.
55562
55563         [BZ #15405]
55564         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55565         underflowed result.
55566         * math/s_ccoshf.c (__ccoshf): Likewise.
55567         * math/s_ccoshl.c (__ccoshl): Likewise.
55568         * math/s_csin.c (__csin): Likewise.
55569         * math/s_csinf.c (__csinf): Likewise.
55570         * math/s_csinh.c (__csinh): Likewise.
55571         * math/s_csinhf.c (__csinhf): Likewise.
55572         * math/s_csinhl.c (__csinhl): Likewise.
55573         * math/s_csinl.c (__csinl): Likewise.
55574         * math/libm-test.inc (ccos_test): Add more tests.
55575         (ccosh_test): Likewise.
55576         (csin_test): Likewise.
55577         (csinh_test): Likewise.
55578
55579 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55580
55581         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55582         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55583         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55584         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55585         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55586         powerpc/power5+/fpu folders.
55587         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55588
55589
55590 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55591
55592         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55593
55594 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55595
55596         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55597         additions to variable.
55598         [$(config-machine) = x86_64] (modules-names): Likewise.
55599         ($(objpfx)tst-audit3): Remove dependency.
55600         ($(objpfx)tst-audit3.out): Likewise.
55601         ($(objpfx)tst-audit4): Likewise.
55602         ($(objpfx)tst-audit4.out): Likewise.
55603         ($(objpfx)tst-audit5): Likewise.
55604         ($(objpfx)tst-audit5.out): Likewise.
55605         ($(objpfx)tst-audit6): Likewise.
55606         ($(objpfx)tst-audit6.out): Likewise.
55607         ($(objpfx)tst-audit7): Likewise.
55608         ($(objpfx)tst-audit7.out): Likewise.
55609         (tst-audit3-ENV): Remove variable.
55610         (tst-audit4-ENV): Likewise.
55611         (tst-audit5-ENV): Likewise.
55612         (tst-audit6-ENV): Likewise.
55613         (tst-audit7-ENV): Likewise.
55614         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55615         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55616         addition to variable.
55617         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55618         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55619         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55620         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55621         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55622         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55623         tst-audit3, tst-audit4 and tst-audit5.
55624         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55625         tst-audit6 and tst-audit7.
55626         [$(subdir) = elf] (modules-names): Add audit modules for those
55627         tests.
55628         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55629         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55630         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55631         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55632         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55633         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55634         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55635         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55636         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55637         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55638         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55639         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55640         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55641         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55642         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55643         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55644         Likewise.
55645         [$(subdir) = elf && $(config-cflags-avx) = yes]
55646         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55647         [$(subdir) = elf && $(config-cflags-avx) = yes]
55648         (CFLAGS-tst-auditmod4a.c): Likewise.
55649         [$(subdir) = elf && $(config-cflags-avx) = yes]
55650         (CFLAGS-tst-auditmod4b.c): Likewise.
55651         [$(subdir) = elf && $(config-cflags-avx) = yes]
55652         (CFLAGS-tst-auditmod6b.c): Likewise.
55653         [$(subdir) = elf && $(config-cflags-avx) = yes]
55654         (CFLAGS-tst-auditmod6c.c): Likewise.
55655         [$(subdir) = elf && $(config-cflags-avx) = yes]
55656         (CFLAGS-tst-auditmod7b.c): Likewise.
55657         * elf/tst-audit3.c: Move to ...
55658         * sysdeps/x86_64/tst-audit3.c: ... here.
55659         * elf/tst-audit4.c: Move to ...
55660         * sysdeps/x86_64/tst-audit4.c: ... here.
55661         * elf/tst-audit5.c: Move to ...
55662         * sysdeps/x86_64/tst-audit5.c: ... here.
55663         * elf/tst-audit6.c: Move to ...
55664         * sysdeps/x86_64/tst-audit6.c: ... here.
55665         * elf/tst-audit7.c: Move to ...
55666         * sysdeps/x86_64/tst-audit7.c: ... here.
55667         * elf/tst-auditmod3a.c: Move to ...
55668         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55669         * elf/tst-auditmod3b.c: Move to ...
55670         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55671         * elf/tst-auditmod4a.c: Move to ...
55672         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55673         * elf/tst-auditmod4b.c: Move to ...
55674         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55675         * elf/tst-auditmod5a.c: Move to ...
55676         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55677         * elf/tst-auditmod5b.c: Move to ...
55678         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55679         * elf/tst-auditmod6a.c: Move to ...
55680         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55681         * elf/tst-auditmod6b.c: Move to ...
55682         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55683         * elf/tst-auditmod6c.c: Move to ...
55684         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55685         * elf/tst-auditmod7a.c: Move to ...
55686         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55687         * elf/tst-auditmod7b.c: Move to ...
55688         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55689
55690 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55691
55692         [BZ #15366]
55693         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55694         define unconditionally.
55695         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55696         define unconditionally.
55697         (INT8_C, INT16_C, etc.): Likewise.
55698
55699 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55700
55701         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55702         __ehdr_start with hidden visibility.
55703
55704         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55705
55706 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55707
55708         * math/libm-test.inc (cos_test): Use accurate hex constants.
55709         (sincost_test): Likewise.
55710
55711 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55712
55713         * math/libm-test.inc (catan_test): Add more tests.
55714         (catanh_test): Likewise.
55715
55716         * math/s_catanf.c (__catanf): Use suffixed floating-point
55717         constants.
55718         * math/s_catanhf.c (__catanhf): Likewise.
55719         * math/s_catanhl.c (__catanhl): Likewise.
55720         * math/s_catanl.c (__catanl): Likewise.
55721
55722         [BZ #15394]
55723         * math/s_catan.c (__catan): Calculate imaginary part of result
55724         with log1p not log unless computing log of number close to 0.
55725         * math/s_catanf.c (__catanf): Likewise.
55726         * math/s_catanl.c (__catanl): Likewise.
55727         * math/s_catanh.c (__catanh): Calculate real part of result with
55728         log1p not log unless computing log of number close to 0.
55729         * math/s_catanhf.c (__catanhf): Likewise.
55730         * math/s_catanhl.c (__catanhl): Likewise.
55731         * math/libm-test.inc (catan_test): Add more tests.
55732         (catanh_test): Likewise.
55733         * sysdeps/i386/fpu/libm-test-ulps: Update.
55734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55735
55736 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55737
55738         * benchtests/Makefile: Mention files in which fast and slow
55739         paths of math functions are implemented.
55740
55741 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55742
55743         * sysdeps/posix/timespec_get.c: New file.
55744
55745 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55746
55747         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55748         POWER.
55749         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55750         for POWER.
55751         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55752         powerpc/power5/fpu folders.
55753         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55754         * benchtests/Makefile: Add modf testcase.
55755         * benchtests/bench-modf.c: New file: Benchmark test for mo
55756
55757 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55758
55759         [BZ #14888]
55760         * time/Makefile (tests): Add tst-strptime-whitespace.
55761         * time/strptime_l.c (get_number): Use ISSPACE.
55762         (__strptime_internal): Likewise.
55763         * time/tst-strptime-whitespace.c: New test case.
55764
55765 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55766
55767         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55768         member.
55769         (_nss_files_init): Set it here.
55770
55771 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55772
55773         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55774         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55775         unsigned.
55776
55777 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55778
55779         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55780
55781 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55782
55783         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55784         size just once.
55785
55786 2013-04-21  David S. Miller  <davem@davemloft.net>
55787
55788         * po/ru.po: Update Russion translation from translation project.
55789
55790 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55791
55792         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55793         and setfsgid.
55794
55795 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55796
55797         * configure.in: Remove i386 configure warning. Remove i386 case.
55798         * configure: Regenerate.
55799         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55800         Add example to error message.
55801         * sysdeps/i386/configure: Regenerate.
55802
55803 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55804
55805         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55806         slowtan.
55807         * benchtests/cos-inputs: New file.
55808         * benchtests/slowcos-inputs: New file.
55809         * benchtests/slowcos.c: New file.
55810         * benchtests/slowtan-inputs: New file.
55811         * benchtests/slowtan.c: New file.
55812         * benchtests/tan-inputs: New file.
55813
55814 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55815
55816         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55817         considered kosher.
55818
55819 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55820
55821         * benchtests/Makefile: Include cppflags-iterator.mk to add
55822         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55823
55824         * Makefile.in (bench-clean): New target.
55825         * benchtests/Makefile (bench-clean): Likewise.
55826
55827 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55828
55829         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55830
55831 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55832
55833         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55834
55835 2013-04-15  Andreas Schwab  <schwab@suse.de>
55836
55837         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55838         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55839         * nscd/pwdcache.c (cache_addpw): Likewise.
55840         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55841         more than recsize.
55842
55843 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55844
55845         * benchtests/Makefile (bench): Write all output to
55846         bench-out.tmp together.
55847
55848 2013-04-15  Andreas Schwab  <schwab@suse.de>
55849
55850         * nscd/nscd.c (main): Don't fork again after closing files.
55851
55852 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55853
55854         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55855
55856         * benchtests/Rules (bench-deps): Collect dependencies into a
55857         single variable.  Add Makefile to dependencies.
55858         ($(objpfx)bench-%.c): Depend on bench-deps.
55859
55860 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55861             Xavier Roche  <roche+kml2@exalead.com>
55862
55863         [BZ #15361]
55864         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55865         just that it's a file descriptor.
55866         * manual/llio.texi (Synchronizing AIO Operations): Update description
55867         for EBADF error from aio_fsync.
55868
55869 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55870
55871         * Rules (bench): Move target definition...
55872         * benchtests/Makefile: ... here.
55873
55874 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55875
55876         * math/libm-test.inc (cos_test): Fix PI/2 test.
55877         (sincos_test): Likewise.
55878         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55879         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55880
55881 2013-04-11  Andreas Schwab  <schwab@suse.de>
55882
55883         [BZ #13988]
55884         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55885         accept exponent character only when digits were seen.
55886         * stdio-common/Makefile (tests): Add bug26.
55887         * stdio-common/bug26.c: New file.
55888
55889         [BZ #14293]
55890         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55891         non-freeable.
55892
55893 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55894
55895         * Makeconfig (rtld-prefix): Define built linker prefix.
55896         * Rules (run-bench): Use it.
55897         * math/Makefile (run-regen-ulps): Likewise.
55898
55899         * Rules (bench): Remove eval.
55900
55901 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55902             Roland McGrath  <roland@hack.frob.com>
55903             Ondrej Bilka  <neleai@seznam.cz>
55904
55905         [BZ #15346]
55906         * time/getdate.c: Include ctype.h and alloca.h.
55907         (__getdate_r): Trim leading and trailing spaces of input.
55908         * time/tst-getdate.c (tests): Add tests with leading and
55909         trailing spaces.
55910
55911 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55912
55913         [BZ #14280]
55914         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55915         when computing value.
55916
55917 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55918
55919         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55920         Use testrun.sh to run libm tests.
55921
55922         [BZ #15309]
55923         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55924
55925 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55926
55927         [BZ #15264]
55928         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55929
55930 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55931
55932         * Makefile.in (regen-ulps): New target.
55933         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55934         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55935         [ifneq (no,$(PERL)] (regen-ulps): New target.
55936         [ifeq (no,$(PERL)] (regen-ulps): New target.
55937         * math/libm-test.inc (ulps_file_name): Define.
55938         (output_dir): New variable.
55939         (options): Add "output-dir" option.
55940         (parse_opt): Handle 'o' case.
55941         (main): If output_dir is non-NULL use it as a prefix
55942         otherwise use "".
55943         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55944
55945 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55946
55947         [BZ #10060, #10062]
55948         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55949         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55950         fail configure if __sync_val_compare_and_swap is not inlined.
55951         * sysdeps/i386/configure: Regenerate.
55952         * configure.in: Build for i686 when configured for i386.
55953         * configure: Regenerate.
55954         * README: Remove i386 reference.
55955
55956 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55957
55958         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55959         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55960
55961 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55962
55963         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55964         (lmsnanval): New variables.
55965         (F): Add conversion tests.
55966         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55967         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55968
55969         * stdio-common/tstdiomisc.c (F): Properly collect individual
55970         tests' results.
55971
55972         [BZ #14686, #15336]
55973         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55974         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55975         Instead, use input NaN values or generate a qNaN by arithmetic
55976         operation.  Also fix bugs to comply with the standard.
55977         * math/libm-test.inc (remainder_test): Add more tests.
55978
55979         [BZ #15335, #15342]
55980         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55981         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55982         input NaN values or generate a qNaN by arithmetic operation.
55983
55984         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55985         unreachable code.
55986
55987         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55988         definitions.
55989
55990 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55991
55992         [BZ #14478]
55993         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55994         underflowed result.
55995         * math/s_cexpf.c (__cexpf): Likewise.
55996         * math/s_cexpl.c (__cexpl): Likewise.
55997         * math/libm-test.inc (cexp_test): Add more tests.
55998
55999 2013-04-03  Andreas Schwab  <schwab@suse.de>
56000
56001         [BZ #15330]
56002         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
56003         order arrays from heap if bigger than alloca cutoff.
56004
56005 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
56006
56007         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
56008         (SNAN_TESTS_double): Refer to GCC PR56831.
56009         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
56010         GCC PR56828.
56011
56012 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
56013
56014         * Rules (bench): Move bench.out after the run is complete.
56015
56016         * Rules (bench): Echo currently running benchmark.
56017
56018         * benchtests/Makefile (bench): Add atan and slowatan.
56019         * benchtests/atan-inputs: New file.
56020         * benchtests/slowatan-inputs: New file.
56021         * benchtests/slowatan.c: New file.
56022
56023         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
56024         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
56025         its value.
56026
56027         [BZ #15305]
56028         * sysdeps/unix/sysv/linux/kernel-features.h
56029         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
56030         __ASSUME_XFS_RESTRICTED_CHOWN.
56031         * sysdeps/unix/sysv/linux/pathconf.c
56032         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
56033         Save and restore errno.
56034
56035 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
56036
56037         [BZ #15327]
56038         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
56039         arguments using __kernel_casinh.
56040         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
56041         arguments using __kernel_casinhf.
56042         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
56043         arguments using __kernel_casinhl.
56044         * math/libm-test.inc (cacosh_test): Add more tests.
56045         * sysdeps/i386/fpu/libm-test-ulps: Update.
56046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56047
56048 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
56049
56050         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
56051         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
56052
56053         * bench/Makefile (bench): Add sin and slowsin.
56054         * benchtests/sin-inputs: New file.
56055         * benchtests/slowsin-inputs: New file.
56056         * benchtests/slowsin.c: New file.
56057
56058         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
56059         (bench): Add slowexp and slowpow.
56060         (exp-ITER): Increase iterations.
56061         (pow-ITER): Likewise.
56062         * benchtests/exp-inputs: Change input.
56063         * benchtests/pow-inputs: Likewise.
56064         * benchtests/slowexp-inputs: New file.
56065         * benchtests/slowexp.c: New file.
56066         * benchtests/slowpow-inputs: New file.
56067         * benchtests/slowpow.c: New file.
56068
56069 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56070
56071         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
56072         instructions.
56073         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
56074         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
56075         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
56076         * benchtests/Makefile: Add rint benchtest.
56077         * benchtests/rint-inputs: Input for rint benchtest.
56078
56079 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
56080
56081         * Versions.def (libm): Add GLIBC_2.18.
56082         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
56083         hidden libm prototypes.
56084         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
56085         * math/Makefile (libm-calls): Add s_issignaling.
56086         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
56087         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
56088         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
56089         declaration.
56090         * math/math.h [__USE_GNU] (issignaling): New macro.
56091         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
56092         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
56093         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
56094         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
56095         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
56096         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
56097         * manual/arith.texi (issignaling): New section.
56098         * manual/libm-err-tab.pl (@all_functions): Update comment.
56099         * math/gen-libm-test.pl (parse_args): Apply special handling for
56100         issignaling.
56101         * math/libm-test.inc (print_float, issignaling_test): New
56102         functions.
56103         (check_float_internal): Add issignaling checks.
56104         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
56105         default definition.
56106         * sysdeps/powerpc/math-tests.h: New file.
56107         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
56108         tests.
56109         * math/test-snan.c (TEST_FUNC): Likewise.
56110
56111 2013-03-30  David S. Miller  <davem@davemloft.net>
56112
56113         * po/de.po: Update from translation team.
56114
56115 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
56116
56117         [BZ #10357]
56118         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56119         imaginary part less than 1.0 and real part less than 0.5
56120         specially.
56121         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56122         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56123         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
56124         (cacos_test): Add more tests.
56125         (casin_test): Likewise.
56126         (casinh_test): Likewise.
56127         * sysdeps/i386/fpu/libm-test-ulps: Update.
56128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56129
56130 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
56131
56132         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
56133         ONE with its value.
56134
56135         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
56136         (__pow_mp): Replace ONE and MONE with their values.
56137         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56138         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
56139         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
56140         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
56141         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56142         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56143
56144         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
56145
56146         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
56147         (__pow_mp): Replace ZERO and MZERO with their values.
56148         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
56149         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56150         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
56151         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
56152         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56153         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
56154         (__sqr): Likewise.
56155
56156         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
56157
56158         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
56159
56160 2013-03-28  Roland McGrath  <roland@hack.frob.com>
56161
56162         * include/stdlib.h [!SHARED] (__call_tls_dtors):
56163         Declare with __attribute__ ((weak)).
56164         * stdlib/exit.c (__libc_atexit) [!SHARED]:
56165         Call __call_tls_dtors only if it's not NULL.
56166
56167 2013-03-28  Roland McGrath  <roland@hack.frob.com>
56168
56169         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
56170         didn't do it already, then set _dl_phdr and _dl_phnum based on the
56171         magic __ehdr_start linker symbol if it's defined.
56172         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
56173         them up here if it was already done.
56174
56175         * elf/dl-support.c (_dl_phdr): Make pointer to const.
56176         (_dl_aux_init): Use const in cast when setting it.
56177         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
56178         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
56179         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
56180
56181         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
56182         Declare them here.
56183         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
56184         * csu/libc-tls.c: Nor here.
56185         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
56186
56187         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
56188         (__libc_message): Never call vsyslog.
56189
56190 2013-03-28  Alan Modra  <amodra@gmail.com>
56191
56192         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
56193         Define as empty.
56194         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
56195         Likewise.
56196
56197 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56198
56199         [BZ #15214]
56200         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
56201         underflow.
56202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56203
56204 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56205
56206         [BZ #15304]
56207         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
56208         Don't add gid passed as argument.
56209
56210         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
56211
56212 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
56213
56214         [BZ #15307]
56215         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56216         imaginary part between 1.0 and 1.5 and real part less than 0.5
56217         specially.
56218         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56219         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56220         * math/libm-test.inc (cacos_test): Add more tests.
56221         (casin_test): Likewise.
56222         (casinh_test): Likewise.
56223         * sysdeps/i386/fpu/libm-test-ulps: Update.
56224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56225
56226 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56227
56228         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
56229         constants.
56230         (norm): Likewise.
56231         (denorm): Likewise.
56232         (__dbl_mp): Likewise.
56233         (add_magnitudes): Likewise.
56234         (sub_magnitudes): Likewise.
56235         (__add): Likewise.
56236         (__sub): Likewise.
56237         (__mul): Likewise.
56238         (__sqr): Likewise.
56239         (__inv): Likewise.
56240         (__dvd): Likewise.
56241
56242         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
56243         commented code.
56244         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
56245         (__dubcos): Likewise.
56246         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
56247         (__ieee754_acos): Likewise.
56248         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
56249         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
56250         (__exp1): Likewise.
56251         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56252         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
56253         (log1): Likewise.
56254         (my_log2): Likewise.
56255         (checkint): Likewise.
56256         * sysdeps/ieee754/dbl-64/e_remainder.c
56257         (__ieee754_remainder): Likewise.
56258         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56259         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
56260         (bsloww): Likewise.
56261         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56262
56263         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56264         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
56265         MANTISSA_STORE_T to store computations on mantissa.  Use
56266         macros for rounding and division.
56267         (denorm): Likewise.
56268         (__dbl_mp): Likewise.
56269         (add_magnitudes): Likewise.
56270         (sub_magnitudes): Likewise.
56271         (__mul): Likewise.
56272         (__sqr): Likewise.
56273         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56274         powers of two in terms of TWOPOW macro.
56275         (mp_no): Make type of mantissa as MANTISSA_T.
56276         [!RADIXI]: Define RADIXI.
56277         [!TWO52]: Define TWO52.
56278         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56279
56280 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56281
56282         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
56283         llroundl symbol when building for PPC32.
56284
56285 2013-03-24  Mark H Weaver  <mhw@netris.org>
56286
56287         * manual/arith.texi (Normalization Functions): Fix prototypes for
56288         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
56289
56290 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56291
56292         [BZ #13889]
56293         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
56294         high value to check if expl overflow.
56295         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
56296         to check for underflow and overflow.
56297         * math/libm-test.inc: Add exp test.
56298
56299 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
56300
56301         [BZ #11120]
56302         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
56303         with NOT_IN_libc.
56304
56305 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56306
56307         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
56308         symbol.
56309
56310 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
56311
56312         * math/gen-libm-test.pl (parse_args, special_functions): Properly
56313         wrap blocks consisting of several statements.
56314
56315         * sysdeps/generic/math-tests.h: New file.
56316         * sysdeps/i386/fpu/math-tests.h: Likewise.
56317         * math/test-snan.c: Include it.
56318         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
56319
56320 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56321
56322         [BZ #15285]
56323         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
56324         (__ieee754_j0l): Do not improve calculations using cos of twice
56325         input for inputs above LDBL_MAX / 2.0L.
56326         (__ieee754_y0l): Likewise.
56327         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
56328         (__ieee754_j1l): Do not improve calculations using cos of twice
56329         input for inputs above LDBL_MAX / 2.0L.
56330         (__ieee754_y1l): Likewise.
56331         * math/libm-test.inc (j0_test): Add another test.
56332         (j1_test): Likewise.
56333         (y0_test): Likewise.
56334         (y1_test): Likewise.
56335         * sysdeps/i386/fpu/libm-test-ulps: Update.
56336
56337 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56338
56339         * Rules ($(objpfx)bench-%.c): Include code from a C source
56340         file.
56341
56342 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56343
56344         [BZ #15287]
56345         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56346         imaginary part 1.0 and real part less than 0.5 specially.
56347         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56348         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56349         * math/libm-test.inc (cacos_test): Add more tests.
56350         (casin_test): Likewise.
56351         (casinh_test): Likewise.
56352         * sysdeps/i386/fpu/libm-test-ulps: Update.
56353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56354
56355 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56356
56357         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
56358         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
56359
56360 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
56361
56362         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
56363         * config.make.in (config-cflags-sse4): Remove variable.
56364         (config-cflags-avx): Likewise.
56365         (config-cflags-sse2avx): Likewise.
56366         (config-cflags-novzeroupper): Likewise.
56367         (config-asflags-i686): Likewise.
56368         (have-mfma4): Likewise.
56369         (have-as-vis3): Likewise.
56370         (MIG): Likewise.
56371         * configure.in (MIG): Do not AC_SUBST.
56372         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
56373         (libc_cv_cc_sse4): Do not AC_SUBST.
56374         (libc_cv_cc_avx): Likewise.
56375         (libc_cv_cc_sse2avx): Likewise.
56376         (libc_cv_cc_novzeroupper): Likewise.
56377         (libc_cv_cc_fma4): Likewise.
56378         (libc_cv_as_i686): Likewise.
56379         (libc_cv_sparc_as_vis3): Likewise.
56380         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
56381         LIBC_CONFIG_VAR.
56382         (config-asflags-i686): Likewise.
56383         (config-cflags-avx): Likewise.
56384         (config-cflags-sse2avx): Likewise.
56385         (have-mfma4): Likewise.
56386         (config-cflags-novzeroupper): Likewise.
56387         * sysdeps/mach/configure.in (MIG): Likewise.
56388         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
56389         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
56390         LIBC_CONFIG_VAR.
56391         (config-cflags-avx): Likewise.
56392         (config-cflags-sse2avx): Likewise.
56393         (have-mfma4): Likewise.
56394         (config-cflags-novzeroupper): Likewise.
56395         * configure: Regenerated.
56396         * sysdeps/i386/configure: Likewise.
56397         * sysdeps/mach/configure: Likewise.
56398         * sysdeps/sparc/configure: Likewise.
56399         * sysdeps/x86_64/configure: Likewise.
56400
56401 2013-03-20  Roland McGrath  <roland@hack.frob.com>
56402
56403         [BZ #14812]
56404         * locale/programs/localedef.c (options): Put N_ translation marker
56405         on argument names, not just descriptions.
56406
56407 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56408
56409         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
56410
56411 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
56412
56413         [BZ #14176]
56414         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
56415
56416 2013-03-19  Roland McGrath  <roland@hack.frob.com>
56417
56418         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
56419         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
56420         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
56421         [!BEFORE_ABORT] (before_abort): New function.
56422         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
56423         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
56424         (writev_for_fatal): New function.
56425         (WRITEV_FOR_FATAL): New macro; call that.
56426         (backtrace_and_maps): New function.
56427         (BEFORE_ABORT): New macro; call that.
56428         (struct str_list): Type removed.
56429         (__libc_message, __libc_fatal): Functions removed.
56430         Include <sysdeps/posix/libc_fatal.c> instead.
56431
56432 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
56433
56434         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
56435         constants.
56436         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
56437         double constants.
56438
56439 2013-03-19  Andreas Schwab  <schwab@suse.de>
56440
56441         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
56442         * sysdeps/gnu/configure: Regenerate.
56443
56444         * configure.in: Substitute libc_cv_rtlddir.
56445         * configure: Regenerate.
56446         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
56447         * Makeconfig (rtlddir, inst_rtlddir): New variables.
56448         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
56449         * elf/Makefile (install-others, CFLAGS-interp.c)
56450         (ldso_install, common-ldd-rewrite): Likewise.
56451         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
56452         $(inst_slibdir)/$(rtld-installed-name).
56453         * scripts/rellns-sh: Add -p option.
56454         * Makerules (make-shlib-link): Use rellns-sh to get relative name
56455         for source.
56456
56457 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56458
56459         * manual/nptl.texi: Renamed to ...
56460         * manual/threads.texi: ... this.
56461         * manual/Makefile (chapters): Update.
56462
56463 2013-03-18  Roland McGrath  <roland@hack.frob.com>
56464
56465         [BZ #14812]
56466         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
56467         on argument names, not just descriptions.
56468         * malloc/memusagestat.c (options): Likewise.
56469         * nss/getent.c (options): Likewise.
56470
56471 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
56472
56473         [BZ #14812]
56474         * iconv/iconv_prog.c (options): Put N_ translation marker
56475         on argument names, not just descriptions.
56476         * iconv/iconvconfig.c (options): Likewise.
56477
56478 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
56479
56480         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
56481         implementation which is faster on all x86_64 architectures.
56482         Tested on AMD, Intel Nehalem, SNB, IVB.
56483         * sysdeps/x86_64/strnlen.S: Likewise.
56484
56485         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
56486         Remove all multiarch strlen and strnlen versions.
56487         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56488         Remove strlen and strnlen related parts.
56489
56490         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
56491         Inline strlen part.
56492         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
56493
56494         * sysdeps/x86_64/multiarch/strlen.S: Remove.
56495         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
56496         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
56497         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
56498         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56499         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
56500
56501 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
56502
56503         * manual/memory.texi (Malloc Tunable Parameters):
56504         Sort parameters alphabetically. Add comments for missing entries.
56505
56506 2013-03-17  David S. Miller  <davem@davemloft.net>
56507
56508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56509
56510 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
56511
56512         [BZ #15283]
56513         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
56514         for arguments at most half maximum finite value.
56515         * math/libm-test.inc (j0_test): Add more tests.
56516         (j1_test): Likewise.
56517         (y0_test): Likewise.
56518         (y1_test): Likewise.
56519         * sysdeps/i386/fpu/libm-test-ulps: Update.
56520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56521
56522         [BZ #14155]
56523         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
56524         1 / x and functions P and Q for arguments above 0x1p256L.
56525         (__ieee754_y0l): Likewise.
56526         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
56527         (__ieee754_y1l): Likewise.
56528         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
56529         (j1_test): Likewise.
56530         (y0_test): Likewise.
56531         (y1_test): Likewise.
56532
56533 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
56534
56535         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
56536         variable.
56537
56538 2013-03-15  Roland McGrath  <roland@hack.frob.com>
56539
56540         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
56541         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
56542         zero since it's initialized to EXEC_PAGESIZE.
56543
56544         * sysdeps/unix/sysv/linux/ldsodefs.h
56545         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
56546         * sysdeps/generic/ldsodefs.h: ... here.
56547
56548 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
56549
56550         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56551
56552         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56553         math/test-snan.c.
56554         * math/test-snan.c: Renamed from
56555         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56556         * math/Makefile (tests): Add test-snan.
56557         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56558         test-powerpc-snan.
56559
56560         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56561         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56562         functions.
56563         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56564         __builtin_nan family of functions.
56565         * math/libm-test.inc (initialize): Initialize qnan_value with
56566         __builtin_nan family of functions.
56567         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56568         Remove variables.
56569         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56570         Remove functions.
56571         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56572         storage class.  Initialize qNaN_var and sNaN_var with
56573         __builtin_nan and __builtin_nans families of functions,
56574         respectively.
56575
56576         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56577         (sqrt_test): Remove duplicate test with qNaN input.
56578         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56579         (round_test, signbit_test, significand_test): Note missing +/-Inf
56580         as well as qNaN tests.
56581
56582         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56583         qNaN_var.  Fix a few strings, too.
56584         * math/libm-test.inc (nan_value): Rename to qnan_value.
56585         * math/gen-libm-test.pl (%beautify): Adjust to that.
56586         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56587         * math/test-misc.c (main): Likewise.
56588         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56589         to __qnan_bytes, and __qnan_union, respectively.
56590         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56591         Likewise.
56592         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56593         and lqnanval, respectively.
56594         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56595         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56596         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56597         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56598
56599         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56600         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56601         doubles.
56602
56603         * math/test-misc.c (main): Fix copy'n'pastos.
56604         * misc/tst-efgcvt.c (special): Likewise.
56605
56606         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56607         Remove declarations.
56608
56609 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56610
56611         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56612         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56613         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56614         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56615
56616 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56617
56618         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56619         macro to return vdso values correctly in IFUNC implementations.
56620         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56621         Optimization by using IFUNC.
56622
56623 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56624             Richard Henderson  <rth@redhat.com>
56625             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56626
56627         * Makefile.in (bench): New target.
56628         * NEWS: Mention the benchmark framework.
56629         * Rules (bench): Likewise.
56630         (binaries-bench): Generate binaries for functions to
56631         benchmark.
56632         * benchtests/Makefile: New makefile for benchmark tests.
56633         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56634         programs.
56635         * benchtests/exp-inputs: New input file for EXP function.
56636         * benchtests/pow-inputs: New input file for POW function.
56637         * scripts/bench.pl: New script to generate source files for
56638         benchmark programs.
56639
56640 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56641
56642         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56643         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56644         computations on mantissa.  Use macros for rounding and
56645         division.
56646         (denorm): Likewise.
56647         (__dbl_mp): Likewise.
56648         (add_magnitudes): Likewise.
56649         (sub_magnitudes): Likewise.
56650         (__mul): Likewise.
56651         (__sqr): Likewise.
56652         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56653         powers of two in terms of TWOPOW macro.
56654         (mp_no): Make type of mantissa as MANTISSA_T.
56655         [!RADIXI]: Define RADIXI.
56656         [!TWO52]: Define TWO52.
56657         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56658
56659         * manual/nptl.texi (cindex): Modify threads to pthreads.
56660
56661 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56662
56663         * sysdeps/x86_64/preconfigure: Regenerated.
56664
56665 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56666
56667         [BZ #14155]
56668         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56669         0x1p28 and above.
56670         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56671         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56672         0x1p28 and above.
56673         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56674         * math/libm-test.inc (j0_test): Do not allow one spurious
56675         underflow exception.
56676         (y1_test): Likewise.
56677
56678 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56679
56680         * manual/Makefile (chapters): Add nptl.
56681         * manual/debug.texi (Debugging Support): Add link to Threads
56682         chapter.
56683         * manual/nptl.texi: New file.
56684
56685         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56686
56687 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56688
56689         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56690         for non-NULL pointer before the memory validity test. Pointed
56691         out by Holger Brunck <holger.brunck@keymile.com>.
56692
56693 2013-03-13  Andreas Schwab  <schwab@suse.de>
56694
56695         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56696         instead of .os.
56697
56698 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56699
56700         * timezone/zic.c: Update from tzcode 2013b.
56701
56702 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56703
56704         * manual/install.texi (Configuring and compiling):
56705         Mention i686 and i586.
56706         * INSTALL: Regenerate.
56707
56708 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56709
56710         * sysdeps/init_array/elf-init.c: New file.
56711         * csu/elf-init.c
56712         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56713         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56714
56715         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56716         __gmon_start__ as global, but as static with a .preinit_array pointer.
56717         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56718         * sysdeps/init_array/crti.S: New file, empty except for comments.
56719         * sysdeps/init_array/crtn.S: Likewise.
56720
56721 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56722
56723         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56724         definining bcopy.
56725         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56726         Remove Prefer_SSE_for_memop.
56727         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56728         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56729         HAS_PREFER_SSE_FOR_MEMOP.
56730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56731         memset-x86-64.
56732         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56733         Remove bzero, memset ifunc support.
56734         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56735         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56736         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56737         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56738
56739 2013-03-11  Andreas Schwab  <schwab@suse.de>
56740
56741         [BZ #15234]
56742         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56743         by SHLIB_COMPAT.
56744         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56745         (GLIBC_2.16): Remove pthread_atfork.
56746
56747 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56748
56749         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56750         (ptestcases.h): Likewise.
56751
56752 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56753
56754         * Makeconfig ($(common-objpfx)config.status): Depend on
56755         sysdeps/*/preconfigure{,.in} too.
56756
56757 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56758
56759         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56760         (__free_hook): Use void * instead of __malloc_ptr_t.
56761         (__malloc_hook): Likewise.
56762         (__realloc_hook): Likewise.
56763         (__memalign_hook): Likewise.
56764         (__after_morecore_hook): Likewise.
56765         * malloc/arena.c (save_malloc_hook): Likewise.
56766         (save_free_hook): Likewise.
56767         * malloc/hooks.c (malloc_hook_ini): Likewise.
56768         (realloc_hook_ini): Likewise.
56769         (memalign_hook_ini): Likewise.
56770         * malloc/malloc.c (malloc_hook_ini): Likewise.
56771         (realloc_hook_ini): Likewise.
56772         (memalign_hook_ini): Likewise.
56773         (__free_hook): Likewise.
56774         (__malloc_hook): Likewise.
56775         (__realloc_hook): Likewise.
56776         (__memalign_hook): Likewise.
56777         (__libc_malloc): Likewise.
56778         (__libc_free): Likewise.
56779         (__libc_realloc): Likewise.
56780         (__libc_memalign): Likewise.
56781         (__libc_valloc): Likewise.
56782         (__libc_pvalloc): Likewise.
56783         (__libc_calloc): Likewise.
56784         (__posix_memalign): Likewise.
56785         * malloc/morecore.c (__sbrk): Likewise.
56786         (__default_morecore): Likewise.
56787
56788         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56789
56790         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56791         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56792         __malloc_ptrdiff_t.
56793
56794         * malloc/malloc.h (__malloc_size_t): Remove macro.
56795         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56796         __malloc_size_t.
56797         (old_memalign_hook): Likewise.
56798         (old_realloc_hook): Likewise.
56799         (struct hdr): Likewise.
56800         (flood): Likewise.
56801         (mallochook): Likewise.
56802         (memalignhook): Likewise.
56803         (reallochook): Likewise.
56804         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56805         (tr_old_realloc_hook): Likewise.
56806         (tr_old_memalign_hook): Likewise.
56807         (tr_mallochook): Likewise.
56808         (tr_reallochook): Likewise.
56809         (tr_memalignhook): Likewise.
56810
56811 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56812
56813         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56814         default_ldbl_pack and using as default implementation.
56815         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56816         implementation.
56817         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56818         redundant definition.
56819         (ldbl_insert_mantissa): Likewise.
56820         (ldbl_canonicalize): Likewise.
56821         (ldbl_nearbyint): Likewise.
56822         (ldbl_pack): Rename to ldbl_pack_ppc.
56823         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56824         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56825         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56826
56827 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56828
56829         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56830         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56831         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56832         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56833         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56834         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56835         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56836         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56837
56838 2013-03-07  Andreas Jaeger  <aj@suse.de>
56839
56840         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56841         bits/mman-linux.h.
56842
56843 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56844
56845         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56846         Include mpa.h and declare __MPEXP.
56847         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56848         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56849         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56850         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56851         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56852         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56853         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56854
56855         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56856         (__slowpow): Use long double EXPL and LOGL functions to
56857         compute POW.
56858         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56859         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56860         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56861         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56862         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56863         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56864
56865         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56866         intermediate variable to calculate exponent.
56867         (__sqr): Likewise.
56868         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56869         Likewise.
56870         (__sqr): Likewise.
56871
56872         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56873         [!NO__SQR]: Define __sqr.
56874         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56875         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56876         sysdeps/ieee754/dbl-64/mpa.c.
56877         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56878
56879         [BZ #12723]
56880         * posix/Makefile (tests): Add tst-pathconf.
56881         * posix/tst-pathconf.c: New test case.
56882         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56883         _PC_PIPE_BUF.
56884         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56885
56886 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56887
56888         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56889
56890 2013-03-06  Andreas Jaeger  <aj@suse.de>
56891
56892         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56893         definition via __MAP_ANONYMOUS.
56894
56895         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56896         it's not part of Linux headers.
56897
56898         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56899         (MAP_HUGE_MASK): Define.
56900
56901         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56902         Define.
56903         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56904         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56905         Define.
56906         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56907         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56908         Define.
56909         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56910         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56911         Define.
56912         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56913
56914         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56915         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56916         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56917         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56918         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56919         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56920
56921         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56922         Handle f2fs.
56923
56924         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56925         Handle f2fs and efivarfs.
56926
56927         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56928         f2fs.
56929
56930         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56931         (EFIVARFS_MAGIC): Add.
56932         (F2FS_LINK_MAX): Add.
56933
56934 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56935
56936         * stdio-common/vfprintf.c: Replace __builtin_expect with
56937         __glibc_unlikely.
56938
56939 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56940
56941         [BZ #13550]
56942         * sysdeps/generic/bp-sym.h: Remove file.
56943         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56944         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56945         <bp-sym.h> and <bp-asm.h>.
56946         (__longjmp): Don't use BP_SYM.
56947         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56948         and <bp-asm.h>.
56949         (memcpy): Don't use BP_SYM.
56950         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56951         <bp-sym.h> and <bp-asm.h>.
56952         (memcpy): Don't use BP_SYM.
56953         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56954         <bp-asm.h>.
56955         (memcpy): Don't use BP_SYM.
56956         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56957         <bp-asm.h>.
56958         (memset): Don't use BP_SYM.
56959         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56960         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56961         (__bzero): Don't use BP_SYM.
56962         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56963         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56964         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56965         <bp-sym.h> and <bp-asm.h>.
56966         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56967         pointers.
56968         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56969         <bp-sym.h> and <bp-asm.h>.
56970         (memcpy): Don't use BP_SYM.
56971         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56972         <bp-sym.h> and <bp-asm.h>.
56973         (memset): Don't use BP_SYM.
56974         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56975         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56976         (__bzero): Don't use BP_SYM.
56977         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56978         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56979         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56980         <bp-sym.h> and <bp-asm.h>.
56981         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56982         pointers.
56983         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56984         <bp-sym.h> and <bp-asm.h>.
56985         (memcpy): Don't use BP_SYM.
56986         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56987         <bp-sym.h> and <bp-asm.h>.
56988         (memset): Don't use BP_SYM.
56989         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56990         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56991         (__bzero): Don't use BP_SYM.
56992         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56993         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56994         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56995         <bp-sym.h> and <bp-asm.h>.
56996         (__memchr): Don't use BP_SYM.
56997         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56998         <bp-sym.h> and <bp-asm.h>.
56999         (memcmp): Don't use BP_SYM.  Remove comment about bounded
57000         pointers.
57001         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
57002         <bp-sym.h> and <bp-asm.h>.
57003         (memcpy): Don't use BP_SYM.
57004         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
57005         <bp-sym.h> and <bp-asm.h>.
57006         (__mempcpy): Don't use BP_SYM.
57007         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
57008         <bp-sym.h> and <bp-asm.h>.
57009         (__memrchr): Don't use BP_SYM.
57010         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
57011         <bp-sym.h> and <bp-asm.h>.
57012         (memset): Don't use BP_SYM.
57013         (__bzero): Likewise.
57014         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
57015         <bp-sym.h> and <bp-asm.h>.
57016         (__rawmemchr): Don't use BP_SYM.
57017         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
57018         <bp-sym.h> and <bp-asm.h>.
57019         (__STRCMP): Don't use BP_SYM.
57020         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
57021         <bp-sym.h> and <bp-asm.h>.
57022         (strchr): Don't use BP_SYM.
57023         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
57024         <bp-sym.h> and <bp-asm.h>.
57025         (__strchrnul): Don't use BP_SYM.
57026         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
57027         <bp-sym.h> and <bp-asm.h>.
57028         (strlen): Don't use BP_SYM.
57029         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
57030         <bp-sym.h> and <bp-asm.h>.
57031         (strncmp): Don't use BP_SYM.  Remove comment about bounded
57032         pointers.
57033         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
57034         <bp-sym.h> and <bp-asm.h>.
57035         (__strnlen): Don't use BP_SYM.
57036         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
57037         <bp-sym.h> and <bp-asm.h>.
57038         (__GI__setjmp): Don't use BP_SYM.
57039         (_setjmp): Likewise.
57040         (__sigsetjmp): Likewise.
57041         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
57042         (L(start_addresses)): Don't use BP_SYM.
57043         (_start): Likewise.
57044         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
57045         <bp-asm.h>.
57046         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
57047         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
57048         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57049         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57050         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
57051         <bp-asm.h>.
57052         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
57053         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
57054         about bounded pointers.
57055         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57056         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57057         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
57058         <bp-asm.h>.
57059         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
57060         about bounded pointers.  Remove GKM FIXME comments.
57061         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57062         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
57063         <bp-asm.h>.
57064         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
57065         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
57066         Remove GKM FIXME comments.
57067         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57068         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57069         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
57070         <bp-asm.h>.
57071         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
57072         about bounded pointers.  Remove GKM FIXME comment.
57073         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
57074         and <bp-asm.h>.
57075         (strncmp): Don't use BP_SYM.  Remove comment about bounded
57076         pointers.
57077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
57078         <bp-sym.h> and <bp-asm.h>.
57079         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
57081         <bp-sym.h> and <bp-asm.h>.
57082         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57083         comment.
57084
57085 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
57086
57087         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
57088         call free(NULL).
57089
57090 2013-03-05  David S. Miller  <davem@davemloft.net>
57091
57092         * po/es.po: Update from translation team.
57093
57094 2013-03-05  Andreas Jaeger  <aj@suse.de>
57095
57096         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
57097         <bits/mman-linux.h>.
57098         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57099         is fine.
57100         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
57101         <bits/mman-linux.h> to end of file.
57102         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57103         is fine.
57104         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
57105         <bits/mman-linux.h> to end of file.
57106         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57107         is fine.
57108         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
57109         <bits/mman-linux.h> to end of file.
57110
57111         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
57112         (MCL_CURRENT, MCL_FUTURE): Define here.
57113
57114 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57115
57116         [BZ #15232]
57117         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
57118         attribute_hidden.
57119         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57120
57121 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57122
57123         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
57124         fourth parameter needed for rt_sigprocmask syscall.
57125         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
57126         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
57127         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
57128         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
57129         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
57130         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
57131
57132 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
57133
57134         [BZ #13550]
57135         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
57136         comment about bounded pointers.
57137         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
57138         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
57139
57140 2013-03-04  Andreas Jaeger  <aj@suse.de>
57141
57142         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
57143         common definitions.
57144
57145         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
57146         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
57147         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
57148         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
57149         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
57150         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
57151
57152 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57153
57154         [BZ #15055]
57155         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
57156         __ieee754_sqrl instead of __sqrl.
57157
57158 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
57159
57160         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
57161         * sysdeps/powerpc/fpu_control.h: ... here.
57162         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
57163         * sysdeps/powerpc/bits/fenvinline.h: ... here.
57164         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
57165         * sysdeps/powerpc/bits/mathinline.h: ... here.
57166
57167 2013-03-01  Roland McGrath  <roland@hack.frob.com>
57168
57169         * elf/dl-hwcaps.c (_dl_important_hwcaps):
57170         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
57171         to just [NEED_DL_SYSINFO_DSO].
57172         * elf/dl-support.c: Likewise.
57173         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
57174         * elf/rtld.c (dl_main): Likewise.
57175         * elf/setup-vdso.h (setup_vdso): Likewise.
57176         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
57177         * sysdeps/unix/sysv/linux/dl-sysdep.c
57178         (_dl_discover_osversion): Likewise.
57179
57180 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
57181
57182         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
57183         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
57184
57185 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
57186
57187         * NEWS: Mention libm performance improvements and non-x86 PI
57188         futex support.
57189
57190         * csu/libc-start.c (__pthread_initialize_minimal): Change
57191         function arguments.
57192         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
57193
57194 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
57195
57196         [BZ #13550]
57197         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
57198         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
57199         <bp-sym.h> and <bp-asm.h>.
57200         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57201         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
57202         and <bp-asm.h>.
57203         (memcpy): Don't use BP_SYM.
57204         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
57205         <bp-asm.h>.
57206         (__mpn_add_n): Don't use BP_SYM.
57207         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
57208         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
57209         and <bp-asm.h>.
57210         (__mpn_addmul_1): Don't use BP_SYM.
57211         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57212         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
57213         <bp-sym.h>.
57214         (_setjmp): Don't use BP_SYM.
57215         (__novmx_setjmp): Likewise.
57216         (__GI__setjmp): Likewise.
57217         (__vmx_setjmp): Likewise.
57218         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
57219         <bp-sym.h>.
57220         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
57221         (__bzero): Don't use BP_SYM.
57222         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57223         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57224         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
57225         <bp-sym.h> and <bp-asm.h>.
57226         (memcpy): Don't use BP_SYM.
57227         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
57228         <bp-sym.h> and <bp-asm.h>.
57229         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57230         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
57231         <bp-sym.h> and <bp-asm.h>.
57232         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57233         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
57234         <bp-asm.h>.
57235         (__mpn_lshift): Don't use BP_SYM.
57236         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57237         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
57238         <bp-asm.h>.
57239         (memset): Don't use BP_SYM.
57240         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57241         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57242         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
57243         <bp-asm.h>.
57244         (__mpn_mul_1): Don't use BP_SYM.
57245         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57246         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
57247         <bp-sym.h> and <bp-asm.h>.
57248         (memcmp): Don't use BP_SYM.
57249         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
57250         <bp-sym.h> and <bp-asm.h>.
57251         (memcpy): Don't use BP_SYM.
57252         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
57253         <bp-sym.h> and <bp-asm.h>.
57254         (memset): Don't use BP_SYM.
57255         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
57256         <bp-sym.h> and <bp-asm.h>.
57257         (strncmp): Don't use BP_SYM.
57258         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
57259         <bp-sym.h> and <bp-asm.h>.
57260         (memcpy): Don't use BP_SYM.
57261         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
57262         <bp-sym.h> and <bp-asm.h>.
57263         (memset): Don't use BP_SYM.
57264         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
57265         <bp-sym.h> and <bp-asm.h>.
57266         (__memchr): Don't use BP_SYM.
57267         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
57268         <bp-sym.h> and <bp-asm.h>.
57269         (memcmp): Don't use BP_SYM.
57270         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
57271         <bp-sym.h> and <bp-asm.h>.
57272         (memcpy): Don't use BP_SYM.
57273         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
57274         <bp-sym.h> and <bp-asm.h>.
57275         (__mempcpy): Don't use BP_SYM.
57276         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
57277         <bp-sym.h> and <bp-asm.h>.
57278         (__memrchr): Don't use BP_SYM.
57279         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
57280         <bp-sym.h> and <bp-asm.h>.
57281         (memset): Don't use BP_SYM.
57282         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
57283         <bp-sym.h> and <bp-asm.h>.
57284         (__rawmemchr): Don't use BP_SYM.
57285         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
57286         <bp-sym.h> and <bp-asm.h>.
57287         (__STRCMP): Don't use BP_SYM.
57288         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
57289         <bp-sym.h> and <bp-asm.h>.
57290         (strchr): Don't use BP_SYM.
57291         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
57292         <bp-sym.h> and <bp-asm.h>.
57293         (__strchrnul): Don't use BP_SYM.
57294         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
57295         <bp-sym.h> and <bp-asm.h>.
57296         (strlen): Don't use BP_SYM.
57297         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
57298         <bp-sym.h> and <bp-asm.h>.
57299         (strncmp): Don't use BP_SYM.
57300         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
57301         <bp-sym.h> and <bp-asm.h>.
57302         (__strnlen): Don't use BP_SYM.
57303         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
57304         <bp-asm.h>.
57305         (__mpn_rshift): Don't use BP_SYM.
57306         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57307         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
57308         <bp-sym.h> and <bp-asm.h>.
57309         (__sigsetjmp): Don't use BP_SYM.
57310         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
57311         (L(start_addresses)): Don't use BP_SYM.
57312         (_start): Likewise.
57313         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
57314         <bp-asm.h>.
57315         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
57316         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57317         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57318         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
57319         <bp-asm.h>.
57320         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
57321         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57322         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57323         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
57324         <bp-asm.h>.
57325         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57326         comments.
57327         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57328         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
57329         <bp-asm.h>.
57330         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
57331         FIXME comments.
57332         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57333         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57334         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
57335         <bp-asm.h>.
57336         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57337         comment.
57338         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
57339         and <bp-asm.h>.
57340         (strncmp): Don't use BP_SYM,
57341         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
57342         <bp-asm.h>.
57343         (__mpn_sub_n): Don't use BP_SYM.
57344         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57345         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
57346         and <bp-asm.h>.
57347         (__mpn_submul_1): Don't use BP_SYM.
57348         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
57350         <bp-sym.h> and <bp-asm.h>.
57351         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
57353         <bp-sym.h> and <bp-asm.h>.
57354         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57355         comment.
57356
57357 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57358
57359         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
57360         Use ZK to minimize writes to Z.
57361         (sub_magnitudes): Simplify code a bit.
57362         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
57363         Use ZK to minimize writes to Z.
57364         (sub_magnitudes): Simplify code a bit.
57365
57366 2013-02-27  Roland McGrath  <roland@hack.frob.com>
57367
57368         * csu/gmon-start.c: Add special exception to license text.
57369
57370 2013-02-27  Richard Henderson  <rth@redhat.com>
57371
57372         * scripts/config.guess: Update from config.git.
57373         * scripts/config.sub: Likewise.
57374
57375 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57376
57377         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
57378
57379         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
57380
57381         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
57382
57383         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
57384
57385         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
57386
57387 2013-02-26  Roland McGrath  <roland@hack.frob.com>
57388
57389         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
57390         [$(build-shared = yes].
57391
57392 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57393
57394         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
57395         (__mul): Reduce iterations for calculating mantissa.
57396
57397         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
57398         MPTWO.
57399         (__mpranred): Likewise.
57400
57401         [BZ #15160]
57402         * malloc/memusagestat.c (main): Draw graphs for heap and stack
57403         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
57404
57405 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
57408         Define __attribute__.
57409
57410 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57411
57412         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
57413         unused.
57414         * posix/regex_internal.h (__attribute): Remove.
57415         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
57416         (re_string_context_at): Likewise.
57417         (bitset_not): Use __attribute__ and mark function as possibly
57418         unused.
57419         (bitset_merge): Likewise.
57420         (bitset_mask): Likewise.
57421         (re_string_char_size_at): Likewise.
57422         (re_string_wchar_at): Likewise.
57423         (re_string_elem_size_at): Likewise.
57424
57425 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57426
57427         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
57428         code.
57429         (cc32): Likewise.
57430
57431         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
57432         (__acr): Likewise.
57433         (__cpy): Likewise.
57434         (norm): Likewise.
57435         (denorm): Likewise.
57436         (__dbl_mp): Likewise.
57437         (add_magnitudes): Likewise.
57438         (sub_magnitudes): Likewise.
57439         (__mul): Likewise.
57440         (__inv): Likewise.
57441
57442         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
57443         style.
57444
57445         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
57446         style.
57447
57448         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
57449         code.
57450
57451         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
57452         up changes with default code.
57453         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
57454         Likewise.
57455
57456 2013-02-24  Allan McRae  <allan@archlinux.org>
57457
57458         * manual/socket.texi (The Internet Namespace): Order menu items
57459         to match that in the file.
57460
57461         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
57462         node listing of the info page menu.
57463
57464 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
57465
57466         [BZ #13550]
57467         * sysdeps/i386/bp-asm.h: Remove file.
57468         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57469         (PARMS): Do not use macros from bp-asm.h.
57470         (S1): Likewise.
57471         (S2): Likewise.
57472         (SIZE): Likewise.
57473         (__mpn_add_n): Do not use BP_SYM
57474         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
57475         "bp-asm.h".
57476         (PARMS): Do not use macros from bp-asm.h.
57477         (S1): Likewise.
57478         (SIZE): Likewise.
57479         (__mpn_addmul_1): Do not use BP_SYM
57480         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
57481         "bp-asm.h".
57482         (PARMS): Do not use macros from bp-asm.h.
57483         (SIGMSK): Likewise.
57484         (_setjmp): Likewise.  Do not use BP_SYM.
57485         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
57486         "bp-asm.h".
57487         (PARMS): Do not use macros from bp-asm.h.
57488         (SIGMSK): Likewise.
57489         (setjmp): Likewise.  Do not use BP_SYM.
57490         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
57491         "bp-asm.h".
57492         (PARMS): Do not use macros from bp-asm.h.
57493         (__frexp): Do not use BP_SYM.
57494         (frexp): Likewise.
57495         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
57496         "bp-asm.h".
57497         (PARMS): Do not use macros from bp-asm.h.
57498         (__frexpf): Do not use BP_SYM.
57499         (frexpf): Likewise.
57500         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
57501         "bp-asm.h".
57502         (PARMS): Do not use macros from bp-asm.h.
57503         (__frexpl): Do not use BP_SYM.
57504         (frexpl): Likewise.
57505         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
57506         "bp-asm.h".
57507         (PARMS): Do not use macros from bp-asm.h.
57508         (__remquo): Do not use BP_SYM.
57509         (remquo): Likewise.
57510         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
57511         "bp-asm.h".
57512         (PARMS): Do not use macros from bp-asm.h.
57513         (__remquof): Do not use BP_SYM.
57514         (remquof): Likewise.
57515         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
57516         "bp-asm.h".
57517         (PARMS): Do not use macros from bp-asm.h.
57518         (__remquol): Do not use BP_SYM.
57519         (remquol): Likewise.
57520         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
57521         "bp-asm.h".
57522         (PARMS): Do not use macros from bp-asm.h.
57523         (DEST): Likewise.
57524         (SRC): Likewise.
57525         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
57526         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
57527         "bp-asm.h".
57528         (PARMS): Do not use macros from bp-asm.h.
57529         (strlen): Do not use BP_SYM.
57530         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
57531         "bp-asm.h".
57532         (PARMS): Do not use macros from bp-asm.h.
57533         (S1): Likewise.
57534         (S2): Likewise.
57535         (SIZE): Likewise.
57536         (__mpn_add_n): Do not use BP_SYM.
57537         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
57538         "bp-asm.h".
57539         (PARMS): Do not use macros from bp-asm.h.
57540         (S1): Likewise.
57541         (SIZE): Likewise.
57542         (__mpn_addmul_1): Do not use BP_SYM.
57543         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
57544         weak_alias.
57545         (bzero): Likewise.
57546         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
57547         "bp-asm.h".
57548         (PARMS): Do not use macros from bp-asm.h.
57549         (S): Likewise.
57550         (SIZE): Likewise.
57551         (__mpn_lshift): Do not use BP_SYM.
57552         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57553         "bp-asm.h".
57554         (PARMS): Do not use macros from bp-asm.h.
57555         (DEST): Likewise.
57556         (SRC): Likewise.
57557         (LEN): Likewise.
57558         (memcpy): Likewise.  Do not use BP_SYM.
57559         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57560         libc_hidden_def and weak_alias.
57561         (mempcpy): Do not use BP_SYM in weak_alias.
57562         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57563         "bp-asm.h".
57564         (PARMS): Do not use macros from bp-asm.h.
57565         (DEST): Likewise.
57566         (LEN): Likewise.
57567         [!BZERO_P] (CHR): Likewise.
57568         (memset): Likewise.  Do not use BP_SYM.
57569         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57570         "bp-asm.h".
57571         (PARMS): Do not use macros from bp-asm.h.
57572         (S1): Likewise.
57573         (SIZE): Likewise.
57574         (__mpn_mul_1): Do not use BP_SYM.
57575         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57576         "bp-asm.h".
57577         (PARMS): Do not use macros from bp-asm.h.
57578         (S): Likewise.
57579         (SIZE): Likewise.
57580         (__mpn_rshift): Do not use BP_SYM.
57581         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57582         "bp-asm.h".
57583         (PARMS): Do not use macros from bp-asm.h.
57584         (STR): Likewise.
57585         (CHR): Likewise.
57586         (strchr): Likewise.  Do not use BP_SYM.
57587         (index): Do not use BP_SYM in weak_alias.
57588         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57589         "bp-asm.h".
57590         (PARMS): Do not use macros from bp-asm.h.
57591         (DEST): Likewise.
57592         (SRC): Likewise.
57593         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57594         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57595         "bp-asm.h".
57596         (PARMS): Do not use macros from bp-asm.h.
57597         (strlen): Do not use BP_SYM.
57598         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57599         "bp-asm.h".
57600         (PARMS): Do not use macros from bp-asm.h.
57601         (S1): Likewise.
57602         (S2): Likewise.
57603         (SIZE): Likewise.
57604         (__mpn_sub_n): Do not use BP_SYM.
57605         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57606         "bp-asm.h".
57607         (PARMS): Do not use macros from bp-asm.h.
57608         (S1): Likewise.
57609         (SIZE): Likewise.
57610         (__mpn_submul_1): Do not use BP_SYM.
57611         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57612         "bp-asm.h".
57613         (PARMS): Do not use macros from bp-asm.h.
57614         (S1): Likewise.
57615         (S2): Likewise.
57616         (SIZE): Likewise.
57617         (__mpn_add_n): Do not use BP_SYM.
57618         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57619         weak_alias.
57620         (bzero): Likewise.
57621         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57622         "bp-asm.h".
57623         (PARMS): Do not use macros from bp-asm.h.
57624         (BLK2): Likewise.
57625         (LEN): Likewise.
57626         (memcmp): Do not use BP_SYM.
57627         (bcmp): Do not use BP_SYM in weak_alias.
57628         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57629         "bp-asm.h".
57630         (PARMS): Do not use macros from bp-asm.h.
57631         (DEST): Likewise.
57632         (SRC): Likewise.
57633         (LEN): Likewise.
57634         (memcpy): Likewise.  Do not use BP_SYM.
57635         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57636         "bp-asm.h".
57637         (PARMS): Do not use macros from bp-asm.h.
57638         (DEST): Likewise.
57639         (SRC): Likewise.
57640         (LEN): Likewise.
57641         (memmove): Likewise.  Do not use BP_SYM.
57642         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57643         "bp-asm.h".
57644         (PARMS): Do not use macros from bp-asm.h.
57645         (DEST): Likewise.
57646         (SRC): Likewise.
57647         (LEN): Likewise.
57648         (__mempcpy): Likewise.  Do not use BP_SYM.
57649         (mempcpy): Do not use BP_SYM in weak_alias.
57650         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57651         "bp-asm.h".
57652         (PARMS): Do not use macros from bp-asm.h.
57653         (DEST): Likewise.
57654         (LEN): Likewise.
57655         [!BZERO_P] (CHR): Likewise.
57656         (memset): Likewise.  Do not use BP_SYM.
57657         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57658         "bp-asm.h".
57659         (PARMS): Do not use macros from bp-asm.h.
57660         (STR2): Likewise.
57661         (strcmp): Do not use BP_SYM.
57662         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57663         "bp-asm.h".
57664         (PARMS): Do not use macros from bp-asm.h.
57665         (STR): Likewise.
57666         (DELIM): Likewise.
57667         [USE_AS_STRTOK_R] (SAVE): Likewise.
57668         (FUNCTION): Likewise.  Do not use BP_SYM.
57669         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57670         aliases.
57671         (strtok_r): Likewise.
57672         (__GI___strtok_r): Likewise.
57673         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57674         (PARMS): Do not use macros from bp-asm.h.
57675         (S): Likewise.
57676         (SIZE): Likewise.
57677         (__mpn_lshift): Do not use BP_SYM.
57678         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57679         (PARMS): Do not use macros from bp-asm.h.
57680         (STR): Likewise.
57681         (CHR): Likewise.
57682         (__memchr): Do not use BP_SYM.
57683         (memchr): Do not use BP_SYM in weak_alias.
57684         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57685         (PARMS): Do not use macros from bp-asm.h.
57686         (BLK2): Likewise.
57687         (LEN): Likewise.
57688         (memcmp): Do not use BP_SYM.
57689         (bcmp): Do not use BP_SYM in weak_alias.
57690         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57691         (PARMS): Do not use macros from bp-asm.h.
57692         (S1): Likewise.
57693         (SIZE): Likewise.
57694         (__mpn_mul_1): Do not use BP_SYM.
57695         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57696         "bp-asm.h".
57697         (PARMS): Do not use macros from bp-asm.h.
57698         (STR): Likewise.
57699         (CHR): Likewise.
57700         (__rawmemchr): Do not use BP_SYM.
57701         (rawmemchr): Do not use BP_SYM in weak_alias.
57702         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57703         (PARMS): Do not use macros from bp-asm.h.
57704         (S): Likewise.
57705         (SIZE): Likewise.
57706         (__mpn_rshift): Do not use BP_SYM.
57707         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57708         (PARMS): Do not use macros from bp-asm.h.
57709         (SIGMSK): Likewise.
57710         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57711         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57712         (_start): Do not use BP_SYM.
57713         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57714         (PARMS): Do not use macros from bp-asm.h.
57715         (DEST): Likewise.
57716         (SRC): Likewise.
57717         (__stpcpy): Likewise.  Do not use BP_SYM.
57718         (stpcpy): Do not use BP_SYM in weak_alias.
57719         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
57720         "bp-asm.h".
57721         (PARMS): Do not use macros from bp-asm.h.
57722         (DEST): Likewise.
57723         (SRC): Likewise.
57724         (LEN): Likewise.
57725         (__stpncpy): Likewise.  Do not use BP_SYM.
57726         (stpncpy): Do not use BP_SYM in weak_alias.
57727         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57728         (PARMS): Do not use macros from bp-asm.h.
57729         (STR): Likewise.
57730         (CHR): Likewise.
57731         (strchr): Likewise.  Do not use BP_SYM.
57732         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57733         "bp-asm.h".
57734         (PARMS): Do not use macros from bp-asm.h.
57735         (STR): Likewise.
57736         (CHR): Likewise.
57737         (__strchrnul): Likewise.  Do not use BP_SYM.
57738         (strchrnul): Do not use BP_SYM in weak_alias.
57739         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57740         "bp-asm.h".
57741         (PARMS): Do not use macros from bp-asm.h.
57742         (STOP): Likewise.
57743         (strcspn): Do not use BP_SYM.
57744         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57745         "bp-asm.h".
57746         (PARMS): Do not use macros from bp-asm.h.
57747         (STR): Likewise.
57748         (STOP): Likewise.
57749         (strpbrk): Likewise.  Do not use BP_SYM.
57750         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
57751         "bp-asm.h".
57752         (PARMS): Do not use macros from bp-asm.h.
57753         (STR): Likewise.
57754         (CHR): Likewise.
57755         (strrchr): Likewise.  Do not use BP_SYM.
57756         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57757         (PARMS): Do not use macros from bp-asm.h.
57758         (SKIP): Likewise.
57759         (strspn): Do not use BP_SYM.
57760         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57761         (PARMS): Do not use macros from bp-asm.h.
57762         (STR): Likewise.
57763         (DELIM): Likewise.
57764         (SAVE): Likewise.
57765         (FUNCTION): Likewise.  Do not use BP_SYM.
57766         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57767         aliases.
57768         (strtok_r): Likewise.
57769         (__GI___strtok_r): Likewise.
57770         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57771         (PARMS): Do not use macros from bp-asm.h.
57772         (S1): Likewise.
57773         (S2): Likewise.
57774         (SIZE): Likewise.
57775         (__mpn_sub_n): Do not use BP_SYM.
57776         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57777         "bp-asm.h".
57778         (PARMS): Do not use macros from bp-asm.h.
57779         (S1): Likewise.
57780         (SIZE): Likewise.
57781         (__mpn_submul_1): Do not use BP_SYM.
57782         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57783         <bp-sym.h>.
57784         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57785         and <bp-asm.h>.
57786         (PARMS): Do not use macros from bp-asm.h.
57787         (FLAGS): Likewise.
57788         (PTID): Likewise.
57789         (TLS): Likewise.
57790         (CTID): Likewise.
57791         (__clone): Do not use BP_SYM.
57792         (clone): Do not use BP_SYM in weak_alias.
57793         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57794         and <bp-asm.h>.
57795         (PARMS): Do not use macros from bp-asm.h.
57796         (LEN): Likewise.
57797         (__mmap64): Do not use BP_SYM.
57798         (mmap64): Do not use BP_SYM in weak_alias.
57799         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57800         <bp-sym.h> and <bp-asm.h>.
57801         (PARMS): Do not use macros from bp-asm.h.
57802         (__posix_fadvise64_l64): Do not use BP_SYM.
57803         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57804         (PARMS): Do not use macros from bp-asm.h.
57805         (NSOPS): Likewise.
57806         (semtimedop): Do not use BP_SYM.
57807         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57808         and <bp-asm.h>.
57809
57810 2013-02-21  Allan McRae  <allan@archlinux.org>
57811
57812         * manual/message.texi (Charset conversion in gettext):
57813         Move @end statement to beginning of line.
57814
57815 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57816
57817         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57818         static.
57819         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57820         Likewise.
57821
57822         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57823         (denorm): Likewise.
57824         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57825         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57826
57827 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57828
57829         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57830         tail-call to the resolved function if pltexit isn't needed.
57831
57832 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57833
57834         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57835         or Y being zero as being unlikely.
57836         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57837         Likewise.
57838
57839 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57840
57841         * manual/nss.texi (System Databases and Name Service Switch):
57842         Remove frobnicate @pxref.
57843
57844 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57845
57846         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57847         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57848
57849 2013-02-20  Petr Machata  <pmachata@redhat.com>
57850
57851         * elf/elf.h (R_ARM_TARGET1): New macro.
57852         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57853         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57854         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57855         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57856         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57857         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57858         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57859         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57860         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57861         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57862         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57863         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57864         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57865         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57866         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57867         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57868         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57869         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57870         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57871         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57872         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57873         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57874         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57875         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57876         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57877         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57878         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57879         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57880         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57881         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57882         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57883         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57884         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57885         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57886         (R_ARM_THM_GOT_BREL12): Likewise.
57887         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57888         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57889         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57890         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57891         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57892         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57893         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57894         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57895         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57896
57897 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57898
57899         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57900         __attribute_used__ to __attribute__ ((unused)).
57901
57902 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57903
57904         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57905         powerpc mpa.c.
57906         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57907         comment formatting.
57908         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57909
57910 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57911
57912         [BZ #13550]
57913         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57914         Remove macro.
57915         (ENTER): Remove both macro definitions.
57916         (LEAVE): Likewise.
57917         (CHECK_BOUNDS_LOW): Likewise.
57918         (CHECK_BOUNDS_HIGH): Likewise.
57919         (CHECK_BOUNDS_BOTH): Likewise.
57920         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57921         (RETURN_BOUNDED_POINTER): Likewise.
57922         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57923         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57924         (POP_ERRNO_LOCATION_RETURN): Likewise.
57925         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57926         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57927         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57928         macros.
57929         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57930         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57931         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57932         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57933         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57934         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57935         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57936         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57937         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57938         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57939         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57940         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57941         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57942         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57943         removed macros.
57944         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57945         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57946         macros.
57947         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57948         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57949         * sysdeps/i386/i586/memset.S (memset): Likewise.
57950         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57951         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57952         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57953         macros.
57954         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57955         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57956         Change uses of L(2) to L(out).
57957         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57958         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57959         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57960         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57961         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57962         removed macros.
57963         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57964         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57965         macros.
57966         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57967         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57968         (RETURN): Do not use macro LEAVE.
57969         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57970         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57971         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57972         * sysdeps/i386/i686/memset.S (memset): Likewise.
57973         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57974         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57975         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57976         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57977         Likewise.
57978         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57979         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57980         L(1_2) and L(1_3) into L(1).
57981         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57982         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57983         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57984         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57985         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57986         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57987         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57988         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57989         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57990         macros.
57991         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57992         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57993         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57994         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57995         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57996         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57997         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57998         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57999         * sysdeps/i386/strcspn.S (strcspn): Likewise.
58000         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
58001         * sysdeps/i386/strrchr.S (strrchr): Likewise.
58002         * sysdeps/i386/strspn.S (strspn): Likewise.
58003         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
58004         conditional code.
58005         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
58006         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
58007         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
58008         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
58009         L(1_3) into L(1_1).
58010         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
58011         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58012         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
58013         macros.
58014         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58015
58016 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
58017
58018         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
58019         macro.
58020
58021 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58022
58023         * math/atest-exp.c (exp_mpn): Remove ROUND.
58024         * math/atest-exp2.c (exp_mpn): Likewise.
58025         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
58026
58027         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
58028         * stdlib/tst-tls-atexit-lib.c: Likewise.
58029         * stdlib/tst-tls-atexit.c: Likewise.
58030
58031 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58032
58033         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
58034         and __attribute_alloc_size__.
58035
58036 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58037
58038         * include/programs/xmalloc.h: Change __attribute_alloc_size to
58039         __attribute_alloc_size__.
58040         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
58041         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
58042
58043 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58044
58045         * include/programs/xmalloc.h: New file.
58046         * catgets/gencat.c: Include it.
58047         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
58048         * elf/pldd.c: Likewise.
58049         * iconv/iconv_charmap.c: Likewise.
58050         * iconv/iconvconfig.c: Likewise.
58051         * iconv/strtab.c: Likewise.
58052         * locale/programs/locale.c: Likewise.
58053         * locale/programs/localedef.h: Likewise.
58054         * locale/programs/simple-hash.c: Likewise.
58055         * nscd/nscd.h: Likewise.
58056         * nss/makedb.c: Likewise.
58057         * sysdeps/generic/ldconfig.h: Likewise.
58058
58059 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58060
58061         * Versions.def: Add GLIBC_2.18.
58062         * include/link.h (struct link_map): New member l_tls_dtor_count.
58063         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
58064         (__call_tls_dtors): Likewise.
58065         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
58066         __cxa_thread_atexit_impl.
58067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
58068         Likewise.
58069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
58070         Likewise.
58071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
58072         Likewise.
58073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
58074         Likewise.
58075         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
58076         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
58077         Likewise.
58078         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
58079         Likewise.
58080         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
58081         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
58082         Likewise.
58083         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
58084         (tests): Add test case tst-tls-atexit.
58085         (modules-names): Add shared library for tst-tls-atexit.
58086         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
58087         (GLIBC_PRIVATE): Add __call_tls_dtors.
58088         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
58089         for libstdc++.
58090         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
58091         * stdlib/tst-tls-atexit.c: New test case.
58092         * stdlib/tst-tls-atexit-lib.c: New test case.
58093
58094         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
58095
58096         * elf/Versions (ld): Add _dl_find_dso_for_object.
58097         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
58098         * elf/dl-open.c (_dl_find_dso_for_object): New function.
58099         (dl_open_worker): Use _dl_find_dso_for_object.
58100         * elf/dl-sym.c (do_sym): Likewise.
58101         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
58102
58103 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58104
58105         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
58106         Syntactic changes only.
58107         (_dl_runtime_profile): Do a tail-call to the resolved function.
58108
58109 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
58110
58111         [BZ #13550]
58112         * sysdeps/x86_64/bp-asm.h: Remove file.
58113         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
58114         <bp-sym.h> and <bp-asm.h>.
58115         (__clone): Do not use BP_SYM.
58116         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
58117         <bp-sym.h> and <bp-asm.h>.
58118         * sysdeps/unix/x86_64/sysdep.S: Likewise.
58119         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
58120         "bp-asm.h".
58121         (_setjmp): Do not use BP_SYM.
58122         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
58123         "bp-asm.h".
58124         (setjmp): Do not use BP_SYM.
58125         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
58126         libc_hidden_def.
58127         (mempcpy): Do not use BP_SYM in weak_alias.
58128         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
58129         "bp-asm.h".
58130         (strchr): Do not use BP_SYM.
58131         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
58132         "bp-asm.h".
58133         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
58134         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
58135         (_start): Do not use BP_SYM.
58136         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
58137         "bp-asm.h".
58138         (strcat): Do not use BP_SYM.
58139         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
58140         "bp-asm.h".
58141         (STRCMP): Do not use BP_SYM.
58142         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
58143         "bp-asm.h".
58144         (STRCPY): Do not use BP_SYM.
58145         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
58146         "bp-asm.h".
58147         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
58148         "bp-asm.h".
58149         (FUNCTION): Do not use BP_SYM.
58150         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
58151         weak_alias.
58152         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
58153
58154 2013-02-17  Andreas Jaeger  <aj@suse.de>
58155
58156         * time/Versions: Sort entries.
58157         * string/Versions: Likewise.
58158         * resolv/Versions: Likewise.
58159         * posix/Versions: Likewise.
58160         * iconv/Versions: Likewise.
58161         * elf/Versions: Likewise.
58162         * wcsmbs/Versions: Likewise.
58163
58164 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
58165
58166         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
58167         loop termination condition.
58168
58169         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
58170         variable to calculate EZ.
58171         (__sqr): Likewise.
58172
58173         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
58174         the lower precision input.
58175
58176 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
58177
58178         [BZ #13550]
58179         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
58180         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
58181         (run-via-rtld-prefix): Do not handle %-bp tests.
58182         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
58183         (all-object-suffixes): Remove .ob.
58184         (bppfx): Remove variable.
58185         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
58186         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
58187         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
58188         [$(build-bounded) = yes] (libtype.ob): Likewise.
58189         * Makerules (elide-routines.ob): Remove variable.
58190         (do-tests-clean): Do not handle *-bp.out.
58191         (common-mostlyclean): Do not handle *-bp and *-bp.out.
58192         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
58193         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
58194         (tests): Do not include $(tests-bp.out).
58195         (xtests): Do not include $(xtests-bp.out).
58196         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
58197         [$(build-bounded) = yes] ($(addprefix
58198         $(objpfx),$(binaries-bounded))): Remove rule.
58199         ($(objpfx)%-bp.out): Remove rule.
58200         * config.make.in (build-bounded): Remove variable.
58201         * crypt/Makefile [$(build-bounded) = yes]
58202         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
58203         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
58204         append to variable.
58205         [$(build-bounded) = yes] (install-lib): Likewise.
58206         [$(build-bounded) = yes] (generated): Likewise.
58207         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
58208         Remove rule.
58209         * intl/Makefile [$(build-bounded) = yes]
58210         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
58211         * math/Makefile [$(build-bounded) = yes]
58212         ($(tests:%=$(objpfx)%-bp): Likewise.
58213         * misc/Makefile [$(build-bounded) = yes]
58214         ($(objpfx)tst-tsearch-bp): Likewise.
58215         * nptl/Makeconfig (bounded-thread-library): Remove variable.
58216         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
58217         Remove dependency.
58218         * string/Makefile (o-objects.ob): Remove variable.
58219         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
58220         (CFLAGS-.ob): Remove variable.
58221         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
58222         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
58223         both definitions of variable.
58224         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
58225         (ASFLAGS-.ob): Remove variable.
58226
58227 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
58228
58229         [BZ #13550]
58230         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
58231         Remove __BOUNDED_POINTERS__ from condition.
58232         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
58233         * string/bits/string2.h [!__NO_STRING_INLINES &&
58234         !__BOUNDED_POINTERS__]: Likewise.
58235         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
58236         Likewise.
58237         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
58238         Remove conditional code.
58239         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
58240         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
58241         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
58242         condition.
58243
58244         [BZ #13550]
58245         * csu/libc-start.c: Do not include <bp-sym.h>.
58246         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
58247         * elf/dl-open.c: Do not include <bp-sym.h>.
58248         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
58249         * math/fegetenv.c: Do not include <bp-sym.h>.
58250         (fegetenv): Do not use BP_SYM in versioned symbols.
58251         * nptl/sysdeps/pthread/bits/libc-lockP.h
58252         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
58253         <bp-sym.h>.
58254         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58255         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
58256         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58257         (__pthread_mutex_destroy): Likewise.
58258         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58259         (__pthread_mutex_lock): Likewise.
58260         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58261         (__pthread_mutex_trylock): Likewise.
58262         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58263         (__pthread_mutex_unlock): Likewise.
58264         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58265         (__pthread_mutexattr_init): Likewise.
58266         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58267         (__pthread_mutexattr_destroy): Likewise.
58268         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58269         (__pthread_mutexattr_settype): Likewise.
58270         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58271         (__pthread_rwlock_init): Likewise.
58272         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58273         (__pthread_rwlock_destroy): Likewise.
58274         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58275         (__pthread_rwlock_rdlock): Likewise.
58276         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58277         (__pthread_rwlock_tryrdlock): Likewise.
58278         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58279         (__pthread_rwlock_wrlock): Likewise.
58280         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58281         (__pthread_rwlock_trywrlock): Likewise.
58282         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58283         (__pthread_rwlock_unlock): Likewise.
58284         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58285         (__pthread_key_create): Likewise.
58286         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58287         (__pthread_setspecific): Likewise.
58288         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58289         (__pthread_getspecific): Likewise.
58290         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
58291         Likewise.
58292         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58293         (_pthread_cleanup_push_defer): Likewise.
58294         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58295         (_pthread_cleanup_pop_restore): Likewise.
58296         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58297         (pthread_setcancelstate): Likewise.
58298         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58299         <bp-sym.h>.
58300         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
58301         (memchr): Do not use BP_SYM in weak_alias.
58302         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
58303         (fegetenv): Do not use BP_SYM in versioned symbols.
58304         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
58305         (fesetenv): Do not use BP_SYM in versioned symbols.
58306         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58307         (feupdateenv): Do not use BP_SYM in versioned symbols.
58308         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58309         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58310         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
58311         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
58312         (open64): Do not use BP_SYM in weak_alias.
58313         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
58314         (fegetenv): Do not use BP_SYM in versioned symbols.
58315         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
58316         (fesetenv): Do not use BP_SYM in versioned symbols.
58317         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58318         (feupdateenv): Do not use BP_SYM in versioned symbols.
58319         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
58320         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
58321         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
58322         (feraiseexcept): Do not use BP_SYM in versioned symbols.
58323         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58324         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58325         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
58326         <bp-sym.h>.
58327         (__libc_start_main): Do not use BP_SYM.
58328
58329 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58330
58331         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
58332         redundant return line.
58333         (norm): Likewise.
58334         (denorm): Likewise.
58335         (dbl_mp): Likewise.
58336         (sub_magnitudes): Likewise.
58337         (__add): Likewise.
58338         (__sub): Likewise.
58339         (__mul): Likewise.
58340         (__inv): Likewise.
58341         (__dvd): Likewise.
58342         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
58343         (norm): Likewise.
58344         (denorm): Likewise.
58345         (dbl_mp): Likewise.
58346         (sub_magnitudes): Likewise.
58347         (__add): Likewise.
58348         (__sub): Likewise.
58349         (__mul): Likewise.
58350         (__inv): Likewise.
58351         (__dvd): Likewise.
58352
58353         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
58354         instead of __mul.
58355         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
58356         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
58357         (cc32): Likewise.
58358
58359         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
58360         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
58361         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
58362         of __mul for squares.
58363         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
58364         function
58365         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
58366         Likewise.
58367         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
58368         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
58369
58370 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
58371
58372         [BZ #13550]
58373         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
58374         code.
58375         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
58376         prototype or function definition.  Rename ubp_* variables and
58377         parameters.  Remove argv definitions conditional on
58378         [__BOUNDED_POINTERS__].
58379         * debug/backtrace.c (__backtrace): Do not use __unbounded.
58380         * elf/dl-runtime.c (_dl_fixup): Likewise.
58381         * include/set-hooks.h (RUN_HOOK): Likewise.
58382         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
58383         definition.
58384         * string/strcpy.c (strcpy): Do not use __unbounded.
58385         * sysdeps/generic/frame.h (struct layout): Likewise.
58386         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
58387         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
58388         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
58389         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
58390         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
58391         (__backtrace): Likewise.
58392         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
58393         use __ptrvalue.
58394         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
58395         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
58396         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
58397         Likewise.
58398         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
58399         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
58400         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
58401         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58402         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
58403         Do not use __unbounded.
58404         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
58405         Rename __unboundedrlimits parameter to rlimits in prototype.
58406         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
58407         Do not use __unbounded.
58408         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
58409         not use __ptrvalue.
58410         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58411         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
58412         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58413         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
58414         __ptrvalue or __unbounded.
58415         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
58416         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
58417         use __unbounded.
58418         (__new_msgctl): Do not use __ptrvalue.
58419         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
58420         __unbounded.
58421         (__libc_msgrcv): Do not use __ptrvalue.
58422         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
58423         startup_info): Do not use __unbounded.
58424         (__libc_start_main): Likewise.  Rename ubp_* variables and
58425         parameters.  Remove argv definitions conditional on
58426         [__BOUNDED_POINTERS__].
58427         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
58428         __ptrvalue.
58429         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
58430         use __unbounded.
58431         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
58432         or __ptrvalue.
58433         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
58434         use __unbounded.
58435         (__new_shmctl): Do not use __ptrvalue.
58436         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
58437         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
58438         Likewise.
58439         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
58440         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
58441         (__libc_sigaction): Likewise.
58442         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
58443         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
58444         Likewise.
58445         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58446
58447 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
58448
58449         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
58450
58451         * string/mempcpy.c: Implement by calling memcpy.
58452
58453 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58454
58455         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
58456
58457         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
58458         evaluation.
58459
58460         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
58461         values in the mantissa.
58462
58463         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
58464         minimize writes to Z.
58465         (sub_magnitudes): Simplify code a bit.
58466
58467 2013-02-12  Roland McGrath  <roland@hack.frob.com>
58468
58469         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
58470         from the message.  The linker prefixes all warnings with that already.
58471
58472 2013-02-12  Andreas Schwab  <schwab@suse.de>
58473
58474         [BZ #15078]
58475         * posix/regexec.c (extend_buffers): Add parameter min_len.
58476         (check_matching): Pass minimum needed length.
58477         (clean_state_log_if_needed): Likewise.
58478         (get_subexp): Likewise.
58479         * posix/Makefile (tests): Add bug-regex34.
58480         (bug-regex34-ENV): Define.
58481         * posix/bug-regex34.c: New file.
58482
58483         [BZ #11561]
58484         * posix/regcomp.c (parse_bracket_exp): When looking up collating
58485         elements compare against the byte sequence of it, not its name.
58486         * posix/Makefile (tests): Add bug-regex35.
58487         (bug-regex35-ENV): Define.
58488         * posix/bug-regex35.c: New file.
58489
58490 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58491
58492         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
58493         comment.
58494         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
58495         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
58496         (CHECK_EOL): Add undef.
58497
58498 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
58499
58500         * bits/stdlib-bsearch.h: New file.
58501         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
58502         * stdlib/stdlib.h: Likewise.
58503
58504 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58505
58506         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
58507         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
58508         declaration.
58509         * manual/search.texi (Array Search Function): Add missing const in
58510         lfind prototype.
58511         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
58512         declaration to use rlim_t.
58513         (Basic Scheduling Functions): Remove erroneous const from
58514         sched_getparam prototype.  Remove erroneous * from
58515         sched_get_priority_max and sched_get_priority_min prototypes.
58516         (Resource Usage): Fix summary @comment on vtimes to refer to
58517         sys/vtimes.h rather than vtimes.h.
58518         Add missing *s in vtimes prototype.
58519         (Limits on Resources): Fix ulimit prototype to return long int.
58520         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
58521         prototypes to use long int rather than double.
58522         (BSD Random): Fix initstate and setstate to use char *, not void *.
58523         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
58524         prototype to make second argument 'struct aiocb64 *const[]'.
58525         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
58526         (Status of AIO Operations): Remove erroneous const in aio_return and
58527         aio_return64 prototypes.
58528         (Synchronizing I/O): Fix sync prototype to return void.
58529         * manual/startup.texi (Suboptions): Remove an erroneous const in
58530         getsubopt prototype.
58531         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
58532         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
58533         use size_t rather than int.
58534         (Scanning All Users): Likewise for getpwent_r.
58535         (Setting Groups): Add missing const to setgroups prototype.
58536         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
58537         * manual/socket.texi (Host Names): Fix gethostbyaddr and
58538         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
58539         'const void *' rather than 'const char *'.
58540         (Host Address Functions): Likewise for inet_ntop.
58541         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
58542         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
58543         ssize_t for return value.
58544         (Sending Data): Likewise for send, sendto, sendmsg.
58545         (Socket Option Functions): Add a missing const in setsockopt prototype.
58546         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
58547         use wchar_t for the argument.
58548         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
58549         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
58550         take no arguments.
58551         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58552         double/float/long double for second argument.
58553         Fix return types of significand, significandf, significandl.
58554         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58555         argument in fchmod prototype.
58556         (File Owner): Use uid_t and gid_t in fchown prototype.
58557         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58558         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58559         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58560         use 'const struct dirent **' as argument types to CMP function pointer
58561         argument.
58562         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58563         (File Times): Fix summary magic @comment for struct utimbuf and utime
58564         to refer to utime.h, not time.h.
58565         * manual/string.texi (Argz Functions): Add missing const in
58566         argz_extract and argz_next prototypes.
58567         (Finding Tokens in a String): Likewise for basename.
58568         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58569         (Copying and Concatenation): Fix typo in wmemmove prototype.
58570         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58571         (Signal Stack): Remove erroneous const in sigstack prototype.
58572         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58573         prototype.
58574         (Simple Calendar Time): Likewise for stime.
58575         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58576         prototype.
58577         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58578         say sys/sysctl.h instead.
58579         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58580         and vsyslog prototypes.
58581
58582 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58583
58584         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58585         Remove.
58586
58587 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58588
58589         * misc/sys/mman.h: Fix typo in mremap comment.
58590
58591 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58592
58593         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58594         the '\0' terminator.
58595
58596 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58597
58598         [BZ #13550]
58599         * debug/segfault.c: Don't include <bp-checks.h>.
58600         * sysdeps/generic/bp-checks.h: Remove file.
58601         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58602         (__GETDENTS): Don't use CHECK_N.
58603         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58604         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58605         (__getgroups): Don't use CHECK_N.
58606         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58607         (setgroups): Don't use CHECK_N.
58608         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58609         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58610         (__libc_msgrcv): Don't use CHECK_N.
58611         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58612         (__libc_msgsnd): Don't use CHECK_N.
58613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58614         <bp-checks.h>.
58615         (__libc_pread): Don't use CHECK_N.
58616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58617         include <bp-checks.h>.
58618         (__libc_pread64): Don't use CHECK_N.
58619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58620         include <bp-checks.h>.
58621         (__libc_pwrite): Don't use CHECK_N.
58622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58623         include <bp-checks.h>.
58624         (__libc_pwrite64): Don't use CHECK_N.
58625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58626         <bp-checks.h>.
58627         (__libc_pread): Don't use CHECK_N.
58628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58629         include <bp-checks.h>.
58630         (__libc_pread64): Don't use CHECK_N.
58631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58632         include <bp-checks.h>.
58633         (__libc_pwrite): Don't use CHECK_N.
58634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58635         include <bp-checks.h>.
58636         (__libc_pwrite64): Don't use CHECK_N.
58637         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58638         (do_pread): Don't use CHECK_N.
58639         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58640         (do_pread64): Don't use CHECK_N.
58641         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58642         (do_pwrite): Don't use CHECK_N.
58643         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58644         (do_pwrite64): Don't use CHECK_N.
58645         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58646         (__libc_readv): Don't use CHECK_N.
58647         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58648         (semop): Don't use CHECK_N.
58649         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58650         <bp-checks.h>.
58651         (semtimedop): Don't use CHECK_N.
58652         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58653         (__libc_pread): Don't use CHECK_N.
58654         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58655         <bp-checks.h>.
58656         (__libc_pread64): Don't use CHECK_N.
58657         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58658         <bp-checks.h>.
58659         (__libc_pwrite): Don't use CHECK_N.
58660         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58661         <bp-checks.h>.
58662         (__libc_pwrite64): Don't use CHECK_N.
58663         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58664         <bp-checks.h>.
58665         (__libc_msgrcv): Don't use CHECK_N.
58666         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58667         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58668         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58669         (__libc_writev): Don't use CHECK_N.
58670
58671 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58672
58673         * string/strcpy.c: Removed unused variable.
58674
58675         * Makeconfig (+sysdep-includes): Define with := rather than =.
58676         Use an existing include/ subdir of each sysdeps dir before it.
58677
58678 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58679
58680         * nscd/connection.c (register_traced_file): Comment function.
58681         [HAVE_INOTIFY] (union __inev): Define.
58682         [HAVE_INOTIFY] (inotify_check_files): New function.
58683         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58684         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58685         clear_db_cache.
58686         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58687
58688 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58689
58690         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58691         loaded if not already and that a failure is permanent.
58692
58693 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58694
58695         [BZ #15006]
58696         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58697         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58698
58699 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58700
58701         [BZ #13550]
58702         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58703         (CHECK_1_NULL_OK): Likewise.
58704         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58705         (__fxstat): Do not use CHECK_1.
58706         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58707         <bp-checks.h>.
58708         (___fxstat64): Do not use CHECK_1.
58709         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58710         <bp-checks.h>.
58711         (__fxstatat): Do not use CHECK_1.
58712         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58713         <bp-checks.h>.
58714         (__fxstatat64): Do not use CHECK_1.
58715         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58716         <bp-checks.h>.
58717         (__fxstat): Do not use CHECK_1.
58718         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58719         <bp-checks.h>.
58720         (__fxstatat): Do not use CHECK_1.
58721         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58722         <bp-checks.h>.
58723         (__getresgid): Do not use CHECK_1.
58724         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58725         <bp-checks.h>.
58726         (__getresuid): Do not use CHECK_1.
58727         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58728         <bp-checks.h>.
58729         (__lxstat): Do not use CHECK_1.
58730         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58731         <bp-checks.h>.
58732         (__old_msgctl): Do not use CHECK_1.
58733         (__new_msgctl): Likewise.
58734         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58735         <bp-checks.h>.
58736         (__new_setrlimit): Do not use CHECK_1.
58737         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58738         <bp-checks.h>.
58739         (__old_shmctl): Do not use CHECK_1.
58740         (__new_shmctl): Likewise.
58741         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58742         <bp-checks.h>.
58743         (__xstat): Do not use CHECK_1.
58744         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58745         (__lxstat): Do not use CHECK_1.
58746         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58747         <bp-checks.h>.
58748         (___lxstat64): Do not use CHECK_1.
58749         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58750         (__old_msgctl): Do not use CHECK_1.
58751         (__new_msgctl): Likewise.
58752         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58753         <bp-checks.h>.
58754         (__gettimeofday): Do not use CHECK_1.
58755         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58756         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58757         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58758         <bp-checks.h>.
58759         (__gettimeofday): Do not use CHECK_1.
58760         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58761         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58762         (__new_shmctl): Do not use CHECK_1.
58763         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58764         <bp-checks.h>.
58765         (do_sigtimedwait): Do not use CHECK_1.
58766         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58767         <bp-checks.h>.
58768         (do_sigwaitinfo): Do not use CHECK_1.
58769         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58770         <bp-checks.h>.
58771         (msgctl): Do not use CHECK_1.
58772         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58773         <bp-checks.h>.
58774         (shmctl): Do not use CHECK_1.
58775         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58776         (ustat): Do not use CHECK_1.
58777         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58778         <bp-checks.h>.
58779         (__fxstat): Do not use CHECK_1.
58780         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58781         <bp-checks.h>.
58782         (__fxstatat): Do not use CHECK_1.
58783         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58784         <bp-checks.h>.
58785         (__lxstat): Do not use CHECK_1.
58786         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58787         <bp-checks.h>.
58788         (__xstat): Do not use CHECK_1.
58789         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58790         (__xstat): Do not use CHECK_1.
58791         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58792         (___xstat64): Do not use CHECK_1.
58793
58794         [BZ #13550]
58795         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58796         definitions.
58797         (CHECK_BOUNDS_HIGH): Likewise.
58798         * string/strcpy.c: Do not include <bp-checks.h>.
58799         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58800
58801 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58802
58803         * nscd/nscd-client.h (__nscd_drop_map_ref):
58804         Add __attribute__ ((unused)).
58805         * nis/nss-nisplus.h (niserr2nss): Likewise.
58806
58807         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58808         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58809
58810         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58811         Remove inline keyword.
58812         * include/rounding-mode.h (round_away): Likewise.
58813         * libio/wfileops.c (adjust_wide_data): Likewise.
58814         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58815         (__m128i_strloadu_tolower): Likewise.
58816         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58817         (__m128i_strloadu_tolower): Likewise.
58818         * time/mktime.c (ydhms_diff): Likewise.
58819         * locale/elem-hash.h (elem_hash): Likewise.
58820         * locale/setlocale.c (setdata): Likewise.
58821         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58822         (re_string_wchar_at): Likewise.
58823         (bitset_not, bitset_merge, bitset_mask): Likewise.
58824         [!(__GNUC__ > 3)] (inline): Remove macro.
58825         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58826         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58827         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58828         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58829         * string/memcmp.c (memcmp_bytes): Likewise.
58830         * locale/programs/locarchive.c (compute_hashval): Likewise.
58831         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58832         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58833         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58834         * nss/getent.c (print_rpc, print_protocols): Likewise.
58835         (print_passwd, print_group, print_aliases): Likewise.
58836         * nis/nss-nisplus.h (niserr2nss): Likewise.
58837         * nscd/connections.c (restart_p): Likewise.
58838         Change return type to bool.
58839
58840 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58841
58842         * Makeconfig (all-Depend-files): Add existing
58843         $(sorted-subdirs:=/Depend) files.
58844         (all-subdirs): Remove nss.
58845         * sysdeps/unix/inet/Subdirs: Add it here instead.
58846         * hesiod/Depend: New file.
58847
58848         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58849         instead of calling alloca.
58850
58851         * io/lseek.c (__lseek): Rename to __libc_lseek.
58852         Define __lseek as an alias.
58853
58854         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58855
58856 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58857
58858         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58859         else clause and remove check for non-standard endianness.
58860
58861 2013-02-04  David S. Miller  <davem@davemloft.net>
58862
58863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58864
58865 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58866
58867         [BZ #13550]
58868         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58869         (__ubp_memchr): Remove prototype.
58870         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58871         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58872         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58873         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58874         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58875         Remove alias.
58876         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58877         (__ubp_memchr): Likewise.
58878         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58879         (__ubp_memchr): Likewise.
58880         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58881         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58882         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58883         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58884         CHECK_STRING.
58885         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58886         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58887         (__getcwd): Do not use CHECK_STRING.
58888         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58889         <bp-checks.h>.
58890         (__real_chown): Do not use CHECK_STRING.
58891         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58892         <bp-checks.h>.
58893         (fchownat): Do not use CHECK_STRING.
58894         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58895         CHECK_STRING.
58896         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58897         <bp-checks.h>.
58898         (__lchown): Do not use CHECK_STRING.
58899         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58900         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58901         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58902         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58904         include <bp-checks.h>.
58905         (truncate64): Do not use CHECK_STRING.
58906         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58907         <bp-checks.h>.
58908         (__real_chown): Do not use CHECK_STRING.
58909         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58910         <bp-checks.h>.
58911         (__lchown): Do not use CHECK_STRING.
58912         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58913         <bp-checks.h>.
58914         (__chown): Do not use CHECK_STRING.
58915         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58916         <bp-checks.h>.
58917         (truncate64): Do not use CHECK_STRING.
58918         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58919         Likewise.
58920         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58921         (__xmknod): Do not use CHECK_STRING.
58922         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58923         <bp-checks.h>.
58924         (__xmknodat): Do not use CHECK_STRING.
58925         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58926         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58927
58928 2013-02-04  Andreas Schwab  <schwab@suse.de>
58929
58930         [BZ #14142]
58931         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58932         * include/netdb.h: Likewise for h_errno.
58933         * elf/tst-stackguard1.c: Include <tls.h>.
58934
58935 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58936
58937         * elf/link.h (struct link_map): Extend the l_addr comment.
58938         * include/link.h (struct link_map): Likewise.
58939
58940 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58941
58942         [BZ #13550]
58943         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58944         (BOUNDED_1): Remove macro.
58945         * debug/backtrace.c: Don't include <bp-checks.h>.
58946         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58947         (__backtrace): Likewise.
58948         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58949         <bp-checks.h>.
58950         (__backtrace): Don't use BOUNDED_1.
58951         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58952         <bp-checks.h>.
58953         (__backtrace): Don't use BOUNDED_1.
58954         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58955         (__backtrace): Don't use BOUNDED_1.
58956         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58957         (shmat): Don't use BOUNDED_N.
58958
58959 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58960
58961         [BZ #13550]
58962         * sysdeps/generic/bp-start.h: Remove file.
58963         * csu/libc-start.c: Don't include <bp-start.h>.
58964         (LIBC_START_MAIN): Set up __environ directly instead of using
58965         INIT_ARGV_and_ENVIRON.
58966         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58967         <bp-start.h>.
58968
58969         [BZ #13550]
58970         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58971         definitions.
58972         (CHECK_FCNTL): Likewise.
58973         (CHECK_N_PAGES): Likewise.
58974
58975         [BZ #13550]
58976         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58977         definitions.
58978         (CHECK_SIGSET_NULL_OK): Likewise.
58979         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58980         <bp-checks.h>.
58981         (sigpending): Don't use CHECK_SIGSET.
58982         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58983         <bp-checks.h>.
58984         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58985         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58986         <bp-checks.h>.
58987         (do_sigsuspend): Don't use CHECK_SIGSET.
58988         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58989         use CHECK_SIGSET.
58990         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58991         (do_sigwait): Don't use CHECK_SIGSET.
58992         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58993         use CHECK_SIGSET.
58994         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58995         include <bp-checks.h>.
58996         (sigpending): Don't use CHECK_SIGSET.
58997         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58998         include <bp-checks.h>.
58999         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
59000         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
59001         <bp-checks.h>.
59002         (sigpending): Don't use CHECK_SIGSET.
59003         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
59004         <bp-checks.h>.
59005         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
59006
59007         [BZ #13550]
59008         * sysdeps/generic/bp-semctl.h: Remove file.
59009         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
59010         <bp-checks.h> and <bp-semctl.h>.
59011         (__old_semctl): Don't use CHECK_SEMCTL.
59012         (__new_semctl): Likewise.
59013         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
59014         and <bp-semctl.h>.
59015         (__old_semctl): Don't use CHECK_SEMCTL.
59016         (__new_semctl): Likewise.
59017         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
59018         <bp-checks.h> and <bp-semctl.h>.
59019         (__old_semctl): Don't use CHECK_SEMCTL.
59020         (__new_semctl): Likewise.
59021         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
59022         <bp-checks.h> and <bp-semctl.h>.
59023         (semctl): Don't use CHECK_SEMCTL.
59024
59025         [BZ #13550]
59026         * Makerules (elide-bp-thunks): Remove variable.
59027         (elide-routines.oS): Don't use $(elide-bp-thunks).
59028         (elide-routines.os): Likewise.
59029         (elide-routines.o): Likewise.
59030         (elide-routines.op): Likewise.
59031         (elide-routines.og): Likewise.
59032         (objects): Don't use $(bp-thunks).
59033         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
59034         include.
59035         (common-generated): Do not add s-proto-bp.d.
59036         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
59037         (int): Likewise.
59038         (typ): Likewise.
59039         Do not generate makefile rules for bounded-pointer thunks.
59040         * sysdeps/generic/bp-thunks.h: Remove file.
59041         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
59042         * sysdeps/unix/s-proto-bp.S: Likewise.
59043
59044         [BZ #15062]
59045         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
59046         parts of result separately when argument is not close to line from
59047         -i to i and one part of argument is small.
59048         * math/k_casinhf.c (__kernel_casinhf): Likewise.
59049         * math/k_casinhl.c (__kernel_casinhl): Likewise.
59050         * math/libm-test.inc (cacos_test): Add more tests.
59051         (casin_test): Likewise.
59052         (casinh_test): Likewise.
59053         * sysdeps/i386/fpu/libm-test-ulps: Update.
59054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59055
59056 2013-01-31  David S. Miller  <davem@davemloft.net>
59057
59058         * po/de.po: Update from translation team.
59059
59060 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
59061
59062         * time/tzfile.c: Include stdint.h for SIZE_MAX.
59063
59064 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
59065
59066         * configure.in (_AC_PROG_CC_C89): New definition.
59067         * configure: Regenerate.
59068
59069         * configure.in (AC_PROG_CPP): New definition.
59070         * configure: Regenerate.
59071
59072 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
59073
59074         * debug/tst-backtrace.h: New file.
59075         * debug/tst-backtrace2.c: Include tst-backtrace.h.
59076         (ret): Remove variable.
59077         (x): Likewise.
59078         (FAIL): Remove macro.
59079         (NO_INLINE): Likewise.
59080         (fn1): Use match function instead of strstr.
59081         * debug/tst-backtrace3.c: Include tst-backtrace.h.
59082         (ret): Remove variable.
59083         (x): Likewise.
59084         (FAIL): Remove macro.
59085         (NO_INLINE): Likewise.
59086         (fn): Use match function instead of strstr.
59087         * debug/tst-backtrace4.c: Include tst-backtrace.h.
59088         (ret): Remove variable.
59089         (x): Likewise.
59090         (FAIL): Remove macro.
59091         (NO_INLINE): Likewise.
59092         (handle_signal): Use match function instead of strstr.
59093         * debug/tst-backtrace5.c: Include tst-backtrace.h.
59094         (ret): Remove variable.
59095         (x): Likewise.
59096         (FAIL): Remove macro.
59097         (NO_INLINE): Likewise.
59098         (handle_signal): Use match function instead of strstr.
59099
59100 2013-01-23  Roland McGrath  <roland@hack.frob.com>
59101
59102         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
59103
59104 2013-01-23  David S. Miller  <davem@davemloft.net>
59105
59106         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
59107         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
59108         argument of CAS if possible.
59109         * sysdeps/sparc/sparc64/bits/atomic.h
59110         (__arch_compare_and_exchange_val_32_acq): Likewise.
59111         (__arch_compare_and_exchange_val_64_acq): Likewise.
59112
59113 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
59114
59115         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
59116         * sysdeps/posix/ulimit.c: ... this.
59117         Include <limits.h>.
59118         * sysdeps/unix/bsd/ulimit.c: Remove file.
59119
59120 2013-01-23  Adam Conrad  <adconrad@0c3.net>
59121
59122         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
59123         (LDFLAGS-tst-array5): Likewise.
59124
59125 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
59126
59127         [BZ #15036]
59128         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
59129         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
59130         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
59131         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
59132
59133 2013-01-21  David S. Miller  <davem@davemloft.net>
59134
59135         * sysdeps/sparc/backtrace.c: New file.
59136         * sysdeps/sparc/sparc32/backtrace.h: New file.
59137         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
59138         * sysdeps/sparc/sparc64/backtrace.h: New file.
59139         * sysdeps/sparc/sparc64/backtrace.c: Delete.
59140         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
59141         -funwind-tables.
59142
59143 2013-01-21  Andreas Schwab  <schwab@suse.de>
59144
59145         [BZ #15020]
59146         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
59147         closed its stdout.
59148
59149 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
59150
59151         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
59152         "mpa2.h".
59153         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59154
59155 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
59156             Mark Mitchell  <mark@codesourcery.com>
59157             Tom de Vries  <tom@codesourcery.com>
59158             Paul Pluzhnikov  <ppluzhnikov@google.com>
59159
59160         * debug/tst-backtrace2.c: New file.
59161         * debug/tst-backtrace3.c: Likewise.
59162         * debug/tst-backtrace4.c: Likewise.
59163         * debug/tst-backtrace5.c: Likewise.
59164         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
59165         (CFLAGS-tst-backtrace3.c): Likewise.
59166         (CFLAGS-tst-backtrace4.c): Likewise.
59167         (CFLAGS-tst-backtrace5.c): Likewise.
59168         (LDFLAGS-tst-backtrace2): Likewise.
59169         (LDFLAGS-tst-backtrace3): Likewise.
59170         (LDFLAGS-tst-backtrace4): Likewise.
59171         (LDFLAGS-tst-backtrace5): Likewise.
59172         (tests): Add new tests tst-backtrace2, tst-backtrace3,
59173         tst-backtrace4 and tst-backtrace5.
59174
59175 2013-01-18  Anton Blanchard  <anton@samba.org>
59176             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59177
59178         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
59179         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
59180         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
59181         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
59182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
59183         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
59184         "+r" and remove output regs list as redundant.  Add explicit inline
59185         asm to specify register of return val to work around compiler codegen
59186         bug.  Remove (int) cast on return value.  Add return type parameter to
59187         use in macro so that this macro does not truncate return value for
59188         64-bit values.
59189         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
59190         pass to INTERNAL_VSYSCALL_NCS.
59191         (INLINE_VSYSCALL): Add 'long int' as return type to
59192         INTERNAL_VSYSCALL_NCS macro invocation.
59193         (INTERNAL_VSYSCALL): Add 'long int' as return type to
59194         INTERNAL_VSYSCALL_NCS macro invocation.
59195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59196
59197 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
59198
59199         [BZ #14496]
59200         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
59201         Fix application of SIMD FP exception mask.
59202
59203         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
59204         mp_no from a power of two.
59205         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
59206         __mpexp_twomm1.  Use __pow_mp.
59207
59208         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
59209         multiplication.
59210
59211 2013-01-17  David S. Miller  <davem@davemloft.net>
59212
59213         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59214
59215 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59216
59217         [BZ #15023]
59218         * include/complex.h: Condition contents on [!_COMPLEX_H].
59219         (__kernel_casinhf): New prototype.
59220         (__kernel_casinh): Likewise.
59221         (__kernel_casinhl): Likewise.
59222         * math/Makefile (libm_calls): Add k_casinh.
59223         * math/k_casinh.c: New file.
59224         * math/k_casinhf.c: Likewise.
59225         * math/k_casinhl.c: Likewise.
59226         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
59227         finite nonzero arguments.
59228         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
59229         finite nonzero arguments.
59230         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
59231         finite nonzero arguments.
59232         * math/s_casinh.c: Do not include <float.h>.
59233         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
59234         * math/s_casinhf.c: Do not include <float.h>.
59235         (__casinhf): Move code for finite nonzero arguments to
59236         k_casinhf.c.
59237         * math/s_casinhl.c: Do not include <float.h>.
59238         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
59239         redefine.
59240         (__casinhl): Move code for finite nonzero arguments to
59241         k_casinhl.c.
59242         * math/libm-test.inc (cacos_test): Add more tests.
59243         * sysdeps/i386/fpu/libm-test-ulps: Update.
59244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59245
59246 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
59247
59248         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
59249         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
59250         [!HAVE_MREMAP]: Remove [defined linux] case.
59251         * malloc/arena.c: Do not include <malloc-sysdep.h>.
59252
59253 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
59254
59255         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
59256
59257 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
59258
59259         * elf/elf.h (R_386_SIZE32): New relocation.
59260         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
59261         R_386_SIZE32.
59262         (elf_machine_rela): Likewise.
59263         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
59264         R_X86_64_SIZE64 and R_X86_64_SIZE32.
59265
59266 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59267
59268         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
59269         (FP_FAST_FMA): Do not define.
59270         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
59271         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
59272         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
59273         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
59274         !_SOFT_FLOAT]: Likewise.
59275         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
59276         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
59277         value.
59278         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
59279         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
59280         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
59281         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
59282         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
59283         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
59284         file.
59285
59286 2013-01-16  Andreas Schwab  <schwab@suse.de>
59287
59288         [BZ #14327]
59289         * include/stdlib.h (__mktemp): Add declaration.
59290         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
59291         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
59292
59293 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
59294
59295         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
59296         definitions.
59297         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59298         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
59299         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
59300         definitions here.
59301         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
59302         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
59303         definitions.
59304         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
59305         and ONE.
59306         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
59307         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
59308         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
59309         definitions.
59310         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
59311         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
59312         definitions.
59313         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59314
59315         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
59316
59317 2013-01-15  David S. Miller  <davem@davemloft.net>
59318
59319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59320         trunc{,f} to libm-sysdep_routes.
59321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
59323         file.
59324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
59325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
59326         file.
59327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
59328         file.
59329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
59330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
59331         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
59332         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
59333         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
59334         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
59335         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
59336         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
59337
59338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59339         nearbyint{,f} to libm-sysdep_routes.
59340         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
59342         New file.
59343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
59344         file.
59345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
59346         New file.
59347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
59348         file.
59349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
59350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
59351         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
59352         file.
59353         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
59354         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
59355         file.
59356         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
59357         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
59358         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
59359
59360         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
59361         libc_feholdexcept and libc_fesetenv.
59362
59363 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
59364
59365         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
59366
59367 2013-01-14  David S. Miller  <davem@davemloft.net>
59368
59369         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
59370         (SPARC_ASM_VIS2_IFUNC): Likewise.
59371         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
59372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
59373         use of 'siam' instruction.
59374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
59375         Likewise.
59376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
59377         Likewise.
59378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
59379         Likewise.
59380         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
59381         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
59382         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
59383         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
59384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
59385         file.
59386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
59387         file.
59388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
59389         file.
59390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
59391         file.
59392         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
59393         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
59394         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
59395         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
59396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
59397         new VIS2 routines.
59398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
59399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
59400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
59401         Likewise.
59402         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
59403         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
59404         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
59405         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
59406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
59407         routines to libm-sysdep_routines.
59408         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59409
59410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59411         fdim/fdimf to libm-sysdep_routines.
59412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
59413         file.
59414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
59415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
59416         file.
59417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
59418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
59419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
59420         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
59421         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
59422         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
59423         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
59424
59425 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59426
59427         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
59428         to optimize copies.
59429
59430         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
59431         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59432         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59433
59434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
59435         local variable MPTWO.
59436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
59437         Likewise.
59438
59439 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59440
59441         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
59442         GLOB_NOESCAPE.
59443
59444 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59445
59446         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
59447
59448 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59449
59450         * manual/pattern.texi (glob_t): Document gl_flags.
59451         (glob64_t): Likewise.
59452
59453 2013-01-11  David S. Miller  <davem@davemloft.net>
59454
59455         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
59456         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
59457         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
59458         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
59459         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
59460         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
59461         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
59462         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
59463         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
59464         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
59465         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59466         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
59467         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
59468
59469         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59470         sparc V9 rather than using V8 code.
59471         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59472         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59473
59474         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
59475         Move to...
59476         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
59477         Here.
59478
59479 2013-01-11  Roland McGrath  <roland@hack.frob.com>
59480
59481         [BZ #14941]
59482         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
59483         not in the main loop.
59484         * configure: Regenerated.
59485
59486 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
59487
59488         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
59489         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
59490         to just #else.
59491         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
59492         [!__GLIBC_HAVE_LONG_LONG] case.
59493         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
59494         condition to just #else.
59495         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
59496         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
59497         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
59498         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
59499         unconditional.
59500         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
59501         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59502         #elif condition to just #else.
59503         * sysdeps/unix/sysv/linux/sys/sysmacros.h
59504         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
59505         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59506         #elif condition to just #else.
59507
59508 2013-01-11  Steve Ellcey  <sellcey@mips.com>
59509
59510         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
59511         (EF_MIPS_ARCH_64): Fix value.
59512         (EF_MIPS_ARCH_32R2): New.
59513         (EF_MIPS_ARCH_64R2): New.
59514
59515 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
59516
59517         * Makeconfig (+link-pie-before-libc): New.
59518         (+link-pie-after-libc): Likewise.
59519         (+link-pie-tests): Likewise.
59520         (+link-pie): Rewritten.
59521         (link-before-libc): Remove $(config-LDFLAGS).
59522         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
59523         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
59524         (config-LDFLAGS): Renamed to ...
59525         (rtld-LDFLAGS): This.
59526         (rtld-tests-LDFLAGS): New macro.
59527         (link-libc-rpath-link): Likewise.
59528         (link-libc-tests-rpath-link): Likewise.
59529         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
59530         (link-libc): Prepand $(link-libc-rpath-link).
59531         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
59532         (test-program-prefix): New macro.
59533         (test-via-rtld-prefix): Likewise.
59534         (test-program-cmd): Likewise.
59535         (host-test-program-cmd): Likewise.
59536         * Makefile ($(common-objpfx)testrun.sh): Replace
59537         $(run-program-prefix) with $(test-program-prefix).
59538         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
59539         $(rtld-LDFLAGS).
59540         ($(common-objpfx)shlib.lds): Likewise.
59541         (build-module-helper): Likewise.
59542         ($(common-objpfx)format.lds): Likewise.
59543         * Rules (binaries-pie-tests): New.
59544         (binaries-pie-notests): Likewise.
59545         (binaries-pie): Rewritten.
59546         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
59547         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
59548         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
59549         (make-test-out): Replace $(host-built-program-cmd) with
59550         $(host-test-program-cmd).
59551         * config.make.in (build-hardcoded-path-in-tests): New variable.
59552         * configure.in (--enable-hardcoded-path-in-tests): New configure
59553         option.
59554         (hardcoded_path_in_tests): New AC_SUBST.
59555         * configure: Regenerated.
59556         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59557         $(built-program-cmd) with $(test-program-cmd).
59558         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59559         (test_program_cmd): This.
59560         * elf/Makefile ($(objpfx)order.out): Run test with
59561         $(test-program-prefix).
59562         ($(objpfx)order2.out): Likewise.
59563         ($(objpfx)tst-initorder.out): Likewise.
59564         ($(objpfx)tst-initorder2.out): Likewise.
59565         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59566         $(test-program-cmd).
59567         ($(objpfx)tst-array1-static.out): Likewise.
59568         ($(objpfx)tst-array2.out): Likewise.
59569         ($(objpfx)tst-array3.out): Likewise.
59570         ($(objpfx)tst-array4.out): Likewise.
59571         ($(objpfx)tst-array5.out): Likewise.
59572         ($(objpfx)tst-array5-static.out): Likewise.
59573         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59574         $(test-program-cmd).
59575         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59576         $(run-program-prefix) with $(test-program-prefix).
59577         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59578         (test_program_prefix): This.
59579         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59580         $(run-program-prefix) with $(test-program-prefix).
59581         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59582         (test_program_prefix): This.
59583         * iconvdata/tst-tables.sh: Likewise.
59584         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59585         $(run-program-prefix) with $(test-program-prefix).
59586         ($(objpfx)tst-translit.out): Likewise.
59587         ($(objpfx)tst-gettext2.out): Likewise.
59588         ($(objpfx)tst-gettext4.out): Likewise.
59589         ($(objpfx)tst-gettext6.out): Likewise.
59590         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59591         (test_program_prefix): This.
59592         * intl/tst-gettext2.sh: Likewise.
59593         * intl/tst-gettext4.sh  Likewise.
59594         * intl/tst-gettext6.sh: Likewise.
59595         * intl/tst-translit.sh: Likewise.
59596         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59597         with $(test-program-cmd).
59598         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59599         $(run-program-prefix) with $(test-program-prefix).
59600         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59601         (test_program_prefix): This.
59602         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59603         $(run-program-prefix) with $(test-program-prefix).
59604         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59605         (test_program_prefix): This.
59606         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59607         * posix/Makefile ($(objpfx)globtest.out): Replace
59608         $(run-via-rtld-prefix) and $(test-wrapper) with
59609         $(test-program-prefix) and $(test-via-rtld-prefix).
59610         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59611         $(test-program-prefix).
59612         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59613         $(host-test-program-cmd).
59614         (tst-spawn-ARGS): Likewise.
59615         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59616         $(test-program-prefix).
59617         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59618         (test_via_rtld_prefix): This.
59619         (test_wrapper): Renamed to ...
59620         (test_program_prefix): This.
59621         (run_program_prefix): Replaced by test_program_prefix.
59622         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59623         (test_program_prefix): This.
59624         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59625         with $(host-test-program-cmd).
59626         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59627         $(run-program-prefix) with $(test-program-prefix).
59628         ($(objpfx)tst-printf.out): Likewise.
59629         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59630         $(test-program-cmd).
59631         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59632         (test_program_prefix): This.
59633         * stdio-common/tst-unbputc.sh: Likewise.
59634         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59635         $(run-program-prefix) with $(test-program-prefix).
59636         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59637         (test_program_prefix): This.
59638         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59639         $(built-program-cmd) with $(test-program-cmd).
59640
59641 2013-01-11  Andreas Jaeger  <aj@suse.de>
59642
59643         [BZ #15003]
59644         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59645         value. Sync with Linux 3.7.
59646
59647 2013-01-10  David S. Miller  <davem@davemloft.net>
59648
59649         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59650         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59651         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59652
59653 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59654
59655         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59656         never set.
59657         * configure: Regenerated.
59658
59659 2013-01-10  David S. Miller  <davem@davemloft.net>
59660
59661         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59662         sparc V9 rather than using V8 code.
59663         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59664         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59665
59666 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59667
59668         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59669         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59670         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59671         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59672         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59673         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59674         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59675         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59676         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59677         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59678         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59679         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59680         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59681         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59682         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59683         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59684         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59685         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59686         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59687         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59688         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59689         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59690         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59691         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59692         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59693         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59694         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59695
59696 2013-01-10  David S. Miller  <davem@davemloft.net>
59697
59698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59699
59700 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59701
59702         * posix/Makefile (tests-static): New variable.
59703         (tests): Add $(tests-static).
59704         (tst-exec-static-ARGS): New variable.
59705         (tst-spawn-static-ARGS): Likewise.
59706         * posix/tst-exec-static.c: New file.
59707         * posix/tst-spawn-static.c: Likewise.
59708         * posix/tst-exec.c: Support run directly.
59709         * posix/tst-spawn.c: Likewise.
59710
59711 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59712
59713         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59714         long.
59715         * math/bits/mathcalls.h (llrint): Likewise.
59716         (llround): Likewise.
59717         * stdlib/stdlib.h (struct drand48_data): Likewise.
59718         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59719         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59720         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59721         Likewise.
59722         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59723         Likewise.
59724         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59725         (elf_greg_t): Likewise.
59726         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59727         (__jmp_buf): Likewise.
59728         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59729         definitions.
59730         (llrint): Likewise, for all definitions.
59731         (llrintl): Likewise.
59732
59733         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59734         Remove [__GNUC__] condition.
59735         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59736         condition to just [__USE_ISOC99].
59737         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59738
59739 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59740
59741         [BZ #14200]
59742         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59743         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59744         defined.
59745         (_POSIX_V6_ILP32_OFF32): Likewise.
59746         (_XBS5_ILP32_OFF32): Likewise.
59747         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59748         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59749
59750 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59751
59752         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59753
59754         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59755         doubles __mpexp_twomm1.  Adjust usage.
59756         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59757         Remove.
59758
59759 2013-01-10  Andreas Schwab  <schwab@suse.de>
59760
59761         [BZ #14964]
59762         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59763         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59764
59765 2013-01-09  David S. Miller  <davem@davemloft.net>
59766
59767         [BZ #15003]
59768         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59769         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59770         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59771         (TCP_FASTOPEN): Define.
59772         (tcp_repair_opt): New structure.
59773         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59774         enum values.
59775         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59776         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59777         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59778         (tcp_cookie_transactions): New structure.
59779
59780 2013-01-09  Anton Blanchard  <anton@samba.org>
59781
59782         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59783         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59784         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59785         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59786
59787 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59788
59789         * include/features.h (__USE_ANSI): Remove.
59790
59791 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59792
59793         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59794
59795         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59796
59797 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59798
59799         * sysdeps/s390/fpu/libm-test-ulps: Update.
59800
59801         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59802
59803         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59804         (__acr): Likewise.
59805         (__cpy): Likewise.
59806         (norm): Likewise.
59807         (denorm): Likewise.
59808         (__mp_dbl): Likewise.
59809         (__dbl_mp): Likewise.
59810         (add_magnitudes): Likewise.
59811         (sub_magnitudes): Likewise.
59812         (__add): Likewise.
59813         (__sub): Likewise.
59814         (__mul): Likewise.
59815         (__inv): Likewise.
59816         (__dvd): Likewise.
59817         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59818         (__acr): Likewise.
59819         (__cpy): Likewise.
59820         (norm): Likewise.
59821         (denorm): Likewise.
59822         (__mp_dbl): Likewise.
59823         (__dbl_mp): Likewise.
59824         (add_magnitudes): Likewise.
59825         (sub_magnitudes): Likewise.
59826         (__add): Likewise.
59827         (__sub): Likewise.
59828         (__mul): Likewise.
59829         (__inv): Likewise.
59830         (__dvd): Likewise.
59831         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59832         (__acr): Likewise.
59833         (__cpy): Likewise.
59834         (norm): Likewise.
59835         (denorm): Likewise.
59836         (__mp_dbl): Likewise.
59837         (__dbl_mp): Likewise.
59838         (add_magnitudes): Likewise.
59839         (sub_magnitudes): Likewise.
59840         (__add): Likewise.
59841         (__sub): Likewise.
59842         (__mul): Likewise.
59843         (__inv): Likewise.
59844         (__dvd): Likewise.
59845
59846 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59847
59848         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59849         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59850         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59851         2 && __USE_EXTERN_INLINES]: Likewise.
59852
59853 2013-01-08  Andreas Jaeger  <aj@suse.de>
59854
59855         [BZ# 14985]
59856         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59857         Remove.
59858         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59859         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59860
59861 2013-01-07  Anton Blanchard  <anton@samba.org>
59862
59863         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59864         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59865         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59866         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59867         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59868         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59869         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59870         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59871         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59872         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59873         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59874         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59875         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59876         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59877         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59878         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59879         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59880         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59881         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59882         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59883         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59884         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59885         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59886         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59887         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59888         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59889         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59890         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59891         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59892         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59893         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59894         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59895         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59896         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59897         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59898         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59899         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59900         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59901         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59902         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59903         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59904         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59905         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59906
59907 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59908
59909         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59910         (__MALLOC_PMT): Likewise.
59911         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59912         [__GNUC__], only on [_LIBC].
59913         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59914         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59915         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59916         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59917         forward declaration.
59918         (realloc_hook_ini): Likewise.
59919         (memalign_hook_ini): Likewise.
59920         (__libc_memalign): Do not use __MALLOC_PMT in variable
59921         declaration.
59922         (__libc_valloc): Likewise.
59923         (__libc_pvalloc): Likewise.
59924         (__libc_calloc): Likewise.
59925         (__posix_memalign): Likewise.
59926
59927         [BZ #14996]
59928         * math/s_casinh.c: Include <float.h>.
59929         (__casinh): Do not do computation with squaring and square root
59930         for large arguments.
59931         * math/s_casinhf.c: Include <float.h>.
59932         (__casinhf): Do not do computation with squaring and square root
59933         for large arguments.
59934         * math/s_casinhl.c: Include <float.h>.
59935         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59936         (__casinhl): Do not do computation with squaring and square root
59937         for large arguments.
59938         * math/libm-test.inc (casin_test): Add more tests.
59939         (casinh_test): Likewise.
59940         * sysdeps/i386/fpu/libm-test-ulps: Update.
59941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59942
59943 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59944
59945         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59946         (__x86_64_raw_data_cache_size): Likewise.
59947         (__x86_64_data_cache_size_half): Likewise.
59948         (__x86_64_raw_data_cache_size_half): Likewise.
59949         (__x86_64_shared_cache_size): Likewise.
59950         (__x86_64_raw_shared_cache_size): Likewise.
59951         (__x86_64_shared_cache_size_half): Likewise.
59952         (__x86_64_raw_shared_cache_size_half): Likewise.
59953         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59954         to ...
59955         (__x86_data_cache_size): This.
59956         (__x86_64_raw_data_cache_size): Renamed to ...
59957         (__x86_raw_data_cache_size): This.
59958         (__x86_64_data_cache_size_half): Renamed to ...
59959         (__x86_data_cache_size_half): This.
59960         (__x86_64_raw_data_cache_size_half): Renamed to ...
59961         (__x86_raw_data_cache_size_half): This.
59962         (__x86_64_shared_cache_size): Renamed to ...
59963         (__x86_shared_cache_size): This.
59964         (__x86_64_raw_shared_cache_size): Renamed to ...
59965         (__x86_raw_shared_cache_size): This.
59966         (__x86_64_shared_cache_size_half): Renamed to ...
59967         (__x86_shared_cache_size_half): This.
59968         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59969         (__x86_raw_shared_cache_size_half): This.
59970         * sysdeps/x86_64/memcpy.S: Updated.
59971         * sysdeps/x86_64/memset.S: Likewise.
59972         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59973         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59974         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59975
59976 2013-01-04  David S. Miller  <davem@davemloft.net>
59977
59978         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59979
59980 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59981
59982         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59983         1 to avoid redefinition warning.
59984         (__USE_GNU): Don't define.
59985         (init_signaling_nan): Protoize.
59986
59987         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59988
59989 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59990
59991         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59992         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59993         (__cpymn): Likewise.
59994         (norm): Remove commented code.
59995         (denorm): Likewise.
59996         (__mp_dbl): Likewise.
59997         (__inv): Likewise.
59998         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59999         (__cpymn): Likewise.
60000         (norm): Remove commented code.
60001         (denorm): Likewise.
60002         (__mp_dbl): Likewise.
60003         (__inv): Likewise.
60004
60005         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
60006         mp_no value for 1.0 and 2.0.
60007         (norm): Use RADIXI instead of radixi.d.
60008         (denorm): Likewise.
60009         (__mul): Use 0.0 instead of zero.d.
60010         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
60011         mp_no value for 1.0 and 2.0.
60012         (norm): Use RADIXI instead of radixi.d.
60013         (denorm): Likewise.
60014         (__mul): Use 0.0 instead of zero.d.
60015
60016 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
60017
60018         [BZ #14994]
60019         * math/s_casinh.c (__casinh): Reduce finite argument to first
60020         quadrant then set signs of results at the end.
60021         * math/s_casinhf.c (__casinhf): Likewise.
60022         * math/s_casinhl.c (__casinhl): Likewise.
60023         * math/libm-test.inc (casin_test): Add more tests.
60024         (casinh_test): Likewise.
60025         * sysdeps/i386/fpu/libm-test-ulps: Update.
60026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60027
60028 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60029
60030         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
60031
60032         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
60033
60034         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
60035         declarations.
60036         (denorm): Likewise.
60037         (__mp_dbl): Likewise.
60038         (__inv): Likewise.
60039
60040         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
60041         and adjust the header comment.
60042
60043         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
60044         variable name from declaration.
60045
60046 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
60047
60048         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
60049         Initialize COMMON_CPUID_INDEX_7 element.
60050         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
60051         (CPUID_RTM): Likewise.
60052         (HAS_RTM): Likewise.
60053         (COMMON_CPUID_INDEX_7): New enum.
60054
60055 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
60056
60057         [BZ #14981]
60058         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
60059         size is zero, record memory as freed.
60060
60061 2013-01-03  Andreas Jaeger  <aj@suse.de>
60062
60063         * po/ia.po: Add new Interlingua translation.
60064
60065 2012-01-03  Allan McRae  <allan@archlinux.org>
60066
60067         * locale/programs/localedef.c: Fix description of '--posix' flag.
60068
60069 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
60070
60071         * NEWS: Update dates in second copyright notice.
60072         * README: Update copyright dates in example.
60073         * manual/libc.texinfo: Update copyright dates.
60074         * scripts/test-installation.pl: Update copyright date in --version
60075         output.
60076
60077         * hurd/ctty-input.c: Fix copyright notice formatting.
60078         * hurd/ctty-output.c: Likewise.
60079         * hurd/dtable.c: Likewise.
60080         * hurd/hurd-raise.c: Likewise.
60081         * hurd/hurdprio.c: Likewise.
60082         * hurd/msgportdemux.c: Likewise.
60083         * misc/sys/file.h: Likewise.
60084         * misc/sys/ioctl.h: Likewise.
60085         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
60086         * sysdeps/mach/hurd/chdir.c: Likewise.
60087         * sysdeps/mach/hurd/fchdir.c: Likewise.
60088         * sysdeps/mach/hurd/rename.c: Likewise.
60089         * sysdeps/mach/hurd/rmdir.c: Likewise.
60090         * sysdeps/mach/hurd/seekdir.c: Likewise.
60091         * sysdeps/mach/hurd/setsid.c: Likewise.
60092         * sysdeps/posix/wait3.c: Likewise.
60093
60094         * All files with FSF copyright notices: Update copyright dates
60095         using scripts/update-copyrights.
60096         * intl/plural.c: Regenerated.
60097         * locale/programs/charmap-kw.h: Likewise.
60098         * locale/programs/locfile-kw.h: Likewise.
60099
60100 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
60101
60102         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
60103         four values.
60104
60105         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
60106         calculation loop and add branch prediction.
60107
60108         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
60109         check access beyond bounds of m1np.
60110
60111         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60112         MPTWO.
60113         (__inv): Remove local variable MPTWO to use the global
60114         constant.
60115         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
60116         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60117         variable MPTWO.
60118         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
60119         MP3HALFS static const.
60120
60121 2013-01-01  David S. Miller  <davem@davemloft.net>
60122
60123         * po/ca.po: Update from translation team.
60124
60125 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
60126
60127         * scripts/update-copyrights: New file.
60128         * Makeconfig: Reformat copyright notice.
60129         * ctype/ctype.h: Likewise.
60130         * debug/swprintf_chk.c: Likewise.
60131         * elf/dl-cache.c: Likewise.
60132         * elf/dl-debug.c: Likewise.
60133         * elf/dl-object.c: Likewise.
60134         * grp/initgroups.c: Likewise.
60135         * hurd/Makefile: Likewise.
60136         * hurd/hurd/signal.h: Likewise.
60137         * hurd/hurdfault.c: Likewise.
60138         * hurd/hurdioctl.c: Likewise.
60139         * hurd/hurdlookup.c: Likewise.
60140         * hurd/intr-msg.c: Likewise.
60141         * iconv/gconv_open.c: Likewise.
60142         * libio/swprintf.c: Likewise.
60143         * locale/lc-ctype.c: Likewise.
60144         * locale/nl_langinfo.c: Likewise.
60145         * mach/Machrules: Likewise.
60146         * mach/Makefile: Likewise.
60147         * malloc/obstack.h: Likewise.
60148         * manual/Makefile: Likewise.
60149         * manual/tsort.awk: Likewise.
60150         * misc/bits/stab.def: Likewise.
60151         * nis/nis_print_group_entry.c: Likewise.
60152         * nis/nis_table.c: Likewise.
60153         * nis/nss_compat/compat-pwd.c: Likewise.
60154         * nis/nss_compat/compat-spwd.c: Likewise.
60155         * po/Makefile: Likewise.
60156         * posix/fnmatch.c: Likewise.
60157         * posix/regex.h: Likewise.
60158         * resolv/Makefile: Likewise.
60159         * resolv/nss_dns/dns-network.c: Likewise.
60160         * resolv/res_hconf.c: Likewise.
60161         * scripts/gen-sorted.awk: Likewise.
60162         * soft-fp/soft-fp.h: Likewise.
60163         * stdio-common/printf.h: Likewise.
60164         * stdlib/monetary.h: Likewise.
60165         * stdlib/random.c: Likewise.
60166         * stdlib/random_r.c: Likewise.
60167         * sysdeps/generic/Makefile: Likewise.
60168         * sysdeps/gnu/Makefile: Likewise.
60169         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
60170         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
60171         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
60172         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
60173         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
60174         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
60175         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
60176         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
60177         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
60178         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
60179         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
60180         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
60181         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
60182         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
60183         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
60184         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
60185         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
60186         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
60187         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
60188         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
60189         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
60190         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
60191         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
60192         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
60193         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
60194         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
60195         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
60196         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
60197         * sysdeps/mach/hurd/errnos.awk: Likewise.
60198         * sysdeps/mach/hurd/fork.c: Likewise.
60199         * sysdeps/mach/hurd/getcwd.c: Likewise.
60200         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
60201         * sysdeps/mach/hurd/mmap.c: Likewise.
60202         * sysdeps/mach/hurd/utimes.c: Likewise.
60203         * sysdeps/mach/hurd/xmknod.c: Likewise.
60204         * sysdeps/posix/profil.c: Likewise.
60205         * sysdeps/posix/readdir_r.c: Likewise.
60206         * sysdeps/powerpc/bits/mathdef.h: Likewise.
60207         * sysdeps/powerpc/bits/setjmp.h: Likewise.
60208         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
60209         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
60210         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
60211         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
60212         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
60213         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60214         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
60215         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
60216         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
60217         * sysdeps/pthread/lio_listio.c: Likewise.
60218         * sysdeps/sparc/dl-procinfo.h: Likewise.
60219         * sysdeps/unix/i386/sysdep.S: Likewise.
60220         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
60221         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
60222         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
60223         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
60224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
60225         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
60226         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
60227         * sysdeps/unix/sysv/linux/speed.c: Likewise.
60228         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
60229         * sysdeps/wordsize-32/divdi3.c: Likewise.
60230         * time/sys/time.h: Likewise.
60231         * wcsmbs/Makefile: Likewise.
60232
60233 2013-01-01  David S. Miller  <davem@davemloft.net>
60234
60235         * po/fr.po: Update from translation team.
60236
60237         * catgets/gencat.c: Update copyright year.
60238         * csu/version.c: Likewise.
60239         * debug/catchsegv.sh: Likewise.
60240         * debug/pcprofiledump.c: Likewise.
60241         * debug/xtrace.sh: Likewise.
60242         * elf/ldconfig.c: Likewise.
60243         * elf/ldd.bash.in: Likewise.
60244         * elf/pldd.c: Likewise.
60245         * elf/sotruss.ksh: Likewise.
60246         * elf/sprof.c: Likewise.
60247         * iconv/iconv_prog.c: Likewise.
60248         * iconv/iconvconfig.c: Likewise.
60249         * locale/programs/locale.c: Likewise.
60250         * locale/programs/localedef.c: Likewise.
60251         * login/programs/pt_chown.c: Likewise.
60252         * malloc/memusage.sh: Likewise.
60253         * malloc/memusagestat.c: Likewise.
60254         * malloc/mtrace.pl: Likewise.
60255         * nscd/nscd.c: Likewise.
60256         * nss/getent.c: Likewise.
60257         * nss/makedb.c: Likewise.
60258         * posix/getconf.c: Likewise.
60259
60260 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
60261
60262         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
60263         numbers.
60264
60265 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
60266
60267         * math/bits/mathcalls.h (modf): Use __nonnull.
60268
60269 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60270
60271         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
60272         (split): Use macro CN instead of the bare value.
60273         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
60274         could be used.
60275         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
60276         instead of the bare value.
60277         (power1): Likewise.
60278
60279 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60280
60281         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
60282         __ATAN_TWOM.
60283         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60284
60285         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
60286         their values.
60287         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
60288         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
60289         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
60290         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
60291
60292 2012-12-28  Andreas Jaeger  <aj@suse.de>
60293
60294         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
60295         values are from Linux 3.7.
60296
60297         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
60298         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
60299
60300 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60301
60302         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
60303         TRUE case.
60304
60305         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
60306         (norm): Likewise.
60307         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
60308         variables with preprocessor constants.
60309         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60310         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
60311         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
60312
60313 2012-12-27  Bruno Haible  <bruno@clisp.org>
60314
60315         [BZ #14317]
60316         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
60317         only if needed.
60318
60319 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60320
60321         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
60322         and use variable directly.
60323         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
60324
60325         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60326         MPONE.
60327         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
60328         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60329         variable MPONE.
60330         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
60331         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
60332         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
60333         include directive.  Remove local variable MPONE.
60334         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
60335         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
60336         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
60337
60338 2012-12-25  David S. Miller  <davem@davemloft.net>
60339
60340         * version.h (RELEASE): Set to "development".
60341         (VERSION): Set to "2.17.90".
60342         * NEWS: Add 2.18 section.
60343
60344 2012-12-21  David S. Miller  <davem@davemloft.net>
60345
60346         * po/hr.po: Update from translation team.
60347
60348 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60349
60350         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
60351
60352 2012-12-19  Steve Ellcey  <sellcey@mips.com>
60353
60354         * NEWS:  Mention new memcpy for MIPS.
60355
60356 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60357
60358         * manual/contrib.texi (Contributors): Spelling correction.
60359
60360 2012-12-15  David S. Miller  <davem@davemloft.net>
60361
60362         * po/ru.po: Update from translation team.
60363
60364 2012-12-13  David S. Miller  <davem@davemloft.net>
60365
60366         * NEWS: Mention IFUNC testsuite enhancements.
60367
60368         * po/pl.po: Update from translation team.
60369         * po/bg.po: Likewise.
60370
60371         * manual/contrib.texi (Contributors): Update entries for Hongjiu
60372         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
60373
60374 2012-12-11  David S. Miller  <davem@davemloft.net>
60375
60376         * po/sv.po: Update from translation team.
60377
60378         * po/vi.po: Update from translation team.
60379
60380         * po/cs.po: Update from translation team.
60381
60382         * po/de.po: Update from translation team.
60383         * po/eo.po: Likewise.
60384         * po/nl.po: Likewise.
60385
60386 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60387
60388         [BZ #14246]
60389         * manual/argp.texi (Argp Helper Functions): Move node to follow
60390         Argp Parsing State.
60391
60392         [BZ #14872]
60393         * manual/conf.texi (Limits on File System Capacity): Mention if
60394         terminating null is included in the max size.
60395
60396 2012-12-10  Andreas Jaeger  <aj@suse.de>
60397
60398         * po/cs.po: Update from translation team.
60399
60400 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60401
60402         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
60403         void pointer and cast to uintptr_t.
60404         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
60405         path.
60406         * sysdeps/s390/s390-64/memcpy.S: Likewise.
60407         * sysdeps/s390/s390-64/memset.S: Likewise.
60408
60409 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
60410
60411         [BZ #14833]
60412         * menual/message.texi (Message Translation): Fix typos.
60413         (Helper programs for gettext): Likewise.
60414
60415 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
60416
60417         [BZ #14898]
60418         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
60419         Change to -1.
60420
60421 2012-12-07  David S. Miller  <davem@davemloft.net>
60422
60423         * po/libc.pot: Update.
60424
60425 2012-12-07  Richard Henderson  <rth@redhat.com>
60426
60427         [BZ #10114]
60428         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
60429         normal/normal case to before the switch.
60430         (_FP_DIV): Likewise.
60431
60432 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
60433             Mike Frysinger  <vapier@gentoo.org>
60434
60435         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
60436         check for __NR_fadvise64_64.
60437
60438 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
60439
60440         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
60441         0, not just to plain "0" as a statement.
60442         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
60443         with cw.
60444
60445 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
60446
60447         * NEWS: Use sourceware.org in Bugzilla URL.
60448
60449 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60450
60451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
60452         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60453
60454         * stdio-common/tst-put-error.c (do_test): Add newline to the
60455         padded test to ensure flush.
60456
60457 2012-12-05  Jeff Law  <law@redhat.com>
60458
60459         * sunrpc/etc.rpc (fedfs_admin): Add entry.
60460
60461 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
60462
60463         * README: Don't refer to ports add-on as distributed separately.
60464         Mention AArch64 in list of systems supported in the ports add-on.
60465
60466         * LICENSES: Add more non-FSF copyright and license notices.
60467
60468         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
60469         ((unused)).
60470
60471         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
60472
60473         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
60474         10000 as width of padded output.
60475
60476 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60477
60478         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
60479
60480         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60481         variable LX with __attribute__ ((unused)).
60482         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60483         Likewise.
60484         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60485         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60486         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
60487         with __attribute__ ((unused)).
60488
60489 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
60490
60491         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
60492
60493 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60494
60495         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
60496         (CFLAGS-nldbl-acos.c): New variable.
60497         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
60498         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
60499         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
60500         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
60501         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
60502         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
60503         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60504         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
60505         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
60506         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
60507         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
60508         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
60509         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
60510         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
60511         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
60512         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
60513         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
60514         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
60515         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
60516         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
60517         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
60518         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
60519         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
60520         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
60521         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
60522         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
60523         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
60524         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
60525         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
60526         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
60527         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
60528         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
60529         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
60530         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
60531         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
60532         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
60533         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
60534         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
60535         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
60536         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
60537         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
60538         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
60539         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
60540         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
60541         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
60542         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
60543         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
60544         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
60545         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
60546         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
60547         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
60548         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
60549         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
60550         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60551         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60552         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60553         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60554         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60555         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60556         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60557         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60558         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60559         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60560         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60561         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60562         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60563         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60564         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60565         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60566         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60567         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60568         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60569         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60570         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60571         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60572         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60573         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60574         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60575         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60576         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60577         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60578         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60579         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60580         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60581         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60582         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60583         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60584         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60585         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60586         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60587         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60588         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60589         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60590         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60591         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60592         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60593         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60594
60595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60596         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60597
60598         [BZ #14914]
60599         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60600         whole low double instead of just low 47 bits when splitting values
60601         into two parts.
60602
60603 2012-12-03  Allan McRae  <allan@archlinux.org>
60604
60605         * manual/stdio.texi (Predefined Printf Handlers): Remove
60606         @hsep and @vsep usage.
60607
60608 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60609
60610         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60611         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60612
60613 2012-12-03  Jeff Law  <law@redhat.com>
60614
60615         * time/sys/time.h (settimeofday): Do not mark TV argument
60616         as __nonnull.
60617
60618 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60619
60620         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60621         when currently writing and seek to current position when not.
60622         * libio/Makefile (tests): Remove bug-fclose1.
60623         * libio/bug-fclose1.c: Delete.
60624
60625 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60626
60627         * manual/arith.texi (feenableexcept): Fix typo.
60628         (fedisableexcept): Likewise.
60629
60630 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60631
60632         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60633         second, differently-typed declaration, rather than a cast.
60634
60635 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60636
60637         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60638         * include/rpc/svc.h: ... here.
60639
60640 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60641
60642         [BZ #13013]
60643         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60644         depending n and resplen2 to catch cases where answer
60645         equals answerp2.
60646
60647 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60648
60649         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60650         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60651
60652 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60653
60654         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60655
60656 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60657
60658         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60659
60660 2012-11-28  Jeff Law  <law@redhat.com>
60661
60662         [BZ #13761]
60663         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60664         dataset_temporary.  Track alloca usage into alloca_used.
60665         If dataset is large allocate and release it via malloc/free.
60666
60667 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60668
60669         [BZ #14197]
60670         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60671
60672 2012-11-28  David S. Miller  <davem@davemloft.net>
60673
60674         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60675
60676 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60677
60678         [BZ #14803]
60679         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60680         of pi/2 rounded to nearest to 64 bits.
60681         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60682         nearest to 64 bits.
60683         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60684         bits.
60685
60686 2012-11-28  Jeff Law <law@redhat.com>
60687             Martin Osvald <mosvald@redhat.com>
60688
60689         [BZ #14889]
60690         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60691         * sunrpc/svc.c: Include time.h.
60692         (__svc_accept_failed): New function.
60693         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60694         any reason other than EINTR, call __svc_accept_failed.
60695         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60696         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60697
60698 2012-11-28  Andreas Schwab  <schwab@suse.de>
60699
60700         * scripts/abilist.awk: Also handle indirect functions in .opd
60701         section.
60702
60703 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60704
60705         [BZ #13881]
60706         * sysdeps/x86/fpu/powl_helper.c: New file.
60707         * sysdeps/x86/fpu/Makefile: Likewise.
60708         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
60709         (p3): New object.
60710         (__ieee754_powl): Use __powl_helper for finite arguments except
60711         integer exponents below 8.
60712         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60713         (p3): New object.
60714         (__ieee754_powl): Use __powl_helper for finite arguments except
60715         integer exponents below 8.
60716         * math/libm-test.inc (pow_test): Add more tests and enable some
60717         previously disabled tests.
60718         * sysdeps/i386/fpu/libm-test-ulps: Update.
60719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60720
60721 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60722             Carlos O'Donell  <carlos_odonell@mentor.com>
60723
60724         * nss/makedb.c (is_prime): Assert that input is odd and greater
60725         than 4.  Note that fact in a comment too.
60726         (next_prime): Add 4 to input.
60727
60728 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60729
60730         [BZ #11741]
60731         * libio/Makefile (tests): Add test case tst-fwrite-error.
60732         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60733         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60734         * libio/tst-fwrite-error.c: New test case.
60735
60736 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60737
60738         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60739         before casting to void *.
60740         * include/libc-internal.h (__pointer_type): New macro.
60741         (__integer_if_pointer_type_sub): Likewise.
60742         (__integer_if_pointer_type): Likewise.
60743         (cast_to_integer): Likewise.
60744         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60745         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60746         before casting to atomic64_t.
60747         (atomic_exchange_acq): Likewise.
60748         (__arch_exchange_and_add_body): Likewise.
60749         (__arch_add_body): Likewise.
60750         (atomic_add_negative): Likewise.
60751         (atomic_add_zero): Likewise.
60752
60753 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60754
60755         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60756         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60757         (add_fdes): Likewise.
60758         (linear_search_fdes): Likewise.
60759         (binary_search_unencoded_fdes): Likewise.
60760
60761 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60762
60763         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60764
60765 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60766
60767         * configure.in: Autodetect C++ header directories.
60768         * configure: Regenerated.
60769
60770 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60771
60772         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60773
60774 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60775
60776         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60777
60778 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60779
60780         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60781         LDBL_MANT_DIG == 106]: Disable some tests.
60782         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60783         Likewise.
60784         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60785         Likewise.
60786
60787         [BZ #14871]
60788         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60789         input for small inputs.  Return +/- pi/2 for large inputs.
60790         * math/libm-test.inc (atan_test): Add more tests.
60791
60792         * sysdeps/generic/unwind-dw2-fde-glibc.c
60793         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60794         __attribute__ ((unused)).
60795
60796         [BZ #14645]
60797         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60798         x * y if x and y are nonzero and z is zero.
60799
60800         [BZ #14811]
60801         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60802         nonzero exponents with absolute value below 0x1p-117 to +/-
60803         0x1p-117.
60804
60805         [BZ #14869]
60806         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60807         up arguments below 2**-450, not just those below 2**-500.
60808         * math/libm-test.inc (hypot_test): Add another test.
60809
60810         [BZ #14868]
60811         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60812         Return a+b for ratio over 2**120, not 2**60.
60813         * math/libm-test.inc (hypot_test): Add another test.
60814
60815         * math/libm-test.inc (clog_test): Use
60816         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60817         (clog10_test): Likewise.
60818
60819         [BZ #6778]
60820         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60821
60822 2012-11-22  Andreas Schwab  <schwab@suse.de>
60823
60824         * sysdeps/i386/fpu/libm-test-ulps: Update.
60825
60826 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60827
60828         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60829         printf output with newline.
60830
60831 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60832
60833         [BZ #14865]
60834         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60835         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60836         -z nodlopen, -z initfirst and -z execstack support.
60837         * configure: Regenerated.
60838
60839         * elf/elf.h (DF_1_NODIRECT): New macro.
60840         (DF_1_IGNMULDEF): Likewise.
60841         (DF_1_NOKSYMS): Likewise.
60842         (DF_1_NOHDR): Likewise.
60843         (DF_1_EDITED): Likewise.
60844         (DF_1_NORELOC): Likewise.
60845         (DF_1_SYMINTPOSE): Likewise.
60846         (DF_1_GLOBAUDIT): Likewise.
60847         (DF_1_SINGLETON): Likewise.
60848         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60849         DT_1_SUPPORTED_MASK bits.
60850         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60851
60852 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60853
60854         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60855
60856 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60857
60858         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60859         macro.
60860
60861         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60862         (sendmmsg): Move declarations...
60863         * socket/sys/socket.h: ... here.
60864         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60865         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60866         include it from...
60867         * socket/recvmmsg.c: ... this new file.
60868         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60869         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60870         definition of __sendmmsg hidden.
60871         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60872         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60873         Move ENOSYS stub into and include it from...
60874         * socket/sendmmsg.c: ... this new file.
60875         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60876         (sysdep_routines): Move recvmmsg and sendmmsg...
60877         * socket/Makefile (routines): ... here.
60878         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60879         (GLIBC_PRIVATE): Add __sendmmsg.
60880         * include/sys/socket.h (__sendmmsg): Add declarations.
60881         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60882         sendmmsg.
60883
60884 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60885
60886         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60887         variable I1 with __attribute__ ((unused)).
60888         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60889
60890 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60891
60892         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60893         DUMMY variables with __attribute__ ((unused)).
60894
60895         * bits/byteswap.h: Include <bits/types.h>.
60896         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60897
60898 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60899
60900         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60901         string_t.  Do not manually set errno.
60902         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60903         length with __strnlen.  Make sure to both set errno and return it on
60904         failure.
60905
60906 2012-11-19  David S. Miller  <davem@davemloft.net>
60907
60908         With help from Joseph Myers.
60909         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60910         very large arguments properly.
60911         * math/libm-test.inc (atan_test): New tests.
60912         (atan2_test): New tests.
60913         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60914         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60915
60916 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60917
60918         [BZ #14856]
60919         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60920         Define to 3.
60921
60922         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60923         [POSIX] (EADDRNOTAVAIL): Likewise.
60924         [POSIX] (EAFNOSUPPORT): Likewise.
60925         [POSIX] (EALREADY): Likewise.
60926         [POSIX] (ECONNABORTED): Likewise.
60927         [POSIX] (ECONNREFUSED): Likewise.
60928         [POSIX] (ECONNRESET): Likewise.
60929         [POSIX] (EDESTADDRREQ): Likewise.
60930         [POSIX] (EDQUOT): Likewise.
60931         [POSIX] (EHOSTUNREACH): Likewise.
60932         [POSIX] (EIDRM): Likewise.
60933         [POSIX] (EISCONN): Likewise.
60934         [POSIX] (ELOOP): Likewise.
60935         [POSIX] (EMULTIHOP): Likewise.
60936         [POSIX] (ENETDOWN): Likewise.
60937         [POSIX] (ENETUNREACH): Likewise.
60938         [POSIX] (ENOBUFS): Likewise.
60939         [POSIX] (ENODATA): Likewise.
60940         [POSIX] (ENOLINK): Likewise.
60941         [POSIX] (ENOMSG): Likewise.
60942         [POSIX] (ENOPROTOOPT): Likewise.
60943         [POSIX] (ENOSR): Likewise.
60944         [POSIX] (ENOSTR): Likewise.
60945         [POSIX] (ENOTCONN): Likewise.
60946         [POSIX] (ENOTSOCK): Likewise.
60947         [POSIX] (EOPNOTSUPP): Likewise.
60948         [POSIX] (EOVERFLOW): Likewise.
60949         [POSIX] (EPROTO): Likewise.
60950         [POSIX] (EPROTONOSUPPORT): Likewise.
60951         [POSIX] (EPROTOTYPE): Likewise.
60952         [POSIX] (ESTALE): Likewise.
60953         [POSIX] (ETIME): Likewise.
60954         [POSIX] (ETXTBSY): Likewise.
60955         [POSIX] (EWOULDBLOCK): Likewise.
60956         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60957         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60958         [POSIX] (SEEK_CUR): Likewise.
60959         [POSIX] (SEEK_END): Likewise.
60960         [POSIX || UNIX98] (mode_t): Do not require.
60961         [POSIX] (off_t): Likewise.
60962         [POSIX] (pid_t): Likewise.
60963         [POSIX] (sys/stat.h): Do not allow header.
60964         [POSIX] (unistd.h): Likewise.
60965         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60966         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60967         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60968         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60969         require.
60970         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60971         sigevent): Specify elements.
60972         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60973         entry.
60974         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60975         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60976
60977         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60978         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60979         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60980         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60981         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60982         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60983         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60984         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60985         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60986         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60987         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60988         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60989         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60990         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60991         Likewise.
60992         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60993         Likewise.
60994         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60995         Likewise.
60996         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60997         Likewise.
60998         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60999         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
61000         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
61001         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
61002         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
61003         Specify lower bound on value.
61004         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
61005         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
61006         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
61007         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
61008         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
61009         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
61010         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
61011         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
61012         value.
61013         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
61014         as optional.
61015         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
61016         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
61017         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
61018         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
61019         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
61020         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
61021         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
61022         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
61023         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
61024         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
61025         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
61026         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
61027         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
61028         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
61029         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
61030         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
61031         entry.
61032         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
61033         optional.
61034         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
61035         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
61036         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
61037         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
61038         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
61039         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
61040         Likewise.
61041         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
61042         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
61043         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
61044         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
61045         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
61046         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
61047         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
61048         as optional.
61049         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
61050         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
61051         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
61052         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
61053         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
61054         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
61055         specify as optional.
61056         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
61057         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
61058         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
61059         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
61060         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
61061         [XPG3] (NL_LANGMAX): Likewise.
61062         [POSIX || XPG3] (NL_MSGMAX): Likewise.
61063         [POSIX || XPG3] (NL_NMAX): Likewise.
61064         [POSIX || XPG3] (NL_SETMAX): Likewise.
61065         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
61066         [XPG3] (NZERO): Likewise.
61067         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
61068         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
61069         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
61070         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
61071         (REG_ERANGE): Expect.
61072         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
61073         optional-constant.
61074         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
61075         Use (void) in prototype.
61076         [POSIX] (*_t): Allow.
61077         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
61078         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
61079         (WRDE_BADVAL): Expect.
61080
61081         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
61082         expect.
61083         [XPG3 || XPG4] (O_RSYNC): Likewise.
61084         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
61085         Likewise.
61086         [XPG3 || XPG4] (pthread_sigmask): Likewise.
61087         [XPG3 || XPG4] (sigqueue): Likewise.
61088         [XPG3 || XPG4] (sigtimedwait): Likewise.
61089         [XPG3 || XPG4] (sigwaitinfo): Likewise.
61090         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
61091         [XPG3 || XPG4] (vsnprintf): Likewise.
61092         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
61093         Likewise.
61094         [XPG3 || XPG4] (blksize_t): Likewise.
61095         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
61096         Likewise.
61097         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
61098         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
61099         [XPG3 || XPG4] (struct itimerspec): Likewise.
61100         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
61101         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
61102         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
61103         [XPG3 || XPG4] (clockid_t): Likewise.
61104         [XPG3 || XPG4] (timer_t): Likewise.
61105         [XPG3 || XPG4] (clock_getres): Likewise.
61106         [XPG3 || XPG4] (clock_gettime): Likewise.
61107         [XPG3 || XPG4] (clock_settime): Likewise.
61108         [XPG3 || XPG4] (nanosleep): Likewise.
61109         [XPG3 || XPG4] (timer_create): Likewise.
61110         [XPG3 || XPG4] (timer_delete): Likewise.
61111         [XPG3 || XPG4] (timer_gettime): Likewise.
61112         [XPG3 || XPG4] (timer_getoverrun): Likewise.
61113         [XPG3 || XPG4] (timer_settime): Likewise.
61114         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
61115         [XPG3 || XPG4] (getlogin_r): Likewise.
61116         [XPG3 || XPG4] (pread): Likewise.
61117         [XPG3 || XPG4] (pthread_atfork): Likewise.
61118         [XPG3 || XPG4] (pwrite): Likewise.
61119
61120         [BZ #14835]
61121         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
61122         <bits/siginfo.h>.
61123
61124 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
61125
61126         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
61127         finalizing MALLSTREAM.
61128
61129         * sysdeps/mach/hurd/syncfs.c: New file.
61130
61131 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
61132
61133         [BZ #14719]
61134         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
61135         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
61136         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
61137         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
61138         (_nss_dns_gethostbyname4_r): Likewise.
61139         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
61140         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
61141
61142 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
61143
61144         [BZ #13763]
61145         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
61146
61147 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
61148
61149         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
61150         * elf/cache.c (print_entry): Print ",AArch64" for
61151         FLAG_AARCH64_LIB64
61152
61153         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
61154         * elf/cache.c (print_entry): Print ",hard-float" for
61155         FLAG_ARM_LIBHF.
61156
61157 2012-11-18  David S. Miller  <davem@davemloft.net>
61158
61159         With help from Joseph Myers.
61160         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
61161         cutoff to 2**-13.
61162         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
61163         cutoff to 2**-25.
61164         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
61165         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
61166         small.
61167         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
61168         * math/libm-test.inc (y0_test): New tests.
61169         (y1_test): New tests.
61170         * sysdeps/i386/fpu/libm-test-ulps: Update.
61171         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61172         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61173
61174 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
61175
61176         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
61177         64-bit targets.
61178         * configure: Regenerated.
61179
61180 2012-11-17  David S. Miller  <davem@davemloft.net>
61181
61182         [BZ #14811]
61183         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
61184         nonzero exponents with absolute value below 0x1p-128 to +/-
61185         0x1p-128.
61186
61187 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
61188
61189         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
61190
61191         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
61192
61193         * posix/getconf-speclist.c: New file.
61194         * posix/posix-envs.def: Likewise.
61195         * posix/confstr.c (START_ENV_GROUP): New macro.
61196         (END_ENV_GROUP): Likewise.
61197         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61198         (KNOWN_PRESENT_ENV_STRING): Likewise.
61199         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61200         (UNKNOWN_ENVIRONMENT): Likewise.
61201         (confstr): Include posix-envs.def instead of handling
61202         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
61203         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
61204         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
61205         (END_ENV_GROUP): Likewise.
61206         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61207         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61208         (UNKNOWN_ENVIRONMENT): Likewise.
61209         (__sysconf): Include posix-envs.def instead of handling associated
61210         cases directly here.
61211         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
61212         preprocessing getconf-speclist.c rather than running getconf or
61213         generating empty file.
61214
61215 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
61216
61217         * scripts/check-local-headers.sh: Ignore 'mach' headers.
61218
61219 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
61220
61221         [BZ #14672]
61222         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
61223
61224 2012-11-16  David S. Miller  <davem@davemloft.net>
61225
61226         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
61227         smaller than LDBL_EPSILON/2.0L, just return xm1.
61228
61229 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
61230
61231         * elf/tst-array1.c (init): Set constructor priority to 1000.
61232         (fini): Set destructor priority to 1000.
61233         * elf/tst-array2dep.c: Likewise.
61234
61235 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61236
61237         [BZ #11741]
61238         * libio/fileops.c (_IO_new_file_write): Correctly return error.
61239         (_IO_new_file_xsputn): Also return EOF if none of the input
61240         data was written when overflow failed.
61241         * libio/iopadn.c (_IO_padn): Likewise.
61242         * libio/iowpadn.c (_IO_wpadn): Likewise.
61243         * stdio-common/tst-put-error.c: Add copyright notice.
61244         (do_test): Add case for printing padded string.
61245         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
61246         _IO_padn returned error.
61247         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
61248         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
61249         return EOF.
61250
61251 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61252
61253         * libio/libioP.h: Add comment note that the references to C++
61254         bits are now obsolete.
61255
61256 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61257
61258         * math/libm-test.inc (check_complex): Use asprintf.
61259
61260 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
61261
61262         * debug/pcprofiledump.c (print_version): Update copyright year.
61263         * malloc/memusagestat.c (print_version): Likewise.
61264
61265 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
61266
61267         [BZ #14831]
61268         * elf/Makefile (tests): Add tst-audit8.
61269         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
61270         ($(objpfx)tst-audit8.out): New target.
61271         (tst-audit8-ENV): New variable.
61272         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
61273         audit if l_reloc_result is NULL.
61274         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
61275         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
61276         * elf/tst-audit8.c: New file.
61277
61278 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61279
61280         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
61281         * misc/Makefile (CFLAGS-select.c): Define.
61282         * posix/Makefile (CFLAGS-pause.c): Define.
61283
61284 2012-11-13  David S. Miller  <davem@davemloft.net>
61285
61286         * crypt/Makefile: Move test targets after toplevel Rules
61287         inclusion.  Grab any necessary sysdep routines when linking.
61288         * crypt/md5.c (md5_process_block): Remove define, we will always
61289         name it __md5_process_block.
61290         (md5_finish_ctx): Update md5_process_block call.
61291         (md5_stream): Likewise.
61292         (md5_process_bytes): Likewise.
61293         (md5_process_block): Rename to __md5_process_block and move to ...
61294         * crypt/md5-block.c: ... here.
61295         * crypt/sha256.c (sha256_process_block): Move to ...
61296         * crypt/sha256-block.c: ... here.
61297         * crypt/sha512.c (sha512_process_block): Move to ...
61298         * crypt/sha512-block.c: ... here.
61299         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
61300         path.
61301         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
61302         * sysdeps/sparc/sparc64/multiarch/Makefile
61303         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
61304         crypt subdir.
61305         (localedef-aux): Add md5 crypto assembler when in locale subdir.
61306         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
61307         multiarch changes.
61308         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
61309         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
61310         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
61311         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
61312         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
61313         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
61314         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
61315         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
61316         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
61317         file.
61318         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
61319         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
61320         file.
61321         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
61322
61323 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
61324
61325         * timezone/tzselect.ksh: Update from tzcode git revision
61326         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
61327         * timezone/zdump.c: Likewise.
61328         * timezone/zic.c: Likewise.
61329         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
61330         in TZVERSION setting, not $(PKGVERSION).
61331         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
61332         REPORT_BUGS_TO settings.
61333
61334         [BZ #14838]
61335         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
61336         macro.
61337
61338 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61339
61340         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
61341         detection to immediately after _FP_ROUND().
61342         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
61343         bits are 0.
61344
61345 2012-11-11  David S. Miller  <davem@davemloft.net>
61346
61347         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
61348         inttypes.h
61349         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
61350         __close rather than their public counterparts.
61351
61352 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
61353
61354         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
61355         file.
61356         [UNIX98] (sem_timedwait): Do not expect.
61357         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
61358         [XPG4 || UNIX98] (sockatmark): Do not expect.
61359         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
61360         (clock_getcpuclockid): Do not expect.
61361         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
61362         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
61363         Do not expect.
61364         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
61365         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
61366         [UNIX98] (vwscanf): Likewise.
61367         [UNIX98] (vswscanf): Likewise.
61368
61369 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
61370
61371         * timezone/version.h: Remove file.
61372         * timezone/README: Do not refer to version.h.
61373         * timezone/Makefile ($(objpfx)zic.o): New dependency on
61374         $(objpfx)version.h.
61375         ($(objpfx)zdump.o): Likewise.
61376         ($(objpfx)version.h): New target.
61377
61378         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
61379         2012i.
61380         * timezone/README: Don't mention modification to tzselect.ksh.
61381         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
61382         work on unmodified tzselect.ksh.  Substitute version numbers in
61383         tzselect.ksh.
61384
61385         * Makefile (format-me): Remove.
61386         (INSTALL): Adjust indentation.  Use commands directly instead of
61387         using $(format-me).
61388
61389         * aclocal.m4 (ACX_PKGVERSION): New macro.
61390         (ACX_BUGURL): Likewise.
61391         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
61392         (PKGVERSION): New AC_DEFINE_UNQUOTED.
61393         (REPORT_BUGS_TO): Likewise.
61394         * configure: Regenerated.
61395         * config.h.in (PKGVERSION): New macro.
61396         (REPORT_BUGS_TO): Likewise.
61397         * config.make.in (PKGVERSION): New variable.
61398         (PKGVERSION_TEXI): Likewise.
61399         (REPORT_BUGS_TO): Likewise.
61400         (REPORT_BUGS_TEXI): Likewise.
61401         * Makefile (format-me): Use -I$(common-objpfx)manual.
61402         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
61403         ($(common-objpfx)manual/%): New target.
61404         (manual/%): Remove target.
61405         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
61406         (print_version): Use PKGVERSION.
61407         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
61408         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
61409         and REPORT_BUGS_TO.
61410         ($(objpfx)xtrace): Likewise.
61411         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
61412         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
61413         (print_version): Use PKGVERSION.
61414         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
61415         (do_version): Use PKGVERSION.
61416         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
61417         REPORT_BUGS_TO.
61418         (common-ldd-rewrite): Likewise.
61419         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
61420         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
61421         (print_version): Use PKGVERSION.
61422         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
61423         * elf/pldd.c (argp_program_bug_address): Remove variable.
61424         (more_help): New function.
61425         (argp): Use more_help.
61426         (print_version): Use PKGVERSION.
61427         * elf/sln.c (main): Use PKGVERSION.
61428         (usage): Use REPORT_BUGS_TO.
61429         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
61430         (top level): Use PKGVERSION.
61431         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
61432         (print_version): Use PKGVERSION.
61433         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
61434         (print_version): Use PKGVERSION.
61435         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
61436         (print_version): Use PKGVERSION.
61437         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
61438         (print_version): Use PKGVERSION.
61439         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
61440         (print_version): Use PKGVERSION.
61441         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
61442         (print_version): Use PKGVERSION.
61443         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
61444         and BUGURL.
61445         ($(objpfx)memusage): Likewise.
61446         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
61447         (do_version): Use PKGVERSION.
61448         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
61449         (print_version): Use PKGVERSION.
61450         * malloc/mtrace.pl ($PACKAGE): Remove variable.
61451         ($PKGVERSION): New variable.
61452         ($REPORT_BUGS_TO): Likewise.
61453         (usage): Use $REPORT_BUGS_TO.
61454         (top level): Use $PKGVERSION.
61455         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
61456         ($(objpfx)pkgvers.texi): New rule.
61457         ($(objpfx)stamp-pkgvers): Likewise.
61458         * manual/install.texi: Include pkgvers.texi.
61459         (--with-pkgversion): Document new configure option.
61460         (--with-bugurl): Likewise.
61461         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
61462         than necessarily for this particular distribution.  Use
61463         REPORT_BUGS_TO for where to report bugs.
61464         * INSTALL: Regenerated.
61465         * manual/libc.texinfo: Include pkgvers.texi.
61466         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
61467         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
61468         (print_version): Use PKGVERSION.
61469         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
61470         (print_version): Use PKGVERSION.
61471         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
61472         (print_version): Use PKGVERSION.
61473         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
61474         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
61475         macro.
61476         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
61477         (print_version): Use PKGVERSION.
61478         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
61479         (print_version): Use PKGVERSION.
61480         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
61481         and PKGVERSION.
61482
61483         * timezone/checktab.awk: Update from tzcode 2012i.
61484         * timezone/ialloc.c: Likewise.
61485         * timezone/private.h: Likewise.
61486         * timezone/scheck.c: Likewise.
61487         * timezone/tzfile.h: Likewise.
61488         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
61489         (TZVERSION): Hardcode tzcode version number.
61490         * timezone/zdump.c: Update from tzcode 2012i.
61491         * timezone/zic.c: Likewise.
61492         * timezone/version.h: New file.
61493         * timezone/README: Describe version.h.  Update upstream location.
61494
61495         [BZ #14824]
61496         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
61497         (mktemp): Enable declaration.
61498         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
61499         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
61500         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
61501         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
61502         Likewise.
61503         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
61504         Likewise.
61505         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
61506         Likewise.
61507         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
61508         Likewise.
61509         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
61510         Likewise.
61511         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
61512         Likewise.
61513
61514         [BZ #14821]
61515         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
61516         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
61517         for copies of such integer values.
61518         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
61519         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
61520
61521 2012-11-09  Andreas Jaeger  <aj@suse.de>
61522
61523         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
61524         definitions and declarations that are provided by
61525         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
61526
61527 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61528
61529         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
61530         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
61531         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
61532         definition.
61533
61534 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61535
61536         * elf/elf.h: Update comment before AArch64 relocations.
61537
61538 2012-11-07  David S. Miller  <davem@davemloft.net>
61539
61540         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61541         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
61542         (__start_context): Declare.
61543         (__makecontext_ret): Delete.
61544         (__makecontext): Hook up __start_context instead of
61545         __makecontext_ret.
61546         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
61547         (sysdep_routines): Add __start_context when in stdlib.
61548
61549 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61550
61551         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61552         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61553         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61554         hardcoded "nm".
61555         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61556         (READELF): New variable.  Use it instead of hardcoded "readelf".
61557
61558 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61559
61560         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61561         * sysdeps/x86/Makefile: Here.
61562         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61563         * sysdeps/x86/tst-xmmymm.sh: This.
61564
61565 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61566
61567         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61568         expectations.
61569         [UNIX98] (pthread_barrier_t): Do not expect.
61570         [UNIX98] (pthread_barrierattr_t): Likewise.
61571         [UNIX98] (pthread_spinlock_t): Likewise.
61572         [UNIX98] (pthread_barrier_destroy): Likewise.
61573         [UNIX98] (pthread_barrier_init): Likewise.
61574         [UNIX98] (pthread_barrier_wait): Likewise.
61575         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61576         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61577         [UNIX98] (pthread_barrierattr_init): Likewise.
61578         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61579         [UNIX98] (pthread_getcpuclockid): Likewise.
61580         [UNIX98] (pthread_mutex_timedlock): Likewise.
61581         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61582         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61583         [UNIX98] (pthread_sigmask): Likewise.
61584         [UNIX98] (pthread_spin_destroy): Likewise.
61585         [UNIX98] (pthread_spin_init): Likewise.
61586         [UNIX98] (pthread_spin_lock): Likewise.
61587         [UNIX98] (pthread_spin_trylock): Likewise.
61588         [UNIX98] (pthread_spin_unlock): Likewise.
61589         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61590         Do not expect.
61591         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61592         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61593         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61594         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61595         [XPG3 || XPG4] (pthread_key_t): Likewise.
61596         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61597         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61598         [XPG3 || XPG4] (pthread_once_t): Likewise.
61599         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61600         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61601         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61602         [XPG3 || XPG4] (pthread_t): Likewise.
61603
61604         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61605         not expect.
61606         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61607
61608         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61609         Change function return type to int.
61610
61611         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61612         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61613         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61614         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61615         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61616         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61617         [!POSIX] (posix_madvise): Likewise.
61618         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61619         && !UNIX98].
61620         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61621         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61622         (mode_t): Likewise.
61623         (posix_mem_offset): Likewise.
61624         (posix_typed_mem_get_info): Likewise.
61625         (posix_typed_mem_open): Likewise.
61626
61627         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61628         Change condition to [XOPEN2K8].
61629
61630         * conform/conformtest.pl: Preprocess allow-header data with -x c
61631         instead of from stdin.
61632         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61633         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61634         [C99-based standards] (cerfc): Likewise.
61635         [C99-based standards] (cexp2): Likewise.
61636         [C99-based standards] (cexpm1): Likewise.
61637         [C99-based standards] (clog10): Likewise.
61638         [C99-based standards] (clog1p): Likewise.
61639         [C99-based standards] (clog2): Likewise.
61640         [C99-based standards] (clgamma): Likewise.
61641         [C99-based standards] (ctgamma): Likewise.
61642         [C99-based standards] (cerff): Likewise.
61643         [C99-based standards] (cerfcf): Likewise.
61644         [C99-based standards] (cexp2f): Likewise.
61645         [C99-based standards] (cexpm1f): Likewise.
61646         [C99-based standards] (clog10f): Likewise.
61647         [C99-based standards] (clog1pf): Likewise.
61648         [C99-based standards] (clog2f): Likewise.
61649         [C99-based standards] (clgammaf): Likewise.
61650         [C99-based standards] (ctgammaf): Likewise.
61651         [C99-based standards] (cerfl): Likewise.
61652         [C99-based standards] (cerfcl): Likewise.
61653         [C99-based standards] (cexp2l): Likewise.
61654         [C99-based standards] (cexpm1l): Likewise.
61655         [C99-based standards] (clog10l): Likewise.
61656         [C99-based standards] (clog1pl): Likewise.
61657         [C99-based standards] (clog2l): Likewise.
61658         [C99-based standards] (clgammal): Likewise.
61659         [C99-based standards] (ctgammal): Likewise.
61660         * conform/data/inttypes.h-data [C99-based standards]: Include
61661         stdint.h-data.  Remove all expectations for stdint.h contents.
61662         [C99-based standards] (PRI*): Do not allow.
61663         [C99-based standards] (SCN*): Likewise.
61664         [C99-based standards] (*_t): Likewise.
61665         [C99-based-standards] (PRId8): Expect macro.
61666         [C99-based-standards] (PRIi8): Likewise.
61667         [C99-based-standards] (PRIo8): Likewise.
61668         [C99-based-standards] (PRIu8): Likewise.
61669         [C99-based-standards] (PRIx8): Likewise.
61670         [C99-based-standards] (PRIX8): Likewise.
61671         [C99-based-standards] (SCNd8): Likewise.
61672         [C99-based-standards] (SCNi8): Likewise.
61673         [C99-based-standards] (SCNo8): Likewise.
61674         [C99-based-standards] (SCNu8): Likewise.
61675         [C99-based-standards] (SCNx8): Likewise.
61676         [C99-based-standards] (PRIdLEAST8): Likewise.
61677         [C99-based-standards] (PRIiLEAST8): Likewise.
61678         [C99-based-standards] (PRIoLEAST8): Likewise.
61679         [C99-based-standards] (PRIuLEAST8): Likewise.
61680         [C99-based-standards] (PRIxLEAST8): Likewise.
61681         [C99-based-standards] (PRIXLEAST8): Likewise.
61682         [C99-based-standards] (SCNdLEAST8): Likewise.
61683         [C99-based-standards] (SCNiLEAST8): Likewise.
61684         [C99-based-standards] (SCNoLEAST8): Likewise.
61685         [C99-based-standards] (SCNuLEAST8): Likewise.
61686         [C99-based-standards] (SCNxLEAST8): Likewise.
61687         [C99-based-standards] (PRIdFAST8): Likewise.
61688         [C99-based-standards] (PRIiFAST8): Likewise.
61689         [C99-based-standards] (PRIoFAST8): Likewise.
61690         [C99-based-standards] (PRIuFAST8): Likewise.
61691         [C99-based-standards] (PRIxFAST8): Likewise.
61692         [C99-based-standards] (PRIXFAST8): Likewise.
61693         [C99-based-standards] (SCNdFAST8): Likewise.
61694         [C99-based-standards] (SCNiFAST8): Likewise.
61695         [C99-based-standards] (SCNoFAST8): Likewise.
61696         [C99-based-standards] (SCNuFAST8): Likewise.
61697         [C99-based-standards] (SCNxFAST8): Likewise.
61698         [C99-based-standards] (PRId16): Likewise.
61699         [C99-based-standards] (PRIi16): Likewise.
61700         [C99-based-standards] (PRIo16): Likewise.
61701         [C99-based-standards] (PRIu16): Likewise.
61702         [C99-based-standards] (PRIx16): Likewise.
61703         [C99-based-standards] (PRIX16): Likewise.
61704         [C99-based-standards] (SCNd16): Likewise.
61705         [C99-based-standards] (SCNi16): Likewise.
61706         [C99-based-standards] (SCNo16): Likewise.
61707         [C99-based-standards] (SCNu16): Likewise.
61708         [C99-based-standards] (SCNx16): Likewise.
61709         [C99-based-standards] (PRIdLEAST16): Likewise.
61710         [C99-based-standards] (PRIiLEAST16): Likewise.
61711         [C99-based-standards] (PRIoLEAST16): Likewise.
61712         [C99-based-standards] (PRIuLEAST16): Likewise.
61713         [C99-based-standards] (PRIxLEAST16): Likewise.
61714         [C99-based-standards] (PRIXLEAST16): Likewise.
61715         [C99-based-standards] (SCNdLEAST16): Likewise.
61716         [C99-based-standards] (SCNiLEAST16): Likewise.
61717         [C99-based-standards] (SCNoLEAST16): Likewise.
61718         [C99-based-standards] (SCNuLEAST16): Likewise.
61719         [C99-based-standards] (SCNxLEAST16): Likewise.
61720         [C99-based-standards] (PRIdFAST16): Likewise.
61721         [C99-based-standards] (PRIiFAST16): Likewise.
61722         [C99-based-standards] (PRIoFAST16): Likewise.
61723         [C99-based-standards] (PRIuFAST16): Likewise.
61724         [C99-based-standards] (PRIxFAST16): Likewise.
61725         [C99-based-standards] (PRIXFAST16): Likewise.
61726         [C99-based-standards] (SCNdFAST16): Likewise.
61727         [C99-based-standards] (SCNiFAST16): Likewise.
61728         [C99-based-standards] (SCNoFAST16): Likewise.
61729         [C99-based-standards] (SCNuFAST16): Likewise.
61730         [C99-based-standards] (SCNxFAST16): Likewise.
61731         [C99-based-standards] (PRId32): Likewise.
61732         [C99-based-standards] (PRIi32): Likewise.
61733         [C99-based-standards] (PRIo32): Likewise.
61734         [C99-based-standards] (PRIu32): Likewise.
61735         [C99-based-standards] (PRIx32): Likewise.
61736         [C99-based-standards] (PRIX32): Likewise.
61737         [C99-based-standards] (SCNd32): Likewise.
61738         [C99-based-standards] (SCNi32): Likewise.
61739         [C99-based-standards] (SCNo32): Likewise.
61740         [C99-based-standards] (SCNu32): Likewise.
61741         [C99-based-standards] (SCNx32): Likewise.
61742         [C99-based-standards] (PRIdLEAST32): Likewise.
61743         [C99-based-standards] (PRIiLEAST32): Likewise.
61744         [C99-based-standards] (PRIoLEAST32): Likewise.
61745         [C99-based-standards] (PRIuLEAST32): Likewise.
61746         [C99-based-standards] (PRIxLEAST32): Likewise.
61747         [C99-based-standards] (PRIXLEAST32): Likewise.
61748         [C99-based-standards] (SCNdLEAST32): Likewise.
61749         [C99-based-standards] (SCNiLEAST32): Likewise.
61750         [C99-based-standards] (SCNoLEAST32): Likewise.
61751         [C99-based-standards] (SCNuLEAST32): Likewise.
61752         [C99-based-standards] (SCNxLEAST32): Likewise.
61753         [C99-based-standards] (PRIdFAST32): Likewise.
61754         [C99-based-standards] (PRIiFAST32): Likewise.
61755         [C99-based-standards] (PRIoFAST32): Likewise.
61756         [C99-based-standards] (PRIuFAST32): Likewise.
61757         [C99-based-standards] (PRIxFAST32): Likewise.
61758         [C99-based-standards] (PRIXFAST32): Likewise.
61759         [C99-based-standards] (SCNdFAST32): Likewise.
61760         [C99-based-standards] (SCNiFAST32): Likewise.
61761         [C99-based-standards] (SCNoFAST32): Likewise.
61762         [C99-based-standards] (SCNuFAST32): Likewise.
61763         [C99-based-standards] (SCNxFAST32): Likewise.
61764         [C99-based-standards] (PRId64): Likewise.
61765         [C99-based-standards] (PRIi64): Likewise.
61766         [C99-based-standards] (PRIo64): Likewise.
61767         [C99-based-standards] (PRIu64): Likewise.
61768         [C99-based-standards] (PRIx64): Likewise.
61769         [C99-based-standards] (PRIX64): Likewise.
61770         [C99-based-standards] (SCNd64): Likewise.
61771         [C99-based-standards] (SCNi64): Likewise.
61772         [C99-based-standards] (SCNo64): Likewise.
61773         [C99-based-standards] (SCNu64): Likewise.
61774         [C99-based-standards] (SCNx64): Likewise.
61775         [C99-based-standards] (PRIdLEAST64): Likewise.
61776         [C99-based-standards] (PRIiLEAST64): Likewise.
61777         [C99-based-standards] (PRIoLEAST64): Likewise.
61778         [C99-based-standards] (PRIuLEAST64): Likewise.
61779         [C99-based-standards] (PRIxLEAST64): Likewise.
61780         [C99-based-standards] (PRIXLEAST64): Likewise.
61781         [C99-based-standards] (SCNdLEAST64): Likewise.
61782         [C99-based-standards] (SCNiLEAST64): Likewise.
61783         [C99-based-standards] (SCNoLEAST64): Likewise.
61784         [C99-based-standards] (SCNuLEAST64): Likewise.
61785         [C99-based-standards] (SCNxLEAST64): Likewise.
61786         [C99-based-standards] (PRIdFAST64): Likewise.
61787         [C99-based-standards] (PRIiFAST64): Likewise.
61788         [C99-based-standards] (PRIoFAST64): Likewise.
61789         [C99-based-standards] (PRIuFAST64): Likewise.
61790         [C99-based-standards] (PRIxFAST64): Likewise.
61791         [C99-based-standards] (PRIXFAST64): Likewise.
61792         [C99-based-standards] (SCNdFAST64): Likewise.
61793         [C99-based-standards] (SCNiFAST64): Likewise.
61794         [C99-based-standards] (SCNoFAST64): Likewise.
61795         [C99-based-standards] (SCNuFAST64): Likewise.
61796         [C99-based-standards] (SCNxFAST64): Likewise.
61797         [C99-based-standards] (PRIdMAX): Likewise.
61798         [C99-based-standards] (PRIiMAX): Likewise.
61799         [C99-based-standards] (PRIoMAX): Likewise.
61800         [C99-based-standards] (PRIuMAX): Likewise.
61801         [C99-based-standards] (PRIxMAX): Likewise.
61802         [C99-based-standards] (PRIXMAX): Likewise.
61803         [C99-based-standards] (SCNdMAX): Likewise.
61804         [C99-based-standards] (SCNiMAX): Likewise.
61805         [C99-based-standards] (SCNoMAX): Likewise.
61806         [C99-based-standards] (SCNuMAX): Likewise.
61807         [C99-based-standards] (SCNxMAX): Likewise.
61808         [C99-based-standards] (PRIdPTR): Likewise.
61809         [C99-based-standards] (PRIiPTR): Likewise.
61810         [C99-based-standards] (PRIoPTR): Likewise.
61811         [C99-based-standards] (PRIuPTR): Likewise.
61812         [C99-based-standards] (PRIxPTR): Likewise.
61813         [C99-based-standards] (PRIXPTR): Likewise.
61814         [C99-based-standards] (SCNdPTR): Likewise.
61815         [C99-based-standards] (SCNiPTR): Likewise.
61816         [C99-based-standards] (SCNoPTR): Likewise.
61817         [C99-based-standards] (SCNuPTR): Likewise.
61818         [C99-based-standards] (SCNxPTR): Likewise.
61819         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61820         allow.
61821         * conform/data/stdint.h-data: Update comments to clarify
61822         requirements.
61823         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61824         type.
61825         [C99-based standards] (INT8_MAX): Likewise.
61826         [C99-based standards] (INT16_MIN): Likewise.
61827         [C99-based standards] (INT16_MAX): Likewise.
61828         [C99-based standards] (INT32_MIN): Likewise.
61829         [C99-based standards] (INT32_MAX): Likewise.
61830         [C99-based standards] (INT64_MIN): Likewise.
61831         [C99-based standards] (INT64_MAX): Likewise.
61832         [C99-based standards] (UINT8_MAX): Likewise.
61833         [C99-based standards] (UINT16_MAX): Likewise.
61834         [C99-based standards] (UINT32_MAX): Likewise.
61835         [C99-based standards] (UINT64_MAX): Likewise.
61836         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61837         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61838         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61839         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61840         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61841         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61842         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61843         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61844         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61845         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61846         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61847         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61848         [C99-based standards] (INT_FAST8_MIN): Likewise.
61849         [C99-based standards] (INT_FAST8_MAX): Likewise.
61850         [C99-based standards] (INT_FAST16_MIN): Likewise.
61851         [C99-based standards] (INT_FAST16_MAX): Likewise.
61852         [C99-based standards] (INT_FAST32_MIN): Likewise.
61853         [C99-based standards] (INT_FAST32_MAX): Likewise.
61854         [C99-based standards] (INT_FAST64_MIN): Likewise.
61855         [C99-based standards] (INT_FAST64_MAX): Likewise.
61856         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61857         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61858         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61859         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61860         [C99-based standards] (INTPTR_MIN): Likewise.
61861         [C99-based standards] (INTPTR_MAX): Likewise.
61862         [C99-based standards] (UINTPTR_MAX): Likewise.
61863         [C99-based standards] (INTMAX_MIN): Likewise.
61864         [C99-based standards] (INTMAX_MAX): Likewise.
61865         [C99-based standards] (UINTMAX_MAX): Likewise.
61866         [C99-based standards] (PTRDIFF_MIN): Likewise.
61867         [C99-based standards] (PTRDIFF_MAX): Likewise.
61868         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61869         [C99-based standards] (SIZE_MAX): Likewise.
61870         [C99-based standards] (WCHAR_MAX): Likewise.
61871         [C99-based standards] (WINT_MAX): Likewise.
61872         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61873         constraint on value.
61874         [C99-based standards] (WCHAR_MIN): Likewise.
61875         [C99-based standards] (WINT_MIN): Likewise.
61876         [C99-based standards] (*_t): Allow.
61877         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61878         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61879         Include math.h-data and complex.h-data.  Remove all expectations
61880         of math.h and complex.h contents.
61881         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61882         at end of line.
61883         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61884         (struct tm): Expect tag.
61885         [C99-based-standards] (wcstof): Expect function.
61886         [C99-based-standards] (wcstold): Likewise.
61887         [C99-based-standards] (wcstoll): Likewise.
61888         [C99-based-standards] (wcstoull): Likewise.
61889         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61890         macro-int-constant.  Specify type.
61891         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61892         constraint on value.
61893         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61894         Specify type.
61895         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61896         Specify value.
61897         [ISO C standards]: Do not allow headers.
61898         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61899         wcs[abcdefghijklmnopqrstuvwxyz]*.
61900         [ISO C standards] (*_t): Do not allow.
61901         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61902         Expect function.
61903         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61904         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61905         Specify type.
61906         [ISO C standards]: Do not allow headers.
61907         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61908         is[abcdefghijklmnopqrstuvwxyz]*.
61909         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61910         to[abcdefghijklmnopqrstuvwxyz]*.
61911         [ISO C standards] (*_t): Do not allow.
61912         * conform/data/stdalign.h-data: New file.
61913         * conform/data/stdbool.h-data: Likewise.
61914         * conform/data/stdnoreturn.h-data: Likewise.
61915
61916 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61917
61918         [BZ #14815]
61919         * manual/filesys.texi (Directory Entries): Typo fix.
61920         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61921
61922 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61923
61924         * elf/elf.h (EM_AARCH64): New macro.
61925         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61926         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61927         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61928         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61929         (R_AARCH64_TLSDESC): Likewise.
61930         (NT_ARM_TLS): Likewise.
61931         (NT_ARM_HW_BREAK): Likewise.
61932         (NT_ARM_HW_WATCH): Likewise.
61933
61934 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61935
61936         [BZ #14811]
61937         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61938         (__ieee754_powl): Saturate nonzero exponents with absolute value
61939         below 0x1p-79 to +/- 0x1p-79.
61940         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61941         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61942         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61943         nonzero exponents with absolute value below 0x1p-32 to +/-
61944         0x1p-32.
61945         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61946         (__ieee754_powl): Saturate nonzero exponents with absolute value
61947         below 0x1p-79 to +/- 0x1p-79.
61948         * math/libm-test.inc (pow_test): Add more tests.
61949
61950 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61951
61952         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61953         _dl_s390_cap_flags with kernel. Increase string length.
61954         (_dl_s390_platforms): Add z196 and zEC12.
61955
61956 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61957
61958         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61959         Change XOPEN21K to XOPEN2K.
61960
61961 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61962
61963         * string/memmove.c: Use memcpy when possible.
61964
61965 2012-11-06  Andreas Jaeger  <aj@suse.de>
61966
61967         * po/eo.po: Update from translation team.
61968
61969 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61970
61971         [BZ #14793]
61972         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61973         exponent and small x and y exponents, scale x or y up.  Increase
61974         by 2 the exponent used in scaling up.
61975         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61976         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61977         * math/libm-test.inc (fma_test): Add more tests.
61978         (fma_test_towardzero): Likewise.
61979         (fma_test_downward): Likewise.
61980         (fma_test_upward): Likewise.
61981
61982 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61983
61984         [BZ #14805]
61985         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61986         fenv_t *.
61987
61988         [BZ #14801]
61989         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61990         namespace for names of struct fields.
61991         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61992         fenv_t fields.
61993         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61994         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61995
61996 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61997
61998         [BZ #3665]
61999         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
62000
62001 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
62002
62003         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
62004         PTR_DEMANGLE.
62005
62006         [BZ #5246]
62007         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
62008         PTR_DEMANGLE.
62009
62010 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
62011
62012         [BZ #14797]
62013         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
62014         definitely overflow as x * y not x * y + z.
62015         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62016         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62017         * math/libm-test.inc (fma_test): Add more tests.
62018         (fma_test_towardzero): Likewise.
62019         (fma_test_downward): Likewise.
62020         (fma_test_upward): Likewise.
62021
62022 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
62023
62024         [BZ #157]
62025
62026         * include/stub-tag.h: Remove file.
62027         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
62028         '#include' of it.
62029         * manual/maint.texi (Porting): Don't reference it.
62030         * Makerules ($(objpfx)stubs): Likewise.
62031         * dirent/closedir.c: Don't include <stub-tag.h>.
62032         * dirent/dirfd.c: Likewise.
62033         * dirent/fdopendir.c: Likewise.
62034         * dirent/getdents.c: Likewise.
62035         * dirent/getdents64.c: Likewise.
62036         * dirent/opendir.c: Likewise.
62037         * dirent/readdir.c: Likewise.
62038         * dirent/readdir64.c: Likewise.
62039         * dirent/readdir64_r.c: Likewise.
62040         * dirent/readdir_r.c: Likewise.
62041         * dirent/rewinddir.c: Likewise.
62042         * dirent/seekdir.c: Likewise.
62043         * dirent/telldir.c: Likewise.
62044         * gmon/profil.c: Likewise.
62045         * grp/setgroups.c: Likewise.
62046         * inet/if_index.c: Likewise.
62047         * io/access.c: Likewise.
62048         * io/chdir.c: Likewise.
62049         * io/chmod.c: Likewise.
62050         * io/chown.c: Likewise.
62051         * io/close.c: Likewise.
62052         * io/dup.c: Likewise.
62053         * io/dup2.c: Likewise.
62054         * io/dup3.c: Likewise.
62055         * io/euidaccess.c: Likewise.
62056         * io/faccessat.c: Likewise.
62057         * io/fchdir.c: Likewise.
62058         * io/fchmod.c: Likewise.
62059         * io/fchmodat.c: Likewise.
62060         * io/fchown.c: Likewise.
62061         * io/fchownat.c: Likewise.
62062         * io/fcntl.c: Likewise.
62063         * io/flock.c: Likewise.
62064         * io/fstatfs.c: Likewise.
62065         * io/fstatfs64.c: Likewise.
62066         * io/fstatvfs.c: Likewise.
62067         * io/fstatvfs64.c: Likewise.
62068         * io/futimens.c: Likewise.
62069         * io/fxstat.c: Likewise.
62070         * io/fxstat64.c: Likewise.
62071         * io/fxstatat.c: Likewise.
62072         * io/fxstatat64.c: Likewise.
62073         * io/getcwd.c: Likewise.
62074         * io/isatty.c: Likewise.
62075         * io/lchmod.c: Likewise.
62076         * io/lchown.c: Likewise.
62077         * io/link.c: Likewise.
62078         * io/linkat.c: Likewise.
62079         * io/lseek.c: Likewise.
62080         * io/lseek64.c: Likewise.
62081         * io/lxstat64.c: Likewise.
62082         * io/mkdir.c: Likewise.
62083         * io/mkdirat.c: Likewise.
62084         * io/mkfifo.c: Likewise.
62085         * io/mkfifoat.c: Likewise.
62086         * io/open.c: Likewise.
62087         * io/open64.c: Likewise.
62088         * io/openat.c: Likewise.
62089         * io/openat64.c: Likewise.
62090         * io/pipe.c: Likewise.
62091         * io/pipe2.c: Likewise.
62092         * io/poll.c: Likewise.
62093         * io/posix_fadvise.c: Likewise.
62094         * io/posix_fadvise64.c: Likewise.
62095         * io/posix_fallocate.c: Likewise.
62096         * io/posix_fallocate64.c: Likewise.
62097         * io/read.c: Likewise.
62098         * io/readlink.c: Likewise.
62099         * io/readlinkat.c: Likewise.
62100         * io/rmdir.c: Likewise.
62101         * io/sendfile.c: Likewise.
62102         * io/sendfile64.c: Likewise.
62103         * io/statfs.c: Likewise.
62104         * io/statfs64.c: Likewise.
62105         * io/statvfs.c: Likewise.
62106         * io/statvfs64.c: Likewise.
62107         * io/symlink.c: Likewise.
62108         * io/symlinkat.c: Likewise.
62109         * io/ttyname.c: Likewise.
62110         * io/ttyname_r.c: Likewise.
62111         * io/umask.c: Likewise.
62112         * io/unlink.c: Likewise.
62113         * io/unlinkat.c: Likewise.
62114         * io/utime.c: Likewise.
62115         * io/utimensat.c: Likewise.
62116         * io/write.c: Likewise.
62117         * io/xmknod.c: Likewise.
62118         * io/xmknodat.c: Likewise.
62119         * io/xstat.c: Likewise.
62120         * io/xstat64.c: Likewise.
62121         * login/getpt.c: Likewise.
62122         * login/grantpt.c: Likewise.
62123         * login/unlockpt.c: Likewise.
62124         * math/e_acoshl.c: Likewise.
62125         * math/e_acosl.c: Likewise.
62126         * math/e_asinl.c: Likewise.
62127         * math/e_atan2l.c: Likewise.
62128         * math/e_atanhl.c: Likewise.
62129         * math/e_coshl.c: Likewise.
62130         * math/e_expl.c: Likewise.
62131         * math/e_fmodl.c: Likewise.
62132         * math/e_gammal_r.c: Likewise.
62133         * math/e_hypotl.c: Likewise.
62134         * math/e_j0l.c: Likewise.
62135         * math/e_j1l.c: Likewise.
62136         * math/e_jnl.c: Likewise.
62137         * math/e_lgammal_r.c: Likewise.
62138         * math/e_log10l.c: Likewise.
62139         * math/e_log2l.c: Likewise.
62140         * math/e_logl.c: Likewise.
62141         * math/e_powl.c: Likewise.
62142         * math/e_rem_pio2l.c: Likewise.
62143         * math/e_sinhl.c: Likewise.
62144         * math/e_sqrtl.c: Likewise.
62145         * math/fclrexcpt.c: Likewise.
62146         * math/fedisblxcpt.c: Likewise.
62147         * math/feenablxcpt.c: Likewise.
62148         * math/fegetenv.c: Likewise.
62149         * math/fegetexcept.c: Likewise.
62150         * math/fegetround.c: Likewise.
62151         * math/feholdexcpt.c: Likewise.
62152         * math/fesetenv.c: Likewise.
62153         * math/fesetround.c: Likewise.
62154         * math/feupdateenv.c: Likewise.
62155         * math/fgetexcptflg.c: Likewise.
62156         * math/fraiseexcpt.c: Likewise.
62157         * math/fsetexcptflg.c: Likewise.
62158         * math/ftestexcept.c: Likewise.
62159         * math/k_cosl.c: Likewise.
62160         * math/k_rem_pio2l.c: Likewise.
62161         * math/k_sinl.c: Likewise.
62162         * math/k_tanl.c: Likewise.
62163         * math/s_asinhl.c: Likewise.
62164         * math/s_atanl.c: Likewise.
62165         * math/s_cbrtl.c: Likewise.
62166         * math/s_erfl.c: Likewise.
62167         * math/s_expm1l.c: Likewise.
62168         * math/s_log1pl.c: Likewise.
62169         * math/s_tanhl.c: Likewise.
62170         * misc/acct.c: Likewise.
62171         * misc/brk.c: Likewise.
62172         * misc/chflags.c: Likewise.
62173         * misc/chroot.c: Likewise.
62174         * misc/fchflags.c: Likewise.
62175         * misc/fgetxattr.c: Likewise.
62176         * misc/flistxattr.c: Likewise.
62177         * misc/fremovexattr.c: Likewise.
62178         * misc/fsetxattr.c: Likewise.
62179         * misc/fsync.c: Likewise.
62180         * misc/ftruncate.c: Likewise.
62181         * misc/futimes.c: Likewise.
62182         * misc/futimesat.c: Likewise.
62183         * misc/getdomain.c: Likewise.
62184         * misc/getdtsz.c: Likewise.
62185         * misc/gethostid.c: Likewise.
62186         * misc/gethostname.c: Likewise.
62187         * misc/getloadavg.c: Likewise.
62188         * misc/getpagesize.c: Likewise.
62189         * misc/getsysstats.c: Likewise.
62190         * misc/getxattr.c: Likewise.
62191         * misc/gtty.c: Likewise.
62192         * misc/ioctl.c: Likewise.
62193         * misc/lgetxattr.c: Likewise.
62194         * misc/listxattr.c: Likewise.
62195         * misc/llistxattr.c: Likewise.
62196         * misc/lremovexattr.c: Likewise.
62197         * misc/lsetxattr.c: Likewise.
62198         * misc/lutimes.c: Likewise.
62199         * misc/madvise.c: Likewise.
62200         * misc/mincore.c: Likewise.
62201         * misc/mlock.c: Likewise.
62202         * misc/mlockall.c: Likewise.
62203         * misc/mmap.c: Likewise.
62204         * misc/mprotect.c: Likewise.
62205         * misc/msync.c: Likewise.
62206         * misc/munlock.c: Likewise.
62207         * misc/munlockall.c: Likewise.
62208         * misc/munmap.c: Likewise.
62209         * misc/preadv.c: Likewise.
62210         * misc/preadv64.c: Likewise.
62211         * misc/ptrace.c: Likewise.
62212         * misc/pwritev.c: Likewise.
62213         * misc/pwritev64.c: Likewise.
62214         * misc/readv.c: Likewise.
62215         * misc/reboot.c: Likewise.
62216         * misc/remap_file_pages.c: Likewise.
62217         * misc/removexattr.c: Likewise.
62218         * misc/revoke.c: Likewise.
62219         * misc/select.c: Likewise.
62220         * misc/setdomain.c: Likewise.
62221         * misc/setegid.c: Likewise.
62222         * misc/seteuid.c: Likewise.
62223         * misc/sethostid.c: Likewise.
62224         * misc/sethostname.c: Likewise.
62225         * misc/setregid.c: Likewise.
62226         * misc/setreuid.c: Likewise.
62227         * misc/setxattr.c: Likewise.
62228         * misc/sstk.c: Likewise.
62229         * misc/stty.c: Likewise.
62230         * misc/swapoff.c: Likewise.
62231         * misc/swapon.c: Likewise.
62232         * misc/sync.c: Likewise.
62233         * misc/syncfs.c: Likewise.
62234         * misc/syscall.c: Likewise.
62235         * misc/truncate.c: Likewise.
62236         * misc/ualarm.c: Likewise.
62237         * misc/usleep.c: Likewise.
62238         * misc/ustat.c: Likewise.
62239         * misc/utimes.c: Likewise.
62240         * misc/vhangup.c: Likewise.
62241         * misc/writev.c: Likewise.
62242         * posix/_exit.c: Likewise.
62243         * posix/alarm.c: Likewise.
62244         * posix/execve.c: Likewise.
62245         * posix/fexecve.c: Likewise.
62246         * posix/fork.c: Likewise.
62247         * posix/fpathconf.c: Likewise.
62248         * posix/getaddrinfo.c: Likewise.
62249         * posix/getegid.c: Likewise.
62250         * posix/geteuid.c: Likewise.
62251         * posix/getgid.c: Likewise.
62252         * posix/getgroups.c: Likewise.
62253         * posix/getlogin.c: Likewise.
62254         * posix/getlogin_r.c: Likewise.
62255         * posix/getpgid.c: Likewise.
62256         * posix/getpid.c: Likewise.
62257         * posix/getppid.c: Likewise.
62258         * posix/getresgid.c: Likewise.
62259         * posix/getresuid.c: Likewise.
62260         * posix/getsid.c: Likewise.
62261         * posix/getuid.c: Likewise.
62262         * posix/glob64.c: Likewise.
62263         * posix/nanosleep.c: Likewise.
62264         * posix/pathconf.c: Likewise.
62265         * posix/pause.c: Likewise.
62266         * posix/posix_madvise.c: Likewise.
62267         * posix/pread.c: Likewise.
62268         * posix/pread64.c: Likewise.
62269         * posix/pwrite.c: Likewise.
62270         * posix/pwrite64.c: Likewise.
62271         * posix/sched_getaffinity.c: Likewise.
62272         * posix/sched_getp.c: Likewise.
62273         * posix/sched_gets.c: Likewise.
62274         * posix/sched_primax.c: Likewise.
62275         * posix/sched_primin.c: Likewise.
62276         * posix/sched_rr_gi.c: Likewise.
62277         * posix/sched_setaffinity.c: Likewise.
62278         * posix/sched_setp.c: Likewise.
62279         * posix/sched_sets.c: Likewise.
62280         * posix/sched_yield.c: Likewise.
62281         * posix/setgid.c: Likewise.
62282         * posix/setlogin.c: Likewise.
62283         * posix/setpgid.c: Likewise.
62284         * posix/setresgid.c: Likewise.
62285         * posix/setresuid.c: Likewise.
62286         * posix/setsid.c: Likewise.
62287         * posix/setuid.c: Likewise.
62288         * posix/sleep.c: Likewise.
62289         * posix/spawni.c: Likewise.
62290         * posix/sysconf.c: Likewise.
62291         * posix/times.c: Likewise.
62292         * posix/wait.c: Likewise.
62293         * posix/wait3.c: Likewise.
62294         * posix/wait4.c: Likewise.
62295         * posix/waitpid.c: Likewise.
62296         * resolv/gai_sigqueue.c: Likewise.
62297         * resource/getpriority.c: Likewise.
62298         * resource/getrlimit.c: Likewise.
62299         * resource/getrusage.c: Likewise.
62300         * resource/nice.c: Likewise.
62301         * resource/setpriority.c: Likewise.
62302         * resource/setrlimit.c: Likewise.
62303         * resource/ulimit.c: Likewise.
62304         * rt/aio_cancel.c: Likewise.
62305         * rt/aio_fsync.c: Likewise.
62306         * rt/aio_read.c: Likewise.
62307         * rt/aio_sigqueue.c: Likewise.
62308         * rt/aio_suspend.c: Likewise.
62309         * rt/aio_write.c: Likewise.
62310         * rt/clock_getres.c: Likewise.
62311         * rt/clock_gettime.c: Likewise.
62312         * rt/clock_nanosleep.c: Likewise.
62313         * rt/clock_settime.c: Likewise.
62314         * rt/lio_listio.c: Likewise.
62315         * rt/mq_close.c: Likewise.
62316         * rt/mq_getattr.c: Likewise.
62317         * rt/mq_notify.c: Likewise.
62318         * rt/mq_open.c: Likewise.
62319         * rt/mq_receive.c: Likewise.
62320         * rt/mq_send.c: Likewise.
62321         * rt/mq_setattr.c: Likewise.
62322         * rt/mq_timedreceive.c: Likewise.
62323         * rt/mq_timedsend.c: Likewise.
62324         * rt/mq_unlink.c: Likewise.
62325         * rt/shm_open.c: Likewise.
62326         * rt/shm_unlink.c: Likewise.
62327         * rt/timer_create.c: Likewise.
62328         * rt/timer_delete.c: Likewise.
62329         * rt/timer_getoverr.c: Likewise.
62330         * rt/timer_gettime.c: Likewise.
62331         * rt/timer_settime.c: Likewise.
62332         * setjmp/__longjmp.c: Likewise.
62333         * setjmp/setjmp.c: Likewise.
62334         * signal/kill.c: Likewise.
62335         * signal/killpg.c: Likewise.
62336         * signal/raise.c: Likewise.
62337         * signal/sigaction.c: Likewise.
62338         * signal/sigaltstack.c: Likewise.
62339         * signal/sigblock.c: Likewise.
62340         * signal/sigignore.c: Likewise.
62341         * signal/sigintr.c: Likewise.
62342         * signal/signal.c: Likewise.
62343         * signal/sigpause.c: Likewise.
62344         * signal/sigpending.c: Likewise.
62345         * signal/sigqueue.c: Likewise.
62346         * signal/sigreturn.c: Likewise.
62347         * signal/sigset.c: Likewise.
62348         * signal/sigsetmask.c: Likewise.
62349         * signal/sigstack.c: Likewise.
62350         * signal/sigsuspend.c: Likewise.
62351         * signal/sigtimedwait.c: Likewise.
62352         * signal/sigvec.c: Likewise.
62353         * signal/sigwait.c: Likewise.
62354         * signal/sigwaitinfo.c: Likewise.
62355         * signal/sysv_signal.c: Likewise.
62356         * socket/accept.c: Likewise.
62357         * socket/accept4.c: Likewise.
62358         * socket/bind.c: Likewise.
62359         * socket/connect.c: Likewise.
62360         * socket/getpeername.c: Likewise.
62361         * socket/getsockname.c: Likewise.
62362         * socket/getsockopt.c: Likewise.
62363         * socket/isfdtype.c: Likewise.
62364         * socket/listen.c: Likewise.
62365         * socket/recv.c: Likewise.
62366         * socket/recvfrom.c: Likewise.
62367         * socket/recvmsg.c: Likewise.
62368         * socket/send.c: Likewise.
62369         * socket/sendmsg.c: Likewise.
62370         * socket/sendto.c: Likewise.
62371         * socket/setsockopt.c: Likewise.
62372         * socket/shutdown.c: Likewise.
62373         * socket/sockatmark.c: Likewise.
62374         * socket/socket.c: Likewise.
62375         * socket/socketpair.c: Likewise.
62376         * stdio-common/ctermid.c: Likewise.
62377         * stdio-common/cuserid.c: Likewise.
62378         * stdio-common/remove.c: Likewise.
62379         * stdio-common/rename.c: Likewise.
62380         * stdio-common/renameat.c: Likewise.
62381         * stdio-common/tempname.c: Likewise.
62382         * stdlib/getcontext.c: Likewise.
62383         * stdlib/makecontext.c: Likewise.
62384         * stdlib/setcontext.c: Likewise.
62385         * stdlib/swapcontext.c: Likewise.
62386         * stdlib/system.c: Likewise.
62387         * streams/fattach.c: Likewise.
62388         * streams/fdetach.c: Likewise.
62389         * streams/getmsg.c: Likewise.
62390         * streams/getpmsg.c: Likewise.
62391         * streams/putmsg.c: Likewise.
62392         * streams/putpmsg.c: Likewise.
62393         * sysdeps/unix/bsd/getpt.c: Likewise.
62394         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
62395         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
62396         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
62397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
62398         Likewise.
62399         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
62400         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
62401         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
62402         * sysvipc/msgctl.c: Likewise.
62403         * sysvipc/msgget.c: Likewise.
62404         * sysvipc/msgrcv.c: Likewise.
62405         * sysvipc/msgsnd.c: Likewise.
62406         * sysvipc/semctl.c: Likewise.
62407         * sysvipc/semget.c: Likewise.
62408         * sysvipc/semop.c: Likewise.
62409         * sysvipc/semtimedop.c: Likewise.
62410         * sysvipc/shmat.c: Likewise.
62411         * sysvipc/shmctl.c: Likewise.
62412         * sysvipc/shmdt.c: Likewise.
62413         * sysvipc/shmget.c: Likewise.
62414         * termios/tcdrain.c: Likewise.
62415         * termios/tcflow.c: Likewise.
62416         * termios/tcflush.c: Likewise.
62417         * termios/tcgetattr.c: Likewise.
62418         * termios/tcgetpgrp.c: Likewise.
62419         * termios/tcsendbrk.c: Likewise.
62420         * termios/tcsetattr.c: Likewise.
62421         * termios/tcsetpgrp.c: Likewise.
62422         * time/adjtime.c: Likewise.
62423         * time/clock.c: Likewise.
62424         * time/getitimer.c: Likewise.
62425         * time/gettimeofday.c: Likewise.
62426         * time/setitimer.c: Likewise.
62427         * time/settimeofday.c: Likewise.
62428         * time/stime.c: Likewise.
62429         * time/time.c: Likewise.
62430
62431 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
62432
62433         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
62434         /usr/old/bin.
62435
62436         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
62437         instead of spaces.
62438         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
62439
62440 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
62441
62442         [BZ #14796]
62443         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
62444         FE_TONEAREST before applying Dekker multiplication and Knuth
62445         addition.  Clear inexact exceptions and check for exact zero
62446         results afterwards.
62447         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62448         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
62449         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62450         * math/libm-test.inc (fma_test): Add more tests.
62451         (fma_test_towardzero): Likewise.
62452         (fma_test_downward): Likewise.
62453         (fma_test_upward): Likewise.
62454         * sysdeps/generic/math_private.h (default_libc_fesetround): New
62455         function.
62456         (libc_fesetround): New macro.
62457         (libc_fesetroundf): Likewise.
62458         (libc_fesetroundl): Likewise.
62459         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
62460         function.
62461         (libc_fesetround_387): Likewise.
62462         (libc_fesetroundf): New macro.
62463         (libc_fesetround): Likewise.
62464         (libc_fesetroundl): Likewise.
62465         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
62466         function.
62467         (libc_fesetroundf): New macro.
62468         (libc_fesetround): Likewise.
62469         (libc_fesetroundl): Likewise.
62470         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
62471         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
62472         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
62473         libm_hidden_ver.
62474         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
62475         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
62476         libm_hidden_def.
62477         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
62478         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
62479         libm_hidden_ver.
62480         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
62481         libm_hidden_def.
62482
62483         [BZ #3439]
62484         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
62485         integer constant usable in #if and use that to give value to enum
62486         constant.
62487         (FE_DIVBYZERO): Likewise.
62488         (FE_UNDERFLOW): Likewise.
62489         (FE_OVERFLOW): Likewise.
62490         (FE_INVALID): Likewise.
62491         (FE_INVALID_SNAN): Likewise.
62492         (FE_INVALID_ISI): Likewise.
62493         (FE_INVALID_IDI): Likewise.
62494         (FE_INVALID_ZDZ): Likewise.
62495         (FE_INVALID_IMZ): Likewise.
62496         (FE_INVALID_COMPARE): Likewise.
62497         (FE_INVALID_SOFTWARE): Likewise.
62498         (FE_INVALID_SQRT): Likewise.
62499         (FE_INVALID_INTEGER_CONVERSION): Likewise.
62500         (FE_TONEAREST): Likewise.
62501         (FE_TOWARDZERO): Likewise.
62502         (FE_UPWARD): Likewise.
62503         (FE_DOWNWARD): Likewise.
62504         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
62505         (FE_DIVBYZERO): Likewise.
62506         (FE_OVERFLOW): Likewise.
62507         (FE_UNDERFLOW): Likewise.
62508         (FE_INEXACT): Likewise.
62509         (FE_TONEAREST): Likewise.
62510         (FE_DOWNWARD): Likewise.
62511         (FE_UPWARD): Likewise.
62512         (FE_TOWARDZERO): Likewise.
62513         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
62514         (FE_UNDERFLOW): Likewise.
62515         (FE_OVERFLOW): Likewise.
62516         (FE_DIVBYZERO): Likewise.
62517         (FE_INVALID): Likewise.
62518         (FE_TONEAREST): Likewise.
62519         (FE_TOWARDZERO): Likewise.
62520         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
62521         (FE_OVERFLOW): Likewise.
62522         (FE_UNDERFLOW): Likewise.
62523         (FE_DIVBYZERO): Likewise.
62524         (FE_INEXACT): Likewise.
62525         (FE_TONEAREST): Likewise.
62526         (FE_TOWARDZERO): Likewise.
62527         (FE_UPWARD): Likewise.
62528         (FE_DOWNWARD): Likewise.
62529         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
62530         (FE_DIVBYZERO): Likewise.
62531         (FE_OVERFLOW): Likewise.
62532         (FE_UNDERFLOW): Likewise.
62533         (FE_INEXACT): Likewise.
62534         (FE_TONEAREST): Likewise.
62535         (FE_DOWNWARD): Likewise.
62536         (FE_UPWARD): Likewise.
62537         (FE_TOWARDZERO): Likewise.
62538
62539 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
62540
62541         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62542
62543 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
62544
62545         * scripts/cross-test-ssh.sh (command): Use newlines to separate
62546         commands.  Quote $PWD.
62547         (blacklist_exports): Don't use remove_newlines.  Replace "declare
62548         -x" by "export".
62549         (remove_newlines): Remove.
62550
62551 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62552
62553         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62554         * stdlib/stdlib.h (atof): Moved to ...
62555         * include/bits/stdlib-float.h: Here.  New file.
62556         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62557         * stdlib/bits/stdlib-float.h: New file.
62558         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62559         -mno-sse -mno-mmx.
62560         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62561         <xmmintrin.h>.
62562
62563 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62564
62565         * conform/conformtest.pl (@headers): Add fenv.h.
62566         * conform/data/fenv.h-data: New file.
62567         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62568         include of <math/fenv.h>.
62569
62570         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62571         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62572         && !UNIX98].  Enables tests for XOPEN2K8.
62573         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62574         POSIX2008]: Likewise.
62575
62576         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62577         (struct rusage): Do not expect type or its members.
62578
62579         [BZ #3439]
62580         * math/math.h (FP_NAN): Define macro to integer constant usable in
62581         #if and use that to give value to enum constant.
62582         (FP_INFINITE): Likewise.
62583         (FP_ZERO): Likewise.
62584         (FP_SUBNORMAL): Likewise.
62585         (FP_NORMAL): Likewise.
62586
62587 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62588
62589         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62590         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62591         arguments.
62592
62593 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62594
62595         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62596         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62597         autoconf-time if not.
62598         * configure.in: Remove AC_PREREQ.
62599
62600 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62601
62602         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62603         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62604         of the internal implementation.
62605
62606 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62607
62608         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62609         except include of <misc/sys/syslog.h>.
62610
62611 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62612
62613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62614         function returns with a NULL context exit with zero.
62615
62616 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62617
62618         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62619
62620 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62621
62622         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62623         (run_program_cmd): This.
62624         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62625         (tst_langinfo): New variable.  Use it.
62626
62627 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62628
62629         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62630         floating point opcodes.
62631
62632 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62633
62634         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62635         variable.
62636
62637         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62638
62639         * sysdeps/mach/hurd/powerpc: Remove directory.
62640         * sysdeps/mach/powerpc: Likewise.
62641
62642 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62643
62644         * scripts/check-local-headers.sh: Ignore c++ headers.
62645
62646 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62647
62648         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62649         __libc_cleanup_region_start argument.
62650
62651 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62652
62653         [BZ #14784]
62654         [BZ #14785]
62655         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62656         x * y using scaling, not as x * y + z.
62657         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62658         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62659         * math/libm-test.inc (fma_test): Add more tests.
62660         (fma_test_towardzero): Likewise.
62661         (fma_test_downward): Likewise.
62662         (fma_test_upward): Likewise.
62663
62664 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62665
62666         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62667
62668 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62669
62670         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62671         New variable.
62672
62673 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62674
62675         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62676
62677 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62678
62679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62680         Fix sort order.
62681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62682         Likewise.
62683
62684 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62685
62686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62687         Fix the order of the list for glibc 2.17.
62688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62689         Likewise.
62690
62691 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62692
62693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62694
62695 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62696
62697         [BZ #14610]
62698         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62699         for low part of x being zero before using __atanl (y).
62700         * math/libm-test.inc (atan2_test): Add another test.
62701
62702         * manual/install.texi (Configuring and compiling): Document
62703         general use of test-wrapper and test-wrapper-env.
62704         * INSTALL: Regenerated.
62705
62706         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62707         (__fma): Do not extract and scale down low bits on after-rounding
62708         systems when result rounded to normal precision would have normal
62709         exponent.
62710         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
62711         (__fmal): Do not extract and scale down low bits on after-rounding
62712         systems when result rounded to normal precision would have normal
62713         exponent.
62714         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62715         (__fmal): Do not extract and scale down low bits on after-rounding
62716         systems when result rounded to normal precision would have normal
62717         exponent.
62718         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62719         macro.
62720         (fma_test): Add more tests.
62721         (fma_test_towardzero): Likewise.
62722         (fma_test_downward): Likewise.
62723         (fma_test_upward): Likewise.
62724
62725 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62726
62727         * sysdeps/i386/tininess.h: Renamed to ...
62728         * sysdeps/x86/tininess.h: This.
62729         * sysdeps/x86_64/tininess.h: Removed.
62730
62731 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62732
62733         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62734         input.  Use $(build-program-cmd).
62735         ($(objpfx)tst-array1-static.out): Likewise.
62736         ($(objpfx)tst-array2.out): Likewise.
62737         ($(objpfx)tst-array3.out): Likewise.
62738         ($(objpfx)tst-array4.out): Likewise.
62739         ($(objpfx)tst-array5.out): Likewise.
62740         ($(objpfx)tst-array5-static.out): Likewise.
62741
62742 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62743
62744         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62745         if defined.
62746
62747         * nss/nsswitch.h (nss_interface_function): Provide new
62748         macro for use with NSS functions.
62749         * grp/initgroups.c: Use new macro.
62750         * nss/getXXbyYY.c: Likewise.
62751         * nss/getXXbyYY_r.c: Likewise.
62752         * nss/getXXent.c: Likewise.
62753         * nss/getXXent_r.c: Likewise.
62754         * sysdeps/posix/getaddrinfo.c: Likewise.
62755
62756 2012-10-30  Andreas Jaeger  <aj@suse.de>
62757
62758         * po/ru.po: Update Russion translation from translation project.
62759
62760 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62761
62762         [BZ #14152]
62763         [BZ #14783]
62764         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62765         result and shift together with sticky bit instead of replicating
62766         round-to-nearest rounding.
62767         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62768         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62769         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62770         missing underflow exceptions.
62771         (fma_test_towardzero): Add more tests.
62772         (fma_test_downward): Likewise.
62773         (fma_test_upward): Likewise.
62774
62775         [BZ #14047]
62776         * sysdeps/generic/tininess.h: New file.
62777         * sysdeps/i386/tininess.h: Likewise.
62778         * sysdeps/sh/tininess.h: Likewise.
62779         * sysdeps/x86_64/tininess.h: Likewise.
62780         * stdlib/tst-strtod-underflow.c: Likewise.
62781         * stdlib/tst-tininess.c: Likewise.
62782         * stdlib/strtod_l.c: Include <tininess.h>.
62783         (round_and_return): Do not set errno for exact underflow cases.
62784         Force an underflow exception when setting errno for underflow.
62785         Determine underflow based on rounding to normal precision if
62786         TININESS_AFTER_ROUNDING.
62787         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62788         ERANGE for exact underflow cases.
62789         * stdlib/Makefile (tests): Add tst-tininess and
62790         tst-strtod-underflow.
62791         ($(objpfx)tst-tininess): Use $(link-libm).
62792         ($(objpfx)tst-strtod-underflow): Likewise.
62793
62794 2012-10-30  Andreas Jaeger  <aj@suse.de>
62795
62796         [BZ#14767]
62797         * elf/Makefile (tests): Remove conditional for have-initfini-array
62798         since this is now always required and the variable does not exist
62799         anymore.
62800         (tests-static): Likewise.
62801         (modules-names): Likewise.
62802
62803         * po/eo.po: Add Esperanto translation from translation project.
62804
62805         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62806         merged with constructor/destructor.
62807         (init_array): Likewise.
62808         * elf/tst-array2dep.c (fini_array): Likewise.
62809         (init_array): Likewise.
62810
62811 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62812
62813         * manual/message.texi: Delete @cartouche tags.
62814
62815 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62816
62817         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62818         EOPNOTSUPP.
62819         * sysdeps/mach/hurd/fsync.c: Likewise.
62820
62821         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62822         [_POSIX_REALTIME_SIGNALS]: Change condition to
62823         [_POSIX_REALTIME_SIGNALS > 0].
62824
62825 2012-10-27  Andreas Jaeger  <aj@suse.de>
62826
62827         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62828         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62829         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62830         [__WORDSIZE != 64]: Likewise.
62831
62832 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62833
62834         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62835         *  iconvdata/tst-tables.sh: Likewise.
62836
62837 2012-10-25  David S. Miller  <davem@davemloft.net>
62838
62839         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62840         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62841         of strtoull.
62842
62843         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62844         ifunc-impl-list.c
62845         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62846         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62847         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62848         file.
62849
62850 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62851
62852         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62853         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62854         __getdirentries.
62855
62856 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62857             Jim Blandy  <jimb@codesourcery.com>
62858
62859         * scripts/cross-test-ssh.sh: New file.
62860         * manual/install.texi (Configuring and compiling): Document use of
62861         cross-test-ssh.sh.
62862         * INSTALL: Regenerated.
62863
62864 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62865
62866         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62867         EOPNOTSUPP.
62868
62869 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62870
62871         * Makeconfig (run-program-prefix): Fix comment.
62872
62873 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62874             Jim Blandy  <jimb@codesourcery.com>
62875
62876         * Makeconfig (test-wrapper): New variable,
62877         (test-wrapper-env): Likewise.
62878         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62879         (run-built-tests): Define to yes.
62880         (run-program-prefix): Use $(test-wrapper).
62881         (built-program-cmd): Likewise.
62882         * Rules (make-test-out): Use $(test-wrapper-env) and
62883         $(host-built-program-cmd).
62884         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62885         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62886         tst-pathopt.sh.
62887         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62888         $(test-wrapper-env) to tst-rtld-load-self.sh.
62889         ($(objpfx)order2.out): Use $(test-wrapper).
62890         ($(objpfx)tst-initorder.out): Likewise.
62891         ($(objpfx)tst-initorder2.out): Likewise.
62892         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62893         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62894         (test_wrapper_env): New variable.  Use it to run ld.so.
62895         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62896         Use it to run ld.so.
62897         (test_wrapper_env): Likewise.
62898         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62899         $(test-wrapper) to run-iconv-test.sh.
62900         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62901         (ICONV): Use $test_wrapper.
62902         * posix/Makefile ($(objpfx)globtest.out): Pass
62903         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62904         globtest.sh, not $(run-program-prefix).
62905         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62906         (test_wrapper): Likewise.
62907         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62908         set together with run_via_rtld_prefix.
62909         (run_program_prefix): Define in terms of test_wrapper and
62910         run_via_rtld_prefix.
62911
62912 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62913
62914         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62915         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62916         Targets removed.
62917
62918         [BZ #14743]
62919         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62920         Declare __clock_getres, __clock_gettime, __clock_settime,
62921         __clock_nanosleep, and __clock_getcpuclockid.
62922         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62923         Remove librt_hidden_def (clock_gettime).
62924         * sysdeps/unix/clock_gettime.c: Likewise.
62925         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62926         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62927         * rt/clock_getres.c: Define __clock_getres as an alias.
62928         * sysdeps/posix/clock_getres.c: Likewise.
62929         * rt/clock_settime.c: Define __clock_settime as an alias.
62930         * sysdeps/unix/clock_settime.c: Likewise.
62931         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62932         * sysdeps/unix/clock_nanosleep.c: Likewise.
62933         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62934         * rt/clock-compat.c: New file.
62935         * rt/Makefile (librt-routines): Add clock-compat and move
62936         $(clock-routines) to ...
62937         (routines): ... here, new variable.
62938         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62939         Don't add get_clockfreq here.
62940         * rt/Versions (libc: GLIBC_2.17): New version set.
62941         Add clock_* symbols here.
62942         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62943         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62944         (GLIBC_2.17): Add clock_* symbols.
62945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62946         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62947         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62949         Likewise.
62950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62951         Likewise.
62952         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62953         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62955         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62956         * NEWS: Mention the move.
62957
62958         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62959         Use __open, __read, __close rather than their public counterparts.
62960         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62961         (__get_clockfreq_via_cpuinfo): Likewise.
62962         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62963         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62964
62965         * config.h.in (HAVE_IFUNC): New #undef.
62966         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62967         was successful.
62968         * configure: Regenerated.
62969
62970 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62971
62972         * configure.in: Move READELF check to start of file.
62973         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62974         libc_cv_asm_gnu_indirect_function in the process.
62975         * configure: Regenerated.
62976
62977 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62978
62979         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62980         send the output to /dev/null.
62981         (libc_cv_cc_with_libunwind): Likewise.
62982         (libc_cv_as_noexecstack): Likewise.
62983         * configure: Regenerate.
62984
62985 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62986
62987         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62988
62989         * posix/globtest.sh (TMPDIR): Do not set.
62990         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62991         (testout): Likewise.
62992
62993 2012-10-24  Andreas Jaeger  <aj@suse.de>
62994
62995         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62996         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62997         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62998         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62999         posix_fadvise64, posix_fallocate64.
63000
63001         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
63002         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
63003         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
63004         Likewise.
63005         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
63006         Likewise.
63007         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
63008
63009         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
63010         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
63011         <bits/fcntl-linux.h>.
63012         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
63013
63014         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
63015         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
63016         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
63017         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
63018         [__WORDSIZE != 64]: Likewise.
63019
63020 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
63021
63022         * Makeconfig (run-built-tests): New variable.
63023         * Rules [$(cross-compiling) = yes]: Change condition to
63024         [$(run-built-tests) = no].
63025         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
63026         to [$(run-built-tests) = yes].
63027         * elf/Makefile [$(cross-compiling) = no]: Likewise.
63028         * grp/Makefile [$(cross-compiling) = no]: Likewise.
63029         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
63030         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
63031         * intl/Makefile [$(cross-compiling) = no]: Likewise.
63032         * io/Makefile [$(cross-compiling) = no]: Likewise.
63033         * libio/Makefile [$(cross-compiling) = no]: Likewise.
63034         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
63035         * misc/Makefile [$(cross-compiling) = no]: Likewise.
63036         * posix/Makefile [$(cross-compiling) = no]: Likewise.
63037         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
63038         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
63039         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
63040         * string/Makefile [$(cross-compiling) = no]: Likewise.
63041
63042         * posix/Makefile ($(objpfx)globtest.out): Pass
63043         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
63044         $(rtld-installed-name).
63045         * posix/globtest.sh (elf_objpfx): Remove variable.
63046         (rtld_installed_name): Likewise.
63047         (library_path): Likewise.
63048         (run_program_prefix): New variable.  Use for running globtest
63049         binary.
63050
63051 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
63052             Joseph Myers  <joseph@codesourcery.com>
63053
63054         * Makeconfig (host-built-program-cmd): New variable.
63055         * elf/Makefile (tst-stackguard1-ARGS): Use
63056         $(host-built-program-cmd).
63057         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
63058         (tst-spawn-ARGS): Likewise.
63059         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
63060
63061 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
63062             Jim Blandy  <jimb@codesourcery.com>
63063
63064         * Makeconfig (run-via-rtld-prefix): New variable.
63065         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
63066         (built-program-cmd): Likewise.
63067
63068 2012-10-22  Andreas Jaeger  <aj@suse.de>
63069
63070         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
63071         __O_RSYNC if it exists, otherwise to O_SYNC.
63072
63073 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
63074             Joseph Myers  <joseph@codesourcery.com>
63075
63076         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
63077         /dev/null.
63078         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
63079         from /dev/null
63080         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
63081         /dev/null.
63082
63083 2012-10-22  Andreas Jaeger  <aj@suse.de>
63084
63085         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
63086         Define always.
63087         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
63088
63089         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63090         bits/fcntl-linux.h.
63091
63092         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
63093         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
63094
63095         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
63096         to __O_LARGEFILE.
63097         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
63098         to __O_LARGEFILE.
63099
63100 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
63101             Joseph Myers  <joseph@codesourcery.com>
63102
63103         * config.make.in (NM): New variable.
63104
63105 2012-10-21  Andreas Jaeger  <aj@suse.de>
63106
63107         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
63108         definitions and declarations that are provided by
63109         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
63110
63111 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
63112
63113         [BZ #14683]
63114         * elf/Makefile (tests-static): Add tst-leaks1-static.
63115         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
63116         ($(objpfx)tst-leaks1-static): New rule.
63117         ($(objpfx)tst-leaks1-static-mem): Likewise.
63118         (tst-leaks1-static-ENV): New macro.
63119         * elf/dl-open.c (dl_open_worker): Check the main application
63120         only if SHARED is defined.
63121         * elf/tst-leaks1-static.c: New file.
63122
63123 2012-10-20  Andreas Jaeger  <aj@suse.de>
63124
63125         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
63126         generic values for Linux.
63127         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
63128         and declarations that are provided by <bits/fcntl-linux.h> and
63129         include <bits/fcntl-linux.h>.
63130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
63131         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
63132
63133 2012-10-20  Roland McGrath  <roland@hack.frob.com>
63134
63135         * io/fcntl.h: Move include of <bits/types.h> to the top and
63136         include it unconditionally.
63137
63138 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
63139
63140         * wcsmbs/Makefile (tests-ifunc): New variable.
63141         (tests): Add $(tests-ifunc).
63142         * wcsmbs/test-wcschr-ifunc.c: New file.
63143         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
63144         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
63145         * wcsmbs/test-wcslen-ifunc.c: Likewise.
63146         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
63147         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
63148
63149         * string/Makefile (tests-ifunc): New variable.
63150         (tests): Add $(tests-ifunc).
63151         * string/test-memccpy.c (TEST_NAME): New macro.
63152         * string/test-memchr.c (TEST_NAME): Likewise.
63153         * string/test-memcmp.c (TEST_NAME): Likewise.
63154         * string/test-memcpy.c (TEST_NAME): Likewise.
63155         * string/test-memmem.c (TEST_NAME): Likewise.
63156         * string/test-memmove.c (TEST_NAME): Likewise.
63157         * string/test-memset.c (TEST_NAME): Likewise.
63158         * string/test-rawmemchr.c (TEST_NAME): Likewise.
63159         * string/test-stpcpy.c (TEST_NAME): Likewise.
63160         * string/test-stpncpy.c (TEST_NAME): Likewise.
63161         * string/test-strcasecmp.c (TEST_NAME): Likewise.
63162         * string/test-strcasestr.c (TEST_NAME): Likewise.
63163         * string/test-strcat.c (TEST_NAME): Likewise.
63164         * string/test-strchr.c (TEST_NAME): Likewise.
63165         * string/test-strcmp.c(TEST_NAME): Likewise.
63166         * string/test-strcpy.c (TEST_NAME): Likewise.
63167         * string/test-strcspn.c (TEST_NAME): Likewise.
63168         * string/test-strlen.c (TEST_NAME): Likewise.
63169         * string/test-strncasecmp.c (TEST_NAME): Likewise.
63170         * string/test-strncmp.c (TEST_NAME): Likewise.
63171         * string/test-strncpy.c (TEST_NAME): Likewise.
63172         * string/test-strnlen.c (TEST_NAME): Likewise.
63173         * string/test-strpbrk.c (TEST_NAME): Likewise.
63174         * string/test-strrchr.c (TEST_NAME): Likewise.
63175         * string/test-strspn.c (TEST_NAME): Likewise.
63176         * string/test-strstr.c (TEST_NAME): Likewise.
63177         * string/test-bcopy-ifunc.c: New file.
63178         * string/test-bzero-ifunc.c: Likewise.
63179         * string/test-memccpy-ifunc.c: Likewise.
63180         * string/test-memchr-ifunc.c: Likewise.
63181         * string/test-memcmp-ifunc.c: Likewise.
63182         * string/test-memcpy-ifunc.c: Likewise.
63183         * string/test-memmem-ifunc.c: Likewise.
63184         * string/test-memmove-ifunc.c: Likewise.
63185         * string/test-mempcpy-ifunc.c: Likewise.
63186         * string/test-memset-ifunc.c: Likewise.
63187         * string/test-rawmemchr-ifunc.c: Likewise.
63188         * string/test-stpcpy-ifunc.c: Likewise.
63189         * string/test-stpncpy-ifunc.c: Likewise.
63190         * string/test-strcasecmp-ifunc.c: Likewise.
63191         * string/test-strcasestr-ifunc.c: Likewise.
63192         * string/test-strcat-ifunc.c: Likewise.
63193         * string/test-strchr-ifunc.c: Likewise.
63194         * string/test-strchrnul-ifunc.c: Likewise.
63195         * string/test-strcmp-ifunc.c: Likewise.
63196         * string/test-strcpy-ifunc.c: Likewise.
63197         * string/test-strcspn-ifunc.c: Likewise.
63198         * string/test-strlen-ifunc.c: Likewise.
63199         * string/test-strncasecmp-ifunc.c: Likewise.
63200         * string/test-strncat-ifunc.c: Likewise.
63201         * string/test-strncmp-ifunc.c: Likewise.
63202         * string/test-strncpy-ifunc.c: Likewise.
63203         * string/test-strnlen-ifunc.c: Likewise.
63204         * string/test-strpbrk-ifunc.c: Likewise.
63205         * string/test-strrchr-ifunc.c: Likewise.
63206         * string/test-strspn-ifunc.c: Likewise.
63207         * string/test-strstr-ifunc.c: Likewise.
63208
63209         * debug/Makefile (tests-ifunc): New variable.
63210         (tests): Add $(tests-ifunc).
63211         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
63212         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
63213         * debug/test-stpcpy_chk-ifunc.c: New file.
63214         * debug/test-strcpy_chk-ifunc.c: Likewise.
63215
63216 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
63217
63218         [BZ #13601]
63219         * elf/dl-load.c (open_verify): Retry read if the entire ELF
63220         header is not read in.
63221
63222 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
63223
63224         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
63225         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
63226         directly.  Pass built executable to script as
63227         $(built-program-cmd).
63228         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
63229         $testprogram without using LD_LIBRARY_PATH and $ldso.
63230
63231         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
63232         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
63233         $(rtld-installed-name).
63234         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
63235         (rtld_installed_name): Likewise.
63236         (library_path): Likewise.
63237         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
63238         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
63239         $(run-program-prefix) to tst-tables.sh.
63240         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
63241         it to run tst-table-from and tst-table-to.
63242         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
63243         Pass it to tst-table.sh.
63244         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
63245         $(run-program-prefix) to tst-gettext.sh.
63246         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
63247         tst-translit.sh.
63248         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
63249         tst-gettext2.sh.
63250         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
63251         to run tst-gettext.
63252         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
63253         to run tst-gettext2.
63254         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
63255         to run tst-translit.
63256         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
63257         $(run-program-prefix) to tst-mtrace.sh.
63258         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
63259         to run tst-mtrace.
63260         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
63261         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
63262         $(rtld-installed-name).
63263         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
63264         (rtld_installed_name): Likewise.
63265         (run_program_prefix): New variable.  Use it to run wordexp-test.
63266
63267         * Makeconfig (ARCH): Remove all definitions.
63268         (machine): Likewise.
63269         [ARCH]: Remove conditional code.
63270         [!objdir]: Give error.
63271         [!objdir] (objpfx): Remove.
63272         [!objdir] (common-objpfx): Likewise.
63273         [!objdir] (common-objdir): Likewise.
63274         * configure.in (config_makefile): Remove.  Hardcode Makefile in
63275         AC_CONFIG_FILES call.
63276         * configure: Regenerated.
63277
63278         [BZ #13888]
63279         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
63280         or TMPDIR.
63281         (testout): Likewise.
63282
63283         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
63284         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
63285         $(rtld-installed-name).
63286         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
63287         (rtld_installed_name): Likwise.
63288         (runit): Remove function.
63289         (run_getconf): New variable,  Use it for running getconf binary.
63290
63291 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
63292
63293         [BZ #14716]
63294         * string/test-memmem.c (check_result): New function.
63295         (do_one_test): Use it.
63296         (check1): New function.
63297         (test_main): Use it.
63298
63299 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
63300
63301         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
63302
63303 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
63304
63305         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
63306         (_G_LSEEK64): Likewise.
63307         (_G_MMAP64): Likewise.
63308         (_G_FSTAT64): Likewise.
63309         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
63310         (_G_LSEEK64): Likewise.
63311         (_G_MMAP64): Likewise.
63312         (_G_FSTAT64): Likewise.
63313         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
63314         unconditional.  Call __mmap64 directly.
63315         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
63316         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
63317         __lseek64 directly.
63318         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
63319         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
63320         __mmap64 directly.
63321         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
63322         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63323         __lseek64 directly.
63324         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
63325         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63326         __lseek64 directly.
63327         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
63328         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
63329         __lseek64 directly.
63330         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
63331         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
63332         __fxstat64 directly.
63333         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
63334         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
63335         unconditional.
63336         (freopen64) [!_G_OPEN64]: Remove conditional code.
63337         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
63338         unconditional.
63339         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
63340         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
63341         unconditional.
63342         (ftello64) [!_G_LSEEK64]: Remove conditional code.
63343         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
63344         unconditional.
63345         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63346         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
63347         unconditional.
63348         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
63349         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
63350         unconditional.
63351         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63352         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
63353         unconditional.
63354         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63355         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
63356         unconditional.
63357         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63358
63359 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
63360
63361         [BZ #12140]
63362         * manual/memory.texi (Malloc Tunable Parameters): Add note
63363         about free list pointers overwriting some perturb bytes.
63364         Wording suggested by Roland McGrath.
63365
63366 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
63367
63368         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
63369         (lgamma_test): Likewise.
63370         (tgamma_test): Likewise.
63371
63372 2012-10-16  Florian Weimer  <fweimer@redhat.com>
63373
63374         [BZ #14700]
63375         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
63376         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
63377
63378 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
63379
63380         * NEWS: Mention BZ #14716.
63381         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
63382         when removing AVAILABLE1_USES_J macro.
63383
63384 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
63385
63386         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
63387         (__bswap_64): __uint64_t for unsigned 64-bit int.
63388
63389 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
63390
63391         * include/string.h (memmem): Declare libc hidden alias.
63392         * string/memmem.c (memmem): Define libc hidden alias.
63393         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
63394         __read, __close instead of open, read, close.
63395
63396 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
63397
63398         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
63399         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
63400         global and hidden.
63401         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
63402         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
63403         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
63404         Likewise.
63405         (__rawmemchr_sse2): Likewise.
63406         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
63407         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
63408         (__strchr_sse2): Likewise.
63409         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
63410         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
63411         (__strcasecmp_sse2): Likewise.
63412         (__strncasecmp_sse2): Likewise.
63413         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
63414         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
63415         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
63416         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
63417         (__strrchr_sse2): Likewise.
63418         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
63419         ifunc-impl-list.c.
63420         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
63421         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
63422         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
63423         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
63424         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
63425         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
63426         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63427         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63428         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
63429         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
63430         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
63431         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
63432         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
63433         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
63434         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
63435         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
63436         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
63437         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
63438         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
63439         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
63440         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
63441         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
63442         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
63443         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63444         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
63445         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
63446         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
63447         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
63448         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
63449         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
63450
63451         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
63452         global and hidden.
63453         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
63454         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
63455         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
63456         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
63457         Likewise.
63458         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
63459         Likewise.
63460         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
63461         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
63462         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
63463         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
63464         ifunc-impl-list.c.
63465         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
63466         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
63467         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
63468         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
63469         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
63470         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
63471         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
63472         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
63473         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
63474         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
63475         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
63476         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
63477         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
63478         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
63479         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
63480         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
63481         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
63482         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
63483         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
63484         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
63485         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
63486         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
63487         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
63488         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
63489         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
63490         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
63491         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
63492         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
63493         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
63494         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
63495         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
63496         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
63497         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
63498         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
63499         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
63500         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
63501         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
63502         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
63503         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
63504         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
63505         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
63506
63507         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
63508         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
63509         * include/ifunc-impl-list.h: New file.
63510         * misc/ifunc-impl-list.c: Likewise.
63511         * misc/Makefile (routines): Add ifunc-impl-list.
63512         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
63513         * string/test-string.h: Include <ifunc-impl-list.h>.
63514         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
63515         TEST_NAME]: New variables.
63516         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
63517         are defined.
63518         (test_init): Call __libc_ifunc_impl_list to initialize
63519         func_list if TEST_IFUNC and TEST_NAME are defined.
63520
63521         * string/Makefile (strop-tests): Add bcopy and bzero.
63522         * string/test-bcopy.c: New file.
63523         * string/test-bzero.c: Likewise.
63524         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
63525         defined.
63526         * string/test-memset.c: Support bzero test if TEST_BZERO is
63527         defined.
63528         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
63529         __libc_memmove.
63530         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
63531         __libc_memset.
63532         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
63533         of memset.
63534
63535 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
63536
63537         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
63538         * configure: Regenerated.
63539
63540         * Makeconfig (+link-static-before-libc): Don't include
63541         $(link-static-libc).
63542
63543         * libio/libio.h (_IO_pos_t): Remove.
63544
63545 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63546
63547         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
63548         McGrath.
63549
63550 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63551
63552         * crypt/crypt-entry.c: Include fips-private.h.
63553         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63554         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63555         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63556         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63557
63558 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63559
63560         * crypt/crypt-private.h: Include stdbool.h.
63561         (_ufc_setup_salt_r): Return bool.
63562         * crypt/crypt-entry.c: Include errno.h.
63563         (__crypt_r): Return NULL with EINVAL for bad salt.
63564         * crypt/crypt_util.c (bad_for_salt): New.
63565         (_ufc_setup_salt_r): Check that salt is long enough and within
63566         the specified alphabet.
63567         * crypt/badsalttest.c: New file.
63568         * crypt/Makefile (tests): Add it.
63569         ($(objpfx)badsalttest): New.
63570
63571 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63572
63573         * NEWS: Add entry for BZ #14602.
63574
63575 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63576
63577         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63578         type-generic.
63579         * math/libm-test.inc: Update comment listing what functions and
63580         macros are tested.
63581         (isgreater_test): New function.
63582         (isgreaterequal_test): Likewise.
63583         (isless_test): Likewise.
63584         (islessequal_test): Likewise.
63585         (islessgreater_test): Likewise.
63586         (isunordered_test): Likewise.
63587         (main): Call the new functions.
63588
63589 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63590
63591         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63592         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63593         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63594         * sysdeps/i386/configure: Regenerated.
63595         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63596         * sysdeps/mach/configure: Regenerated.
63597         * sysdeps/mach/hurd/configure: Regenerated.
63598         * sysdeps/powerpc/configure: Regenerated.
63599         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63600         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63601         * sysdeps/s390/s390-32/configure: Regenerated.
63602         * sysdeps/s390/s390-64/configure: Regenerated.
63603         * sysdeps/sh/configure: Regenerated.
63604         * sysdeps/sparc/configure: Regenerated.
63605         * sysdeps/unix/sysv/linux/configure: Regenerated.
63606         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63607         * sysdeps/x86_64/configure: Regenerated.
63608
63609         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63610         defined.  Don't check if MAP is NULL.
63611
63612 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63613
63614         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63615         (_G_stat64): Likewise.
63616         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63617         (_G_stat64): Likewise.
63618         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63619         instead of struct _G_stat64.
63620         * libio/fileops.c (mmap_remap_check): Likewise.
63621         (decide_maybe_mmap): Likewise.
63622         (_IO_new_file_seekoff): Likewise.
63623         (_IO_file_stat): Likewise.
63624         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63625         _G_off64_t.
63626         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63627         instead of struct _G_stat64.
63628         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63629
63630 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63631
63632         [BZ #14602]
63633         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63634         Replace with ...
63635         (CHECK_EOL): New macro.
63636         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63637         CHECK_EOL.
63638         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63639         Replace with CHECK_EOL.
63640         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63641         Replace with CHECK_EOL.
63642
63643 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63644
63645         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63646         type-generic.
63647         * math/libm-test.inc: Update comment listing what functions and
63648         macros are tested.
63649         (finite_test): New function.
63650         (isinf_test): Likewise.
63651         (isnan_test): Likewise.
63652         (fpclassify_test): Test subnormal input.
63653         (isfinite_test): Likewise.
63654         (isnormal_test): Likewise.
63655         (main): Call the new functions.
63656
63657 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63658
63659         [BZ #14660]
63660         * Makerules (%.dynsym): Force C locale when running
63661         $(OBJDUMP) --dynamic-syms.
63662
63663 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63664
63665         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63666         <stdint.h>.
63667
63668 2012-10-06  David S. Miller  <davem@davemloft.net>
63669
63670         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63671         upper 32-bits of the length value in %o2 since we use branch-on-register
63672         tests which consider the entire 64-bit register.
63673
63674 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63675
63676         * string/test-strstr.c (check2): Add a test for page boundary.
63677
63678 2012-10-05  David S. Miller  <davem@davemloft.net>
63679
63680         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63681         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63682         file.
63683         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63684         sysdep_routines.
63685         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63686         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63687         and bzero when HWCAP_SPARC_CRYPTO is present.
63688
63689 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63690
63691         [BZ #14602]
63692         * string/test-strstr.c (check2): New function.
63693         (test_main): Call check2.
63694
63695         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63696         and bug-strchr1.
63697         * string/bug-strcasestr1.c (do_test): Moved to ...
63698         * string/test-strcasestr.c (check1): Here.  New function.
63699         (do_one_test): Break out result checking code into ...
63700         (check_result): This.  New function.
63701         (do_one_test): Call check_result.
63702         (test_main): Call check1.
63703         * string/bug-strchr1.c (do_test): Moved to ...
63704         * string/test-strchr.c (check1): Here.  New function.
63705         (do_one_test): Break out result checking code into ...
63706         (check_result): This.  New function.
63707         (do_one_test): Call check_result.
63708         (test_main): Call check1.
63709         * string/bug-strstr1.c (main): Moved to ...
63710         * string/test-strstr.c (check1): Here.  New function.
63711         (do_one_test): Break out result checking code into ...
63712         (check_result): This.  New function.
63713         (do_one_test): Call check_result.
63714         (test_main): Call check1.
63715         * string/bug-strcasestr1.c: Removed.
63716         * string/bug-strchr1.c: Likewise.
63717         * string/bug-strstr1.c: Likewise.
63718
63719         * elf/Makefile (dl-routines): Add hwcaps.
63720         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63721         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63722         (_dl_important_hwcaps): Moved to ...
63723         * elf/dl-hwcaps.c: Here.  New file.
63724         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63725
63726         [BZ #14557]
63727         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63728         if IS_IN_rtld isn't defined.
63729
63730         * elf/dl-support.c (_dl_sysinfo_map): New.
63731         Include "get-dynamic-info.h" and "setup-vdso.h".
63732         (_dl_non_dynamic_init): Call setup_vdso.
63733         * elf/dynamic-link.h: Don't include <assert.h>.
63734         (elf_get_dynamic_info): Moved to ...
63735         * elf/get-dynamic-info.h: Here.  New file.
63736         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63737         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63738         * elf/setup-vdso.h: Here.  New file.
63739         * elf/rtld.c: Include "setup-vdso.h".
63740         (dl_main): Call setup_vdso.
63741
63742 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63743
63744         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63745         creal in comment listing functions tested.  List finite, isinf,
63746         isnan, isless, islessequal, isgreater, isgreaterequal,
63747         islessgreater, isunordered, lgamma_r and pow10 as functions and
63748         macros not tested.  Mention which functions not tested are aliases
63749         for other functions.  Fix typo.  Note that signs of NaNs are not
63750         tested.
63751
63752         * scripts/config.guess: Update from config.git.
63753         * scripts/config.sub: Likewise.
63754
63755 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63756
63757         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63758         * misc/madvise.c (madvise): Renamed to __madvise.
63759         Make madvise a weak alias.
63760         * include/sys/mman.h: Declare __madvise.
63761         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63762         * sysdeps/unix/syscalls.list
63763         (madvise): Make __madvise the strong name, and madvise a weak alias.
63764         * sysdeps/unix/sysv/linux/syscalls.list
63765         (madvise, mmap): Remove redundant entries.
63766         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63767         * malloc/malloc.c (mtrim): Likewise.
63768         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63769
63770 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63771
63772         * sysdeps/mach/hurd/dl-cache.c: File removed.
63773         * config.h.in (USE_LDCONFIG): New #undef.
63774         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63775         * configure: Regenerated.
63776         * elf/Makefile (dl-routines): Add dl-cache only under
63777         [$(use-ldconfig) = yes].
63778         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63779         cache on [USE_LDCONFIG].
63780         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63781         [USE_LDCONFIG].
63782         * elf/rtld.c (dl_main): Likewise.
63783
63784 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63785
63786         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63787         _SC_LEVEL4_CACHE_LINESIZE.
63788
63789 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63790
63791         * sysdeps/unix/bsd/confstr.h: File removed.
63792
63793 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63794
63795         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63796         sys/sdt-config.h.
63797
63798 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63799
63800         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63801         Make 'mapoff' field ElfW(Off) rather than off_t.
63802
63803 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63804
63805         * nscd/Makefile: Remove nscd-cflags and all its users.
63806         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63807         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63808
63809         [BZ #10631]
63810         * malloc.c (malloc_printerr): Clarify error message.
63811
63812 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63813
63814         [BZ #14648]
63815         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63816         Set bit_FMA_Usable if FMA is supported.
63817         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63818         macro.
63819         (bit_FMA4_Usable): Updated.
63820         (index_FMA_Usable): New macro.
63821         (CPUID_FMA): Likewise.
63822         (HAS_FMA): Defined with bit_FMA_Usable.
63823
63824 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63825
63826         * bits/types.h (__swblk_t): Type removed.
63827         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63828         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63829         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63830         (__SWBLK_T_TYPE): Likewise.
63831         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63832         (__SWBLK_T_TYPE): Likewise.
63833         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63834         (__SWBLK_T_TYPE): Likewise.
63835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63836         (__SWBLK_T_TYPE): Likewise.
63837
63838 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63839             Honza Horak <hhorak@redhat.com>
63840
63841         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63842         (xdr_mapname): Use YPMAXMAP as maxsize.
63843         (xdr_peername): Use YPMAXPEER as maxsize.
63844         (xdr_keydat): Use YPAXRECORD as maxsize.
63845         (xdr_valdat): Use YPMAXRECORD as maxsize.
63846
63847 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63848
63849         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63850
63851         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63852         * csu/init-first.c: ... here.
63853         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63854         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63855         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63856         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63857         * sysdeps/i386/init-first.c: File removed.
63858         * sysdeps/sh/init-first.c: File removed.
63859
63860 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63861
63862         [BZ #14645]
63863         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63864         if x * y might underflow to zero and z is zero.
63865         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63866         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63867         * math/libm-test.inc (min_subnorm_value): New variable.
63868         (fma_test): Add more tests.
63869         (fma_test_towardzero): Likewise.
63870         (fma_test_downward): Likewise.
63871         (fma_test_upward): Likewise.
63872         (initialize): Set min_subnorm_value.
63873
63874 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63875
63876         [BZ #14638]
63877         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63878         0 + 0.
63879         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63880         mode for addition resulting in exact zero.
63881         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63882         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63883         exact 0 + 0.
63884         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63885         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63886         * math/libm-test.inc (fma_test): Add more tests.
63887         (fma_test_towardzero): New function.
63888         (fma_test_downward): Likewise.
63889         (fma_test_upward): Likewise.
63890         (main): Call the new functions.
63891
63892 2012-09-28  David S. Miller  <davem@davemloft.net>
63893
63894         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63895
63896 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63897
63898         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63899         instead of SIGALRM.
63900
63901         * sysdeps/gnu/_G_config.h: Moved to ...
63902         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63903         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63904         * sysdeps/generic/_G_config.h: ... here.
63905
63906         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63907
63908         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63909
63910         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63911         Conditionalize target on [libnss_test1.so-version].
63912
63913         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63914
63915         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63916         (elfobjdir): Move out of conditionals.
63917
63918         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63919         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63920         (__nss_lookup_function): Conditionalize label remove_from_tree on
63921         [!DO_STATIC_NSS || SHARED], matching its only use.
63922
63923 2012-09-28  David S. Miller  <davem@davemloft.net>
63924
63925         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63926         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63927         file.
63928         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63929         sysdep_routines.
63930         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63931         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63932         when HWCAP_SPARC_CRYPTO is present.
63933
63934 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63935
63936         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63937
63938 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63939
63940         [BZ #6530]
63941         * stdio-common/vfprintf.c (process_string_arg): Revert
63942         2000-07-22 change.
63943
63944 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63945
63946         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63947         for testcase.
63948         * stdio-common/tst-sprintf.c: Include <locale.h>
63949         (main): Test sprintf's handling of incomplete multibyte
63950         characters.
63951
63952 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63953
63954         * elf/dl-runtime.c (VERSYMIDX): Removed.
63955         * elf/dl-version.c (VERSYMIDX): Likewise.
63956         * elf/do-rel.h (VERSYMIDX): Likewise.
63957         (VALIDX): Likewise.
63958         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63959         * elf/rtld.c (VALIDX): Likewise.
63960         (ADDRIDX): Likewise.
63961         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63962         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63963         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63964         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63965         (VALIDX): Likewise.
63966         (ADDRIDX): Likewise.
63967
63968 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63969
63970         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63971
63972 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63973
63974         [BZ #11438]
63975         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63976         to global scope.
63977         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63978         addresses are in the same scope as 192.0.2/24.
63979         * posix/gai.conf: Document new scope table defaults.
63980
63981 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63982
63983         [BZ #5298]
63984         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63985         for ftell.  Compute offsets from write pointers instead.
63986         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63987
63988 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63989
63990         [BZ #14543]
63991         * libio/Makefile (tests): New test case tst-fseek.
63992         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63993         combination works in wide mode.
63994         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63995         state when the external buffer state changes.
63996
63997 2012-09-27  David S. Miller  <davem@davemloft.net>
63998
63999         [BZ #14376]
64000         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
64001         pass reloc->r_addend in as the 'high' argument to
64002         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
64003
64004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64005
64006 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
64007
64008         * rt/tst-aio2.c: Include <pthread.h>.
64009         * rt/tst-aio3.c: Likewise.
64010
64011 2012-09-27  Steve Ellcey  <sellcey@mips.com>
64012
64013         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
64014
64015 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
64016
64017         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
64018         contents on [SHARED].
64019
64020 2012-09-26  Marek Polacek  <polacek@redhat.com>
64021
64022         [BZ #14530]
64023         [BZ #13741]
64024         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
64025         for C++ and GCC <4.3 as well as for non GCC compilers.
64026
64027 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
64028
64029         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64030
64031 2012-09-25  Roland McGrath  <roland@hack.frob.com>
64032
64033         * Makefile.in (all, install): Declare with .PHONY.
64034         Reported by Michael Hope <michael.hope@linaro.org>.
64035
64036 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64037
64038         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
64039         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
64040         system header.
64041         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
64042         Likewise.
64043         (sydep_routines): Add the new and the internal functions.
64044         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
64045         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
64046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
64047         (GLIBC_2.17): Add the new function.
64048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
64049         (GLIBC_2.17): Likewise.
64050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
64051         (GLIBC_2.17): Likewise.
64052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
64053         (GLIBC_2.17): Likewise.
64054         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
64055
64056 2012-09-25  Alan Modra  <amodra@gmail.com>
64057
64058         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
64059         Add release barrier before setting once_control to say
64060         initialisation is done.  Add hints on lwarx.  Use macro in
64061         place of isync.
64062         (clear_once_control): Add release barrier.
64063
64064 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
64065
64066         [BZ #13629]
64067         * math/s_clog.c (__clog): Handle more values close to |z| = 1
64068         specially.
64069         * math/s_clog10.c (__clog10): Likewise.
64070         * math/s_clog10f.c (__clog10f): Likewise.
64071         * math/s_clog10l.c (__clog10l): Likewise.
64072         * math/s_clogf.c (__clogf): Likewise.
64073         * math/s_clogl.c (__clogl): Likewise.
64074         * math/Makefile (libm-calls): Add x2y2m1.
64075         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
64076         (__x2y2m1): Likewise.
64077         (__x2y2m1l): Likewise.
64078         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
64079         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
64080         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
64081         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
64082         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
64083         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
64084         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
64085         * sysdeps/i386/fpu/libm-test-ulps: Update.
64086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64087
64088         [BZ #14621]
64089         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
64090         int as type of variable DEPTH.
64091         (glob): Use size_t instead of int as type of variables NEWCOUNT
64092         and OLD_PATHC.
64093
64094 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64095
64096         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64097         Add s_sincosf-sse2.
64098         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
64099         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
64100         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
64101         macros for using routine as __sincosf_ia32.
64102         Use macro for function declaration and weak_alias.
64103         * sysdeps/i386/fpu/libm-test-ulps: Update.
64104
64105         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
64106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64107
64108         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
64109         subnormal argument.
64110         * math/s_cexpf.c (__cexpf): Likewise.
64111         * math/s_csinf.c (__csinf): Likewise.
64112         * math/s_csinhf.c (__csinhf): Likewise.
64113         * math/s_ctanf.c (__ctanf): Likewise.
64114         * math/s_ctanhf.c (__ctanhf): Likewise.
64115         * math/s_ccosh.c (__ccoshf): Likewise.
64116         * math/s_cexp.c (__cexpl): Likewise.
64117         * math/s_csin.c (__csin): Likewise.
64118         * math/s_csinh.c (__csinh): Likewise.
64119         * math/s_ctan.c (__ctan): Likewise.
64120         * math/s_ctanh.c (ctanh): Likewise.
64121         * math/s_ccoshl.c (__ccoshl): Likewise.
64122         * math/s_cexpl.c (__cexpl): Likewise.
64123         * math/s_csinl.c (__csinl): Likewise.
64124         * math/s_csinhl.c (__csinhl): Likewise.
64125         * math/s_ctanl.c (__ctanl): Likewise.
64126         * math/s_ctanhl.c (__ctanhl): Likewise.
64127
64128 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
64129
64130         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
64131         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
64132         (_IO_off_t): Define to __off_t, not _G_off_t.
64133         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
64134         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
64135         (_IO_wint_t): Define to wint_t, not _G_wint_t.
64136         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
64137         type of __dummy and __dummy2 fields.
64138         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
64139         (_G_ssize_t): Likewise.
64140         (_G_off_t): Likewise.
64141         (_G_pid_t): Likewise.
64142         (_G_uid_t): Likewise.
64143         (_G_wchar_t): Likewise.
64144         (_G_wint_t): Likewise.
64145         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
64146         (_G_ssize_t): Likewise.
64147         (_G_off_t): Likewise.
64148         (_G_pid_t): Likewise.
64149         (_G_uid_t): Likewise.
64150         (_G_wchar_t): Likewise.
64151         (_G_wint_t): Likewise.
64152         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
64153         (_G_ssize_t): Likewise.
64154         (_G_off_t): Likewise.
64155         (_G_pid_t): Likewise.
64156         (_G_uid_t): Likewise.
64157         (_G_wchar_t): Likewise.
64158         (_G_wint_t): Likewise.
64159
64160 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64161
64162         * malloc/arena.c: Include malloc-sysdep.h.
64163         (shrink_heap): Use check_may_shrink_heap to decide if madvise
64164         is sufficient to shrink the heap or an unmap is needed.
64165         * sysdeps/generic/malloc-sysdep.h: New file.  Define
64166         new function check_may_shrink_heap.
64167         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
64168         new function check_may_shrink_heap.
64169
64170 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64171
64172         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
64173         comments.
64174
64175 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
64176
64177         * catgets/test-gencat.sh: Add "set -e".
64178         * elf/tst-pathopt.sh: Likewise.
64179         * grp/tst_fgetgrent.sh: Likewise.
64180         * iconvdata/run-iconv-test.sh: Likewise.
64181         * intl/tst-gettext.sh: Likewise.
64182         * intl/tst-gettext2.sh: Likewise.
64183         * intl/tst-gettext4.sh: Likewise.
64184         * intl/tst-gettext6.sh: Likewise.
64185         * intl/tst-translit.sh: Likewise.
64186         * io/ftwtest-sh: Likewise.
64187         * libio/test-freopen.sh: Likewise.
64188         * malloc/tst-mtrace.sh: Likewise.
64189         * posix/globtest.sh: Likewise.
64190         * posix/tst-getconf.sh: Likewise.
64191         * posix/wordexp-tst.sh: Likewise.
64192         * stdio-common/tst-printf.sh: Likewise.
64193         * stdio-common/tst-unbputc.sh: Likewise.
64194         * stdlib/tst-fmtmsg.sh: Likewise.
64195         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
64196         * catgets/Makefile: Do not specify -e option when running
64197         testsuite shell scripts.
64198         * elf/Makefile: Likewise.
64199         * grp/Makefile: Likewise.
64200         * iconvdata/Makefile: Likewise.
64201         * intl/Makefile: Likewise.
64202         * io/Makefile: Likewise.
64203         * libio/Makefile: Likewise.
64204         * malloc/Makefile: Likewise.
64205         * posix/Makefile: Likewise.
64206         * stdio-common/Makefile: Likewise.
64207         * stdlib/Makefile: Likewise.
64208         * sysdeps/x86_64/Makefile: Likewise.
64209
64210         * io/ftwtest-sh: Add copyright header.
64211         * posix/globtest.sh: Likewise.
64212         * posix/tst-getconf.sh: Likewise.
64213         * posix/wordexp-tst.sh: Likewise.
64214         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
64215
64216 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
64217
64218         [BZ #13679]
64219         * Makeconfig (+link): Defined as $(+link-static) if
64220         $(build-shared) isn't yes.
64221         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
64222         isn't yes.
64223         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
64224
64225         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
64226
64227         [BZ #14562]
64228         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
64229         new chunk size with MALLOC_ALIGN_MASK.
64230
64231 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
64232
64233         [BZ #5044]
64234         * stdio-common/printf_fphex.c: Include <stdbool.h> and
64235         <rounding-mode.h>.
64236         (__printf_fphex): Determine rounding using get_rounding_mode and
64237         round_away.
64238         * stdio-common/tst-printf-round.c (struct hex_test): New
64239         structure.
64240         (hex_tests): New variable.
64241         (test_hex_in_one_mode): New function.
64242         (do_test): Also run tests for hex float output.
64243
64244 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
64245
64246         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64247         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64248         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
64249         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64250         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64251         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
64252         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64253         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64254
64255 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
64256
64257         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
64258         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
64259         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
64260         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
64261
64262 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
64263
64264         [BZ #14579]
64265         * elf/rtld.c (dl_main): Limit the check for self loading to normal
64266         mode only.
64267         * elf/tst-rtld-load-self.sh: New test.
64268         * elf/Makefile: Run it.
64269
64270 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
64271
64272         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
64273         (tst-writev-ENV): Remove.
64274         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
64275
64276 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
64277
64278         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
64279
64280 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
64281
64282         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
64283         unconditional.
64284         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
64285         Likewise.
64286         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
64287         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64288         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
64289         Likewise.
64290
64291 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
64292
64293         [BZ #14587]
64294         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
64295         * config.make.in (have-cpp-asm-debuginfo): Removed.
64296         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
64297         * configure: Regenerated.
64298
64299 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
64300
64301         [BZ #5044]
64302         * stdio-common/printf_fp.c: Include <stdbool.h> and
64303         <rounding-mode.h>.
64304         (___printf_fp): Determine rounding using get_rounding_mode and
64305         round_away.
64306         * stdio-common/tst-printf-round.c: New file.
64307         * stdio-common/Makefile (tests): Add tst-printf-round.
64308         (link-libm): New variable.
64309         ($(objpfx)tst-printf-round): Depend in $(link-libm).
64310
64311 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
64312
64313         [BZ #14576]
64314         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
64315         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
64316         Likewise.
64317         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64318         Likewise.
64319
64320 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
64321
64322         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
64323         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64324         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64325         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64326
64327 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
64328
64329         [BZ #14518]
64330         * include/rounding-mode.h: New file.
64331         * sysdeps/generic/get-rounding-mode.h: Likewise.
64332         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
64333         * stdlib/strtod_l.c: Include <rounding-mode.h>.
64334         (MAX_VALUE): New macro.
64335         (MIN_VALUE): Likewise.
64336         (overflow_value): New function.
64337         (underflow_value): Likewise.
64338         (round_and_return): Use overflow_value and underflow_value to
64339         determine return values in overflow and underflow cases.  Use
64340         round_away to determine rounding depending on rounding mode.
64341         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
64342         determine return values in overflow and underflow cases.
64343         * stdlib/tst-strtod-round.c: Include <fenv.h>.
64344         (struct test_results): New structure.
64345         (struct test): Use struct test_results to store expected results
64346         for all rounding modes.
64347         (TEST): Include expected results for all rounding modes.
64348         (test_in_one_mode): New function.
64349         (do_test): Use test_in_one_mode to compute and check results.
64350         Check results for all rounding modes.
64351         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
64352         $(link-libm).
64353
64354 2012-12-09  Allan McRae  <allan@archlinux.org>
64355
64356         * sysdeps/i386/fpu/libm-test-ulps: Update
64357
64358 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
64359
64360         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
64361         (_G_int32_t): Likewise.
64362         (_G_uint16_t): Likewise.
64363         (_G_uint32_t): Likewise.
64364         (_G_HAVE_BOOL): Likewise.
64365         (_G_HAVE_ATEXIT): Likewise.
64366         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64367         (_G_HAVE_IO_FILE_OPEN): Likewise.
64368         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
64369         (_G_int32_t): Likewise.
64370         (_G_uint16_t): Likewise.
64371         (_G_uint32_t): Likewise.
64372         (_G_HAVE_BOOL): Likewise.
64373         (_G_HAVE_ATEXIT): Likewise.
64374         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64375         (_G_HAVE_IO_FILE_OPEN): Likewise.
64376         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
64377         (_G_int32_t): Likewise.
64378         (_G_uint16_t): Likewise.
64379         (_G_uint32_t): Likewise.
64380         (_G_HAVE_BOOL): Likewise.
64381         (_G_HAVE_ATEXIT): Likewise.
64382         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64383         (_G_HAVE_IO_FILE_OPEN): Likewise.
64384
64385 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
64386
64387         * csu/libc-tls.c: Update copyright years.
64388
64389 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
64390
64391         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
64392         [!_G_USING_THUNKS]: Remove conditional code.
64393         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
64394         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
64395
64396         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
64397         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
64398         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64399         (_G_VTABLE_LABEL_PREFIX): Likewise.
64400         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64401         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64402         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64403         (_G_VTABLE_LABEL_PREFIX): Likewise.
64404         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64405         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64406         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64407         (_G_VTABLE_LABEL_PREFIX): Likewise.
64408         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64409
64410 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
64411
64412         * libio/Makefile: Include ../Makeconfig before tests.
64413         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
64414         only if $(build-shared) is yes.
64415
64416         * iconv/gconv_db.c: Update copyright years.
64417
64418 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64419
64420         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
64421         unwind info if defined PIC. Fix special cases description.
64422         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
64423
64424         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
64425         DP_HI_MASK entry.
64426         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
64427
64428 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
64429
64430         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
64431
64432         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
64433         is NULL.
64434
64435         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
64436         (LDLIBS-tst-chk4): This.
64437         (LDFLAGS-tst-chk5): Renamed to ...
64438         (LDLIBS-tst-chk5): This.
64439         (LDFLAGS-tst-chk6): Renamed to ...
64440         (LDLIBS-tst-chk6): This.
64441         (LDFLAGS-tst-lfschk4): Renamed to ...
64442         (LDLIBS-tst-lfschk4): This.
64443         (LDFLAGS-tst-lfschk5): Renamed to ...
64444         (LDLIBS-tst-lfschk5): This.
64445         (LDFLAGS-tst-lfschk6): Renamed to ...
64446         (LDLIBS-tst-lfschk6): This.
64447
64448         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
64449         on $(common-objpfx)soversions.mk.
64450
64451 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
64452
64453         [BZ #10014]
64454         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
64455         example host name.
64456
64457 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64458
64459         * malloc/arena.c (arena_get_retry): New function that gets
64460         another arena for the caller to try its request on.
64461         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
64462         current arena cannot fulfill the request.
64463         (__libc_memalign): Likewise.
64464         (__libc_memalign): Likewise.
64465         (__libc_pvalloc): Likewise.
64466         (__libc_calloc): Likewise.
64467
64468 2012-09-05  John Tobey  <john.tobey@gmail.com>
64469
64470         [BZ #13542]
64471         * manual/arith.texi (Operations on Complex): Fix description
64472         of carg branch cut.
64473
64474 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64475
64476         [BZ #10014]
64477         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
64478         host name.
64479
64480         [BZ #10038]
64481         * manual/memory.texi (Memory): Make order of menu items match
64482         order of sections.
64483
64484 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64485
64486         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
64487         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
64488         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
64489
64490 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64491
64492         * csu/libc-tls.c (static_dtv): Renamed to ...
64493         (_dl_static_dtv): This.  Make it global.
64494         (_dl_initial_dtv): Removed.
64495         (__libc_setup_tls): Updated.
64496         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
64497         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
64498         DL_INITIAL_DTV.
64499
64500 2012-09-06  Petr Machata  <pmachata@redhat.com>
64501
64502         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
64503         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
64504         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
64505         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
64506
64507 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64508
64509         [BZ #14545]
64510         * csu/libc-tls.c (_dl_initial_dtv): New variable.
64511         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
64512         freeing dtv[-1].
64513
64514 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64515
64516         [BZ #14544]
64517         * Makeconfig (link-static-before-libc): Replace $(+prector)
64518         with $(+prectorT).
64519         (link-static-after-libc): Replace $(+postctor) with
64520         $(+postctorT).
64521         (link-bounded): Replace $(+prector)/$(+postctor) with
64522         $(+prectorT)/$(+postctorT).
64523         (+prectorT): New macro.
64524         (+postctorT): Likewise.
64525
64526 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64527
64528         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
64529         (round_str): Handle values above the maximum for IBM long double
64530         as inexact.
64531         * stdlib/tst-strtod-round.c (tests): Regenerated.
64532
64533 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64534
64535         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
64536         assembler flag.
64537         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
64538         zarch_nohighgprs around the zarch optimized routines.
64539         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
64540         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
64541         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
64542         for zarch.
64543
64544 2012-09-05  David S. Miller  <davem@davemloft.net>
64545
64546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64547
64548         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
64549         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
64550         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64551         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64552         entries.
64553
64554 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64555
64556         * malloc/arena.c: Fold copyright years.
64557         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64558
64559 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64560
64561         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64562
64563 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64564
64565         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64566
64567 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64568
64569         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64570         change internal state upon failure.
64571
64572 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64573
64574         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64575         * malloc/memusage.c (mmap): Likewise.
64576         (mmap64, mremap): Likewise.  Adjust name in comment.
64577
64578 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64579
64580         * libio/fileops.c: Fix typos in comments.
64581         * libio/oldfileops.c: Likewise.
64582         * libio/wfileops.c: Likewise.
64583
64584 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64585
64586         [BZ #1349]
64587         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64588         (tst-malloc-usable-ENV): Set environment for test case.
64589         * malloc/hooks.c (malloc_check_get_size): New function to get
64590         requested size.
64591         * malloc/malloc.c (musable): Use malloc_check_get_size.
64592         * malloc/tst-malloc-usable.c: New test case.
64593
64594 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64595
64596         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64597
64598 2012-09-05  Allan McRae  <allan@archlinux.org>
64599
64600         [BZ #13966]
64601         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64602         determine header location.
64603         * configure: Regenerated.
64604
64605 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64606
64607         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64608         float format.
64609         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64610         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64611         format.
64612         (test): Regenerate.
64613
64614 2012-09-04  David S. Miller  <davem@davemloft.net>
64615
64616         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64617         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64618         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64619
64620 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64621
64622         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64623         failures.
64624
64625         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64626
64627 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64628
64629         [BZ #9914]
64630         * libio/iogetdelim.c: Include <limits.h>.
64631         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64632         + len + 1 would overflow.
64633
64634 2012-09-03  Andreas Jaeger  <aj@suse.de>
64635
64636         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64637         * sysdeps/i386/fpu/libm-test-ulps: Update.
64638
64639 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64640
64641         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64642         Add s_sinf-sse2, s_conf-sse2.
64643
64644         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64645         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64646         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64647         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64648
64649         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64650         for using routine as __sinf_ia32.
64651         Use macro for function declaration and weak_alias.
64652         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64653         for using routine as __cosf_ia32.
64654         Use macro for function declaration and weak_alias.
64655
64656         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64657         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64658
64659         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64660         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64661         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64662
64663         * math/libm-test.inc (cos_test): Add more test cases.
64664         (sin_test): Likewise.
64665         (sincos_test): Likewise.
64666
64667 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64668
64669         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64670         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64671         hidden.
64672         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64673
64674 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64675
64676         [BZ #14538]
64677         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64678         first element of the GOT.
64679         (elf_machine_load_address): Return the difference between
64680         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64681
64682 2012-09-01  Allan McRae  <allan@archlinux.org>
64683
64684         [BZ #13412]
64685         * configure.in (AWK): Require gawk version 3.0 or later.
64686         * configure: Regenerated.
64687
64688 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64689
64690         * sysdeps/unix/sysv/linux/kernel-features.h
64691         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64692         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64693         [__NR_clock_getres]: Make code unconditional.
64694         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64695         (clock_getcpuclockid): Remove code left unreachable by removal of
64696         conditionals.
64697         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64698         code unconditional.
64699         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64700         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64701         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64702         Make code unconditional.
64703         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64704         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64705         * sysdeps/unix/sysv/linux/clock_settime.c
64706         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64707         conditional code.
64708         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64709         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64710
64711 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64712
64713         [BZ #14476]
64714         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64715         scripts/test-installation.pl.
64716
64717         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64718         and $ld_so_version if it is set.
64719
64720 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64721
64722         [BZ #14516]
64723         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64724         failure if reading from procfs failed.
64725         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64726
64727 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64728
64729         * sysdeps/unix/sysv/linux/kernel-features.h
64730         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64731         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64732         Remove conditional code.
64733         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64734         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64735         Remove conditional code.
64736         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64737         * sysdeps/unix/sysv/linux/i386/fxstat.c
64738         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64739         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64740         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64741         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64742         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64743         * sysdeps/unix/sysv/linux/i386/lxstat.c
64744         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64745         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64746         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64747         Remove conditional code.
64748         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64749         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64750         Remove conditional code.
64751         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64752         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64753         <kernel-features.h>.
64754         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64755         Remove.
64756         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64757         Remove conditional code.
64758         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64759         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64760         Remove conditional.
64761
64762 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64763
64764         [BZ #5400]
64765         * NEWS: Add fixed bug number.
64766
64767 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64768
64769         [BZ #14519]
64770         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64771         underflowing exponent in case of negative sign.
64772         * stdlib/tst-strtod-round-data: Add more tests.
64773         * stdlib/tst-strtod-round.c (tests): Regenerated.
64774
64775         [BZ #3479]
64776         * stdlib/strtod_l.c (NDIG): Remove.
64777         (HEXNDIG): Likewise.
64778         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64779         smallest representable value.
64780         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64781         lie within an exact representation of 1/2 ulp of the result.
64782         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64783         unconditionally.
64784         (TENS_P9_IDX): Define unconditionally.
64785         (TENS_P9_SIZE): Likewise.
64786         (TENS_P10_IDX): Likewise.
64787         (TENS_P10_SIZE): Likewise.
64788         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64789         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64790         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64791         entries for 10^2^13 and 10^2^14.
64792         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64793         (TENS_P13_IDX): Define.
64794         (TENS_P13_SIZE): Likewise.
64795         (TENS_P14_IDX): Likewise.
64796         (TENS_P14_SIZE): Likewise.
64797         (_fpioconst_pow10): Change array size to
64798         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64799         unconditional.
64800         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64801         1024]: Add entries for 10^2^13 and 10^2^14.
64802         [LAST_POW10 > _LAST_POW10]: Remove #error.
64803         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64804         (_fpioconst_pow10): Change array size to
64805         FPIOCONST_POW10_ARRAY_SIZE.
64806         * stdlib/gen-fpioconst.c: New file.
64807         * stdlib/gen-tst-strtod-round.c: Likewise.
64808         * stdlib/tst-strtod-round-data: Likewise.
64809         * stdlib/tst-strtod-round.c: Likewise.
64810         * stdlib/Makefile (tests): Add tst-strtod-round.
64811
64812         [BZ #14459]
64813         * stdlib/strtod_l.c: Include <stdint.h>.
64814         (NDEBUG): Do not define.
64815         (round_and_return): Change EXPONENT parameter to type intmax_t.
64816         Rearrange calculations to avoid internal overflow possibilities.
64817         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64818         Rearrange calculations to avoid internal overflow possibilities.
64819         Assert that number fits inside MPNSIZE limbs.
64820         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64821         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64822         calculations and add assertions to avoid internal overflow
64823         possibilities.  Add casts to avoid signed/unsigned operations.
64824         * stdlib/tst-strtod-overflow.c: New file.
64825         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64826
64827 2012-08-25  Marek Polacek  <polacek@redhat.com>
64828
64829         * time/time.h: Fix some typos in comments.
64830
64831 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64832
64833         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64834         * posix/tst-rfc3484-2.c: Likewise.
64835         * posix/tst-rfc3484-3.c: Likewise.
64836
64837 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64838
64839         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64840         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64841
64842 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64843
64844         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64845         #include of fxstatat64.c.
64846
64847 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64848
64849         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64850         * shadow/getspent_r.c: Likewise.
64851         * shadow/getspnam.c: Likewise.
64852         * shadow/getspnam_r.c: Likewise.
64853         * gshadow/getsgent.c: Likewise.
64854         * gshadow/getsgent_r.c: Likewise.
64855         * gshadow/getsgnam.c: Likewise.
64856         * gshadow/getsgnam_r.c: Likewise.
64857         * inet/getnetbyad.c: Likewise.
64858         * inet/getnetbyad_r.c: Likewise.
64859         * inet/getnetbynm.c: Likewise.
64860         * inet/getnetbynm_r.c: Likewise.
64861         * inet/getnetent.c: Likewise.
64862         * inet/getnetent_r.c: Likewise.
64863         * inet/getproto.c: Likewise.
64864         * inet/getproto_r.c: Likewise.
64865         * inet/getprtent.c: Likewise.
64866         * inet/getprtent_r.c: Likewise.
64867         * inet/getprtname.c: Likewise.
64868         * inet/getprtname_r.c: Likewise.
64869         * inet/getrpcbyname.c: Likewise.
64870         * inet/getrpcbyname_r.c: Likewise.
64871         * inet/getrpcbynumber.c: Likewise.
64872         * inet/getrpcbynumber_r.c: Likewise.
64873         * inet/getrpcent.c: Likewise.
64874         * inet/getrpcent_r.c: Likewise.
64875         * inet/getaliasent.c: Likewise.
64876         * inet/getaliasent_r.c: Likewise.
64877         * inet/getaliasname.c: Likewise.
64878         * inet/getaliasname_r.c: Likewise.
64879         * nscd/getgrgid_r.c: Likewise.
64880         * nscd/getgrnam_r.c: Likewise.
64881         * nscd/gethstbyad_r.c: Likewise.
64882         * nscd/gethstbynm3_r.c: Likewise.
64883         * nscd/getpwnam_r.c: Likewise.
64884         * nscd/getpwuid_r.c: Likewise.
64885         * nscd/getsrvbynm_r.c: Likewise.
64886         * nscd/getsrvbypt_r.c: Likewise.
64887         * nscd/gai.c: Likewise.
64888
64889         * configure.in (build_nscd): New substituted variable, set
64890         by --disable-build-nscd and defaults to $use_nscd.
64891         * configure: Regenerated.
64892         * config.make.in (build-nscd): New substituted variable.
64893         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64894         Change conditional to require [$(build-nscd) = yes] as well.
64895         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64896
64897         [BZ# 13696]
64898         * configure.in (use_nscd): New substituted variable, set by
64899         --disable-nscd.  If enabled, define USE_NSCD.
64900         * configure: Regenerated.
64901         * config.h.in: Add USE_NSCD.
64902         * config.make.in (use-nscd): New substituted variable.
64903         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64904         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64905         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64906         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64907         (CFLAGS-getgrnam_r.c): Likewise.
64908         (CFLAGS-initgroups.c): Likewise.
64909         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64910         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64911         Variables removed.
64912         * inet/getnetgrent_r.c
64913         (nscd_setnetgrent): New function, broken out of ...
64914         (setnetgrent): ... here.  Call it.
64915         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64916         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64917         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64918         * nscd/Makefile (routines, aux): Move definitions after include of
64919         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64920         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64921         Conditionalize on [USE_NSCD].
64922         (is_nscd, nscd_init_cb): Likewise.
64923         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64924         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64925         * nss/nss_db/db-init.c: Likewise.
64926         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64927         [USE_NSCD].
64928         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64929         (make_request): Use it.
64930         (cache_valid_p): New function.
64931         (__check_pf): Use it.
64932         * NEWS: Add item for --disable-nscd.
64933
64934 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64935
64936         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64937         to support sed >= 4.2.1-20-ga9bf076.
64938         * configure: Regenerated.
64939
64940 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64941
64942         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64943         Conditionalize whole body on [IREL].
64944
64945 2012-08-22  Jeff Law <law@redhat.com>
64946
64947         [BZ #14505]
64948         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64949         if the family is PF_UNSPEC.
64950
64951 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64952
64953         * Makerules (lib-version): Rename from V.
64954         (install-lib-nosubdir): Change V to lib-version.
64955
64956 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64957
64958         [BZ #14252]
64959         * powerpc32/power6/wcschr.c: New file.
64960         * powerpc32/power6/wcscpy.c: New file.
64961         * powerpc32/power6/wcsrchr.c: New file.
64962         * powerpc64/power6/wcschr.c: New file.
64963         * powerpc64/power6/wcscpy.c: New file.
64964         * powerpc64/power6/wcsrchr.c: New file.
64965
64966 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64967
64968         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64969         (two_way_short_needle): Use it.
64970         * string/strstr.c (AVAILABLE1_USES_J): Define.
64971         * string/strcasestr.c: Likewise.
64972
64973         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64974         array references.
64975         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64976
64977         [BZ #11607]
64978         * NEWS: Add an entry.
64979         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64980         define their defaults.
64981         (two_way_short_needle): Detect end-of-string on-the-fly.
64982         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64983         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64984         * string/bug-strcasestr1.c: New test.
64985         * string/Makefile: Run it.
64986
64987 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64988
64989         [BZ #11607]
64990         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64991         the first character.
64992
64993 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64994
64995         * csu/elf-init.c (__libc_csu_irel): Function removed.
64996         * csu/libc-start.c (apply_irel): New function.
64997         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64998
64999 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
65000
65001         * sysdeps/unix/sysv/linux/kernel-features.h
65002         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
65003         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
65004         <kernel-features.h>.
65005         [__NR_fadvise64_64]: Make code unconditional.
65006         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
65007         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
65008         !__NR_fadvise64_64)]: Likewise.
65009         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
65010         !__NR_fadvise64_64))]: Likewise.
65011         [__NR_fadvise64]: Make code unconditional.
65012         [!__NR_fadvise64]: Remove conditional code.
65013         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
65014         <kernel-features.h>.
65015         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65016         unconditional.
65017         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65018         conditional code.
65019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
65020         not include <kernel-features.h>.
65021         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65022         unconditional.
65023         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65024         conditional code.
65025         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
65026         include <kernel-features.h>.
65027         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65028         unconditional.
65029         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65030         conditional code.
65031
65032 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
65033
65034         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
65035         slight instruction rearrangements per scrollpipe analysis.
65036         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
65037
65038 2012-08-20  Roland McGrath  <roland@hack.frob.com>
65039
65040         * manual/syslog.texi (syslog; vsyslog, closelog):
65041         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
65042         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
65043
65044         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
65045         DSOCAPS to match condition on defining it.
65046
65047 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
65048
65049         * sysdeps/unix/sysv/linux/kernel-features.h
65050         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
65051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
65052         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65053         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
65055         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65056         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
65058         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65059         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65060
65061         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
65062         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
65063
65064         * sysdeps/unix/sysv/linux/kernel-features.h
65065         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
65066         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
65067         unconditional.
65068         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65069         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
65070         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
65071         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65072         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
65073         Make code unconditional.
65074         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65075         (__mmap64) [!__NR_mmap2]: Likewise.
65076         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
65077         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
65078         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65079         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
65080         [__NR_mmap2]: Make code unconditional.
65081         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65082         (__mmap64) [!__NR_mmap2]: Likewise.
65083
65084 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65085
65086         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
65087
65088 2012-08-18  Andreas Jaeger  <aj@suse.de>
65089
65090         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
65091
65092 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
65093
65094         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
65095         * include/unistd.h (__have_sock_cloexec): Likewise.
65096         (__have_pipe2): Likewise.
65097         (__have_dup3): Likewise.
65098
65099 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
65100
65101         [BZ #9685]
65102         * include/unistd.h (__have_pipe2): Change define into an extern int.
65103         (__have_dup3): Likewise.
65104         * socket/have_sock_cloexec.c: Include fcntl.h.
65105         (__have_pipe2): New variable.
65106         (__have_dup3): Likewise.
65107
65108 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
65109
65110         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
65111
65112 2012-08-17  Marek Polacek  <polacek@redhat.com>
65113
65114         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
65115         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
65116
65117 2012-08-17  Roland McGrath  <roland@hack.frob.com>
65118
65119         * configure.in: Add AC_SUBST for sysheaders.
65120         * configure: Regenerated.
65121         * config.make.in (sysheaders): New substituted variable.
65122
65123         * sysdeps/unix/mkfifo.c: Moved ...
65124         * sysdeps/posix/mkfifo.c: ... here.
65125         * sysdeps/unix/mkfifoat.c: Moved ...
65126         * sysdeps/posix/mkfifoat.c: ... here.
65127
65128         * sysdeps/unix/utime.c: Moved ...
65129         * sysdeps/posix/utime.c: ... here.
65130
65131         * sysdeps/unix/time.c: Moved ...
65132         * sysdeps/posix/time.c: ... here.
65133         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
65134         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
65135
65136         * sysdeps/unix/nice.c: Moved ...
65137         * sysdeps/posix/nice.c: ... here.
65138
65139         * sysdeps/unix/alarm.c: Moved ...
65140         * sysdeps/posix/alarm.c: ... here.
65141
65142         * intl/Makefile ($(codeset_mo)): Depend on the input file.
65143
65144 2012-08-17  Jeff Law <law@redhat.com>
65145
65146         * intl/Makefile (codeset_mo): New variable.
65147         ($(codeset_mo)): New target.
65148         (tst-codeset.out): Depend on that.  Remove explicit rule.
65149         (tst-gettext3.out, tst-gettext5.out): Likewise.
65150         (LOCPATH-ENV, tst-codeset-ENV): New variables.
65151         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
65152         * intl/tst-codeset.sh: Remove.
65153         * intl/tst-gettext3.sh: Likewise.
65154         * intl/tst-gettext5.sh: Likewise.
65155
65156 2012-08-17  Roland McGrath  <roland@hack.frob.com>
65157
65158         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
65159         * sysdeps/unix/syscalls.list: ... here.
65160
65161         * sysdeps/posix/getaddrinfo.c
65162         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
65163         (gaiconf_init, gaiconf_reload): Use them.
65164         [!_STATBUF_ST_NSEC]
65165         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
65166         Define using time_t rather than struct timespec.
65167
65168         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
65169         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
65170         Macros removed.
65171         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
65172         [!NO_THREADS].
65173         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
65174         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
65175         Likewise.
65176
65177         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
65178         __libc_cleanup_push argument.
65179
65180         * bits/param.h: New file.
65181         * misc/sys/param.h: New file.
65182         * include/sys/param.h: New file.
65183         * misc/Makefile (headers): Add bits/param.h.
65184         * sysdeps/generic/sys/param.h: File removed.
65185         * sysdeps/unix/sysv/linux/bits/param.h: New file.
65186         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
65187         * sysdeps/mach/hurd/bits/param.h: New file.
65188         * sysdeps/mach/hurd/sys/param.h: File removed.
65189
65190         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
65191         last change.
65192
65193         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
65194         [_IO_MTSAFE_IO].
65195         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
65196         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
65197         New macros.
65198
65199         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
65200         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
65201         rather than -D_IO_MTSAFE_IO conditionally.
65202         * stdio-common/Makefile (CPPFLAGS): Likewise.
65203         * wcsmbs/Makefile (CPPFLAGS): Likewise.
65204         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
65205         Use $(libio-mtsafe).
65206         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
65207         of -D_IO_MTSAFE_IO.
65208         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
65209         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
65210         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
65211         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
65212         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
65213         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
65214         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
65215         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
65216         (CFLAGS-fread_u_chk.c): Likewise.
65217         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
65218         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
65219         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
65220         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
65221         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
65222         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
65223         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
65224         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
65225         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
65226
65227         * libio/Makefile: Test [$(libc-reentrant) = yes]
65228         instead of [$(filter %REENTRANT, $(defines)) nonempty].
65229
65230         * Makeconfig
65231         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
65232         * sysdeps/pthread/configure: File removed.
65233         * sysdeps/pthread/Makeconfig: New file.
65234         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
65235         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
65236
65237 2012-08-16  Gary Benson  <gbenson@redhat.com>
65238
65239         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
65240         unmapping the first object in a namespace.
65241
65242 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65243
65244         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
65245         (__internal_setnetgrent): ... this.  Add internal_function to
65246         definition.  Add libc_hidden_def.
65247         (setnetgrent): Update caller.
65248         (internal_endnetgrent): Renamed to ...
65249         (__internal_endnetgrent): ... this.  Add internal_function to
65250         definition.  Add libc_hidden_def.
65251         (endnetgrent): Update caller.
65252         (internal_getnetgrent_r): Renamed to ...
65253         (__internal_getnetgrent_r): ... this.  Add internal_function to
65254         definition.  Add libc_hidden_def.
65255         (__getnetgrent_r): Update caller.
65256         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
65257
65258 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65259
65260         * stdlib/longlong.h: Update from GCC.
65261
65262 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65263
65264         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
65265         on _QL, which is set by umul_ppmm but never used.
65266         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
65267         variables, which are set by GMP macros but never used.
65268         * stdio-common/_itowa.c (_itowa): Likewise.
65269         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
65270         * stdlib/mod_1.c (mpn_mod_1): Likewise.
65271
65272 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
65273
65274         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
65275         struct La_sh_regs is not constant.
65276         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
65277         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
65278         and struct La_sparc64_regs are not constant.
65279
65280 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65281
65282         * sysdeps/unix/sysv/linux/kernel-features.h
65283         (__ASSUME_POSIX_TIMERS): Remove.
65284         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65285         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65286         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
65287         Make code unconditional.
65288         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65289         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
65290         Make code unconditional.
65291         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65292         * sysdeps/unix/sysv/linux/clock_nanosleep.c
65293         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
65294         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65295         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
65296         Make code unconditional.
65297         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65298         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
65299         (__libc_missing_posix_timers): Remove.
65300
65301 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65302
65303         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
65304         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
65305
65306         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
65307
65308         * elf/dl-sym.c: Include <stdlib.h>.
65309
65310         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
65311         constants, which avoids warnings in 32-bit builds.
65312
65313         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
65314         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
65315
65316         * misc/lseek.c: File moved to ...
65317         * io/lseek.c: ... here.
65318
65319         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
65320
65321         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
65322         shifting LEN more than 31 bits at once.
65323
65324 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65325
65326         [BZ #14195]
65327         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
65328         segmentation fault for a case of two empty input strings.
65329         * string/test-strncasecmp.c (check1): Renamed to...
65330         (bz12205): ...this.
65331         (bz14195): Add new testcase for two empty input strings and N > 0.
65332         (test_main): Call new testcase, adapt for renamed function.
65333
65334 2012-08-15  Andreas Jaeger  <aj@suse.de>
65335
65336         [BZ #14090]
65337         * crypt/md5test2.c: New test, based on test supplied by Serge
65338         Belyshev <belyshev@depni.sinp.msu.ru>.
65339         * crypt/Makefile (xtests): Add md5test-giant..
65340         * crypt/Makefile ($(objpfx)md5test-giant): Add.
65341
65342 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         [BZ #14090]
65345         * crypt/md5.c (md5_process_block): Don't assume the buffer
65346         length is less than 2**32.
65347         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
65348         length is less than 2**64.
65349
65350 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65351
65352         * string/str-two-way.h: Include <sys/param.h>.
65353         (MAX): Macro removed.
65354
65355         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
65356         Move #define and #undef of memmove to just before and after
65357         including <string.h>.
65358
65359         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
65360         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
65361         and after including <string.h>.  Move declarations of
65362         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
65363         to before #include "string/memmove.c".
65364
65365         * include/dirent.h: Declare __getdirentries.
65366
65367         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
65368         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
65369
65370 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
65371
65372         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
65373         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
65374         * sysdeps/i386/configure: Regenerated.
65375         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
65376         STABS_CURRENT_FILE, and STABS_FUN.
65377         (END): Remove call to STABS_FUN_END.
65378         (STABS_CURRENT_FILE1): Delete.
65379         (STABS_CURRENT_FILE): Likewise.
65380         (STABS_FUN): Likewise.
65381         (STABS_FUN_END): Likewise.
65382         (STABS_FUN2): Likewise.
65383         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
65384         * sysdeps/x86_64/configure: Regenerated.
65385
65386 2012-08-14  Roland McGrath  <roland@hack.frob.com>
65387
65388         * elf/dl-open.c: Include <atomic.h>.
65389         * elf/dl-lookup.c: Likewise.
65390
65391 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
65392
65393         * sysdeps/unix/sysv/linux/kernel-features.h
65394         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
65395         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
65396         unconditionally.
65397         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
65398         unconditionally.
65399         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
65400         condition on __ASSUME_CLONE_THREAD_FLAGS.
65401
65402 2012-08-14  Andreas Jaeger  <aj@suse.de>
65403
65404         * sysdeps/i386/fpu/libm-test-ulps: Update.
65405
65406 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
65407
65408         * include/atomic.h (atomic_exchange_and_add): Split into ...
65409         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
65410         New atomic macros.
65411
65412 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
65413
65414         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65415
65416 2012-08-13  Jeff Law <law@redhat.com>
65417
65418         * manual/stdio.texi (snprintf): Clarify handling of the trailing
65419         null byte in the output string.
65420
65421 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
65422
65423         * sysdeps/unix/sysv/linux/kernel-features.h
65424         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
65425         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
65426         (__ASSUME_ARG_MAX_STACK_BASED): Define.
65427         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
65428         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
65429         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
65430         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
65431
65432 2012-08-09  Jeff Law <law@redhat.com>
65433
65434         [BZ #13939]
65435         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
65436         When avoid_arena is set, don't retry in the that arena.  Pick the
65437         next one, whatever it might be.
65438         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
65439         (arena_lock): Pass in new parameter to arena_get2.
65440         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
65441         arena_get2.
65442         (__libc_malloc): Unify retrying after main arena failure with
65443         __libc_memalign version.
65444         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
65445
65446 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
65447
65448         [BZ #14166]
65449         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
65450         to __redirect_strstr.
65451         (__strstr_sse42): Use typeof __redirect_strstr.
65452         (__strstr_ia32): Likewise.
65453         (__libc_strstr): New prototype.
65454         (strstr): Renamed to ...
65455         (__libc_strstr): This.
65456         (strstr): New strong alias of __libc_strstr.
65457         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65458         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
65459         __redirect_time.
65460         Include <time.h>.
65461         (__libc_time): New prototype.
65462         (time_ifunc): Replace time with __libc_time.
65463         (time): New strong alias and hidden definition of __libc_time.
65464         (__GI_time): Remove strong alias.
65465         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
65466         Include <stddef.h>.
65467         (memmove): Redefined to __redirect_memmove.
65468         (__memmove_sse2): Use typeof __redirect_memmove.
65469         (__memmove_ssse3): Likewise.
65470         (__memmove_ssse3_back): Likewise.
65471         (__libc_memmove): New prototype.
65472         (memmove): Renamed to ...
65473         (__libc_memmove): This.
65474         (memmove): New strong alias of __libc_memmove.
65475
65476 2012-08-08  Mark Salter  <msalter@redhat.com>
65477
65478         * elf/elf.h
65479         (R_MN10300_TLS_GD): Define.
65480         (R_MN10300_TLS_LD): Likewise.
65481         (R_MN10300_TLS_LDO): Likewise.
65482         (R_MN10300_TLS_GOTIE): Likewise.
65483         (R_MN10300_TLS_IE): Likewise.
65484         (R_MN10300_TLS_LE): Likewise.
65485         (R_MN10300_TLS_DTPMOD): Likewise.
65486         (R_MN10300_TLS_DTPOFF): Likewise.
65487         (R_MN10300_TLS_TPOFF): Likewise.
65488         (R_MN10300_SYM_DIFF): Likewise.
65489         (R_MN10300_ALIGN): Likewise.
65490         (R_MN10300_NUM): Update.
65491
65492 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
65493
65494         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
65495         Remove.
65496
65497 2012-08-08  Roland McGrath  <roland@hack.frob.com>
65498
65499         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
65500
65501         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
65502         sysdeps/unix -> sysdeps/posix move.
65503         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
65504
65505 2012-08-07      Allan McRae     <allan@archlinux.org>
65506
65507         [BZ #14303]
65508         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
65509         (SUNOS_CPP): Likewise.
65510         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
65511         not found.
65512         (open_input): Call CPP using execvp.
65513
65514 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65515
65516         * sysdeps/unix/sysv/linux/kernel-features.h
65517         (__ASSUME_PROT_GROWSUPDOWN): Remove.
65518         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65519         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65520         (__ASSUME_WAITID_SYSCALL): Likewise.
65521         * sysdeps/unix/sysv/linux/dl-execstack.c
65522         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
65523         code unconditional.
65524         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
65525         conditional code.
65526         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
65527         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
65528         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
65529         code.
65530         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
65531         unconditional.
65532         [__ASSUME_WAITID_SYSCALL]: Likewise.
65533         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
65534
65535 2012-08-07  Roland McGrath  <roland@hack.frob.com>
65536
65537         * sysdeps/unix/closedir.c: Renamed to ...
65538         * sysdeps/posix/closedir.c: ... here.
65539         * sysdeps/unix/dirfd.c: Renamed to ...
65540         * sysdeps/posix/dirfd.c: ... here.
65541         * sysdeps/unix/dirstream.h: Renamed to ...
65542         * sysdeps/posix/dirstream.h: ... here.
65543         * sysdeps/unix/fdopendir.c: Renamed to ...
65544         * sysdeps/posix/fdopendir.c: ... here.
65545         * sysdeps/unix/opendir.c: Renamed to ...
65546         * sysdeps/posix/opendir.c: ... here.
65547         * sysdeps/unix/readdir.c: Renamed to ...
65548         * sysdeps/posix/readdir.c: ... here.
65549         * sysdeps/unix/readdir_r.c: Renamed to ...
65550         * sysdeps/posix/readdir_r.c: ... here.
65551         * sysdeps/unix/rewinddir.c: Renamed to ...
65552         * sysdeps/posix/rewinddir.c: ... here.
65553         * sysdeps/unix/seekdir.c: Renamed to ...
65554         * sysdeps/posix/seekdir.c: ... here.
65555         * sysdeps/unix/telldir.c: Renamed to ...
65556         * sysdeps/posix/telldir.c: ... here.
65557         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65558         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65559         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65560         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65561
65562         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65563         * bits/fcntl.h: ... here.
65564
65565         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65566         not 0.
65567         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65568         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65569         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65570         (struct flock): Move l_start, l_len to the beginning.
65571         Use __pid_t for l_pid.
65572         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65573         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65574         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65575         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65576         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65577         [__USE_LARGEFILE64] (struct flock64): New type.
65578         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65579
65580         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65581         * bits/dirent.h: ... here.
65582
65583         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65584         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65585
65586 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65587
65588         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65589         Change from 2.6.0 to 2.6.16.
65590         * sysdeps/unix/sysv/linux/configure: Regenerated.
65591         * sysdeps/unix/sysv/linux/kernel-features.h
65592         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65593         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65594         version.
65595         (__ASSUME_UTIMES): Likewise.
65596         (__ASSUME_CLONE_STOPPED): Remove.
65597         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65598         architectures, not kernel version.
65599         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65600         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65601         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65602         (__ASSUME_WAITID_SYSCALL): Likewise.
65603         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65604         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65605         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65606         refer to older versions.
65607
65608 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65609
65610         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65611         Define alphasort64 as an alias.
65612         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65613         Define versionsort64 as an alias.
65614         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65615         Define scandir64 as an alias.
65616         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65617         Define scandirat64 as an alias.
65618         * dirent/alphasort64.c (alphasort64):
65619         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65620         * dirent/versionsort64.c: Likewise.
65621         * dirent/scandir64.c: Likewise.
65622         * dirent/scandirat64.c: Likewise.
65623         * sysdeps/wordsize-64/alphasort.c: File removed.
65624         * sysdeps/wordsize-64/alphasort64.c: File removed.
65625         * sysdeps/wordsize-64/scandir.c: File removed.
65626         * sysdeps/wordsize-64/scandir64.c: File removed.
65627         * sysdeps/wordsize-64/scandirat.c: File removed.
65628         * sysdeps/wordsize-64/scandirat64.c: File removed.
65629         * sysdeps/wordsize-64/versionsort.c: File removed.
65630         * sysdeps/wordsize-64/versionsort64.c: File removed.
65631         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65632         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65633         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65634         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65635         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65636         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65637         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65638         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65639
65640         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65641         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65642         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65643         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65644         [defined __arch64__ || defined __sparcv9]
65645         (__INO_T_MATCHES_INO64_T): New macro.
65646         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65647         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65648         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65649         * sysdeps/unix/sysv/linux/bits/dirent.h
65650         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65651         (_DIRENT_MATCHES_DIRENT64): New macro.
65652
65653         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65654         Define lockf64 as an alias.
65655         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65656         Define fseeko64 as an alias.
65657         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65658         Define ftello64 as an alias.
65659         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65660         Define _IO_fgetpos64 and fgetpos64 as aliases.
65661         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65662         Define _IO_fsetpos64 and fsetpos64 as aliases.
65663         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65664         Conditionalize body on this.
65665         * libio/fseeko64.c: Likewise.
65666         * libio/ftello64.c: Likewise.
65667         * libio/iofgetpos64.c: Likewise.
65668         * libio/iofsetpos64.c: Likewise.
65669         * sysdeps/wordsize-64/lockf.c: File removed.
65670         * sysdeps/wordsize-64/lockf64.c: File removed.
65671         * sysdeps/wordsize-64/fseeko.c: File removed.
65672         * sysdeps/wordsize-64/fseeko64.c: File removed.
65673         * sysdeps/wordsize-64/ftello.c: File removed.
65674         * sysdeps/wordsize-64/ftello64.c: File removed.
65675         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65676         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65677         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65678         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65679         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65680         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65681         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65682         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65683         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65684         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65685         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65686         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65687         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65688         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65689
65690         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65691         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65692         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65693         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65694         [defined __arch64__ || defined __sparcv9]
65695         (__OFF_T_MATCHES_OFF64_T): New macro.
65696         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65697         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65698         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65699         (__OFF_T_MATCHES_OFF64_T): New macro.
65700
65701 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65702
65703         * stdlib/secure-getenv.c (__secure_getenv): Replace
65704         GLIBC_2_16 with GLIBC_2_17.
65705
65706 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65707
65708         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65709         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65710
65711 2012-08-03  David S. Miller  <davem@davemloft.net>
65712
65713         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65714
65715 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65716
65717         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65718         Remove.
65719         (__ASSUME_CORRECT_SI_PID): Likewise.
65720         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65721         (__ASSUME_TMPFS_NAME): Likewise.
65722         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65723         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65724         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65725         (HAVE_AUX_SECURE): Make definition unconditional.
65726         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65727         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65728
65729 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65730
65731         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65732         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65733         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65734         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65735         __eloop_threshold instead of SYMLOOP_MAX.
65736
65737         * sysdeps/generic/eloop-threshold.h: New file.
65738         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65739         of MAXSYMLINKS.
65740         * elf/chroot_canon.c (chroot_canon): Likewise.
65741
65742 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65743
65744         [BZ #13717]
65745         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65746         Change to 2.6.0 everywhere.
65747         * sysdeps/unix/sysv/linux/configure: Regenerated.
65748         * sysdeps/unix/sysv/linux/kernel-features.h
65749         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65750         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65751         kernel versions.
65752         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65753         (__ASSUME_FUTEX_REQUEUE): Remove.
65754         (__ASSUME_STATFS64): Define unconditionally.
65755         (__ASSUME_AT_SECURE): Likewise.
65756         (__ASSUME_CORRECT_SI_PID): Likewise.
65757         (__ASSUME_TGKILL): Define without depending on kernel version for
65758         i386.
65759         (__ASSUME_UTIMES): Likewise.
65760         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65761         kernel version.
65762         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65763         (__ASSUME_TMPFS_NAME): Likewise.
65764         * README: Update reference to Linux kernel versions.
65765
65766 2012-08-02  Marek Polacek  <polacek@redhat.com>
65767
65768         [BZ# 14150]
65769         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65770         libc_cv_asm_type_prefix with %.
65771         * configure: Regenerated.
65772         * include/libc-symbols.h: Remove comment about
65773         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65774         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65775         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65776         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65777         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65778         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65779         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65780         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65781         * elf/tst-unique2mod1.c: Likewise.
65782         * elf/tst-unique1mod2.c: Likewise.
65783         * elf/tst-unique1mod1.c: Likewise.
65784         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65785         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65786         Replace ASM_TYPE_DIRECTIVE with .type.
65787         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65788         * sysdeps/i386/sysdep.h: Likewise.
65789         * sysdeps/x86_64/sysdep.h: Likewise.
65790         * sysdeps/sh/sysdep.h: Likewise.
65791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65792         Do not define ASM_TYPE_DIRECTIVE.
65793         * sysdeps/powerpc/sysdep.h: Likewise.
65794         * sysdeps/powerpc/powerpc32/sysdep.h:
65795         Replace ASM_TYPE_DIRECTIVE with .type.
65796         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65797         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65798         * sysdeps/i386/fpu/e_powf.S: Likewise.
65799         * sysdeps/i386/fpu/e_expl.S: Likewise.
65800         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65801         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65802         * sysdeps/i386/fpu/e_pow.S: Likewise.
65803         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65804         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65805         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65806         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65807         * sysdeps/i386/fpu/e_log2.S: Likewise.
65808         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65809         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65810         * sysdeps/i386/fpu/e_powl.S: Likewise.
65811         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65812         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65813         * sysdeps/i386/fpu/e_logl.S: Likewise.
65814         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65815         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65816         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65817         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65818         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65819         * sysdeps/i386/fpu/e_log.S: Likewise.
65820         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65821         * sysdeps/i386/fpu/e_logf.S: Likewise.
65822         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65823         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65824         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65825         * sysdeps/i386/fpu/e_log10.S: Likewise.
65826         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65827         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65828         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65829         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65830         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65831         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65832         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65833         * sysdeps/i386/i686/strtok.S: Likewise.
65834         * sysdeps/i386/i386-mcount.S: Likewise.
65835         * sysdeps/i386/strtok.S: Likewise.
65836         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65837         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65838         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65839         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65840         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65841         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65842         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65843         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65844         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65845         * sysdeps/x86_64/_mcount.S: Likewise.
65846         * sysdeps/x86_64/strtok.S: Likewise.
65847         * sysdeps/sh/_mcount.S: Likewise.
65848
65849 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65850
65851         * libio/iofopen.c: Include <fcntl.h>.
65852         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65853         (_IO_fopen64, fopen64): Define as aliases.
65854         * libio/iofopen64.c: Include <fcntl.h>.
65855         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65856         Conditionalize body on this.
65857         * sysdeps/wordsize-64/iofopen.c: File removed.
65858         * sysdeps/wordsize-64/iofopen64.c: File removed.
65859
65860 2012-08-01  Marek Polacek  <polacek@redhat.com>
65861
65862         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65863         Use dlfcn directly instead of a variable.
65864         (binfmt-subdir): Do not define.
65865         (dlfcn): Likewise.
65866
65867 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65868
65869         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65870         Remove all definitions.
65871         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65872         <kernel-features.h>.
65873         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65874         (miss_F_GETOWN_EX): Remove all definitions.
65875         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65876         macro definition.
65877         [!__ASSUME_FCNTL64]: Remove conditional code.
65878         [__ASSUME_FCNTL64]: Make code unconditional.
65879         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65880         <kernel-features.h>.
65881         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65882         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65883         (lockf64) [__NR_fcntl64]: Make code unconditional.
65884         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65885
65886         * sysdeps/unix/sysv/linux/kernel-features.h
65887         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65888         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65889         Make code unconditional.
65890         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65891         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65893         [__NR_vfork]: Make code unconditional.
65894         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65895         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65897         [__NR_vfork]: Make code unconditional.
65898         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65899         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65900
65901 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65902
65903         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65904         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65905
65906         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65907         Define mkstemp64 as an alias.
65908         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65909         Define mkstemps64 as an alias.
65910         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65911         Define mkostemp64 as an alias.
65912         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65913         Define mkostemps64 as an alias.
65914         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65915         Conditionalize body on this.
65916         * misc/mkostemp64.c: Likewise.
65917         * misc/mkostemps64.c: Likewise.
65918         * misc/mkstemps64.c: Likewise.
65919         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65920         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65921         * sysdeps/wordsize-64/mkostemp.c: File removed.
65922         * sysdeps/wordsize-64/mkstemp.c: File removed.
65923         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65924         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65925         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65926         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65927
65928         [BZ #14138]
65929         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65930         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65931         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65932         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65933
65934         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65935         compat_symbol macros from <shlib-compat.h> rather than the underlying
65936         default_symbol_version and symbol_version macros, so that DEFAULT
65937         lines in shlib-versions are respected.
65938         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65939
65940 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65941
65942         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65943         Declare with warn_unused_result.
65944         (setgid, setregid, setegid, setresgid): Likewise.
65945         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65946         Likewise.
65947         * WUR-REPORT: Remove set*id functions.
65948
65949 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65950
65951         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65952
65953 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65954
65955         [BZ #10191]
65956         * include/sys/socket.h (__libc_accept, __libc_accept4):
65957         Add attribute_hidden.
65958         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65959
65960         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65961         use of PTR_MANGLE.
65962         * inet/getnetgrent_r.c (setup): Likewise.
65963
65964         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65965
65966 2012-07-31  David S. Miller  <davem@davemloft.net>
65967
65968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65969
65970 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65971
65972         [BZ #13629]
65973         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65974         value between 1.0 and 2.0 and smaller part has absolute value less
65975         than 1.0.
65976         * math/s_clog10.c (__clog10): Likewise.
65977         * math/s_clog10f.c (__clog10f): Likewise.
65978         * math/s_clog10l.c (__clog10l): Likewise.
65979         * math/s_clogf.c (__clogf): Likewise.
65980         * math/s_clogl.c (__clogl): Likewise.
65981         * math/libm-test.inc (clog_test): Add more tests.
65982         (clog10_test): Likewise.
65983         * sysdeps/i386/fpu/libm-test-ulps: Update.
65984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65985
65986 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65987
65988         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65989         Exit with zero in case no suitable GID is found, and write a
65990         message to standard error.
65991
65992 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65993
65994         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65995         rather than to 1.
65996         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65997         (MAXPATHLEN): Removed.
65998         (NOGROUP, NODEV): New macros.
65999         (setbit, clrbit, isset, isclr): New macros.
66000         (howmany, roundup, powerof2): New macros.
66001         (DEV_BSIZE): New macro.
66002
66003         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
66004         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
66005
66006         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
66007         definition on [!__NO_LONG_DOUBLE_MATH].
66008
66009         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
66010         PTR_MANGLE and PTR_DEMANGLE.
66011
66012         * socket/accept4.c (accept4): Rename to __libc_accept4.
66013         Define accept4 as a weak alias.
66014
66015         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
66016         on [_DIRENT_HAVE_D_TYPE].
66017         * io/ftw.c (ftw_dir): Likewise.
66018
66019         * io/xmknod.c (__xmknod): Don't check PATH for being null.
66020
66021         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
66022
66023         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
66024         Use the BSD numbers rather than the arbitrary ones we had.
66025         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
66026         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
66027         (SIGXCPU, SIGXFSZ): New macros.
66028         (_NSIG): Now 32.
66029
66030         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
66031         initializer on [_LIBC_REENTRANT].
66032
66033         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
66034         definitions inside [_POSIX_MAPPED_FILES].
66035
66036         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
66037
66038         * dirent/opendir.c: Include <fcntl.h>.
66039
66040         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
66041         (__libc_getspecific): Likewise.
66042         (__libc_key_create): Likewise.
66043
66044         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
66045         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
66046         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
66047         (tmpfile64): Define as alias.
66048         * sysdeps/wordsize-64/tmpfile.c: File removed.
66049         * sysdeps/wordsize-64/tmpfile64.c: File removed.
66050         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
66051         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
66052
66053         * stdio-common/vfscanf.c: Include <stdbool.h>.
66054         * nss/makedb.c: Likewise.
66055         * stdio-common/_i18n_number.h: Likewise.
66056         * argp/argp-help.c: Likewise.
66057         * posix/wordexp.c: Likewise.
66058         * sysdeps/posix/spawni.c: Likewise.
66059         * nss/nss_files/files-initgroups.c: Likewise.
66060         * stdio-common/reg-modifier.c: Include <stdlib.h>.
66061         * nss/nss_files/files-initgroups.c: Likewise.
66062         * nss/nss_db/db-netgrp.c: Likewise.
66063         * nss/nss_db/db-initgroups.c: Likewise.
66064         * io/fchmodat.c: Include <sys/stat.h>.
66065
66066         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
66067         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
66068
66069         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
66070         [HAVE_MMAP].
66071
66072         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
66073         Add multiple inclusion protection.
66074
66075 2012-07-27  David S. Miller  <davem@davemloft.net>
66076
66077         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66078
66079 2012-07-27  Gary Benson  <gbenson@redhat.com>
66080
66081         [BZ #14298]
66082         * elf/rtld.c: Include <stap-probe.h>.
66083         (dl_main): Added static probes "init_start" and "init_complete".
66084         * elf/dl-load.c: Include <stap-probe.h>.
66085         (lose): Take new parameter "nsid".
66086         Added static probe "map_failed".
66087         (_dl_map_object_from_fd): Pass namespace id to lose.
66088         Added static probe "map_start".
66089         (open_verify): Pass namespace id to lose.
66090         * elf/dl-open.c: Include <stap-probe.h>.
66091         (dl_open_worker) Added static probes "map_complete", "reloc_start"
66092         and "reloc_complete".
66093         * elf/dl-close.c: Include <stap-probe.h>.
66094         (_dl_close_worker): Added static probes "unmap_start" and
66095         "unmap_complete".
66096         * elf/rtld-debugger-interface.txt: New file documenting the above.
66097
66098 2012-07-26  Roland McGrath  <roland@hack.frob.com>
66099
66100         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
66101         rather than a string variable.
66102         * sunrpc/rpc_main.c (h_output): Likewise.
66103         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
66104
66105 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
66106
66107         * inet/check_native.c: New file.
66108
66109 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
66110
66111         [BZ #13629]
66112         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
66113         if larger part has absolute value 1.0.
66114         * math/s_clog10.c (__clog10): Likewise.
66115         * math/s_clog10f.c (__clog10f): Likewise.
66116         * math/s_clog10l.c (__clog10l): Likewise.
66117         * math/s_clogf.c (__clogf): Likewise.
66118         * math/s_clogl.c (__clogl): Likewise.
66119         * math/libm-test.inc (clog_test): Add more tests.
66120         (clog10_test): Likewise.
66121         * sysdeps/i386/fpu/libm-test-ulps: Update.
66122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66123
66124         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
66125         (pltexit): Likewise.
66126         (La_regs): Likewise.
66127         (La_retval): Likewise.
66128         (int_retval): Likewise.
66129         Update #error for removed macros to refer only to definitions in
66130         tst-audit.h.
66131         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
66132         macro.
66133         (pltexit): Likewise.
66134         (La_regs): Likewise.
66135         (La_retval): Likewise.
66136         (int_retval): Likewise.
66137         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
66138         macro.
66139         (pltexit): Likewise.
66140         (La_regs): Likewise.
66141         (La_retval): Likewise.
66142         (int_retval): Likewise.
66143         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
66144         macro.
66145         (pltexit): Likewise.
66146         (La_regs): Likewise.
66147         (La_retval): Likewise.
66148         (int_retval): Likewise.
66149         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
66150         macro.
66151         (pltexit): Likewise.
66152         (La_regs): Likewise.
66153         (La_retval): Likewise.
66154         (int_retval): Likewise.
66155         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
66156         macro.
66157         (pltexit): Likewise.
66158         (La_regs): Likewise.
66159         (La_retval): Likewise.
66160         (int_retval): Likewise.
66161         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
66162         macro.
66163         (pltexit): Likewise.
66164         (La_regs): Likewise.
66165         (La_retval): Likewise.
66166         (int_retval): Likewise.
66167         * sysdeps/generic/tst-audit.h: Update comment to refer only to
66168         macro definitions in tst-audit.h.
66169         * sysdeps/i386/tst-audit.h: New file.
66170         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
66171         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
66172         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
66173         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
66174         * sysdeps/sh/tst-audit.h: Likewise.
66175         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
66176         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
66177         * sysdeps/x86_64/tst-audit.h: Likewise.
66178
66179 2012-07-26  Andreas Jaeger  <aj@suse.de>
66180
66181         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
66182         ptrace.
66183
66184         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
66185         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
66186         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
66187         PTRACE_O_MASK.
66188         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
66189         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
66190         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
66191
66192         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
66193         value.
66194
66195         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
66196         _sigsys.
66197         (si_call_addr, si_syscall, si_arch): Define new macro.
66198         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
66199         _sigsys.
66200         (si_call_addr, si_syscall, si_arch): Define new marcro.
66201         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
66202         _sigsys.
66203         (si_call_addr, si_syscall, si_arch): Define new macro.
66204         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
66205         _sigsys.
66206         (si_call_addr, si_syscall, si_arch): Define new macro.
66207
66208 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66209
66210         [BZ #13717]
66211         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66212         Change to 2.4.21 where previously 2.4.1.
66213         * sysdeps/unix/sysv/linux/configure: Regenerated.
66214         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
66215         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
66216         Linux kernel version.
66217         (__ASSUME_STD_AUXV): Remove.
66218         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
66219         kernel version.
66220         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
66221         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
66222         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
66223         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
66224         (__ASSUME_NETLINK_SUPPORT): Likewise.
66225         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
66226         (__no_netlink_support): Remove conditional definition.
66227         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
66228         Remove.
66229         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66230         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
66231         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
66232         (if_nameindex_ioctl): Remove.
66233         (if_nameindex_netlink): Do not handle __no_netlink_support.
66234         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66235         code.
66236         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
66237         Remove conditional code.
66238         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66239         code.
66240         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
66241         unconditional.
66242         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66243         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
66244         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
66245         Remove.
66246         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
66247         [!__ASSUME_STD_AUXV]: Remove conditional code.
66248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
66249         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
66250         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
66251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
66252         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
66253         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66254         code.
66255         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
66257         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
66258         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66259         conditional code.
66260         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
66262         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66263         code.
66264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
66265         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66266         conditional code.
66267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
66268         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66269         code unconditional.
66270         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66271         conditional code.
66272         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66273         unconditional.
66274         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66275         conditional code.
66276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
66277         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66278         unconditional.
66279         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66280         conditional code.
66281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
66282         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66283         code unconditional.
66284         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66285         conditional code.
66286         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66287         unconditional.
66288         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66289         conditional code.
66290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
66291         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66292         code unconditional.
66293         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66294         conditional code.
66295         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66296         unconditional.
66297         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66298         conditional code.
66299
66300 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
66301
66302         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
66303         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
66304         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
66305         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
66306         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
66307         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
66308         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
66309         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
66310         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
66311         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
66312         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
66313         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
66314         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
66315         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
66316         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
66317         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
66318         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
66319         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
66320         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
66321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
66322         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
66323         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
66324         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66325
66326 2012-07-25  Florian Weimer  <fweimer@redhat.com>
66327
66328         * Versions.def: Add GLIBC_2.17.
66329         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
66330         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
66331         Introduce __libc_secure_getenv.
66332         * stdlib/Versions (2.17): Add secure_getenv
66333         (GLIBC_PRIVATE): Add __libc_secure_getenv.
66334         * stdlib/secure-getenv.c: Rename __secure_getenv to
66335         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
66336         symbol __secure_getenv for GLIBC_2.0.
66337         * stdlib/tst-secure-getenv.c: New.
66338         * stdlib/Makefile (tests): Add testcase.
66339         * manual/startup.texi (Environment Access): Document
66340         secure_getenv.
66341         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
66342         __libc_secure_getenv.
66343         * inet/ruserpass.c (ruserpass): Likewise.
66344         * malloc/mtrace.c (mtrace): Likewise.
66345         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
66346         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
66347         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
66348         * sysdeps/posix/tempname.c: Likewise.  Evaluate
66349         HAVE_SECURE_GETENV.
66350         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
66351         __secure_getenv to __libc_secure_getenv.
66352         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
66353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
66354         Likewise.
66355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
66356         Likewise.
66357         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
66358         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
66359         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
66360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
66361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
66362         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
66363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
66364
66365 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66366
66367         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
66368         (struct La_i86_retval): Likewise.
66369         (struct La_x86_64_regs): Likewise.
66370         (struct La_x86_64_retval): Likewise.
66371         (struct La_x32_regs): Likewise.
66372         (struct La_x32_retval): Likewise.
66373         (struct La_ppc32_regs): Likewise.
66374         (struct La_ppc32_retval): Likewise.
66375         (struct La_ppc64_regs): Likewise.
66376         (struct La_ppc64_retval): Likewise.
66377         (struct La_sh_regs): Likewise.
66378         (struct La_sh_retval): Likewise.
66379         (struct La_s390_32_regs): Likewise.
66380         (struct La_s390_32_retval): Likewise.
66381         (struct La_s390_64_regs): Likewise.
66382         (struct La_s390_64_retval): Likewise.
66383         (struct La_sparc32_regs): Likewise.
66384         (struct La_sparc32_retval): Likewise.
66385         (struct La_sparc64_regs): Likewise.
66386         (struct La_sparc64_retval): Likewise.
66387         (struct audit_ifaces): Remove architecture-specific pltenter and
66388         pltexit members.
66389         * sysdeps/i386/ldsodefs.h: New file.
66390         * sysdeps/powerpc/ldsodefs.h: Likewise.
66391         * sysdeps/s390/ldsodefs.h: Likewise.
66392         * sysdeps/sh/ldsodefs.h: Likewise.
66393         * sysdeps/sparc/ldsodefs.h: Likewise.
66394         * sysdeps/x86_64/ldsodefs.h: Likewise.
66395
66396 2012-07-25  Marek Polacek  <polacek@redhat.com>
66397
66398         [BZ #6808]
66399         * math/libm-test.inc (yn_test): Add another test.
66400         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
66401         to ERANGE when the result is +-Inf.
66402         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
66403         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
66404         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
66405         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
66406
66407 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
66408
66409         * conform/data/time.h-data (NULL): Use macro-constant.  Require
66410         equal to 0.
66411         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
66412         clock_t.
66413         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
66414
66415 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
66416
66417         * configure.in <sysdeps resolving>: Correct printing
66418         Implies_before.
66419         * configure: Regenerate.
66420
66421 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
66422
66423         * math/w_ilogb.c: Include <limits.h>.
66424         * math/w_ilogbl.c: Likewise.
66425
66426 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66427
66428         * manual/lang.texi (__va_copy): Document primarily as ISO C99
66429         va_copy.  Document allowing for unavailable va_copy only as
66430         pre-C99 compatibility.
66431         * manual/string.texi (Copying and Concatenation): Use va_copy
66432         instead of __va_copy in concat example.
66433
66434 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
66435
66436         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
66437         (__sendto): Use create_address_port.  Initialize APORT and deallocate
66438         it if not null.
66439
66440         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
66441         with O_NOLINK passed to __file_name_lookup.
66442
66443         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
66444         with O_NOLINK passed to __file_name_lookup.
66445
66446         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
66447         negative N or less than NGIDS.
66448
66449         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
66450         type to string_t.  Set ERANGE as errno and return it if NAME is not big
66451         enough.  Use memcpy instead of strncpy.
66452
66453 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66454
66455         * elf/Makefile (check-data): Remove.
66456         (localplt.data): New vpath directive.
66457         ($(objpfx)check-localplt.out): Use localplt.data from vpath
66458         instead of $(check-data).
66459         * scripts/data/localplt-generic.data: Move to ...
66460         * sysdeps/generic/localplt.data: ... here.
66461         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
66462         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
66463         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
66464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
66465         ... here.
66466         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
66467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
66468         ... here.
66469         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
66470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
66471         ... here.
66472         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
66473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
66474         ... here.
66475         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
66476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
66477         ... here.
66478         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
66479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
66480         ... here.
66481
66482 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66483
66484         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
66485         PPC32 and PPC64 files.
66486         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
66487         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
66488
66489 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66490
66491         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
66492         __makecontext_ret to ...
66493         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
66494         ... here and call exit if uc_link is NULL.  New file.
66495         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
66496         __makecontext_ret.S.
66497         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
66498         __makecontext_ret to ...
66499         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
66500         ... here and call exit if uc_link is NULL.  New file.
66501         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
66502         __makecontext_ret.S.
66503
66504 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66505
66506         * elf/elf.h (R_390_IRELATIVE): New definition.
66507         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
66508         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
66509         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
66510         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
66511         (elf_machine_lazy_rel): Likewise.
66512         * sysdeps/s390/dl-irel.h: New file.
66513         * sysdeps/s390/s390-64/memcpy.S: New asm code.
66514         * sysdeps/s390/s390-64/memset.S: New asm code.
66515         * sysdeps/s390/s390-64/memcmp.S: New asm code.
66516         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
66517         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
66518         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
66519         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
66520         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
66521         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
66522         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
66523         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
66524         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
66525         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
66526         * sysdeps/s390/s390-32/memcpy.S: New asm code.
66527         * sysdeps/s390/s390-32/memset.S: New asm code.
66528         * sysdeps/s390/s390-32/memcmp.S: New asm code.
66529
66530 2012-07-17  Marek Polacek  <polacek@redhat.com>
66531
66532         [BZ #14349]
66533         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
66534         * sysdeps/s390/s390-64/configure.in: Likewise.
66535         * sysdeps/sparc/configure.in: Likewise.
66536         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
66537         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
66538         * sysdeps/i386/configure.in: Likewise.
66539         * sysdeps/x86_64/configure.in: Likewise.
66540         * sysdeps/sh/configure.in: Likewise.
66541         * sysdeps/s390/s390-32/configure: Regenerated.
66542         * sysdeps/s390/s390-64/configure: Likewise.
66543         * sysdeps/x86_64/configure: Likewise.
66544         * sysdeps/sh/configure: Likewise.
66545         * sysdeps/powerpc/powerpc64/configure: Likewise.
66546         * sysdeps/powerpc/powerpc32/configure: Likewise.
66547         * sysdeps/sparc/configure: Likwise.
66548         * sysdeps/i386/configure: Likewise.
66549
66550         * elf/dl-open.c: Comment fixes.
66551
66552 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66553
66554         * Makefile [CXX] (check-data): Remove.
66555         [CXX] (c++-types.data): New vpath directive.
66556         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66557         vpath.  Do not allow for C++ type data being missing.
66558         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66559         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66560         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66561         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66562         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66563         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66564         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66566         ... here.
66567         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66569         ... here.
66570         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66572         ... here.
66573         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66575         ... here.
66576         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66578         ... here.
66579         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66581         ... here.
66582         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66583         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66584         ... here.
66585         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66586         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66587
66588         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66589         definitions to architecture-specific files.
66590         (TLS_IE): Likewise.
66591         (TLS_LD): Likewise.
66592         (TLS_GD): Likewise.
66593         * sysdeps/i386/tls-macros.h: New file.
66594         * sysdeps/powerpc/tls-macros.h: Likewise.
66595         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66596         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66597         * sysdeps/sh/tls-macros.h: Likewise.
66598         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66599         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66600         * sysdeps/x86_64/tls-macros.h: Likewise.
66601
66602 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66603
66604         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66605         zero value for regular exit case.
66606
66607         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66608         (__start_context): Preserve zero value for regular exit case.
66609
66610 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66611             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66612
66613         * manual/setjmp.texi (setcontext): Clarify normal process
66614         termination when uc_link is the null pointer.
66615         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66616         exit call.
66617
66618 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66619
66620         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66621         preprocessor.  Test for each exception mask separately.
66622
66623 2012-07-16  Andreas Jaeger  <aj@suse.de>
66624
66625         * po/ru.po: Update from translation team.
66626
66627 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66628
66629         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66630         equal to 0.
66631         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66632         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66633         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66634         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66635         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66636
66637 2012-07-13  Andreas Jaeger  <aj@suse.de>
66638
66639         * po/fr.po: Update from translation team.
66640
66641 2012-07-12  Marek Polacek  <polacek@redhat.com>
66642
66643         [BZ #14173]
66644         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66645         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66646         loop condition.
66647
66648 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66649
66650         [BZ #13717]
66651         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66652         Change to 2.4.1 where previously 2.4.0.
66653         * sysdeps/unix/sysv/linux/configure: Regenerated.
66654         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66655         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66656         version.
66657         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66658         (__ASSUME_AT_CLKTCK): Remove.
66659         (__ASSUME_AT_PAGESIZE): Likewise.
66660         (__ASSUME_AT_XID): Likewise.
66661         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66662         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66663         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66664         unconditionally.
66665         (HAVE_AUX_PAGESIZE): Likewise.
66666         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66667         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66668         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66669
66670 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66671
66672         [BZ #14307]
66673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66674         the temporary buffer used to invoke __gethostbyname2_r,
66675         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66676         host_data / struct gaih_addrtuple.
66677         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66678         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66679         header file nss/nsswitch.h.
66680         * nss/nsswitch.h (global scope): Add definition of implementation
66681         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66682         resolv/nss_dns/dns-host.c).
66683
66684 2012-07-11  Andreas Jaeger  <aj@suse.de>
66685
66686         * po/fr.po: Update from translation team.
66687
66688         * po/sv.po: Update from translation team
66689         * po/fr.po: Another update from translation team.
66690
66691 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66692
66693         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66694         for subnormals or multiply small sinh result by itself.
66695         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66697
66698 2012-07-11  David S. Miller  <davem@davemloft.net>
66699
66700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66701
66702 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66703
66704         [BZ #14347]
66705         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66706         (INTERNAL_MARK): Shift it here.
66707
66708 2012-07-10  Marek Polacek  <polacek@redhat.com>
66709
66710         [BZ #14151]
66711         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66712         libc_cv_asm_global_directive with .globl.
66713         * configure: Regenerated.
66714         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66715         with .globl.
66716         * sysdeps/i386/configure: Regenerated.
66717         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66718         with .globl.
66719         * sysdeps/x86_64/configure: Regenerated.
66720         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66721         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66722         * elf/tst-unique2mod2.c: Likewise.
66723         * elf/tst-unique2mod1.c: Likewise.
66724         * elf/tst-unique1mod2.c: Likewise.
66725         * elf/tst-unique1mod1.c: Likewise.
66726         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66727         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66728         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66729         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66730         * sysdeps/mach/sysdep.h: Likewise.
66731         * sysdeps/i386/sysdep.h: Likewise.
66732         * sysdeps/i386/i386-mcount.S: Likewise.
66733         * sysdeps/x86_64/_mcount.S: Likewise.
66734         * sysdeps/x86_64/sysdep.h: Likewise.
66735         * sysdeps/sh/_mcount.S: Likewise.
66736         * sysdeps/sh/sysdep.h: Likewise.
66737         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66738         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66739         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66740         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66741         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66742         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66743         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66744         * locale/localeinfo.h: Likewise.
66745         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66746         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66747
66748 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66749
66750         [BZ #14336]
66751         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66752         system".
66753         * manual/message.texi (The Uniforum approach): Likewise.
66754         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66755         (glibc iconv Implementation): Likewise.
66756
66757 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66758
66759         [BZ #14337]
66760         * math/s_clog.c (__clog): Avoid scaling a value down where that
66761         could result in underflow.
66762         * math/s_clog10.c (__clog10): Likewise.
66763         * math/s_clog10f.c (__clog10f): Likewise.
66764         * math/s_clog10l.c (__clog10l): Likewise.
66765         * math/s_clogf.c (__clogf): Likewise.
66766         * math/s_clogl.c (__clogl): Likewise.
66767         * math/libm-test.inc (clog_test): Add more tests.
66768         (clog10_test): Likewise.
66769         * sysdeps/i386/fpu/libm-test-ulps: Update.
66770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66771
66772 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66773
66774         [BZ #14283]
66775         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66776         by 7 not 8 to examine high bit of fractional part.
66777
66778         [BZ #14042]
66779         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66780         for call to __mcount_internal.
66781         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66782         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66783         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66784
66785 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66786
66787         [BZ #14154]
66788         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66789         approximation for values within 0x1p-13f of an odd multiple of
66790         pi/4.
66791         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66792         exception.  Add more tests.
66793         * sysdeps/i386/fpu/libm-test-ulps: Update.
66794
66795         [BZ #6778]
66796         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66797         inputs and return -1 for them.  Do not check for +Inf in case not
66798         reachable for +Inf.
66799         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66800         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66801         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66802         and return -1 for them.  Do not check for +Inf in case not
66803         reachable for +Inf.
66804         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66805         define.
66806         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66807         and return -1 for them.  Do not check for +Inf in case not
66808         reachable for +Inf.
66809         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66810         spurious underflow.
66811         * sysdeps/i386/fpu/libm-test-ulps: Update.
66812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66813
66814 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66815
66816         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66817
66818 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66819
66820         [BZ #14157]
66821         [BZ #14331]
66822         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66823         could result in spurious underflow.  Scale down values above
66824         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66825         * math/s_csqrtf.c (__csqrtf): Likewise.
66826         * math/s_csqrtl.c (__csqrtl): Likewise.
66827         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66828         spurious underflow.
66829         * sysdeps/i386/fpu/libm-test-ulps: Update.
66830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66831
66832 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66833
66834         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66835         xopen-msg.sed.
66836         * catgets/xopen-msg.awk: New file.
66837         * catgets/xopen-msg.sed: Removed.
66838
66839         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66840         po2text.sed.
66841         * intl/po2test.awk: New file.
66842         * intl/po2test.sed: Removed.
66843
66844 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66845
66846         [BZ #14328]
66847         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66848         or multiply small sinh result by itself.
66849         * math/s_ctanf.c (__ctanf): Likewise.
66850         * math/s_ctanh.c (__ctanh): Likewise.
66851         * math/s_ctanhf.c (__ctanhf): Likewise.
66852         * math/s_ctanhl.c (__ctanhl): Likewise.
66853         * math/s_ctanl.c (__ctanl): Likewise.
66854         * math/libm-test.inc (ctan_test_tonearest): New function.
66855         (ctan_test_towardzero): Likewise.
66856         (ctan_test_downward): Likewise.
66857         (ctan_test_upward): Likewise.
66858         (ctanh_test_tonearest): Likewise.
66859         (ctanh_test_towardzero): Likewise.
66860         (ctanh_test_downward): Likewise.
66861         (ctanh_test_upward): Likewise.
66862         (main): Call these new functions.
66863         * sysdeps/i386/fpu/libm-test-ulps: Update.
66864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66865
66866 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66867
66868         * .gitignore: Delete /ports entry.
66869
66870 2012-07-03  Andreas Jaeger  <aj@suse.de>
66871
66872         * po/bg.po: Update from translation team.
66873         * po/cs.po: Likewise.
66874         * po/de.po: Likewise.
66875         * po/hr.po: Likewise.
66876         * po/nl.pl: Likewise.
66877         * po/pl.po: Likewise.
66878         * po/vi.po: Likewise.
66879
66880 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66881
66882         * Makeconfig [!+link] (+link-before-libc): New variable.
66883         [!+link] (+link-after-libc): Likewise.
66884         [!+link] (+link-tests): Likewise.
66885         [!+link] (+link): Define in terms of $(+link-before-libc) and
66886         $(+link-after-libc).
66887         [!+link-static] (+link-static-before-libc): New variable.
66888         [!+link-static] (+link-static-after-libc): Likewise.
66889         [!+link-static] (+link-static-tests): Likewise.
66890         [!+link-static] (+link-static): Define in terms of
66891         $(+link-static-before-libc) and $(+link-static-after-libc).
66892         [build-shared] (link-libc-before-gnulib): New variable.
66893         [build-shared] (link-libc-tests): Likewise.
66894         [build-shared] (link-libc): Define in terms of
66895         $(link-libc-before-gnulib).
66896         [!build-shared] (link-libc-tests): New variable.
66897         (link-libc-static-tests): New variable.
66898         [!gnulib] (gnulib-arch): New variable.
66899         [!gnulib] (gnulib-tests): Likewise.
66900         [!gnulib] (static-gnulib-arch): Likewise.
66901         [!gnulib] (static-gnulib-tests): Likewise.
66902         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66903         Define with "=" instead of ":=".
66904         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66905         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66906         * Rules (binaries-all-notests): New variable.
66907         (binaries-all-tests): Likewise.
66908         (binaries-static-notests): Likewise.
66909         (binaries-static-tests): Likewise.
66910         (binaries-all): Define using $(binaries-all-notests) and
66911         $(binaries-all-tests).
66912         (binaries-static): Define using $(binaries-static-notests) and
66913         $(binaries-static-tests).
66914         (binaries-shared-tests): New variable.
66915         (binaries-shared-notests): Likewise.
66916         (binaries-shared): Remove variable.
66917         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66918         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66919         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66920         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66921         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66922         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66923         * elf/Makefile (sln-modules): New variable.
66924         (extra-objs): Add $(sln-modules:=.o).
66925         (ldconfig-modules): Add static-stubs.
66926         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66927         * elf/static-stubs.c: New file.
66928
66929         [BZ #14283]
66930         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66931         by 7 not 8 to examine high bit of fractional part.  Use volatile
66932         variables when splitting into final array of floats if
66933         __FLT_EVAL_METHOD__ != 0.
66934         * math/libm-test.inc (cos_test): Add another test.
66935         (sin_test): Likewise.
66936         * sysdeps/i386/fpu/libm-test-ulps: Update.
66937
66938         [BZ #14273]
66939         * math/libm-test.inc (cosh_test): Add more tests.
66940
66941         * version.h (RELEASE): Set to "development".
66942         (VERSION): Set to "2.16.90".
66943
66944 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66945
66946         * NEWS: Update copyright. Remove last-updated date.
66947         Mention math library bug fixes and timezone data changes.
66948         * README: Mention GNU/Hurd, x32, and HPPA support status.
66949
66950 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66951
66952         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66953
66954 2012-06-27  Andreas Jaeger  <aj@suse.de>
66955
66956         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66957
66958 2012-06-25  Andreas Jaeger  <aj@suse.de>
66959
66960         * sysdeps/s390/fpu/libm-test-ulps: Update.
66961
66962 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66963             Thomas Schwinge  <thomas@codesourcery.com>
66964
66965         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66966         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66967         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66968         fanotify_mark.
66969
66970 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66971
66972         * sysdeps/mach/start.c: Remove file.
66973         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66974         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66975         * sysdeps/sh/init-first.c: Likewise.
66976
66977         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66978         registers for frame unwinding purposes, add CFI directives.
66979         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66980         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66981         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66982         Likewise.
66983
66984         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66985         __fortify_fail returning.
66986         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66987
66988         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66989         sysdeps/sh/____longjmp_chk.S.
66990         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66991         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66992         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66993         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66994
66995         * sysdeps/sh/abort-instr.h: New file.
66996         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66997         process in case exit returns.
66998
66999         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
67000         initialize the GOT register before use.
67001
67002         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
67003         calculation of ARGC > 4.
67004
67005         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
67006         meaningful names to some local labels.
67007
67008 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
67009             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67010
67011         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
67012         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
67013         (__arch_compare_and_exchange_val_16_acq): Likewise.
67014         (__arch_compare_and_exchange_val_32_acq): Likewise.
67015         (atomic_exchange_and_add): Fix gUSA sequence.
67016         (atomic_add): Likewise.
67017         (atomic_add_negative): Likewise.
67018         (atomic_add_zero): Likewise.
67019         (atomic_bit_test_set): Likewise.
67020
67021 2012-06-22  Andreas Schwab  <schwab@redhat.com>
67022
67023         [BZ #13579]
67024         * include/link.h (struct link_map): Add l_free_initfini.
67025         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
67026         l_initfini.
67027         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
67028         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
67029         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
67030         set.
67031
67032 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
67033
67034         * configure.in: Use AC_LANG_SOURCE.
67035         * configure: Regenerate.
67036
67037 2012-06-22  Roland McGrath  <roland@hack.frob.com>
67038
67039         * configure.in (libc_cv_localstatedir): New substituted variable.
67040         * configure: Regenerated.
67041         * config.make.in (localstatedir): New variable, substituted from
67042         libc_cv_localstatedir.
67043         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
67044         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
67045         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
67046         * sysdeps/gnu/configure: Regenerated.
67047
67048 2012-06-21  Jeff Law  <law@redhat.com>
67049
67050         [BZ #14277]
67051         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
67052         free.  Simplify list management for _LIBC case.
67053
67054 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
67055
67056         [BZ #14273]
67057         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
67058         Clear sign bit of 64-bit integer value before comparing against
67059         overflow value.
67060
67061         * sysdeps/mach/configure: Regenerated.
67062
67063 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
67064
67065         [BZ #14278]
67066         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
67067
67068 2012-06-21  Jeff Law  <law@redhat.com>
67069
67070         [BZ #13882]
67071         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
67072         uint16_t for elements in the "seen" array to avoid char overflows.
67073         * elf/dl-fini.c (_dl_sort_fini): Likewise.
67074         * elf/dl-open.c (dl_open_worker): Likewise.
67075
67076 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
67077
67078         * scripts/list-sources.sh: Scan PORTS for translations.
67079         * po/libc.pot: Regenerated.
67080
67081 2012-06-21  Andreas Jaeger  <aj@suse.de>
67082
67083         [BZ #12194]
67084         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
67085         warning.
67086         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
67087         * bits/byteswap-16.h (__bswap_16): Likewise.
67088         * bits/byteswap.h (__bswap_constant_16): Likewise.
67089
67090 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
67091
67092         [BZ #14117]
67093         * sysdeps/i386/fpu_control.h: Removed.
67094         * sysdeps/x86_64/fpu_control.h: Moved to ...
67095         * sysdeps/x86/fpu_control.h: Here.
67096
67097         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
67098         (_FPU_SETCW): Likewise.
67099
67100 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
67101
67102         [BZ #14117]
67103         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
67104         * sysdeps/x86/fpu/bits/mathinline.h: This.
67105         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
67106
67107         [BZ #14050]
67108         [BZ #14117]
67109         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
67110         functions if __x86_64__ is defined.
67111
67112 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
67113
67114         * string/endian.h: Add !__ASSEMBLER__ condition for including
67115         conversion interfaces.
67116
67117 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
67118
67119         [BZ #14241]
67120         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
67121         of ABS(x) in calculating zero to negative powers other than odd
67122         integers.
67123         * math/libm-test.inc (pow_test): Add more tests.
67124
67125 2012-06-15  Andreas Jaeger  <aj@suse.de>
67126
67127         * manual/contrib.texi (Contributors): Update entry of Liubov
67128         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
67129         Machado Filho.
67130
67131 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
67132
67133         * string/string.h: Add __wur to GNU version of strerror_r.
67134
67135 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
67136
67137         [BZ #14229]
67138         * string/Makefile (tests): Add tst-strtok_r.
67139         * string/tst-strtok_r.c: New file.
67140         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
67141         RAX_LP/RDX_LP on SAVE_PTR.
67142
67143 2012-06-14  Roland McGrath  <roland@hack.frob.com>
67144
67145         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
67146
67147 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
67148
67149         * libm_test.inc (csqrt_test): Allow more spurious underflow
67150         exceptions.
67151         (j0_test): Likewise.
67152         (j1_test): Likewise.
67153         (y0_test): Likewise.
67154         (y1_test): Likewise.
67155
67156 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
67157
67158         * po/Makefile (libc.pot): Use UTF-8 charset.
67159
67160 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
67161
67162         [BZ #14210]
67163         Suppress sign-conversion warning from FD_SET.
67164         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
67165         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
67166         not unsigned long int.
67167         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
67168
67169 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
67170
67171         [BZ #14050]
67172         [BZ #14117]
67173         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
67174         __extern_always_inline instead of __extern_inline.
67175         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
67176         (__signbit): Likewise.
67177         (__signbitl): Support C++ namespace.
67178         (lrintf): New inline function.
67179         (lrint): Likewise.
67180         (llrintf): Likewise.
67181         (llrint): Likewise.
67182         (fmaxf): Likewise.
67183         (fmax): Likewise.
67184         (fminf): Likewise.
67185         (fmin): Likewise.
67186         (rint): Likewise.
67187         (rintf): Likewise.
67188         (ceil): Likewise.
67189         (ceilf): Likewise.
67190         (floor): Likewise.
67191         (floorf): Likewise.
67192         (nearbyint): Likewise.
67193         (nearbyintf): Likewise.
67194
67195 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
67196
67197         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
67198         non-default versions.
67199
67200 2012-06-11  Roland McGrath  <roland@hack.frob.com>
67201
67202         [BZ #14218]
67203         * manual/argp.texi (Argp): Reword argp_parse description slightly.
67204
67205 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
67206
67207         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
67208         (FE_UPWARD, FE_DOWNWARD): Don't define.
67209         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
67210         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67211
67212         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
67213         reading it.
67214         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67215         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67216
67217 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67218
67219         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
67220         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
67221         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
67222         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
67223
67224 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
67225
67226         [BZ #14117]
67227         * sysdeps/i386/fpu/bits/fenv.h: Removed.
67228         * sysdeps/i386/fpu/Implies: New file.
67229         * sysdeps/x86_64/fpu/Implies: Likewise.
67230         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
67231         * sysdeps/x86/fpu/bits/fenv.h: This.
67232
67233         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
67234         __SSE_MATH__.
67235
67236 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67237
67238         [BZ #14134]
67239         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
67240         character 0xffff that matches the last element of the
67241         conversion table.
67242
67243 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67244
67245         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
67246         fmodl commit.
67247
67248 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67249
67250         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
67251         values higher than 25.6283.
67252
67253 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67254
67255         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
67256         subnormal exponent extraction and add some __builtin_expect.
67257         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
67258         Fix for subnormal mantissa calculation.
67259
67260 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
67261
67262         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
67263         cpu2 is -1 and errno is not ENOSYS.
67264
67265 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67266
67267         [BZ #14117]
67268         * sysdeps/i386/i486/bits/string.h: Renamed to ...
67269         * sysdeps/x86/bits/string.h: This.
67270         * sysdeps/x86_64/bits/string.h: Removed.
67271
67272         * sysdeps/i386/i486/bits/string.h: Define inline functions only
67273         if not compiling for x86-64, but compiling for >= i486.
67274
67275         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
67276         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
67277
67278         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
67279         New macro from Linux kernel 3.4.0.
67280         (FP_XSTATE_MAGIC2): Likewise.
67281         (FP_XSTATE_MAGIC2_SIZE): Likewise.
67282         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
67283         (struct _fpx_sw_bytes): New struct.
67284         (struct _xsave_hdr): Likewise.
67285         (struct _ymmh_state): Likewise.
67286         (struct _xstate): Likewise.
67287
67288         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
67289         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
67290         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
67291         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
67292         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
67293         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
67294
67295         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
67296         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
67297         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
67298         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
67299         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
67300         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
67301
67302 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67303
67304         [BZ #13743]
67305         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
67306         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
67307         (sysdep_headers): Include sys/platform/ppc.h.
67308         * sysdeps/powerpc/test-gettimebase.c: Test for
67309         __ppc_get_timebase() to catch future ISA opcode/insn changes.
67310         * manual/Makefile (appendices): Include platform.texi.
67311         * manual/contrib.texi (Contributors): Update @node pointers.
67312         * manual/maint.texi (Maintenance): Likewise.
67313         (Platform): New node.
67314         * manual/platform.texi: New file.  Document the new features.
67315
67316 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67317             Jakub Jelinek  <jakub@redhat.com>
67318
67319         [BZ #14188]
67320         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
67321         where __builtin_expect is unavailable.
67322
67323 2012-06-03  David S. Miller  <davem@davemloft.net>
67324
67325         * stdlib/longlong.h: Updated from GCC.
67326
67327 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
67328
67329         [BZ #14042]
67330         * sysdeps/powerpc/powerpc32/mcount.c: New file.
67331         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
67332         __mcount_internal.
67333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
67334         (GLIBC_2.16): Likewise.
67335
67336 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67337
67338         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
67339
67340 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67341
67342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
67343         (default-abi): New variable.
67344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
67345         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
67346         variable.
67347         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
67348         Likewise.
67349         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
67350         Likewise.
67351         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
67352         Likewise.
67353
67354         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
67355         definition.  Document in comment.
67356
67357 2012-06-01  David S. Miller  <davem@davemloft.net>
67358
67359         * stdlib/longlong.h: Updated from GCC.
67360
67361 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67362
67363         [BZ #14117]
67364         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
67365         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
67366         sys/debugreg.h sys/io.h here.
67367         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
67368         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
67369         sys/io.h.
67370         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
67371         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
67372         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
67373         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
67374         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
67375         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
67376
67377         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
67378         Define only if __x86_64__ is defined.
67379
67380 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67381
67382         [BZ #14048]
67383         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
67384         Use int64_t for variable i.
67385         * math/libm-test.inc (fmod_test): Add more tests.
67386
67387         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
67388         z computation is not scheduled after fetestexcept.
67389         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
67390         Use math_force_eval instead of asm to ensure calculation scheduled
67391         before exception test.
67392         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
67393         Ensure a1 + u.d computation is not scheduled after fetestexcept.
67394
67395 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
67396
67397         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
67398         computation is not scheduled after fetestexcept.
67399
67400 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67401
67402         [BZ #14117]
67403         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
67404         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
67405
67406 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67407
67408         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
67409         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67410
67411 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67412
67413         [BZ #14117]
67414         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
67415         <bits/wordsize.h>.
67416         (__WCHAR_MIN): Support __WORDSIZE == 64.
67417         (__WCHAR_MAX): Likewise.
67418
67419         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
67420         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
67421
67422         [BZ #14183]
67423         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
67424         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
67425
67426         [BZ #14117]
67427         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
67428         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
67429
67430         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
67431         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
67432
67433         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
67434         Defined to 1 if __x86_64__ isn't defined.
67435         (_STAT_VER_LINUX_OLD): New.
67436         (st_atime): Remove duplicate.
67437         (st_mtime): Likewise.
67438         (st_ctime): Likewise.
67439
67440 2012-05-31  David S. Miller  <davem@davemloft.net>
67441
67442         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
67443         entries.
67444
67445 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
67446
67447         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
67448         gen-libm-test.pl.
67449
67450         [BZ #14132]
67451         * elf/dl-reloc.c: Include <_itoa.h>.
67452         (_dl_reloc_bad_type): Remove use of INTUSE.
67453         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
67454         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
67455         * stdio-common/psiginfo.c (psiginfo): Likewise.
67456         * stdio-common/psignal.c (psignal): Likewise.
67457         * string/strsignal.c (strsignal): Likewise.
67458         * include/signal.h (_sys_siglist): Declare hidden proto.
67459         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
67460         INTVARDEF with libc_hidden_data_def.
67461         * stdio-common/itoa-udigits.c: Likewise.
67462         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
67463         (_itoa_lower_digits_internal): Remove declaration.
67464         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
67465         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
67466         (_sys_sigabbrev_internal): Remove aliases.
67467         (_sys_siglist): Define hidden alias.
67468
67469 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
67470
67471         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67472         bits/sysctl.h.
67473
67474 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67475
67476         [BZ #14117]
67477         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
67478         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
67479
67480         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
67481         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
67482         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
67483         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
67484         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
67485         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
67486
67487         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
67488         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
67489         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
67490
67491         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
67492         with __addr.
67493         (insw): Likewise.
67494         (insl): Likewise.
67495         (outsb): Likewise.
67496         (outsw): Likewise.
67497         (outsl): Likewise.
67498
67499         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
67500         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
67501         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
67502
67503         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
67504         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
67505         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
67506         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
67507         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
67508         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
67509
67510         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
67511         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
67512
67513         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
67514         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
67515
67516         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
67517         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
67518         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
67519
67520         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
67521         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
67522         to ...
67523         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
67524
67525         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
67526         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
67527         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
67528
67529         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
67530         for x86-64.
67531         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
67532
67533 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
67534
67535         * math/math.h (M_El): Use two more decimal places.
67536         (M_LOG2El): Likewise.
67537         (M_LOG10El): Likewise.
67538         (M_LN2l): Likewise.
67539         (M_LN10l): Likewise.
67540         (M_PIl): Likewise.
67541         (M_PI_2l): Likewise.
67542         (M_PI_4l): Likewise.
67543         (M_1_PIl): Likewise.
67544         (M_2_PIl): Likewise.
67545         (M_2_SQRTPIl): Likewise.
67546         (M_SQRT2l): Likewise.
67547         (M_SQRT1_2l): Likewise.
67548
67549 2012-05-31  David S. Miller  <davem@davemloft.net>
67550
67551         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67552         values between float registers.
67553         * sysdeps/sparc/sparc64/memset.S: Likewise.
67554         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67555
67556 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67557
67558         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67559         -D_FORTIFY_SOURCE=1.
67560         (CPPFLAGS-tst-longjmp_chk.c): Define.
67561         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67562         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67563         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67564         CFLAGS-tst-wchar-h.c.
67565
67566 2012-05-31  Marek Polacek  <polacek@redhat.com>
67567
67568         [BZ #14132]
67569         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67570         __endmntent_internal): Remove declaration.
67571         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67572         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67573         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67574
67575 2012-05-30  David S. Miller  <davem@davemloft.net>
67576
67577         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67578         (___Q_simulate_exceptions): Use real FP ops rather than writing
67579         into the %fsr.
67580         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67581         Likewise.
67582
67583 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67584
67585         [BZ #14117]
67586         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67587         * sysdeps/x86/bits/xtitypes.h: This.
67588
67589         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67590         * sysdeps/x86/bits/wordsize.h: This.
67591
67592         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67593         * sysdeps/x86/bits/huge_vall.h: This.
67594
67595         * sysdeps/i386/bits/select.h: Removed.
67596         * sysdeps/x86_64/bits/select.h: Renamed to ...
67597         * sysdeps/x86/bits/select.h: This.
67598
67599         * sysdeps/i386/bits/setjmp.h: Removed.
67600         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67601         * sysdeps/x86/bits/setjmp.h: This.
67602
67603         * sysdeps/i386/bits/mathdef.h: Removed.
67604         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67605         * sysdeps/x86/bits/mathdef.h: This.
67606
67607 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67608
67609         [BZ #14132]
67610         * include/sys/socket.h (__connect_internal)
67611         (__libc_sa_len_internal): Remove declaration.
67612         (__connect, __libc_sa_len): Declare hidden_proto.
67613         (SA_LEN): Remove use of INTUSE.
67614         * socket/connect.c: Add libc_hidden_def.
67615         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67616         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67617         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67618         alias.
67619         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67620         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67621         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67622         of adding _internal alias.
67623
67624 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67625
67626         [BZ #14117]
67627         * sysdeps/i386/bits/link.h: Removed.
67628         * sysdeps/i386/bits/linkmap.h: Likewise.
67629         * sysdeps/x86_64/bits/link.h: Renamed to ...
67630         * sysdeps/x86/bits/link.h: This.
67631         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67632         * sysdeps/x86/bits/linkmap.h: This.
67633
67634         * sysdeps/i386/bits/endian.h: Removed.
67635         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67636         * sysdeps/x86/bits/endian.h: This.
67637
67638         * sysdeps/i386/bits/byteswap.h: Removed.
67639         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67640         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67641         * sysdeps/x86/bits/byteswap.h: This.
67642         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67643         * sysdeps/x86/bits/byteswap-16.h: This.
67644         * sysdeps/i386/Implies: Add x86.
67645         * sysdeps/x86_64/Implies: Likewise.
67646
67647 2012-05-30  David S. Miller  <davem@davemloft.net>
67648
67649         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67650         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67651         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67652         (FP_TRAPPING_EXCEPTIONS): Define.
67653         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67654         (FP_TRAPPING_EXCEPTIONS): Define.
67655         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67656         subnormals only when inexact has been signalled or underflow
67657         exceptions are enabled.
67658         (_FP_PACK_CANONICAL): Likewise.
67659
67660 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67661
67662         [BZ #14183]
67663         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67664         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67665
67666 2012-05-30  Richard Henderson  <rth@twiddle.net>
67667
67668         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67669         with #ifndef NOT_IN_libc.
67670
67671         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67672         marked to avoid plt entry.
67673
67674 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67675
67676         [BZ #14112]
67677         * Makeconfig (default-abi): New macro.
67678         (abi-includes): Likewise.
67679         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67680         $(abi-$(default-abi)-lib-soname) for soname if defined.
67681         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67682         abi-variants.
67683         * Makefile (installed-stubs): Likewise.
67684         * include/stubs-biarch.h: Removed.
67685         * scripts/lib-names.awk: Only handle one library at a time.
67686         * scripts/soversions.awk: Remove WORDSIZE support.
67687         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67688         entries.
67689         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67690         Removed.
67691         (syscall-list-default-condition): Likewise.
67692         (syscall-list-default-condition): Likewise.
67693         (syscall-list-includes): Likewise.
67694         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67695         syscall-list-* with abi-*.  Handle undefined abi-variants.
67696         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67697         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67698         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67699         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67700         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67701         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67702         Removed.
67703         (syscall-list-32-options): Likewise.
67704         (syscall-list-32-condition): Likewise.
67705         (syscall-list-64-options): Likewise.
67706         (syscall-list-64-condition): Likewise.
67707         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67708         macro.
67709         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67710         Renamed to ...
67711         (abi-*): This.
67712         (abi-64-ld-soname): New macro.
67713         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67714         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67715         Renamed to ...
67716         (abi-*): This.
67717         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67718         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67719
67720 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67721
67722         * sysdeps/unix/sysv/linux/kernel-features.h
67723         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67724         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67725         include <kernel-features.h>.
67726         [!__NR_ftruncate64]: Remove conditional code.
67727         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67728         [__NR_ftruncate64]: Make code unconditional.
67729         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67730         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67731         include <kernel-features.h>.
67732         [!__NR_ftruncate64]: Remove conditional code.
67733         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67734         [__NR_ftruncate64]: Make code unconditional.
67735         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67737         include <kernel-features.h>.
67738         [!__NR_ftruncate64]: Remove conditional code.
67739         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67740         [__NR_ftruncate64]: Make code unconditional.
67741         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67743         include <kernel-features.h>.
67744         [!__NR_ftruncate64]: Remove conditional code.
67745         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67746         [__NR_ftruncate64]: Make code unconditional.
67747         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67748
67749         * configure.in (libc_cv_fpie): Weaken to a compile test using
67750         LIBC_TRY_CC_OPTION.
67751         * configure: Regenerated.
67752
67753 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67754
67755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67757         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67759         Refreshed.
67760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67766         Refreshed.
67767
67768 2012-05-27  David S. Miller  <davem@davemloft.net>
67769
67770         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67771         (___Q_zero): New.
67772         (__Q_simulate_exceptions): Return void.  Change to simulate
67773         exceptions by writing into the %fsr.
67774         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67775         (__Qp_handle_exceptions): Likewise.
67776         (numbers): Delete.
67777         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67778         __Qp_handle_exceptions.
67779         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67780         __Qp_handle_exceptions.
67781         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67782         as unused and give dummy FP_RND_NEAREST initializer.
67783         (FP_INHIBIT_RESULTS): Define.
67784         (___Q_simulate_exceptions): Update declaration.
67785         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67786         formatting.
67787         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67788         as unused and give dummy FP_RND_NEAREST initializer.
67789         (__Qp_handle_exceptions): Update declaration.
67790         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67791         formatting.
67792
67793 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67794
67795         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67796         the temporary FPU control word.
67797         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67798         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67799         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67800         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67801         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67802         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67803         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67804         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67805         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67806         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67807         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67808
67809 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67810
67811         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67812         fields.
67813
67814 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67815
67816         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67817         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67818         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67819         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67820         Likewise.
67821         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67822         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67823         Likewise.
67824
67825 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67826
67827         * po/h.po: Update from translation team.
67828
67829 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67830
67831         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67832
67833         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67834         handling of denormals.
67835         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67836         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67837         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67838         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67839         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67840         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67841         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67842         Likewise.
67843
67844 2012-05-26  Marek Polacek  <polacek@redhat.com>
67845
67846         [BZ #14152]
67847         * math/libm-test.inc (fma_test): Don't always expect underflow
67848         exception.
67849
67850 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67851
67852         [BZ #12416]
67853         * elf/tst-execstack.c: Include stackinfo.h.
67854         (do_test): Adjust test case to ensure that pthread_getattr_np
67855         behaviour remains the same after marking stack executable.
67856
67857 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67858
67859         * sysdeps/unix/sysv/linux/kernel-features.h
67860         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67861         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
67862         kernel-features.h.
67863         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67864         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67865         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67866         kernel-features.h.
67867         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67868         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67869
67870 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67871
67872         * configure.in: Define the default includes to being none.
67873         * configure: Regenerated.
67874
67875 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67876
67877         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67878         * sysdeps/x86_64/setjmp.S: Likewise.
67879         * sysdeps/i386/bsd-setjmp.S: Likewise.
67880         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67881         * sysdeps/i386/setjmp.S: Likewise.
67882         * sysdeps/i386/__longjmp.S: Likewise.
67883         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67884         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67885
67886         * include/stap-probe.h: New file.
67887         * configure.in: Handle --enable-systemtap.
67888         * configure: Regenerated.
67889         * config.h.in (USE_STAP_PROBE): New #undef.
67890         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67891         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67892         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67893
67894 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67895
67896         [BZ #13717]
67897         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67898         to 2.4.0 where earlier.
67899         * sysdeps/unix/sysv/linux/configure: Regenerated.
67900         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
67901         <kernel-features.h>.
67902         [__ASSUME_32BITUIDS]: Make code unconditional.
67903         [!__ASSUME_32BITUIDS]: Remove conditional code.
67904         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
67905         <kernel-features.h>.
67906         [__ASSUME_32BITUIDS]: Make code unconditional.
67907         [!__ASSUME_32BITUIDS]: Remove conditional code.
67908         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67909         [__ASSUME_32BITUIDS]: Make code unconditional.
67910         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67911         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
67912         <kernel-features.h>.
67913         [__ASSUME_32BITUIDS]: Make code unconditional.
67914         [!__ASSUME_32BITUIDS]: Remove conditional code.
67915         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
67916         <kernel-features.h>.
67917         [__ASSUME_32BITUIDS]: Make code unconditional.
67918         [!__ASSUME_32BITUIDS]: Remove conditional code.
67919         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
67920         <kernel-features.h>.
67921         [__ASSUME_32BITUIDS]: Make code unconditional.
67922         [!__ASSUME_32BITUIDS]: Remove conditional code.
67923         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
67924         <kernel-features.h>.
67925         [__ASSUME_32BITUIDS]: Make code unconditional.
67926         [!__ASSUME_32BITUIDS]: Remove conditional code.
67927         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
67928         <kernel-features.h>.
67929         [__ASSUME_32BITUIDS]: Make code unconditional.
67930         [!__ASSUME_32BITUIDS]: Remove conditional code.
67931         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
67932         <kernel-features.h>.
67933         [__ASSUME_32BITUIDS]: Make code unconditional.
67934         [!__ASSUME_32BITUIDS]: Remove conditional code.
67935         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
67936         <kernel-features.h>.
67937         [__ASSUME_32BITUIDS]: Make code unconditional.
67938         [!__ASSUME_32BITUIDS]: Remove conditional code.
67939         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
67940         <kernel-features.h>.
67941         [__ASSUME_32BITUIDS]: Make code unconditional.
67942         [!__ASSUME_32BITUIDS]: Remove conditional code.
67943         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
67944         <kernel-features.h>.
67945         [__ASSUME_32BITUIDS]: Make code unconditional.
67946         [!__ASSUME_32BITUIDS]: Remove conditional code.
67947         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
67948         <kernel-features.h>.
67949         [__ASSUME_32BITUIDS]: Make code unconditional.
67950         [!__ASSUME_32BITUIDS]: Remove conditional code.
67951         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67952         <kernel-features.h>.
67953         [__NR_setresgid] (__setresgid): Do not declare.
67954         [__ASSUME_32BITUIDS]: Make code unconditional.
67955         [!__ASSUME_32BITUIDS]: Remove conditional code.
67956         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67957         <kernel-features.h>.
67958         [__NR_setresuid] (__setresuid): Do not declare.
67959         [__ASSUME_32BITUIDS]: Make code unconditional.
67960         [!__ASSUME_32BITUIDS]: Remove conditional code.
67961         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
67962         <kernel-features.h>.
67963         [__ASSUME_32BITUIDS]: Make code unconditional.
67964         [!__ASSUME_32BITUIDS]: Remove conditional code.
67965         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
67966         <kernel-features.h>.
67967         [__ASSUME_32BITUIDS]: Make code unconditional.
67968         [!__ASSUME_32BITUIDS]: Remove conditional code.
67969         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
67970         <kernel-features.h>.
67971         [__ASSUME_32BITUIDS]: Make code unconditional.
67972         [!__ASSUME_32BITUIDS]: Remove conditional code.
67973         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
67974         <kernel-features.h>.
67975         [__ASSUME_32BITUIDS]: Make code unconditional.
67976         [!__ASSUME_32BITUIDS]: Remove conditional code.
67977         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
67978         <kernel-features.h>.
67979         [__ASSUME_32BITUIDS]: Make code unconditional.
67980         [!__ASSUME_32BITUIDS]: Remove conditional code.
67981         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
67982         <kernel-features.h>.
67983         [__ASSUME_32BITUIDS]: Make code unconditional.
67984         [!__ASSUME_32BITUIDS]: Remove conditional code.
67985         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
67986         <kernel-features.h>.
67987         [__ASSUME_32BITUIDS]: Make code unconditional.
67988         [!__ASSUME_32BITUIDS]: Remove conditional code.
67989         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
67990         <kernel-features.h>.
67991         [__ASSUME_32BITUIDS]: Make code unconditional.
67992         [!__ASSUME_32BITUIDS]: Remove conditional code.
67993         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
67994         <kernel-features.h>.
67995         [__ASSUME_32BITUIDS]: Make code unconditional.
67996         [!__ASSUME_32BITUIDS]: Remove conditional code.
67997         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
67998         <kernel-features.h>.
67999         [__ASSUME_32BITUIDS]: Make code unconditional.
68000         [!__ASSUME_32BITUIDS]: Remove conditional code.
68001         * sysdeps/unix/sysv/linux/kernel-features.h
68002         (__ASSUME_SETRESUID_SYSCALL): Remove.
68003         (__ASSUME_SETRESGID_SYSCALL): Likewise.
68004         (__ASSUME_32BITUIDS): Likewise.
68005         (__ASSUME_LDT_WORKS): Likewise.
68006         (__ASSUME_O_DIRECTORY): Likewise.
68007         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
68008         architecture but not kernel version.
68009         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
68010         (__ASSUME_MMAP2_SYSCALL): Likewise.
68011         (__ASSUME_STAT64_SYSCALL): Likewise.
68012         (__ASSUME_IPC64): Likewise.
68013         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
68014         <kernel-features.h>.
68015         [__ASSUME_32BITUIDS]: Make code unconditional.
68016         [!__ASSUME_32BITUIDS]: Remove conditional code.
68017         * sysdeps/unix/sysv/linux/opendir.c: Do not include
68018         <kernel-features.h>.
68019         [__ASSUME_O_DIRECTORY]: Make code unconditional.
68020         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
68021         132096]: Remove conditional code.
68022         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
68023         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
68024         <kernel-features.h>.
68025         [__ASSUME_32BITUIDS]: Make code unconditional.
68026         [!__ASSUME_32BITUIDS]: Remove conditional code.
68027         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
68028         <kernel-features.h>.
68029         [__ASSUME_32BITUIDS]: Make code unconditional.
68030         [!__ASSUME_32BITUIDS]: Remove conditional code.
68031         * sysdeps/unix/sysv/linux/setegid.c: Do not include
68032         <kernel-features.h>.
68033         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
68034         unconditional.
68035         (__setresgid): Do not declare.
68036         [__ASSUME_32BITUIDS]: Make code unconditional.
68037         [!__ASSUME_32BITUIDS]: Remove conditional code.
68038         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
68039         <kernel-features.h>.
68040         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
68041         unconditional.
68042         (__setresuid): Do not declare.
68043         [__ASSUME_32BITUIDS]: Make code unconditional.
68044         [!__ASSUME_32BITUIDS]: Remove conditional code.
68045         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
68046         <kernel-features.h>.
68047         [__ASSUME_32BITUIDS]: Make code unconditional.
68048         [!__ASSUME_32BITUIDS]: Remove conditional code.
68049         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
68050         <kernel-features.h>.
68051         [__ASSUME_32BITUIDS]: Make code unconditional.
68052         [!__ASSUME_32BITUIDS]: Remove conditional code.
68053
68054 2012-05-25  Richard Henderson  <rth@twiddle.net>
68055
68056         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
68057         dl_hwcap to ifunc resolver.
68058         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
68059         elf_ifunc_invoke.
68060         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
68061         dl_hwcap to ifunc resolver.
68062         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
68063
68064 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68065
68066         [BZ #14153]
68067         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
68068         for |x| <= 2**-26, not 2**-57.
68069         * math/libm-test.inc (acos_test): Do not allow spurious underflow
68070         exception.
68071
68072 2012-05-24  Jeff Law  <law@redhat.com>
68073
68074         * stdio-common/Makefile (tests): Add bug25.
68075         * stdio-common/bug25.c: New test.
68076
68077 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68078
68079         [BZ #13576]
68080         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
68081         multiple of MALLOC_ALIGNMENT in size.
68082         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
68083
68084 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68085
68086         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
68087         Require >= 256.
68088         (FILENAME_MAX): Use macro-int-constant.
68089         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
68090         (_IOFBF): Use macro-int-constant.
68091         (_IOLBF): Likewise.
68092         (_IONBF): Likewise.
68093         (SEEK_CUR): Likewise.
68094         (SEEK_END): Likewise.
68095         (SEEK_SET): Likewise.
68096         (TMP_MAX): Likewise.
68097         (EOF): Use macro-int-constant.  Require < 0.
68098         (NULL): Use macro-constant.  Require == 0.
68099         (stdin): Require type to be FILE *.
68100         (stdout): Likewise.
68101         (stderr): Likewise.
68102         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
68103         macro-int-constant.
68104         (EXIT_SUCCESS): Likewise.
68105         (NULL): Use macro-constant.  Require == 0.
68106         (RAND_MAX): Use macro-int-constant.
68107         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
68108         [C99-based standards] (strtof): Require function.
68109         [C99-based standards] (strtold): Likewise.
68110         [C99-based standards] (strtoll): Likewise.
68111         [C99-based standards] (strtoull): Likewise.
68112         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
68113         [ISO || ISO99 || ISO11] (limits.h): Likewise.
68114         [ISO || ISO99 || ISO11] (math.h): Likewise.
68115         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
68116         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
68117         [ISO || ISO99 || ISO11] (*_t): Do not allow.
68118
68119 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
68120
68121         [BZ #14132]
68122         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
68123         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
68124         * intl/dgettext.c (DCGETTEXT): Likewise.
68125         * intl/gettext.c (DCGETTEXT): Likewise.
68126         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
68127         * posix/regex_internal.h (gettext): Likewise.
68128         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
68129         Remove declaration.
68130         * include/argz.h (__argz_count_internal)
68131         (__argz_stringify_internal): Remove declaration.
68132         (__argz_count, __argz_stringify): Declare hidden proto.
68133         * intl/dcgettext.c: Remove use of INTDEF.
68134         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
68135         * string/argz-stringify.c: Likewise.
68136         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
68137         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
68138         Declare hidden proto.
68139         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
68140         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
68141         Declare hidden proto.
68142         * include/stdio.h (__asprintf_internal): Don't declare.
68143         (__asprintf): Don't define as macro.  Declare hidden proto.
68144         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
68145         (__fsetlocking): Declare hidden proto.
68146         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
68147         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
68148         hidden proto.
68149         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
68150         (_IO_setlinebuf): Remove use of INTUSE.
68151         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
68152         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
68153         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
68154         Remove declaration.
68155         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
68156         (_IO_do_flush): Remove use of INTUSE.
68157         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
68158         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
68159         (_IO_adjust_column, _IO_least_wmarker)
68160         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
68161         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
68162         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
68163         (_IO_default_doallocate, _IO_wdefault_doallocate)
68164         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
68165         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
68166         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
68167         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
68168         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
68169         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
68170         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
68171         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
68172         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
68173         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
68174         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
68175         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
68176         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
68177         proto.
68178         (_IO_flush_all_internal, _IO_adjust_column_internal)
68179         (_IO_default_uflow_internal, _IO_default_finish_internal)
68180         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
68181         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
68182         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
68183         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
68184         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
68185         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
68186         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
68187         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
68188         (_IO_file_close_internal, _IO_file_close_it_internal)
68189         (_IO_file_underflow_internal, _IO_file_overflow_internal)
68190         (_IO_file_init_internal, _IO_file_attach_internal)
68191         (_IO_file_fopen_internal, _IO_file_read_internal)
68192         (_IO_file_sync_internal, _IO_file_seek_internal)
68193         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
68194         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
68195         (_IO_str_underflow_internal, _IO_str_overflow_internal)
68196         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
68197         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
68198         (_IO_list_all_internal, _IO_link_in_internal)
68199         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
68200         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
68201         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
68202         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
68203         (_IO_do_write_internal, _IO_padn_internal)
68204         (_IO_getline_info_internal, _IO_getline_internal)
68205         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
68206         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
68207         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
68208         (_IO_vfscanf_internal, _IO_vfprintf_internal)
68209         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
68210         (_IO_init_internal, _IO_un_link_internal): Don't declare.
68211         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
68212         with libc_hidden_ver, remove use of INTUSE.
68213         * libio/genops.c: Likewise.
68214         * libio/freopen.c: Likewise.
68215         * libio/freopen64.c: Likewise.
68216         * libio/iofclose.c: Likewise.
68217         * libio/iofdopen.c: Likewise.
68218         * libio/iofflush.c: Likewise.
68219         * libio/iofflush_u.c: Likewise.
68220         * libio/iofgets.c: Likewise.
68221         * libio/iofgets_u.c: Likewise.
68222         * libio/iofopen.c: Likewise.
68223         * libio/iofopncook.c: Likewise.
68224         * libio/iofread.c: Likewise.
68225         * libio/iofread_u.c: Likewise.
68226         * libio/ioftell.c: Likewise.
68227         * libio/iofwrite.c: Likewise.
68228         * libio/iogetline.c: Likewise.
68229         * libio/iogets.c: Likewise.
68230         * libio/iogetwline.c: Likewise.
68231         * libio/iopadn.c: Likewise.
68232         * libio/iopopen.c: Likewise.
68233         * libio/ioseekoff.c: Likewise.
68234         * libio/ioseekpos.c: Likewise.
68235         * libio/iosetbuffer.c: Likewise.
68236         * libio/iosetvbuf.c: Likewise.
68237         * libio/ioungetc.c: Likewise.
68238         * libio/ioungetwc.c: Likewise.
68239         * libio/iovdprintf.c: Likewise.
68240         * libio/iovsprintf.c: Likewise.
68241         * libio/iovsscanf.c: Likewise.
68242         * libio/memstream.c: Likewise.
68243         * libio/obprintf.c: Likewise.
68244         * libio/oldfileops.c: Likewise.
68245         * libio/oldiofclose.c: Likewise.
68246         * libio/oldiofdopen.c: Likewise.
68247         * libio/oldiofopen.c: Likewise.
68248         * libio/oldiopopen.c: Likewise.
68249         * libio/oldstdfiles.c: Likewise.
68250         * libio/putc.c: Likewise.
68251         * libio/setbuf.c: Likewise.
68252         * libio/setlinebuf.c: Likewise.
68253         * libio/stdfiles.c: Likewise.
68254         * libio/strops.c: Likewise.
68255         * libio/vasprintf.c: Likewise.
68256         * libio/vscanf.c: Likewise.
68257         * libio/vsnprintf.c: Likewise.
68258         * libio/vswprintf.c: Likewise.
68259         * libio/wfiledoalloc.c: Likewise.
68260         * libio/wfileops.c: Likewise.
68261         * libio/wgenops.c: Likewise.
68262         * libio/wmemstream.c: Likewise.
68263         * libio/wstrops.c: Likewise.
68264         * libio/__fpurge.c: Likewise.
68265         * libio/__fsetlocking.c: Likewise.
68266         * assert/assert.c: Likewise.
68267         * debug/fgets_chk.c: Likewise.
68268         * debug/fgets_u_chk.c: Likewise.
68269         * debug/fread_chk.c: Likewise.
68270         * debug/fread_u_chk.c: Likewise.
68271         * debug/gets_chk.c: Likewise.
68272         * debug/obprintf_chk.c: Likewise.
68273         * debug/vasprintf_chk.c: Likewise.
68274         * debug/vdprintf_chk.c: Likewise.
68275         * debug/vsnprintf_chk.c: Likewise.
68276         * debug/vsprintf_chk.c: Likewise.
68277         * malloc/mtrace.c: Likewise.
68278         * misc/error.c: Likewise.
68279         * misc/syslog.c: Likewise.
68280         * stdio-common/asprintf.c: Likewise.
68281         * stdio-common/fxprintf.c: Likewise.
68282         * stdio-common/getw.c: Likewise.
68283         * stdio-common/isoc99_fscanf.c: Likewise.
68284         * stdio-common/isoc99_scanf.c: Likewise.
68285         * stdio-common/isoc99_vfscanf.c: Likewise.
68286         * stdio-common/isoc99_vscanf.c: Likewise.
68287         * stdio-common/isoc99_vsscanf.c: Likewise.
68288         * stdio-common/printf-prs.c: Likewise.
68289         * stdio-common/printf_fp.c: Likewise.
68290         * stdio-common/printf_fphex.c: Likewise.
68291         * stdio-common/printf_size.c: Likewise.
68292         * stdio-common/putw.c: Likewise.
68293         * stdio-common/scanf.c: Likewise.
68294         * stdio-common/sprintf.c: Likewise.
68295         * stdio-common/tmpfile.c: Likewise.
68296         * stdio-common/vfprintf.c: Likewise.
68297         * stdio-common/vfscanf.c: Likewise.
68298         * stdlib/strfmon_l.c: Likewise.
68299         * sunrpc/openchild.c: Likewise.
68300         * sunrpc/xdr_stdio.c: Likewise.
68301         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
68302         * sysdeps/mach/hurd/tmpfile.c: Likewise.
68303
68304 2012-05-24  Roland McGrath  <roland@hack.frob.com>
68305
68306         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68307
68308         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
68309         in the third column, to generate for the shared library an IFUNC
68310         that uses _dl_vdso_vsym.
68311         * Makerules (COMPILE.c, compile-stdin.c): New variables.
68312         * Makeconfig (object-suffixes-noshared): New variable.
68313
68314         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
68315         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
68316         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
68317         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
68318
68319         [BZ #14132]
68320         * include/sys/time.h (__gettimeofday): Remove macro.
68321         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
68322         * time/gettimeofday.c (__gettimeofday): Remove #undef.
68323         Remove INTDEF.
68324         (__gettimeofday): Add libc_hidden_def.
68325         (gettimeofday): Add libc_hidden_weak.
68326         * sysdeps/mach/gettimeofday.c: Likewise.
68327         * sysdeps/posix/gettimeofday.c: Likewise.
68328         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
68329         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
68330         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
68331         (__gettimeofday_internal): Remove strong_alias.
68332         (__gettimeofday): Add libc_hidden_def.
68333         (gettimeofday): Add libc_hidden_weak.
68334         * sysdeps/unix/syscalls.list (gettimeofday):
68335         Remove __gettimeofday_internal alias.
68336
68337 2012-05-24  Daniel Jacobowitz  <drow@false.org>
68338             H.J. Lu  <hongjiu.lu@intel.com>
68339
68340         [BZ #12495]
68341         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
68342         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
68343         (largebin_index_32_big): New.
68344         (largebin_index): Use it for 16-byte alignment.
68345         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
68346         correction with front_misalign.
68347
68348 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68349
68350         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
68351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
68352         Likewise.
68353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
68354         Likewise.
68355         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68356         Likewise.
68357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
68358         Likewise.
68359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
68360         Likewise.
68361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
68362         Likewise.
68363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
68364         Likewise.
68365         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
68366         Likewise.
68367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
68368         Likewise.
68369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
68370         Likewise.
68371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
68372         Likewise.
68373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
68374         Likewise.
68375
68376         * scripts/data/c++-types-x32-linux-gnu.data: New file.
68377         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
68378
68379 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68380
68381         [BZ #10846]
68382         [BZ #14036]
68383         * math/libm-test.inc (exp_test): Add test from bug 14036.
68384         (pow_test): Add test from bug 10846.
68385
68386         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
68387         and other flags.
68388         (special_function): Do not include flags in test name.
68389         (parse_args): Likewise.
68390         * sysdeps/i386/fpu/libm-test-ulps: Update.
68391         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68392         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
68393         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
68394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68395
68396         * math/gen-libm-test.pl (%beautify): Add entries for underflow
68397         exceptions.
68398         * math/libm-test.inc ("Philosophy"): Update comment about
68399         exception testing.
68400         (UNDERFLOW_EXCEPTION): New macro.
68401         (UNDERFLOW_EXCEPTION_OK): Likewise.
68402         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
68403         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
68404         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
68405         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
68406         (INVALID_EXCEPTION_OK): Update value.
68407         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
68408         (OVERFLOW_EXCEPTION_OK): Likewise.
68409         (IGNORE_ZERO_INF_SIGN): Likewise.
68410         (test_exceptions): Handle underflow exceptions.
68411         (acos_test): Update for underflow exception expectations.
68412         (cexp_test): Likewise.
68413         (clog_test): Likewise.
68414         (clog10_test): Likewise.
68415         (csqrt_test): Likewise.
68416         (ctan_test): Likewise.
68417         (ctanh_test): Likewise.
68418         (exp_test): Likewise.
68419         (exp10_test): Likewise.
68420         (exp2_test): Likewise.
68421         (expm1_test): Likewise.
68422         (fma_test): Likewise.
68423         (j0_test): Likewise.
68424         (jn_test): Likewise.
68425         (nexttoward_test): Likewise.
68426         (pow_test): Likewise.
68427         (scalbn_test): Likewise.
68428         (scalbln_test): Likewise.
68429         (tan_test): Likewise.
68430         (y1_test): Likewise.
68431         * sysdeps/i386/fpu/libm-test-ulps: Update.
68432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68433
68434 2012-05-23  David S. Miller  <davem@davemloft.net>
68435
68436         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
68437         (__libc_sigaction): Remove unused local variables.
68438
68439 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68440
68441         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
68442
68443 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         mktime: avoid signed integer overflow
68446         * time/mktime.c (__mktime_internal): Do not mishandle the case
68447         where diff == INT_MIN.
68448
68449         mktime: simplify computation of average
68450         * time/mktime.c (ranged_convert): Use new time_t_avg function
68451         instead of rolling our own (probably-slower) code.
68452
68453         mktime: do not assume signed right shift propagates sign bit
68454         * time/mktime.c (isdst_differ): New static function.
68455         (__mktime_internal): No need to normalize tm_isdst now.
68456         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
68457         tm_isdst values.
68458
68459         mktime: merge another wrapv change from gnulib
68460         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
68461         from some compilers.
68462
68463         mktime: remove incorrect attempt at unusual arithmetics
68464         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
68465         The code didn't really work on such machines anyway.
68466         (TYPE_MINIMUM): Assume two's complement.
68467         (twos_complement_arithmetic): Verify that long_int and time_t
68468         are two's complement (or unsigned, in the latter case).
68469
68470         mktime: check signed shifts on long_int and time_t, too
68471         * time/mktime.c (SHR): Check that shifts work as desired
68472         on the types long_int and time_t too, as SHR is used on
68473         such types.
68474
68475         mktime: do not assume 'long' is wide enough
68476         * time/mktime.c (verify): Move decl up.
68477         (long_int): New type.
68478         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
68479         to remove assumption in the code that 'long' is wide enough to
68480         store year values.  This assumption is not true on x32 and on
68481         some non-glibc platforms.
68482
68483         mktime: merge wrapv change from gnulib
68484         * time/mktime.c (WRAPV): New macro.
68485         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
68486         (guess_time_tm, __mktime_internal): Do not assume that signed
68487         integer overflow wraps around; modern compilers generate code
68488         where this assumption is no longer valid.
68489
68490 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68491
68492         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68493         Replace "jmp L(pseudo_end)" with "ret".
68494         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
68495         Likewise.
68496
68497 2012-05-23  Andreas Jaeger  <aj@suse.de>
68498
68499         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
68500         * sysdeps/unix/sysv/linux/poll.c: Remove file.
68501
68502 2012-05-23  Andreas Jaeger  <aj@suse.de>
68503             Maximilian Attems  <max@stro.at>
68504
68505         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
68506         New macros.
68507
68508 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68509
68510         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
68511         code so that pseudo_end is just ret and the stack pointer is
68512         correct also for static library in error case.
68513
68514 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
68515
68516         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
68517         move to syscalls.list.
68518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
68519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
68520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
68521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
68522
68523         * manual/install.texi (Running make install): Do not mention Linux
68524         kernel version for which pt_chown is not needed.
68525         (Linux): Do not mention problems with nscd with 2.0 kernels.
68526         * INSTALL: Regenerated.
68527
68528 2012-05-23  Andreas Jaeger  <aj@suse.de>
68529
68530         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
68531         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
68532         macro.
68533         * sysdeps/unix/sysv/linux/s390/bits/mman.h
68534         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68535         * sysdeps/unix/sysv/linux/sh/bits/mman.h
68536         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68537         * sysdeps/unix/sysv/linux/i386/bits/mman.h
68538         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68539         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
68540         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68541         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
68542         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68543         * sysdeps/unix/sysv/linux/bits/in.h
68544         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
68545
68546 2012-05-22  Roland McGrath  <roland@hack.frob.com>
68547
68548         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
68549         (PREPARE_VERSION): Just use assert instead, it will be elided
68550         under [NDEBUG] anyway.
68551
68552 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68553
68554         * sysdeps/unix/sysv/linux/Makefile: Include
68555         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68556         (sysdep_routines): Remove sysctl.
68557         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68558         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68559         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68560         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68561         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68562
68563 2012-05-22  Andreas Jaeger  <aj@suse.de>
68564
68565         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68566         that pseudo_end is just ret and the stack pointer is correct also
68567         for static library in error case.
68568
68569 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68570
68571         [BZ #14122]
68572         * nss/nsswitch.c (defconfig_entries): New variable.
68573         (__nss_database_lookup): Don't leak defconfig entries.
68574         (nss_parse_service_list): Don't leak on error paths.
68575         (free_database_entries): New function.
68576         (free_defconfig): New function.
68577         (free_mem): Move common code to free_database_entries.
68578
68579 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68580
68581         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68582         Add arch_prctl.
68583         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68584
68585         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68586         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68587         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68588         New macro.
68589         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68590         (INTERNAL_SYSCALL_TYPES): Likewise.
68591         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68592         (LOAD_REGS_TYPES_[1-6]): Likewise.
68593         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68594         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68595
68596 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68597
68598         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68599         copysignl for GLIBC_2_0.
68600         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68601         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68602         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68603         logbl for GLIBC_2_0.
68604         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68605         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68606
68607 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68608
68609         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68610         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68611
68612         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68613         Use "neg %eax".
68614
68615         * time/mktime.c: Update copyright years.
68616
68617 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         mktime: merge comment-quoting-style change from gnulib
68620         * time/mktime.c: Quote 'like this' in comments.
68621         The GNU coding standards suggest that we no longer quote `like this',
68622         as "`" and "'" are typically rendered asymmetrically nowadays.
68623         The typical gnulib style is to quote 'like this' when quoting
68624         code, and "like this" when quoting English.
68625
68626         * time/mktime.c (compile-command): Add "-I.".
68627
68628         mktime: merge mktime-internal.h change from gnulib
68629         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68630
68631         mktime: merge time_r change from gnulib
68632         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68633
68634         mktime: merge DEBUG change from gnulib
68635         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68636         case system <time.h> has a #define.
68637
68638         mktime: merge <sys/types.h> change from gnulib
68639         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68640         since <time.t> is now guaranteed to define time_t.
68641
68642         mktime: merge HAVE_CONFIG_H change from gnulib
68643         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68644
68645 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68646
68647         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68648         Use "neg %eax".
68649
68650         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68651         __rlim_t cast.
68652         (struct rusage): Use anonymous union to pad each field to
68653         __syscall_slong_t.
68654
68655 2012-05-21  David S. Miller  <davem@davemloft.net>
68656
68657         * Makefules (o-iterator): Remove .s cases.
68658         (compile-command.s): Delete.
68659         (COMPILE.s): Delete.
68660         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68661
68662 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68663
68664         * configure.in (libc_cv_predef_stack_protector): Only consider
68665         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68666         * configure: Regenerated.
68667
68668 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68669
68670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68671         New macro.  Use R*LP on int and pointer.
68672         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68673         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68674         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68675         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68676
68677         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68678         [__WORDSIZE_TIME64_COMPAT32] instead of
68679         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68680         (struct utmp): Likewise.
68681         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68682         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68683         Renamed to ...
68684         (__WORDSIZE_TIME64_COMPAT32): This.
68685         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68686         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68687         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68688         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68689         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68690         (__WORDSIZE_TIME64_COMPAT32): New macro.
68691
68692 2012-05-21  Andreas Jaeger  <aj@suse.de>
68693
68694         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68695         only if [SHARED]. Add prototype for __wcschr_ia32.
68696
68697 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68698
68699         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68700         of %rbp unmolested in the jmp_buf while mangling the low bits.
68701         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68702         unmolested high bits of %rbp while demangling the low bits.
68703         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68704
68705 2012-05-21  Andreas Jaeger  <aj@suse.de>
68706
68707         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68708         * sunrpc/svc_simple.c: Use it for registerrpc.
68709         * sunrpc/xcrypt.c: Use it for passwd2des.
68710
68711         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68712
68713 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68714
68715         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68716         Don't define if [__SYSCALL_WORDSIZE != 32].
68717         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68718         New macro.
68719
68720 2012-05-21  Bruno Haible  <bruno@clisp.org>
68721             Andreas Jaeger  <aj@suse.de>
68722
68723         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68724         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68725         inptr and inend for must_buffer_ch.
68726         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68727         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68728         * stdio-common/Makefile (tests): Remove bug15.
68729         (bug15-ENV): Remove macro.
68730         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68731         anymore.
68732
68733 2012-05-19  Andreas Jaeger  <aj@suse.de>
68734             Roland McGrath  <roland@hack.frob.com>
68735
68736         * manual/contrib.texi: Completely rewritten. It contains now an
68737         alphabetical list of contributors and their contributions.
68738
68739 2012-05-21  Richard Henderson  <rth@twiddle.net>
68740
68741         * misc/getauxval.c (__getauxval): Use unsigned long int.
68742         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68743         (getauxval): Use unsigned long int.
68744
68745 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68746
68747         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68748
68749 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68750
68751         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68752         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68753         __alignof__ (long double).
68754
68755 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68756
68757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68758
68759 2012-05-20  Richard Henderson  <rth@twiddle.net>
68760
68761         * misc/getauxval.c: New file.
68762         * misc/sys/auxv.h: New file.
68763         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68764         (routines): Add getauxval.
68765         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68766         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68767         * elf/dl-sysdep.c (_dl_auxv): Remove.
68768         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68769         * elf/dl-support.c (_dl_auxv): New variable.
68770         (_dl_aux_init): Initialize it.
68771         * manual/startup.texi (Auxiliary Vector): New node.
68772         * sysdeps/generic/bits/hwcap.h: New file.
68773         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68774         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68775         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68776         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68777         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68778         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68780         Update.
68781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68784         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68787         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68789
68790 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68791
68792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68793
68794 2012-05-19  David S. Miller  <davem@davemloft.net>
68795
68796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68797
68798 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68799
68800         [BZ #14123]
68801         * math/s_ccosh.c: Include <float.h>
68802         (__ccosh): Avoid internal overflow calculating sinh and cosh
68803         values before multiplying by sin and cos values.
68804         * math/s_ccoshf.c: Likewise.
68805         * math/s_ccoshl.c: Likewise.
68806         * math/s_csin.c: Likewise.
68807         * math/s_csinf.c: Likewise.
68808         * math/s_csinl.c: Likewise.
68809         * math/s_csinh.c: Likewise.
68810         * math/s_csinhf.c: Likewise.
68811         * math/s_csinhl.c: Likewise.
68812         * math/libm-test.inc (ccos_test): Add more tests.
68813         (ccosh_test): Likewise.
68814         (csin_test): Likewise.
68815         (csinh_test): Likewise.
68816         * sysdeps/i386/fpu/libm-test-ulps: Update.
68817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68818
68819 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68820
68821         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68822         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68823
68824         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68825
68826 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68827
68828         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68829         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68830         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68831         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68832         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68833         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68834         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68835         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68836         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68837         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68838         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68839         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68840         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68841         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68842         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68843         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68844         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68845         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68846         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68847         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68848         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68849         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68850         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68851         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68852         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68853         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68854         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68855         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68856         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68857         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68858         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68859
68860 2012-05-18  Andreas Jaeger  <aj@suse.de>
68861
68862         * csu/.gitignore: Delete.
68863
68864 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68865
68866         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68867         (timex): Use __syscall_slong_t.
68868
68869 2012-05-18  Andreas Jaeger  <aj@suse.de>
68870             Carlos O'Donell  <carlos_odonell@mentor.com>
68871
68872         * manual/install.texi (Configuring and compiling): Update
68873         description about files modified in the source directory.
68874         * INSTALL: Regenerated.
68875
68876 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68877
68878         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68879         value.  Use "or" to set return value to -1.
68880         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68881         negate return value.
68882
68883 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68884
68885         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68886         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68887         failure if the compiler has Graphite support disabled.
68888         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68889         Likewise.
68890         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68891         (CFLAGS-memmove.c): Likewise.
68892         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68893         Likewise.
68894
68895 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68896
68897         * sysdeps/x86_64/x32/_itoa.h: New file.
68898
68899         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68900         getdents system call only if kernel and user dirents have the
68901         same d_ino and d_off.
68902
68903         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68904         LLONG_MAX != LONG_MAX.
68905         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68906         (_fitoa_word): Likewise.
68907
68908         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68909         years.
68910         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68911         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68912         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68913
68914         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68915         include <bits/wordsize.h>.  Check __x86_64__ instead of
68916         __WORDSIZE.
68917         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68918         if __x86_64__ is defined.  Use anonymous union on fpstate.
68919
68920         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68921         anonymous union.
68922
68923 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68924
68925         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68926         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68927         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68928         Refer to _rtld_local_ro instead of _rtld_global_ro.
68929         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68930         Likewise.
68931         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68932         Likewise.
68933         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68934         Likewise.
68935         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68936         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68937         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68938
68939         [BZ #10882]
68940         * sysdeps/powerpc/powerpc32/dl-machine.c
68941         (__elf_machine_runtime_setup) [PROF]: Don't reference
68942         _dl_prof_resolve.
68943
68944 2012-05-18  Andreas Jaeger  <aj@suse.de>
68945
68946         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68947         function only available for GCCs before 3.4 since GCC 3.4
68948         introduced a builtin.
68949         (lrint): Likewise.
68950         (llrintf): Likewise.
68951         (llrint): Likewise.
68952         (fmaxf): Likewise.
68953         (fmax): Likewise.
68954         (fminf): Likewise.
68955         (fmin): Likewise.
68956         (rint): Likewise.
68957         (rintf): Likewise.
68958         (nearbyint): Likewise.
68959         (nearbyintf): Likewise.
68960         (ceil): Likewise.
68961         (ceilf): Likewise.
68962         (floor): Likewise.
68963         (floorf): Likewise.
68964
68965 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68966
68967         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68968         on both fields and cast pointer to __syscall_ulong_t.
68969
68970         * bits/types.h (__fsword_t): New type.
68971         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68972         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68973         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68974         (__FSWORD_T_TYPE): Likewise.
68975         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68976         (__FSWORD_T_TYPE): Likewise.
68977         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68978         (__FSWORD_T_TYPE): Likewise.
68979         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68980         (__FSWORD_T_TYPE): Likewise.
68981         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68982         __SWORD_TYPE with __fsword_t.
68983         (statfs64): Likewise.
68984
68985 2012-05-17  David S. Miller  <davem@davemloft.net>
68986
68987         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68988
68989 2012-05-17  Andreas Jaeger  <aj@suse.de>
68990
68991         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68992         warning.
68993
68994 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68995
68996         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68997
68998 2012-05-17  Andreas Jaeger  <aj@suse.de>
68999
69000         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
69001         when it is used.
69002
69003 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
69004
69005         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
69006
69007 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
69008
69009         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
69010         * sysdeps/x86_64/tst-mallocalign1.c: New file.
69011
69012 2012-05-17  Andreas Jaeger  <aj@suse.de>
69013             Carlos O'Donell  <carlos_odonell@mentor.com>
69014
69015         [BZ #14059]
69016         * sysdeps/x86_64/multiarch/init-arch.h
69017         (bit_YMM_Usable): Rename to...
69018         (bit_AVX_Usable): ... this.
69019         (bit_FMA4_Usable): New macro.
69020         (bit_XMM_state): New macro.
69021         (bit_YMM_state): New macro.
69022         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
69023         [__ASSEMBLER__] (index_AVX_Usable): ... this.
69024         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
69025         (CPUID_OSXSAVE): New macro.
69026         (CPUID_AVX): New macro.
69027         (CPUID_FMA4): New macro.
69028         (index_YMM_Usable): Rename to...
69029         (index_AVX_Usable): ... this.
69030         (HAS_AVX): Use HAS_ARCH_FEATURE.
69031         (HAS_FMA4): Likewise.
69032         (HAS_YMM_USABLE): Remove.
69033         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
69034         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
69035         are present.
69036         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
69037         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
69038         * sysdeps/x86_64/multiarch/Makefile: Likewise.
69039         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
69040         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
69041
69042 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
69043
69044         * math/libm-test.c: Support platforms without multiple rounding modes.
69045         * math/bug-nextafter.c: Support platforms without FP exceptions.
69046         * math/bug-nexttoward.c: Likewise.
69047         * math/test-fenv.c: Likewise.
69048         * math/test-misc.c: Likewise.
69049         * stdlib/bug-getcontext.c: Likewise.
69050
69051 2012-05-17  Andreas Jaeger  <aj@suse.de>
69052
69053         * manual/examples/search.c (critter_cmp): Change signature to
69054         avoid warnings.
69055         * manual/string.texi (Collation Functions): Likewise.
69056
69057 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69058
69059         * bits/types.h: Fold copyright years.
69060         * bits/typesizes.h: Likewise.
69061         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
69062         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
69063         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
69064         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
69065         * time/time.h: Likewise.
69066
69067 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
69068
69069         [BZ #208]
69070         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
69071         in instead of returning them.  Return void.
69072         (__libc_mallinfo): Accumulate over all arenas.
69073         (__malloc_stats): Adjust for change in int_mallinfo interface.
69074
69075 2012-05-16  Roland McGrath  <roland@hack.frob.com>
69076
69077         [BZ #10375]
69078         * configure.in (NM): Add AC_CHECK_TOOL for it.
69079         (libc_extra_cflags): New substituted variable.
69080         Check for -fstack-protector being used implicitly.
69081         * configure: Regenerated.
69082         * config.make.in (config-extra-cflags): New variable,
69083         gets @libc_extra_cflags@.
69084         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
69085
69086         [BZ #10375]
69087         * configure.in: Check for _FORTIFY_SOURCE being predefined.
69088         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
69089         * configure: Regenerated.
69090         * config.make.in (CPPUNDEFS): New substituted variable.
69091         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
69092         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
69093         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
69094
69095 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69096
69097         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
69098         (mq_attr): Use __syscall_slong_t.
69099
69100 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69101
69102         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
69103         Check __x86_64__ instead of __WORDSIZE.
69104         (_STAT_VER_LINUX): Likewise.
69105         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
69106         __syscall_ulong_t and __syscall_slong_t.
69107         (stat64): Likewise.
69108
69109 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69110
69111         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
69112
69113 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69114
69115         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
69116
69117 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69118
69119         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
69120         __syscall_ulong_t.
69121
69122         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
69123         include <bits/wordsize.h>.  Check __x86_64__ instead of
69124         __WORDSIZE.
69125         (greg_t): Use "__extension__ long long int" if __x86_64__ is
69126         defined.
69127         (mcontext_t): Replace "unsigned long" with "unsigned long long".
69128
69129         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
69130         include <bits/wordsize.h>.  Check __x86_64__ instead of
69131         __WORDSIZE.
69132         (user_regs_struct): Use "__extension__ unsigned long long"
69133         instead of "unsigned long" if __x86_64__ is defined.
69134         (user): Likewise.  Pad after pointer field if __ILP32__ is
69135         defined.
69136
69137 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
69138
69139         * configure.in (makeinfo): Require version 4.5 or later.  Allow
69140         versions 5 to 9.
69141         * configure: Regenerated.
69142         * manual/install.texi (texinfo): Increase version requirement to
69143         4.5 or later.
69144         * INSTALL: Regenerated.
69145
69146         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
69147
69148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69149
69150         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
69151
69152         * sysdeps/x86_64/x32/ffs.c: New file.
69153
69154         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
69155         __syscall_ulong_t.
69156         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
69157         defined.  Use __syscall_ulong_t.
69158         (shminfo): Use __syscall_ulong_t.
69159         (shm_info): Likewise.
69160
69161         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
69162         __syscall_ulong_t.
69163
69164         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
69165         <bits/wordsize.h>.
69166         (msgqnum_t): Use __syscall_ulong_t.
69167         (msglen_t): Likewise.
69168         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
69169         __syscall_ulong_t.
69170
69171         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
69172         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
69173
69174         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
69175
69176         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
69177         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
69178
69179         * sysvipc/sys/msg.h (msgbuf): Replace long int with
69180         __syscall_slong_t.
69181
69182         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
69183         include <bits/wordsize.h>.  Check __x86_64__ instead of
69184         __WORDSIZE.
69185
69186         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
69187         "unsigned long long int" if __x86_64__ is defined.
69188         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
69189
69190         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
69191         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
69192         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
69193
69194         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
69195         <stdint.h>.
69196         (GET_PC): Cast to uintptr_t first.
69197         (GET_FRAME): Likewise.
69198         (GET_STACK): Likewise.
69199
69200         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
69201         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
69202         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
69203         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
69204         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
69205         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
69206         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
69207         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
69208         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
69209         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
69210         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
69211         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
69212         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
69213         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
69214         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
69215         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
69216         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
69217         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
69218         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
69219         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
69220         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
69221         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
69222         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
69223         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
69224         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
69225         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
69226         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
69227         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
69228         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
69229
69230 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
69231
69232         * Makerules (+depfiles): Also collect depfiles from .oS in
69233         $(extra-objs).
69234         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
69235         .oS, $(libnldbl-routines)).
69236
69237         * Makerules (native-compile-mkdep-flags): Define.
69238         * sunrpc/Makefile (extra-objs): Add $(addprefix
69239         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
69240         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
69241         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
69242         calling $(make-target-directory).
69243
69244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69245
69246         * bits/types.h (__snseconds_t): Removed.
69247         * time/time.h (struct timespec): Replace __snseconds_t with
69248         __syscall_slong_t.
69249         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
69250         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
69251         Likewise.
69252         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69253         (__SNSECONDS_T_TYPE): Likewise.
69254         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69255         (__SNSECONDS_T_TYPE): Likewise.
69256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69257         (__SNSECONDS_T_TYPE): Likewise.
69258
69259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69260
69261         * sysdeps/mach/hurd/bits/typesizes.h
69262         (__SYSCALL_SLONG_TYPE): New macro.
69263         (__SYSCALL_ULONG_TYPE): Likewise.
69264
69265 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69266
69267         * bits/types.h (__syscall_slong_t): New type.
69268         (__syscall_ulong_t): Likewise.
69269
69270         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
69271         (__SYSCALL_ULONG_TYPE): Likewise.
69272         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69273         (__SYSCALL_SLONG_TYPE): Likewise.
69274         (__SYSCALL_ULONG_TYPE): Likewise.
69275         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69276         (__SYSCALL_SLONG_TYPE): Likewise.
69277         (__SYSCALL_ULONG_TYPE): Likewise.
69278         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69279         (__SYSCALL_SLONG_TYPE): Likewise.
69280         (__SYSCALL_ULONG_TYPE): Likewise.
69281
69282 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69283
69284         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
69285         Add sigaltstack-offsets.sym.
69286         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
69287         <sigaltstack-offsets.h>.
69288         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
69289         longjmp_msg pointer.
69290         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
69291         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
69292         signal stack.
69293         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
69294
69295 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69296
69297         * elf/stackguard-macros.h: Remove file.
69298         * sysdeps/generic/stackguard-macros.h: New file.
69299         * sysdeps/i386/stackguard-macros.h: Likewise.
69300         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
69301         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
69302         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
69303         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
69304         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
69305         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
69306         * sysdeps/x86_64/stackguard-macros.h: Likewise.
69307         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
69308         <elf/stackguard-macros.h>.
69309
69310         [BZ #14109]
69311         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
69312         __aligned__ in attribute.
69313         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
69314         (gregset_t): Likewise.
69315
69316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69317
69318         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
69319         * sysdeps/x86_64/64/Implies-after: Here.  New file.
69320         * sysdeps/x86_64/x32/Implies-after: New file.
69321
69322 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69323
69324         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
69325         and access return value for _dl_profile_fixup.  Use R10_LP to
69326         load frame size.
69327
69328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69329
69330         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
69331
69332 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69333
69334         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
69335         * sysdeps/x86_64/x32/sysdep.h: New file.
69336
69337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69338
69339         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
69340         * sysdeps/x86_64/setjmp.S: Likewise.
69341
69342 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69343
69344         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
69345         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
69346         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
69347         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
69348         remove unused global constant.
69349
69350 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
69351
69352         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
69353         include of <not-cancel.h>.
69354
69355 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69356
69357         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
69358
69359 2012-05-15  Jeff Law  <law@redhat.com>
69360             Andreas Jaeger  <aj@suse.de>
69361
69362         [BZ #13594]
69363         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
69364         out from...
69365         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
69366         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
69367         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
69368         code changing __hst_map_handle.map.
69369
69370 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69371
69372         * configure.in (sysnames): Look for Implies-before and Implies-after
69373         files.
69374         * configure: Regenerated.
69375
69376 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69377
69378         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
69379         8-byte data alignment with LP_SIZE alignment.
69380
69381 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69382
69383         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
69384         into R10_LP.
69385
69386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69387
69388         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
69389
69390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69391
69392         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
69393         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
69394         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
69395         Likewise.
69396         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
69397
69398 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69399
69400         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
69401         (stackinfo_sub_sp): Likewise.
69402
69403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69404
69405         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
69406         RAX_LP.
69407
69408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69409
69410         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
69411         into R*_LP.
69412
69413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69414
69415         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
69416         sizes into R*_LP.
69417
69418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69419
69420         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
69421
69422 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69423
69424         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
69425         into R11_LP and load __x86_64_shared_cache_size_half into
69426         R8_LP.
69427
69428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69429
69430         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
69431         R8_LP.
69432
69433 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69434
69435         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
69436         logb for POWER7.
69437         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
69438         logbf for POWER7.
69439         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
69440         logbl for POWER7.
69441         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
69442         powerpc32/power7/fpu/s_logb.c via #include.
69443         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
69444         powerpc32/power7/fpu/s_logbf.c via #include.
69445         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
69446         powerpc32/power7/fpu/s_logbl.c via #include.
69447
69448 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69449
69450         * README.libm: Remove file.
69451
69452 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69453
69454         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
69455         count for x32.  Use R*_LP and omit operand-size suffix.
69456
69457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69458
69459         * shlib-versions: Move x86_64-.*-linux.* entries to ...
69460         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
69461         * sysdeps/x86_64/x32/shlib-versions: New file.
69462
69463 2012-05-14  Roland McGrath  <roland@hack.frob.com>
69464
69465         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
69466         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
69467         Use _dl_fatal_printf instead.
69468
69469 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69470
69471         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
69472         set if not set by the user.  Do not allow for being unset.
69473         * sysdeps/unix/sysv/linux/configure: Regenerated.
69474
69475 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69476
69477         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
69478         the `q' suffix from lea and replace .quad with ASM_ADDR.
69479
69480 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69481
69482         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
69483         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
69484         instead of $17.
69485         (PTR_DEMANGLE): Likewise.
69486
69487 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69488
69489         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
69490         (LP_OP): Likewise.
69491         (ASM_ADDR): Likewise.
69492         (RAX_LP): Likewise.
69493         (RBP_LP): Likewise.
69494         (RBX_LP): Likewise.
69495         (RCX_LP): Likewise.
69496         (RDI_LP): Likewise.
69497         (RSI_LP): Likewise.
69498         (RSP_LP): Likewise.
69499         (R8_LP): Likewise.
69500         (R9_LP): Likewise.
69501         (R10_LP): Likewise.
69502         (R10_LP): Likewise.
69503         (R11_LP): Likewise.
69504         (R12_LP): Likewise.
69505         (R13_LP): Likewise.
69506         (R14_LP): Likewise.
69507         (R15_LP): Likewise.
69508
69509 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69510
69511         * sysdeps/x86_64/x32/dl-machine.h: New file.
69512
69513 2012-05-14  Andreas Jaeger  <aj@suse.de>
69514
69515         * manual/Makefile (subdir): Remove export of subdir.
69516         (all): Remove target.
69517         (.PHONY): Remove all from list.
69518         (mkinstalldirs): Remove.
69519         (.PHONY): Remove installdirs from list.
69520         ($(inst_infodir)/libc.info): Use make-target-directory.
69521         (installdirs): Remove.
69522         (subdir_%): Remove.
69523         (glibc-targets): Remove.
69524         (lib): Remove.
69525         (stubs): Remove.
69526         ($(objpfx)stubs ../po/manual.pot): Remove.
69527         ($(objpfx)stamp%): Remove.
69528         (make-target-directory): Remove.
69529         (subdir_install): Remove.
69530         (routines): Remove.
69531         (aux): Remove.
69532         (sources): Remove.
69533         (objects): Remove.
69534         (headers): Remove.
69535
69536         [BZ #13750]
69537         * manual/.gitignore: Remove, it's not needed anymore.
69538         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
69539         all files in it.
69540         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
69541         directory.
69542         (texis): Renamed to $(objpfx)texis.
69543         (texis-path): New, contains path to generated files.
69544         (chapters.%): Use texis-path for complete path, add extra argument
69545         libc-texinfo.sh.
69546         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
69547         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
69548         (summary,texi, stamp-summary): Use complete path of
69549         files. Generate files in build dir.
69550         (dir-add.texi): Build in build dir.
69551         (libm-err.texi,stamp-libm-err): Likewise.
69552         (version.texi, stamp-version): Likewise.
69553         (.%c.texi): Likewise.
69554         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69555         (mostlyclean): Remove target.
69556         (realclean): Remove target.
69557         (generated): Add new variable with contents from mostlyclean and
69558         realclean, remove entries duplicated in common-mostlyclean, add
69559         stamp-libm-err and stamp-version.
69560         (generated-dirs): Add libc directory.
69561         ($(inst_infodir)/libc.info): Install files from build dir.
69562
69563         * manual/install.texi (Configuring and compiling): Adjust since
69564         the info files are not part of the tar ball anymore.
69565
69566 2012-05-14  Andreas Jaeger  <aj@suse.de>
69567
69568         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69569         variable.
69570
69571 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69572
69573         [BZ #13717]
69574         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69575         to 2.2.0 where earlier.
69576         * sysdeps/unix/sysv/linux/configure: Regenerated.
69577         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69578         Remove conditional code.
69579         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69580         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69581         Remove conditional code.
69582         [!__NR_lchown]: Likewise.
69583         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69584         [__NR_lchown]: Likewise.
69585         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69586         comment referencing __ASSUME_LCHOWN_SYSCALL.
69587         * sysdeps/unix/sysv/linux/i386/sigaction.c
69588         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69589         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69590         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69591         Remove conditional code.
69592         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69593         (__protocol_available): Remove #if 0 code.
69594         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69595         conditional code.
69596         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69597         * sysdeps/unix/sysv/linux/kernel-features.h
69598         (__ASSUME_GETCWD_SYSCALL): Don't define.
69599         (__ASSUME_REALTIME_SIGNALS): Likewise.
69600         (__ASSUME_PREAD_SYSCALL): Likewise.
69601         (__ASSUME_PWRITE_SYSCALL): Likewise.
69602         (__ASSUME_POLL_SYSCALL): Likewise.
69603         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69604         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69605         non-SPARC.
69606         (__ASSUME_SIOCGIFNAME): Don't define.
69607         (__ASSUME_MSG_NOSIGNAL): Likewise.
69608         (__ASSUME_SENDFILE): Define unconditionally.
69609         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69610         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69611         conditional code.
69612         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69613         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69614         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69615         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69616         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69617         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69618         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69620         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69621         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69623         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69624         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69626         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69627         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69629         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69630         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69632         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69633         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69635         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69638         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69639         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69641         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69643         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69644         Remove conditional code.
69645         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69646         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69647         Remove conditional code.
69648         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69649         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69650         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69651         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69652         Remove conditional code.
69653         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69654         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69655         Remove conditional code.
69656         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69657         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69658         Remove conditional code.
69659         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69660         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69661         Remove conditional code.
69662         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69663         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69664         Remove conditional code.
69665         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69666         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69667         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69668         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69669         * sysdeps/unix/sysv/linux/sigaction.c
69670         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69671         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69672         * sysdeps/unix/sysv/linux/sigpending.c
69673         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69674         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69675         * sysdeps/unix/sysv/linux/sigprocmask.c
69676         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69677         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69678         * sysdeps/unix/sysv/linux/sigsuspend.c
69679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69681         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69682         (__libc_missing_rt_sigs): Remove.
69683         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69684         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69685         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69686         Remove conditional code.
69687         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69688         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69689         return 1.
69690         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69691         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69692         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69693         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69694
69695 2012-05-14  Andreas Jaeger  <aj@suse.de>
69696
69697         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69698         it's not used in glibc.
69699         (__coshm1): Likewise.
69700         (__acosh1p): Likewise.
69701         (__sgn): Likewise.
69702
69703         * manual/string.texi (Copying and Concatenation): Add missing
69704         variable in concat example.
69705         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69706
69707 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69708
69709         [BZ #14103]
69710         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69711         __builtin_clzl with __builtin_clzll.
69712
69713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69714
69715         [BZ #14104]
69716         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69717         libc_freeres_ptr.
69718
69719 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69720
69721         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69722         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69723         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69724         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69725
69726 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69727
69728         * NEWS: Update ia64 info.
69729
69730 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69731
69732         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69733         used as bcopy.
69734
69735 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69736
69737         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69738         * sysdeps/unix/syscalls.list (dup3): Likewise.
69739         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69740         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69741
69742 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69743
69744         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69745         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69746
69747 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69748
69749         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69750         thread pointer.
69751         (TLS_IE): Use mov/add instead of movq/addq to load thread
69752         pointer.
69753         (TLS_GD_PREFIX): New.
69754         (TLS_GD): Use it.
69755
69756 2012-05-11  David S. Miller  <davem@davemloft.net>
69757
69758         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69759         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69760         (_FPU_SETCW): Likewise.
69761
69762 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69763
69764         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69765         is 32-byte aligned.
69766
69767 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69768
69769         [BZ #11837]
69770         * iconvdata/gb18030.c: Update tables.
69771         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69772         characters specially.
69773         (BODY for TO_LOOP): Add encoding of missing ranges.
69774
69775 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69776
69777         [BZ #13673]
69778         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69779         * sysdeps/mach/hurd/dup3.c: Likewise.
69780         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69781         * sysdeps/powerpc/memmove.c:: Likewise.
69782
69783 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69784
69785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69786         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69787
69788 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69789
69790         * elf/elf.h (R_X86_64_RELATIVE64): New.
69791         (R_X86_64_NUM): Updated.
69792         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69793         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69794         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69795         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69796         tst-quad1pie tst-quad2pie
69797         (modules-names): Add tst-quadmod1 tst-quadmod2.
69798         ($(objpfx)tst-quad1): New dependency.
69799         ($(objpfx)tst-quad2): Likewise.
69800         ($(objpfx)tst-quad1pie): Likewise.
69801         ($(objpfx)tst-quad2pie): Likewise.
69802         * sysdeps/x86_64/tst-quad1.c: New file.
69803         * sysdeps/x86_64/tst-quad1pie.c: New file.
69804         * sysdeps/x86_64/tst-quad2.c: Likewise.
69805         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69806         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69807         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69808         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69809         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69810
69811 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69812
69813         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69814         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69815         * streams/stropts.h (t_scalar_t): Define type.
69816
69817         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69818         (_PATH_PRESERVE): Set to "/var/lib".
69819         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69820
69821         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69822         instead of int.
69823
69824         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69825         if __dir_mkfile succeeded.
69826
69827         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69828         checking for _hurd_dtablesize.  Unlock it right after having
69829         finished _hurd_dtable allocation.
69830
69831 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69832
69833         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69834         * sysdeps/mach/hurd/configure: Regenerated.
69835         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69836         special-casing to...
69837         * sysdeps/gnu/configure.in: ... this new file.
69838         * sysdeps/unix/sysv/linux/configure: Regenerated.
69839         * sysdeps/gnu/configure: New generated file.
69840
69841         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69842         for Linux: use nsec instead of usec, as well as:
69843         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69844         members of type struct timespec.
69845         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69846         New macros.
69847         (struct stat64): Likewise.
69848         (_STATBUF_ST_NSEC): New macro.
69849         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69850
69851         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69852         __strtoul_internal rather than strtoul.
69853
69854 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69855
69856         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69857         and reject them.
69858
69859 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69860
69861         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69862         which preserves existing values.
69863         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69864
69865 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69866
69867         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69868         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69869         greater than FD_SETSIZE.
69870
69871 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69872
69873         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69874         allocated, call __vm_protect to finish enabling the existing space, and
69875         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69876         allocate the remainder.
69877
69878 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69879
69880         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69881         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69882
69883 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69884
69885         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69886         sysdeps/mach/hurd/readlink.c.
69887
69888         * posix/tst-sysconf.c (posix_options): Only use
69889         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69890         _POSIX_SYNCHRONIZED_IO when they are defined
69891         * sysdeps/mach/hurd/bits/posix_opt.h:
69892         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69893         (_XOPEN_REALTIME): Undefine macro.
69894         (_XOPEN_REALTIME_THREADS): Undefine macro.
69895         (_XOPEN_SHM): Undefine macro.
69896         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69897         macro to -1.
69898         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69899         macro to -1.
69900         (_POSIX_ASYNC_IO): Undefine macro.
69901         (_POSIX_PRIORITIZED_IO): Undefine macro.
69902         (_POSIX_SPIN_LOCKS): Define macro to -1.
69903
69904         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69905         SA_NODEFER, SA_RESETHAND.
69906         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69907         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69908         F_DUPFD_CLOEXEC.
69909
69910 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69911
69912         * elf/Makefile (pldd-modules): Define unconditionally.
69913
69914 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69915
69916         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69917
69918 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69919
69920         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69921         Return ENOENT when name is empty.
69922         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69923
69924 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69925
69926         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69927
69928         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69929
69930 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69931
69932         Fix mlock in all cases except non-readable pages.
69933         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69934         instead of VM_PROT_ALL as parameter to __vm_wire function.
69935
69936         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69937         (__mkdir): When path is `/', just fail with EEXIST.
69938         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69939
69940 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69941
69942         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69943         <sys/uio.h> (for writev).
69944         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69945         and <sys/param.h> (for MIN).
69946
69947 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69948
69949         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69950         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69951         if interrupted.
69952
69953 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69954
69955         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69956         Depend on against $(link-rpcuserlibs).
69957
69958 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69959
69960         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69961         (__libc_stack_end): Do not use attribute_relro.
69962         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69963         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69964         to libthread-provided value.
69965         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69966         attribute_relro.
69967
69968 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69969
69970         [BZ #3748]
69971         * bits/libc-lock.h (__libc_once_get): New macro.
69972         * sysdeps/mach/bits/libc-lock.h: Likewise.
69973         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69974         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69975         instead of using implementation details.
69976
69977         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69978         * libio/freopen.c: Likewise.
69979         * libio/freopen64.c: Likewise.
69980         * misc/syslog.c: Likewise.
69981         * nscd/connections.c: Likewise.
69982         * nscd/netgroupcache.c: Likewise.
69983         * sysdeps/posix/getcwd.c: Likewise.
69984
69985 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69986
69987         * math/w_ilogbf.c: Add #include <limits.h>.
69988
69989 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69990
69991         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69992         path instead of returning without unlocking.
69993
69994         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69995         immediate-write ioctls.
69996         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69997
69998 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69999
70000         * sysdeps/mach/hurd/i386/init-first.c (init): Use
70001         __builtin_frame_address instead of making assumptions about the
70002         location of the return address relative to DATA.  Force early load of
70003         the return address.
70004         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
70005         __builtin_frame_address.
70006
70007         dup3 for GNU Hurd.
70008         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
70009         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
70010         implement dup3 and do some further code clean-ups.
70011         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
70012         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
70013
70014 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70015
70016         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
70017
70018         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
70019         HURD_CRITICAL_END around holding _hurd_dtable_lock.
70020         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
70021         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
70022         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
70023         d->port.lock.
70024
70025         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
70026         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
70027         when handler == SIG_ERR, not when handler != SIG_ERR.
70028
70029 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70030
70031         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
70032         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
70033         definitions.
70034
70035         accept4 for GNU Hurd.
70036         * include/sys/socket.h (__libc_accept4): New prototype.
70037         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
70038         to implement __libc_accept4.
70039         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
70040         __libc_accept4.
70041         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
70042
70043         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
70044         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
70045         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
70046         signal-defines.sym.
70047
70048 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70049
70050         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
70051
70052 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70053
70054         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
70055         assertion on O_CLOEXEC flag.
70056         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
70057         * hurd/intern-fd.c: Likewise.
70058         * hurd/port2fd.c: Likewise.
70059
70060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70061
70062         [BZ #3906]
70063         * bits/in.h (IPV6_PKTINFO): Define new macro.
70064         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
70065
70066 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70067
70068         [BZ #13954]
70069         [BZ #13955]
70070         [BZ #13956]
70071         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
70072         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
70073         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
70074         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
70075         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
70076         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
70077         * math/libm-test.inc (logb_test) : Additional logb tests.
70078
70079 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
70080             Andreas Jaeger  <aj@suse.de>
70081
70082         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
70083         * configure: Regenerated.
70084         * config.h.in (LINK_OBSOLETE_RPC): New macro.
70085         * config.make.in (link-obsolete-rpc): New substituted variable.
70086         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
70087         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
70088         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
70089         (shared-only-routines): Don't set it under [link-obsolete-rpc],
70090         so that libc.a contains the symbols.
70091         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
70092         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
70093         * sunrpc/auth_none.c: Likewise.
70094         * sunrpc/auth_unix.c: Likewise.
70095         * sunrpc/authdes_prot.c: Likewise.
70096         * sunrpc/authuxprot.c: Likewise.
70097         * sunrpc/clnt_gen.c: Likewise.
70098         * sunrpc/clnt_perr.c: Likewise.
70099         * sunrpc/clnt_raw.c: Likewise.
70100         * sunrpc/clnt_simp.c: Likewise.
70101         * sunrpc/clnt_tcp.c: Likewise.
70102         * sunrpc/clnt_udp.c: Likewise.
70103         * sunrpc/clnt_unix.c: Likewise.
70104         * sunrpc/des_crypt.c: Likewise.
70105         * sunrpc/des_soft.c: Likewise.
70106         * sunrpc/get_myaddr.c: Likewise.
70107         * sunrpc/key_call.c: Likewise.
70108         * sunrpc/key_prot.c: Likewise.
70109         * sunrpc/netname.c: Likewise.
70110         * sunrpc/pm_getmaps.c: Likewise.
70111         * sunrpc/pm_getport.c: Likewise.
70112         * sunrpc/pmap_clnt.c: Likewise.
70113         * sunrpc/pmap_prot.c: Likewise.
70114         * sunrpc/pmap_prot2.c: Likewise.
70115         * sunrpc/pmap_rmt.c: Likewise.
70116         * sunrpc/publickey.c: Likewise.
70117         * sunrpc/rpc_cmsg.c: Likewise.
70118         * sunrpc/rpc_common.c: Likewise.
70119         * sunrpc/rpc_dtable.c: Likewise.
70120         * sunrpc/rpc_prot.c: Likewise.
70121         * sunrpc/rpc_thread.c: Likewise.
70122         * sunrpc/rtime.c: Likewise.
70123         * sunrpc/svc.c: Likewise.
70124         * sunrpc/svc_auth.c: Likewise.
70125         * sunrpc/svc_raw.c: Likewise.
70126         * sunrpc/svc_run.c: Likewise.
70127         * sunrpc/svc_tcp.c: Likewise.
70128         * sunrpc/svc_udp.c: Likewise.
70129         * sunrpc/svc_unix.c: Likewise.
70130         * sunrpc/svcauth_des.c: Likewise.
70131         * sunrpc/xcrypt.c: Likewise.
70132         * sunrpc/xdr.c: Likewise.
70133         * sunrpc/xdr_array.c: Likewise.
70134         * sunrpc/xdr_float.c: Likewise.
70135         * sunrpc/xdr_intXX_t.c: Likewise.
70136         * sunrpc/xdr_mem.c: Likewise.
70137         * sunrpc/xdr_rec.c: Likewise.
70138         * sunrpc/xdr_ref.c: Likewise.
70139         * sunrpc/xdr_sizeof.c: Likewise.
70140         * sunrpc/xdr_stdio.c: Likewise.
70141
70142 2012-05-10  Roland McGrath  <roland@hack.frob.com>
70143
70144         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
70145         change.  Update copyright years.
70146
70147 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
70148
70149         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
70150
70151 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
70152             Joseph Myers  <joseph@codesourcery.com>
70153             Paul Pluzhnikov  <ppluzhnikov@google.com>
70154
70155         [BZ #14012]
70156         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
70157         requiring rpcgen.
70158         [cross-compiling] (extra-libs): Likewise.
70159         [cross-compiling] (extra-libs-others): Likewise.
70160         [cross-compiling] (librpcsvc-routines): Likewise.
70161         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
70162         [cross-compiling] (omit-deps): Likewise.
70163         (sunrpc-CPPFLAGS): New variable.
70164         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
70165         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
70166         (cross-rpcgen-objs): New variable.
70167         (extra-objs): Append $(cross-rpcgen-objs).
70168         ($(cross-rpcgen-objs)): New rule.
70169         ($(objpfx)cross-rpcgen): Likewise.
70170         (rpcgen-cmd): Define to use $(built-program-file).  Expand
70171         comment.
70172         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
70173         ($(objpfx)x%.stmp): Likewise.
70174         * sunrpc/proto.h [IS_IN_build] (_): Define.
70175         [IS_IN_build] (_libc_intl_domainname): Likewise.
70176
70177 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
70178
70179         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
70180         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
70181         and R_X86_64_TPOFF64.
70182
70183 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
70184
70185         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
70186         sysdeps/unix/sysv/syscalls.list.
70187         (stime): Likewise.
70188         (utime): Likewise.
70189         * sysdeps/unix/sysv/syscalls.list: Remove file.
70190
70191 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         [BZ #3440]
70194         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
70195         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
70196         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
70197         (__LC_IDENTIFICATION): Make these macros useful in #if
70198         expressions, as required by C99.
70199
70200 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
70201
70202         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
70203         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
70204         after this.
70205
70206 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
70207
70208         * stdlib/longlong.h: Updated from GCC.
70209
70210 2012-05-09  Andreas Jaeger  <aj@suse.de>
70211
70212         * nscd/nscd.c (run_modes): Make named enum, reorder so that
70213         default is first entry.
70214         (run_mode): Set type.
70215         (main): Remove informal message about syslog.
70216         (options): Fix typo.
70217
70218         [BZ #14053]
70219         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
70220         to asm.
70221         (lrint): Likewise.
70222         (llrintf): Likewise.
70223         (llrint): Likewise.
70224         (rint): Likewise.
70225         (rintf): Likewise.
70226         (nearbyint): Likewise.
70227         (nearbyintf): Likewise.
70228
70229 2012-05-09  Andreas Jaeger  <aj@suse.de>
70230             Pedro Alves  <palves@redhat.com>
70231
70232         * nscd/nscd.c (run_mode): Use enum.
70233         (main): Cleanup coding style issue.
70234
70235 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
70236             Andreas Jaeger  <aj@suse.de>
70237
70238         * nscd/nscd.c (go_background): Replaced with...
70239         (run_mode): ... this.
70240         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
70241         (options): Add -F --foreground.
70242         (main): Implement it.
70243         (parse_opt): Parse it.
70244
70245 2012-05-09  Andreas Jaeger  <aj@suse.de>
70246
70247         [BZ #14083]
70248         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
70249         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
70250         -Wconversion warning.
70251         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
70252         Likewise.
70253
70254 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
70255
70256         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
70257         == 0.
70258         (LC_ALL): Use macro-int-constant.
70259         (LC_COLLATE): Likewise.
70260         (LC_CTYPE): Likewise.
70261         (LC_MESSAGES): Likewise.
70262         (LC_MONETARY): Likewise.
70263         (LC_NUMERIC): Likewise.
70264         (LC_TIME): Likewise.
70265         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
70266         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70267         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70268         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
70269         Specify type.
70270         [C99-based standards] (float_t): Expect type.
70271         [C99-based standards] (double_t): Expect type.
70272         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
70273         type.
70274         [C99-based standards] (HUGE_VALL): Likewise.
70275         [C99-based standards] (INFINITY): Likewise.
70276         [C99-based standards] (NAN): Likewise.
70277         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
70278         [C99-based standards] (FP_NAN): Likewise.
70279         [C99-based standards] (FP_NORMAL): Likewise.
70280         [C99-based standards] (FP_SUBNORMAL): Likewise.
70281         [C99-based standards] (FP_ZERO): Likewise.
70282         [C99-based standards] (FP_FAST_FMA): Use
70283         optional-macro-int-constant.  Specify type.  Require == 1.
70284         [C99-based standards] (FP_FAST_FMAF): Likewise.
70285         [C99-based standards] (FP_FAST_FMAL): Likewise.
70286         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
70287         [C99-based standards] (FP_ILOGBNAN): Likewise.
70288         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
70289         Specify type.
70290         [C99-based standards] (MATH_ERREXCEPT): Likewise.
70291         [C99-based standards] (math_errhandling): Specify type.
70292         [ISO99 || ISO11] (signgam): Do not allow.
70293         [non-C99-based standards] (copysignf): Do not allow.
70294         [non-C99-based standards] (exp2f): Likewise.
70295         [non-C99-based standards] (log2f): Likewise.
70296         [non-C99-based standards] (modff): Allow.
70297         [non-C99-based standards] (erff): Do not allow.
70298         [non-C99-based standards] (erfcf): Likewise.
70299         [non-C99-based standards] (gammaf): Likewise.
70300         [non-C99-based standards] (hypotf): Likewise.
70301         [non-C99-based standards] (j0f): Likewise.
70302         [non-C99-based standards] (j1f): Likewise.
70303         [non-C99-based standards] (jnf): Likewise.
70304         [non-C99-based standards] (lgammaf): Likewise.
70305         [non-C99-based standards] (tgammaf): Likewise.
70306         [non-C99-based standards] (y0f): Likewise.
70307         [non-C99-based standards] (y1f): Likewise.
70308         [non-C99-based standards] (ynf): Likewise.
70309         [non-C99-based standards] (isnanf): Likewise.
70310         [non-C99-based standards] (acoshf): Likewise.
70311         [non-C99-based standards] (asinhf): Likewise.
70312         [non-C99-based standards] (atanhf): Likewise.
70313         [non-C99-based standards] (cbrtf): Likewise.
70314         [non-C99-based standards] (expm1f): Likewise.
70315         [non-C99-based standards] (ilogbf): Likewise.
70316         [non-C99-based standards] (log1pf): Likewise.
70317         [non-C99-based standards] (logbf): Likewise.
70318         [non-C99-based standards] (nextafterf): Likewise.
70319         [non-C99-based standards] (remainderf): Likewise.
70320         [non-C99-based standards] (rintf): Likewise.
70321         [non-C99-based standards] (scalbf): Likewise.
70322         [non-C99-based standards] (copysignl): Likewise.
70323         [non-C99-based standards] (exp2l): Likewise.
70324         [non-C99-based standards] (log2l): Likewise.
70325         [non-C99-based standards] (modfl): Allow.
70326         [non-C99-based standards] (erfl): Do not allow.
70327         [non-C99-based standards] (erfcl): Likewise.
70328         [non-C99-based standards] (gammal): Likewise.
70329         [non-C99-based standards] (hypotl): Likewise.
70330         [non-C99-based standards] (j0l): Likewise.
70331         [non-C99-based standards] (j1l): Likewise.
70332         [non-C99-based standards] (jnl): Likewise.
70333         [non-C99-based standards] (lgammal): Likewise.
70334         [non-C99-based standards] (tgammal): Likewise.
70335         [non-C99-based standards] (y0l): Likewise.
70336         [non-C99-based standards] (y1l): Likewise.
70337         [non-C99-based standards] (ynl): Likewise.
70338         [non-C99-based standards] (isnanl): Likewise.
70339         [non-C99-based standards] (acoshl): Likewise.
70340         [non-C99-based standards] (asinhl): Likewise.
70341         [non-C99-based standards] (atanhl): Likewise.
70342         [non-C99-based standards] (cbrtl): Likewise.
70343         [non-C99-based standards] (expm1l): Likewise.
70344         [non-C99-based standards] (ilogbl): Likewise.
70345         [non-C99-based standards] (log1pl): Likewise.
70346         [non-C99-based standards] (logbl): Likewise.
70347         [non-C99-based standards] (nextafterl): Likewise.
70348         [non-C99-based standards] (remainderl): Likewise.
70349         [non-C99-based standards] (rintl): Likewise.
70350         [non-C99-based standards] (scalbl): Likewise.
70351         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70352         [non-C99-based standards] (FP_*): Do not allow.
70353         [C99-based standards] (FP_*): Change to
70354         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70355         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70356         allow.
70357         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
70358         (SIG_ERR): Likewise.
70359         [X/Open-based standards] (SIG_HOLD): Likewise.
70360         (SIG_IGN): Likewise.
70361         (SIGABRT): Use macro-int-constant.  Specify type.  Require
70362         positive value.
70363         (SIGFPE): Likewise.
70364         (SIGILL): Likewise.
70365         (SIGINT): Likewise.
70366         (SIGSEGV): Likewise.
70367         (SIGTER): Likewise.
70368         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
70369         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
70370         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
70371         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
70372         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
70373         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
70374         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
70375         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
70376         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
70377         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
70378         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
70379         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
70380         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
70381         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
70382         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
70383         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
70384         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
70385         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
70386         [X/Open-based standards] (SIGTRAP): Likewise.
70387         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
70388         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
70389         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
70390         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
70391         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70392         allow.
70393
70394 2012-05-08  Ian Wienand  <ianw@vmware.com>
70395
70396         [BZ #14080]
70397         * time/tzset.c (__tzset_parse_tz): Update default rules for
70398         daylight time changes in the Energy Policy Act of 2005.
70399
70400 2012-05-09  Andreas Jaeger  <aj@suse.de>
70401
70402         [BZ #13983]
70403         * elf/ldconfig.c (parse_conf): Change string to make clear that
70404         ldconfig only issued a warning if ld.so.conf does not exist.
70405
70406 2012-05-08  David S. Miller  <davem@davemloft.net>
70407
70408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
70409         movxtod instead of popping the value on the stack.
70410
70411         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70412
70413 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
70414
70415         * config.h.in: Add HAVE_ARM_PCS_VFP.
70416
70417 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
70418
70419         [BZ #13979]
70420         * include/features.h: Warn if user requests __FORTIFY_SOURCE
70421         checking but the checks are disabled for any reason.
70422
70423 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
70424
70425         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
70426         and ELF64_R_TYPE with ELFW(R_TYPE).
70427
70428 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
70429
70430         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
70431         (ulimit): Likewise.
70432
70433         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
70434         (settimeofday): Likewise.
70435
70436 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
70437
70438         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
70439         a struct th_u2 inside the union, and move tu_block/tu_code into
70440         a new th_u3 union of tu_block/tu_code inside of that.  Move
70441         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
70442         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
70443         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
70444         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
70445         (th_stuff): Change to th_u1.tu_stuff.
70446         (th_data): Define.
70447         (th_msg): Change to th_u1.th_u2.tu_data.
70448
70449 2012-05-07  David S. Miller  <davem@davemloft.net>
70450
70451         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70452
70453         [BZ #14074]
70454         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
70455         (SETUP_PIC_REG): Use it.
70456         (SETUP_PIC_REG_LEAF): Use it.
70457
70458 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
70459
70460         [BZ #13885]
70461         [BZ #13923]
70462         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70463         USE_AS_EXPM1L.
70464         (EXPL_FINITE): Likewise.
70465         (FLDLOG): Likewise.
70466         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70467         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70468         e_expl.S.
70469         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70470         USE_AS_EXPM1L.
70471         (EXPL_FINITE): Likewise.
70472         (FLDLOG): Likewise.
70473         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70474         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70475         e_expl.S.
70476         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
70477         test of -max_value argument for long double.
70478         * sysdeps/i386/fpu/libm-test-ulps: Update.
70479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70480
70481 2012-05-06  David S. Miller  <davem@davemloft.net>
70482
70483         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
70484         quad soft-float symbols whose references which are compiler
70485         generated.
70486         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
70487
70488 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
70489
70490         [BZ #13884]
70491         [BZ #13914]
70492         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70493         USE_AS_EXP10L.
70494         (EXPL_FINITE): Likewise.
70495         (FLDLOG): Likewise.
70496         (c0): Likewise.
70497         (c1): Likewise.
70498         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70499         Adjust comments for base varying.
70500         (__expl_finite): Change alias to EXPL_FINITE.
70501         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
70502         e_expl.S.
70503         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
70504         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
70505         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
70506         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
70507         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70508         USE_AS_EXP10L.
70509         (EXPL_FINITE): Likewise.
70510         (FLDLOG): Likewise.
70511         (c0): Likewise.
70512         (c1): Likewise.
70513         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70514         Adjust comments for base varying.
70515         (__expl_finite): Change alias to EXPL_FINITE.
70516         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
70517         tests for bugs.
70518         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70519
70520         [BZ #14064]
70521         * math/libm-test.inc (check_float_internal): Correct ulp
70522         calculation for subnormal expected results.
70523
70524 2012-05-06  Andreas Jaeger  <aj@suse.de>
70525
70526         * Makeconfig (+math-flags): New, set to -frounding-math.
70527         (+cflags): Add +math-flags so that all of glibc gets compiled with
70528         it.
70529
70530         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
70531
70532 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
70533
70534         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
70535         Disable one test.
70536
70537         [BZ #13787]
70538         [BZ #13922]
70539         [BZ #14036]
70540         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
70541         (__ieee754_expl): Allow for and saturate large arguments.
70542         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
70543         (u_threshold): Likewise.
70544         (__exp): Call __ieee754_exp before checking for overflow and
70545         underflow.
70546         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
70547         (u_threshold): Likewise.
70548         (__expf): Call __ieee754_expf before checking for overflow and
70549         underflow.
70550         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70551         (u_threshold): Likewise.
70552         (__expl): Call __ieee754_expl before checking for overflow and
70553         underflow.
70554         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70555         (__ieee754_expl): Allow for and saturate large arguments.
70556         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70557         missing overflow exception on overflow.
70558         (expm1_test): Do not allow missing overflow exception on overflow.
70559
70560         * sysdeps/i386/fpu/e_expl.c: Move to ...
70561         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70562         rather than using inline asm.
70563         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70564         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70565         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70566
70567         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70568         (nice): Likewise.
70569         (poll): Likewise.
70570         (signal): Likewise.
70571         (time): Likewise.
70572         (times): Likewise.
70573
70574 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70575
70576         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70577         sysdeps/unix/common/syscalls.list.
70578         (fchmod): Likewise.
70579         (fchown): Likewise.
70580         (ftruncate): Likewise.
70581         (getrusage): Likewise.
70582         (gettimeofday): Likewise.
70583         (setpgid): Likewise.
70584         (setregid): Likewise.
70585         (setreuid): Likewise.
70586         (sigaction): Likewise.
70587         (truncate): Likewise.
70588         (vhangup): Likewise.
70589         * sysdeps/unix/common/syscalls.list: Remove file.
70590         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70591         * sysdeps/unix/sysv/linux/Implies: Likewise.
70592
70593 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70594
70595         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70596         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70597         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70598         Moved to ...
70599         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70600         Here.
70601         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70602         to ...
70603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70604         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70605         to ...
70606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70607         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70608         to ...
70609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70610         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70611         to ...
70612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70613         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70614         to ...
70615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70616         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70617         to ...
70618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70619         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70620         to ...
70621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70622         Here.
70623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70624         to ...
70625         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70626         Here.
70627         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70628         to ...
70629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70630         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70631         Moved to ...
70632         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70633         Here.
70634         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70635         to ...
70636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70637
70638 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70639
70640         * sysdeps/unix/common/bits/dirent.h: Remove file.
70641         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70642
70643         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70644         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70645         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70646         * sysdeps/unix/bsd/isatty.c: Likewise.
70647         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70648         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70649         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70650
70651 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70652
70653         [BZ #13563]
70654         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70655         long double comparison inaccuracies.
70656         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70658
70659 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70660
70661         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70662         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70663
70664 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70665
70666         [BZ #14049]
70667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70668         nonzero digits before rounding a hex value.
70669         * stdlib/tst-strtod.c (tests): Add another test.
70670
70671 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70672
70673         * sysdeps/s390/fpu/libm-test-ulps: Update.
70674
70675 2012-05-03  Andreas Jaeger  <aj@suse.de>
70676
70677         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70678         does not get optimized out.
70679         (malloc_opt_barrier): New.
70680
70681 2012-05-03  Andreas Jaeger  <aj@suse.de>
70682             Roland McGrath  <roland@hack.frob.com>
70683
70684         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70685         intermediate file deletion.
70686         (generated): Add .symlist files.
70687
70688 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70689
70690         [BZ #13775]
70691         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70692         Redirect under this condition.
70693         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70694         [__USE_GNU] (__dprintf_chk): Not under this condition.
70695         [__USE_GNU] (__vdprintf_chk): Likewise.
70696         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70697         under this condition.
70698         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70699         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70700         [__USE_XOPEN2K8] (vdprintf): Likewise.
70701         [__USE_GNU] (__dprintf_chk): Not under this condition.
70702         [__USE_GNU] (__vdprintf_chk): Likewise.
70703         [__USE_GNU] (dprintf): Likewise.
70704         [__USE_GNU] (vdprintf): Likewise.
70705
70706 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70707
70708         * elf/Makefile (common-generated): Set this instead of generated for
70709         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70710         $(all-built-dso)-derived lists.
70711
70712 2012-05-03  Andreas Jaeger  <aj@suse.de>
70713
70714         * sysdeps/i386/fpu/libm-test-ulps: Update.
70715
70716         * FAQ: Removed.
70717         * FAQ.in: Likewise.
70718         * scripts/gen-FAQ.pl: Likewise.
70719         * manual/install.texi (Installation): Point to online location of
70720         FAQ.
70721         * Makefile (files-for-dist): Remove FAQ.
70722         (FAQ): Remove.
70723
70724 2012-05-02  Allan McRae  <allan@archlinux.org>
70725
70726         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70727         (LDFLAGS-reldepmod5.so): Likewise.
70728         (LDFLAGS-reldep6mod1.so): Likewise.
70729         (LDFLAGS-reldep6mod4.so): Likewise.
70730         (LDFLAGS-reldep8mod3.so): Likewise.
70731         (LDFLAGS-unload4mod1.so): Likewise.
70732         (LDFLAGS-unload4mod2.so): Likewise.
70733         (LDFLAGS-tst-initorder): Likewise.
70734         (LDFLAGS-tst-initordera2.so): Likewise.
70735         (LDFLAGS-tst-initordera3.so): Likewise.
70736         (LDFLAGS-tst-initordera4.so): Likewise.
70737         (LDFLAGS-tst-initorderb2.so): Likewise.
70738         (LDFLAGS-noload): Likewise.
70739         (LDFLAGS-next): Likewise.
70740         (LDFLAGS-order2mod1.so): Likewise.
70741         (LDFLAGS-order2mod2.so): Likewise.
70742         (LDFLAGS-tst-initorder2): Likewise.
70743         (LDFLAGS-tst-initorder2a.so): Likewise.
70744         (LDFLAGS-tst-initorder2b.so): Likewise.
70745         (LDFLAGS-tst-initorder2c.so): Likewise.
70746         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70747
70748 2012-05-02  David S. Miller  <davem@davemloft.net>
70749
70750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70751
70752 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70753
70754         [BZ #14055]
70755         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70756
70757 2012-05-02  Andreas Jaeger  <aj@suse.de>
70758
70759         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70760         since we manipulate rounding mode.
70761         (CPPFLAGS-test-idouble.c): Likewise.
70762         (CPPFLAGS-test-ifloat.c): Likewise.
70763         (CFLAGS-test-ldouble.c): Likewise.
70764         (CFLAGS-test-double.c): Likewise.
70765         (CFLAGS-test-float.c): Likewise.
70766         (CFLAGS-test-misc.c): Likewise.
70767         (CFLAGS-test-test-fenv.c): Likewise.
70768
70769 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70770
70771         [BZ #2550]
70772         [BZ #2570]
70773         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70774         comparisons to determine direction to adjust input.
70775
70776 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70777
70778         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70779         output to the target.
70780
70781         * scripts/localplt.awk: New file.
70782         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70783         (check-localplt-CFLAGS): Variable removed.
70784         ($(all-built-dso:=.jmprel)): New static pattern rule.
70785         (generated): Add those targets.
70786         (localplt-built-dso): New variable.
70787         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70788
70789         * elf/check-localplt.c: File removed.
70790
70791         * scripts/check-execstack.awk: New file.
70792         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70793         (check-execstack-CFLAGS): Variable removed.
70794         ($(objpfx)check-execstack.h): Target removed.
70795         ($(objpfx)execstack-default): New target.
70796         (generated): Add that instead of check-execstack.h.
70797         ($(all-built-dso:=.phdr)): New static pattern rule.
70798         (generated): Add those targets.
70799         * elf/check-execstack.c: File removed.
70800
70801         * scripts/check-textrel.awk: New file.
70802         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70803         (check-textrel-CFLAGS): Variable removed.
70804         (all-built-dso): Use := to define.o
70805         ($(all-built-dso:=.dyn)): New static pattern rule.
70806         (generated): Add those targets.
70807         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70808         * config.make.in (READELF): New substituted variable.
70809         * elf/check-textrel.c: File removed.
70810
70811 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70812
70813         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70814         allow.
70815         * conform/data/ctype.h-data [C99-based standards] (isblank):
70816         Expect function.
70817         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70818         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70819         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70820         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70821         Specify type.  Require positive value.
70822         (EILSEQ): Likewise.
70823         (ERANGE): Likewise.
70824         [ISO || POSIX] (EILSEQ): Do not expect.
70825         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70826         Specify type.  Require positive value.
70827         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70828         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70829         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70830         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70831         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70832         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70833         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70834         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70835         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70836         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70837         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70838         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70839         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70840         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70841         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70842         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70843         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70844         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70845         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70846         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70847         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70848         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70849         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70850         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70851         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70852         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70853         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70854         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70855         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70856         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70857         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70858         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70859         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70860         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70861         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70862         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70863         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70864         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70865         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70866         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70867         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70868         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70869         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70870         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70871         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70872         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70873         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70874         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70875         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70876         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70877         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70878         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70879         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70880         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70881         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70882         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70883         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70884         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70885         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70886         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70887         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70888         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70889         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70890         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70891         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70892         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70893         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70894         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70895         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70896         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70897         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70898         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70899         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70900         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70901         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70902         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70903         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70904         Require >= 2.
70905         (FLT_ROUNDS): Expect as macro, not constant.
70906         (FLT_MANT_DIG): Use macro-int-constant.
70907         (DBL_MANT_DIG): Likewise.
70908         (LDBL_MANT_DIG): Likewise.
70909         (FLT_DIG): Likewise.
70910         (DBL_DIG): Likewise.
70911         (LDBL_DIG): Likewise.
70912         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70913         (DBL_MIN_EXP): Likewise.
70914         (LDBL_MIN_EXP): Likewise.
70915         (FLT_MAX_EXP): Use macro-int-constant.
70916         (DBL_MAX_EXP): Likewise.
70917         (LDBL_MAX_EXP): Likewise.
70918         (FLT_MAX_10_EXP): Likewise.
70919         (DBL_MAX_10_EXP): Likewise.
70920         (LDBL_MAX_10_EXP): Likewise.
70921         (FLT_MAX): Use macro-constant.
70922         (DBL_MAX): Likewise.
70923         (LDBL_MAX): Likewise.
70924         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70925         (DBL_EPSILON): Likewise.
70926         (LDBL_EPSILON): Likewise.
70927         (FLT_MIN): Likewise.
70928         (DBL_MIN): Likewise.
70929         (LDBL_MIN): Likewise.
70930         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70931         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70932         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70933         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70934         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70935         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70936         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70937         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70938         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70939         [ISO11] (FLT_TRUE_MIN): Likewise.
70940         [ISO11] (LDBL_TRUE_MIN): Likewise.
70941         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70942         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70943         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70944         (SCHAR_MAX): Likewise.
70945         (UCHAR_MAX): Likewise.
70946         (CHAR_MIN): Likewise.
70947         (CHAR_MAX): Likewise.
70948         (MB_LEN_MAX): Use macro-int-constant.
70949         (SHRT_MIN): Use macro-int-constant.  Specify type.
70950         (SHRT_MAX): Likewise.
70951         (USHRT_MAX): Likewise.
70952         (INT_MAX): Likewise.
70953         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70954         bound negative.
70955         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70956         bound with "U".
70957         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70958         bound with "L".
70959         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70960         bound negative.  Suffix upper bound with "L".
70961         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70962         bound with "UL".
70963         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70964         Specify type.
70965         [C99-based standards] (LLONG_MAX): Likewise.
70966         [C99-based standards] (ULLONG_MAX): Likewise.
70967         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70968         == 0.
70969         [ISO11] (max_align_t): Require type.
70970         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70971
70972         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70973         from $CFLAGS, without defining away __attribute__ calls.
70974         (checknamespace): Use $CFLAGS_namespace.
70975
70976         * conform/conformtest.pl (@keywords): Only include C99 keywords
70977         for standards based on C99 or C11.
70978
70979         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70980         Disable tests.
70981         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70982         UNIX98]: Likewise.
70983
70984         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70985         usability of symbols in #if.
70986
70987         * conform/conformtest.pl: If macro or constant types start
70988         "promoted:", expect the symbol to be of the following type
70989         promoted by the integer promotions.
70990
70991         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70992         in one place.  Also handle "macro-constant".
70993
70994         * conform/conformtest.pl: Only accept expected macro values with
70995         "==".  Parse all "macro" lines in one place.
70996         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70997
70998         * conform/conformtest.pl: Handle braced types on "constant" lines
70999         instead of handling "typed-constant".
71000         * conform/data/signal.h-data: Use "constant" instead of
71001         "typed-constant".
71002
71003         * conform/conformtest.pl: Handle "optional-" at start of lines in
71004         one place rather than duplicating several cases.  Handle each
71005         format of "macro" line with initial "optional-".
71006
71007         * conform/conformtest.pl: Only accept expected constant or
71008         optional-constant values with "==".  Parse all "constant" lines in
71009         one place.  Parse all "optional-constant" lines in one place.
71010         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
71011         * conform/data/fmtmsg.h-data: Likewise.
71012         * conform/data/netinet/in.h-data: Likewise.
71013         * conform/data/tar.h-data: Likewise.
71014         * conform/data/limits.h-data: Use "==" form on "constant" and
71015         "optional-constant" lines.
71016
71017         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
71018         Use -std=c99 for XOPEN2K.
71019         (@knownproblems): Remove.
71020         (newtoken): Don't check %isknown.
71021
71022         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
71023         Do not expect macro.
71024         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
71025         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
71026         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
71027         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
71028         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
71029         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
71030         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
71031         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
71032         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
71033         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
71034         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
71035         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
71036         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
71037         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
71038         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
71039         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
71040         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
71041         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
71042         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
71043         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
71044         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
71045         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
71046         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
71047         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
71048         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
71049         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
71050         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
71051         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
71052         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
71053         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
71054         [XPG3] (acosh): Likewise.
71055         [XPG3] (asinh): Likewise.
71056         [XPG3] (atanh): Likewise.
71057         [XPG3] (cbrt): Likewise.
71058         [XPG3] (expm1): Likewise.
71059         [XPG3] (ilogb): Likewise.
71060         [XPG3] (log1p): Likewise.
71061         [XPG3] (logb): Likewise.
71062         [XPG3] (nextafter): Likewise.
71063         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
71064         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
71065         [XPG3] (remainder): Likewise.
71066         [XPG3] (rint): Likewise.
71067         [XPG3 || XPG4 || UNIX98] (round): Likewise.
71068         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
71069         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
71070         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
71071         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
71072         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
71073         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
71074         [UNIX98 || XOPEN2K] (scalb): Expect.
71075         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
71076         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
71077         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
71078         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
71079         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
71080         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
71081         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
71082         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
71083         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
71084         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
71085         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
71086         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
71087         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
71088         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
71089         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
71090         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
71091         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
71092         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
71093         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
71094         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
71095         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
71096         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
71097         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
71098         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
71099         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
71100         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
71101         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
71102         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
71103         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
71104         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
71105         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
71106         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
71107         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
71108         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
71109         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
71110         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
71111         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
71112         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
71113         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
71114         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
71115         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
71116         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
71117         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
71118         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
71119         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
71120         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
71121         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
71122         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
71123         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
71124         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
71125         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
71126         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
71127         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
71128         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
71129         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
71130         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
71131         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
71132         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
71133         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
71134         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
71135         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
71136         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
71137         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
71138         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
71139         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
71140         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
71141         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
71142         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
71143         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
71144         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
71145         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
71146         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
71147         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
71148         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
71149         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
71150         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
71151         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
71152         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
71153         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
71154         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
71155         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
71156         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
71157         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
71158         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
71159         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
71160         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
71161         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
71162         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
71163         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
71164         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
71165         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
71166         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
71167         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
71168         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
71169         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
71170         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
71171         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
71172         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
71173         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
71174         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
71175         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
71176         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
71177         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
71178         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
71179         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
71180         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
71181         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
71182         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
71183         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
71184         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
71185         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
71186         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
71187         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
71188         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
71189         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
71190         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
71191         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
71192         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
71193         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
71194         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
71195         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
71196         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
71197         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
71198         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
71199         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
71200         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
71201         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
71202         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
71203         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
71204         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
71205         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
71206         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
71207         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
71208         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
71209         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
71210         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
71211         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
71212
71213         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
71214         _XOPEN_SOURCE_EXTENDED for XPG4.
71215
71216         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
71217
71218         * Makeconfig (localtime): Remove variable.
71219         (inst_localtime-file): Likewise.
71220
71221 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71222
71223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
71224         Update.
71225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
71226         Update.
71227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
71228         Update.
71229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
71230         Update.
71231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
71232         Update.
71233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
71234         Update.
71235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
71236         Update.
71237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
71238         Update.
71239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71240         Update.
71241
71242 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
71243
71244         [BZ #2550]
71245         [BZ #2570]
71246         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
71247         comparisons to determine direction to adjust input.
71248         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
71249         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
71250         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
71251         Likewise.
71252         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
71253         Likewise.
71254         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
71255         Likewise.
71256         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
71257         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
71258         Likewise.
71259         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
71260         Likewise.
71261         * math/libm-test.inc (nexttoward_test): Add more tests.
71262
71263 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71264
71265         [BZ #14040]
71266         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
71267         in version GLIBC_2.1, not GLIBC_2.0.
71268         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
71269         Likewise.
71270
71271 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
71272
71273         [BZ #13942]
71274         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
71275         (1 - x) * (1 + x).
71276         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71277         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
71278         * math/libm-test.inc (acos_test): Add more tests.
71279         (asin_test): Likewise.
71280         * sysdeps/i386/fpu/libm-test-ulps: Update.
71281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71282
71283         [BZ #14034]
71284         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
71285         of square root.
71286         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
71287         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71288         * math/libm-test.inc (acos_test_tonearest): New function.
71289         (acos_test_towardzero): Likewise.
71290         (acos_test_downward): Likewise.
71291         (acos_test_upward): Likewise.
71292         (asin_test_tonearest): Likewise.
71293         (asin_test_towardzero): Likewise.
71294         (asin_test_downward): Likewise.
71295         (asin_test_upward): Likewise.
71296         (main): Call the new functions.
71297         * sysdeps/i386/fpu/libm-test-ulps: Update.
71298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71299
71300         [BZ #13884]
71301         [BZ #13924]
71302         * math/e_exp10.c: Include <float.h>.
71303         (__ieee754_exp10): Handle underflow here rather than multiplying
71304         large negative argument by M_LN10.
71305         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
71306         of __ieee754_expf.
71307         * math/e_exp10l.c: Include <float.h>.
71308         (__ieee754_exp10l): Handle underflow here rather than multiplying
71309         large negative argument by M_LN10l.
71310         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
71311         spurious overflow exception on underflow.
71312
71313 2012-04-29  Marek Polacek  <polacek@redhat.com>
71314
71315         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
71316         (__fortify_function): New macro.
71317         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
71318         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
71319         __extern_always_inline.
71320         * libio/bits/stdio2.h: Likewise.
71321         * libio/bits/stdio.h: Likewise.
71322         * string/string.h: Likewise.
71323         * string/bits/string3.h: Likewise.
71324         * include/stdio.h: Likewise.
71325         * stdlib/bits/stdlib.h: Likewise.
71326         * stdlib/stdlib.h: Likewise.
71327         * rt/bits/mqueue2.h: Likewise.
71328         * rt/mqueue.h: Likewise.
71329         * posix/bits/unistd.h: Likewise.
71330         * posix/unistd.h: Likewise.
71331         * io/bits/poll2.h: Likewise.
71332         * io/bits/fcntl2.h: Likewise.
71333         * io/fcntl.h: Likewise.
71334         * io/sys/poll.h: Likewise.
71335         * misc/bits/syslog.h: Likewise.
71336         * misc/bits/syslog-ldbl.h: Likewise.
71337         * misc/sys/syslog.h: Likewise.
71338         * socket/bits/socket2.h: Likewise.
71339         * socket/sys/socket.h: Likewise.
71340         * debug/tst-chk1.c: Likewise.
71341         * wcsmbs/bits/wchar2.h: Likewise.
71342         * wcsmbs/bits/wchar-ldbl.h: Likewise.
71343         * wcsmbs/wchar.h: Likewise.
71344
71345 2012-04-29  Andreas Jaeger  <aj@suse.de>
71346
71347         * Makerules (tests): Remove enable-check-abi protection.
71348         (check-abi-warn): Remove.
71349         (check-abi-%): Remove check-abi-warn usage.
71350
71351         * configure.in: Remove check-abi configure option.
71352         * configure: Regenerated.
71353         * config.make.in (enable-check-abi): Remove.
71354
71355 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
71356
71357         [BZ #14033]
71358         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
71359         double functions to double *_finite functions.
71360
71361         [BZ #13941]
71362         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
71363         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
71364         LDBL_MIN_EXP.
71365         * stdio-common/Makefile (tests): Add tst-sprintf3.
71366         * stdio-common/tst-sprintf3.c: New file.
71367
71368         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
71369         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
71370
71371 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71372
71373         * conform/conformtest.pl: Remove duplicate typed-constant
71374         handling.
71375
71376 2012-04-28  David S. Miller  <davem@davemloft.net>
71377
71378         * Makerules (%.abilist): Add vpath on sysdep_dirs.
71379         (check-abi-%): Remove AWK script prerequisite and explicit
71380         abilist directory.
71381         (check-abi): Rewrite to just diff the symlist with the abilist.
71382         (config-tls, config-abi-config): Delete, no longer used.
71383         (update-abi-%): Remove AWK script and explicit abilist directory.
71384         (update-abi): Rewrite to simply compare and conditionally copy the
71385         symlist and the sysdep abilist file.  Remove update-abi-config
71386         checks.
71387         * abilist/ld.abilist: Remove.
71388         * abilist/libBrokenLocale.abilist: Remove.
71389         * abilist/libanl.abilist: Remove.
71390         * abilist/libcrypt.abilist: Remove.
71391         * abilist/libdl.abilist: Remove.
71392         * abilist/librt.abilist: Remove.
71393         * abilist/libthread_db.abilist: Remove.
71394         * abilist/libutil.abilist: Remove.
71395         * scripts/extract-abilist.awk: Remove.
71396         * scripts/merge-abilist.awk: Remove.
71397         * sysdeps/generic/libcidn.abilist: New file.
71398         * sysdeps/generic/libnss_compat.abilist: New file.
71399         * sysdeps/generic/libnss_db.abilist: New file.
71400         * sysdeps/generic/libnss_dns.abilist: New file.
71401         * sysdeps/generic/libnss_files.abilist: New file.
71402         * sysdeps/generic/libnss_hesiod.abilist: New file.
71403         * sysdeps/generic/libnss_nis.abilist: New file.
71404         * sysdeps/generic/libnss_nisplus.abilist: New file.
71405         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
71406         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
71407         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
71408         file.
71409         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
71410         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
71411         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
71412         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
71413         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
71414         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
71415         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
71416         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
71417         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
71418         file.
71419         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
71420         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
71421         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
71422         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
71423         file.
71424         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
71425         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
71426         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
71427         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
71428         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
71429         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
71430         file.
71431         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
71432         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
71433         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
71434         file.
71435         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
71436         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
71437         New file.
71438         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
71439         New file.
71440         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
71441         New file.
71442         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
71443         New file.
71444         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
71445         New file.
71446         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
71447         New file.
71448         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
71449         New file.
71450         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
71451         New file.
71452         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
71453         New file.
71454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
71455         New file.
71456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
71457         New file.
71458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
71459         New file.
71460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
71461         New file.
71462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
71463         file.
71464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
71465         New file.
71466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
71467         New file.
71468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
71469         file.
71470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
71471         New file.
71472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
71473         New file.
71474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
71475         file.
71476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
71477         New file.
71478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71479         New file.
71480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
71481         New file.
71482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
71483         New file.
71484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
71485         New file.
71486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
71487         New file.
71488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
71489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
71490         file.
71491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
71492         New file.
71493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
71494         file.
71495         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
71496         file.
71497         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
71498         file.
71499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
71500         file.
71501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
71502         file.
71503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
71504         New file.
71505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
71506         file.
71507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
71508         file.
71509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
71510         New file.
71511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
71512         file.
71513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
71514         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
71515         file.
71516         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
71517         New file.
71518         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
71519         file.
71520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
71521         file.
71522         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
71523         file.
71524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
71525         file.
71526         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
71527         file.
71528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
71529         New file.
71530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
71531         file.
71532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
71533         file.
71534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
71535         New file.
71536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
71537         file.
71538         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
71539         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
71540         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
71541         file.
71542         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
71543         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
71544         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
71545         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
71546         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
71547         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
71548         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
71549         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
71550         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71551         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71554         file.
71555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71556         New file.
71557         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71558         file.
71559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71560         file.
71561         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71562         file.
71563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71564         file.
71565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71566         file.
71567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71568         New file.
71569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71570         New file.
71571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71572         file.
71573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71574         New file.
71575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71576         file.
71577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71578         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71579         file.
71580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71581         New file.
71582         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71583         file.
71584         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71585         file.
71586         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71587         file.
71588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71589         file.
71590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71591         file.
71592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71593         New file.
71594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71595         New file.
71596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71597         file.
71598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71599         New file.
71600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71601         file.
71602
71603 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71604
71605         * conform/conformtest.pl: Fix typo in handling typed-constant from
71606         allow-header.
71607
71608 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71609
71610         * README: Cut down references to pre-2.6 Linux kernels and
71611         Linuxthreads.  Update lists of configurations in libc and ports
71612         and sort alphabetically.  Say "or newer" with Linux kernel version
71613         requirements.
71614
71615         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71616
71617 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71618
71619         [BZ #887]
71620         * math/libm-test.inc (logb_test_downward): New test to expose
71621         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71622         rounding mode.
71623
71624 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71625
71626         [BZ #14027]
71627         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71628         to be done.
71629         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71630         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71631
71632 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71633
71634         * sysdeps/unix/i386/brk.S: Remove file.
71635         * sysdeps/unix/i386/dl-brk.S: Likewise.
71636         * sysdeps/unix/i386/pipe.S: Likewise.
71637         * sysdeps/unix/i386/sigreturn.S: Likewise.
71638         * sysdeps/unix/i386/syscall.S: Likewise.
71639         * sysdeps/unix/i386/vfork.S: Likewise.
71640         * sysdeps/unix/i386/wait.S: Likewise.
71641
71642         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71643         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71644
71645         * configure.in (arm*-none*): Do not allow without
71646         --enable-hacker-mode.
71647         (netbsd*): Remove case setting base_os.
71648         (386bsd*): Likewise.
71649         (freebsd*): Likewise.
71650         (bsdi*): Likewise.
71651         (osf*): Likewise.
71652         (sunos*): Likewise.
71653         (ultrix*): Likewise.
71654         (newsos*): Likewise.
71655         (dynix*): Likewise.
71656         (*bsd*): Likewise.
71657         (sysv*): Likewise.
71658         (isc*): Likewise.
71659         (esix*): Likewise.
71660         (sco*): Likewise.
71661         (minix*): Likewise.
71662         (irix4*): Likewise.
71663         (irix6*): Likewise.
71664         (solaris[2-9]*): Likewise.
71665         (none): Likewise.
71666         * configure: Regenerated.
71667
71668 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71669
71670         [BZ #11521]
71671         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71672         overflow or cancellation in calculating denominator.
71673         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71674         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71675         down expression to avoid unexpected rounding in newer GCCs.
71676         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71677
71678 2012-04-26  David S. Miller  <davem@davemloft.net>
71679
71680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71681         long-double compat symbols.
71682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71695
71696 2012-04-25  David S. Miller  <davem@davemloft.net>
71697
71698         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71699         HWCAP_* values only after the memory barriers have been defined.
71700         (atomic_full_barrier): Define.
71701         (atomic_read_barrier): Define.
71702         (atomic_write_barrier): Define.
71703
71704 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71705
71706         * shlib-versions: Add libgcc_s version information.
71707         * sysdeps/generic/libgcc_s.h: Remove.
71708         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71709         libgcc_s.h.
71710         * sysdeps/gnu/unwind-resume.c: Likewise.
71711         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71712
71713 2012-04-25  David S. Miller  <davem@davemloft.net>
71714
71715         * sysdeps/unix/sparc/brk.S: Delete.
71716         * sysdeps/unix/sparc/dl-brk.S: Delete.
71717         * sysdeps/unix/sparc/pipe.S: Delete.
71718         * sysdeps/unix/sparc/sysdep.S: Delete.
71719         * sysdeps/unix/sparc/sysdep.h: Delete.
71720         * sysdeps/unix/sparc/vfork.S: Delete.
71721         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71722         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71723         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71724         (ret_ERRVAL, r0, r1, MOVE): Define.
71725         (JUMPTARGET): Remove.
71726         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71727         sysdeps/unix/sparc/sysdep.h
71728         (ENTRY, END): Remove.
71729         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71730
71731 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71732
71733         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71734         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71735         -DIS_IN_build.
71736
71737         * timezone/README: Update upstream location and email address for
71738         tzcode and tzdata.
71739         * timezone/zdump.c: Update from tzcode 2012b.
71740         * timezone/zic.c: Likewise.
71741
71742         * configure.in (libc_cv_as_needed): Remove test.
71743         * configure: Regenerated.
71744         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71745         conditional definition.
71746         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71747         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71748         * config.make.in (have-as-needed): Remove variable.
71749
71750 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71751             Paul Pluzhnikov  <ppluzhnikov@google.com>
71752
71753         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71754         strings correctly.
71755
71756 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71757
71758         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71759         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71760         * sysdeps/sh/strlen.S: Likewise.
71761
71762 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71763
71764         * sysdeps/unix/fork.S: Remove file.
71765         * sysdeps/unix/i386/fork.S: Likewise.
71766         * sysdeps/unix/sparc/fork.S: Likewise.
71767
71768         * sysdeps/unix/system.c: Remove file.
71769         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71770
71771         * sysdeps/unix/getegid.S: Remove file.
71772         * sysdeps/unix/geteuid.S: Likewise.
71773
71774 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71775
71776         * scripts/check-localplt.awk: New file.
71777         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71778         of diff.
71779         * scripts/data/localplt-generic.data: Add a comment.
71780
71781         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71782         NODE when __dir_mkfile failed.
71783         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71784         Reported by Ludovic Courtès <ludo@gnu.org>.
71785
71786 2012-04-24  Andreas Jaeger  <aj@suse.de>
71787
71788         * Makerules (common-clean): Also remove gen-as-const-headers
71789         files.
71790
71791 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71792
71793         * Makerules (native-compile): Do not change working directory for
71794         build.  Use $(OUTPUT_OPTION) in command.
71795         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71796
71797 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71798
71799         [BZ #13886]
71800         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71801         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71802         * math/libm-test.inc (floor_test): Add more tests.
71803         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71804
71805 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71806
71807         * sysdeps/unix/getdents.c: Remove file.
71808         * sysdeps/unix/sysv/getdents.c: Likewise.
71809         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71810
71811         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71812         sysdeps/unix/mman/syscalls.list.
71813         (mmap): Likewise.
71814         (mprotect): Likewise.
71815         (msync): Likewise.
71816         (munmap): Likewise.
71817         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71818         * sysdeps/unix/mman/syscalls.list: Remove.
71819         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71820
71821         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71822         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71823         * configure: Regenerated.
71824         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71825         $(libgcc_s_suffix).
71826         * config.make.in (libgcc_s_suffix): Remove variable.
71827
71828 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71829
71830         * sysdeps/unix/sysv/gethostname.c: Move to ...
71831         * sysdeps/posix/gethostname.c: ... here.
71832
71833         * sysdeps/unix/execve.S: Remove file.
71834
71835         * sysdeps/unix/_exit.S: Remove file.
71836
71837 2012-04-23  Andreas Jaeger  <aj@suse.de>
71838
71839         [BZ #13739]
71840         * manual/Makefile: Remove make dist support, there's no
71841         need for a stand-alone documentation tar ball.
71842         (TEXI2DVI): Define always, it's not in Makeconfig.
71843         (dist): Removed.
71844         (tar-it): Removed.
71845         (edition): Removed.
71846         (glibc-doc-$(edition).tar): Removed
71847         (%.Z): Removed.
71848         (%.gz): Removed.
71849         (%.uu): Removed.
71850         (ETAGS): Remove, it's in Makeconfig.
71851         (move-if-change): Remove, it's in Makeconfig.
71852
71853 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         [BZ #13970]
71856         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71857         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71858         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71859         (strtod_l, strtof_l, strtold_l): Remove __wur.
71860         It is not necessarily an error to ignore strtol's return value.
71861         One can reliably look at the stored endptr to decide whether
71862         the number had valid syntax.
71863
71864 2012-04-21  Andreas Jaeger  <aj@suse.de>
71865
71866         [BZ #13739]
71867         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71868
71869 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71870
71871         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71872         * sysdeps/unix/sysv/Versions: Remove file.
71873
71874 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71875
71876         [BZ #13927]
71877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71878
71879 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71880
71881         [BZ #7064]
71882         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71883         version from __vm86.
71884
71885 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71886
71887         * sysdeps/unix/common/lxstat.c: Remove file.
71888         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71889
71890         * sysdeps/unix/sysv/Makefile: Remove file.
71891
71892         * sysdeps/unix/sysv/direct.h: Remove file.
71893
71894         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71895         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71896         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71897         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71898         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71899         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71900         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71901
71902         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71903
71904         * sysdeps/unix/xmknod.c: Remove file.
71905         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71906
71907         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71908
71909         * sysdeps/unix/sysv/i386/time.S: Remove file.
71910
71911         * sysdeps/unix/fxstat.c: Remove file.
71912         * sysdeps/unix/xstat.c: Likewise.
71913         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71914
71915         * sysdeps/unix/sysv/sigaction.c: Remove file.
71916
71917         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71918         (sysdep_headers): Remove variable.
71919         [termio.h not in sysdep_headers] (generated): Likewise.
71920         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71921         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71922         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71923         * sysdeps/unix/sysv/tcflow.c: Likewise.
71924         * sysdeps/unix/sysv/tcflush.c: Likewise.
71925         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71926         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71927         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71928         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71929         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71930
71931         * sysdeps/unix/siglist.c: Remove file.
71932
71933         * sysdeps/unix/getppid.S: Remove file.
71934
71935         * sysdeps/unix/mkdir.c: Remove file.
71936         * sysdeps/unix/rmdir.c: Likewise.
71937
71938 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71939
71940         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71941         ERR_MAX value.
71942         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71943         errlist-compat value.
71944
71945 2012-04-18  David S. Miller  <davem@davemloft.net>
71946
71947         * sysdeps/generic/memcopy.h (reg_char): Delete.
71948         * debug/strcat_chk.c: Use char, not reg_char.
71949         * debug/strcpy_chk.c: Likewise.
71950         * debug/strncat_chk.c: Likewise.
71951         * debug/strncpy_chk.c: Likewise.
71952         * string/memchr.c: Likewise.
71953         * string/memrchr.c: Likewise.
71954         * string/rawmemchr.c: Likewise.
71955         * string/strcat.c: Likewise.
71956         * string/strchr.c: Likewise.
71957         * string/strchrnul.c: Likewise.
71958         * string/strcmp.c: Likewise.
71959         * string/strcpy.c: Likewise.
71960         * string/strncat.c: Likewise.
71961         * string/strncmp.c: Likewise.
71962         * string/strncpy.c: Likewise.
71963
71964 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71965
71966         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71967         __builtin_memcopy is called when src and dest ranges are known to not
71968         overlap.
71969
71970 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71971
71972         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71973         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71974         fwd_align_merge macro call.
71975         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71976         bwd_align_merge macro call.
71977         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71978
71979 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71980
71981         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71982         bwd_align_merge macros.
71983         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71984         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71985         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71986
71987 2012-04-18  David S. Miller  <davem@davemloft.net>
71988
71989         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71990
71991 2012-04-18  Andreas Jaeger  <aj@suse.de>
71992
71993         [BZ# 6794]
71994         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71995         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71996         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71997
71998         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71999         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
72000         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
72001
72002         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
72003         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
72004         Adjust for changed ldbl-128 files.
72005
72006         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
72007         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
72008         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
72009
72010 2012-04-17  David S. Miller  <davem@davemloft.net>
72011
72012         * sysdeps/sparc/sparc32/memcopy.h: Delete.
72013
72014 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
72015
72016         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
72017         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
72018         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
72019         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
72020         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
72021         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
72022
72023 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72024
72025         [BZ #6794]
72026         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
72027         * math/libm-test.inc: Add ilogb errno and exception tests.
72028         * math/w_ilogb.c: New file: ilogb wrapper.
72029         * math/w_ilogbf.c: New file: ilogbf wrapper.
72030         * math/w_ilogbl.c: New file: ilogbl wrapper.
72031         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
72032         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
72033         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
72034         exception being thrown with 0.0 as argument.
72035         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
72036         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
72037         exception being thrown with 0.0 as argument.
72038         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
72039         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
72040         exception being thrown with 0.0 as argument.
72041         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
72042         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
72043         exception being thrown with 0.0 as argument.
72044         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
72045         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
72046         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
72047         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
72048         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
72049         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
72050         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
72051         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
72052         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
72053
72054 2012-04-17  Petr Baudis  <pasky@ucw.cz>
72055
72056         * include/sys/uio.h: Change __vector to __iovec to avoid clash
72057         with altivec.
72058
72059 2012-04-16  Marek Polacek  <polacek@redhat.com>
72060
72061         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
72062
72063 2012-04-16  Marek Polacek  <polacek@redhat.com>
72064
72065         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
72066         operands of fdivp instruction.
72067
72068 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
72069
72070         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
72071         * elf/tst-auditmod3b.c: Likewise.
72072         * elf/tst-auditmod4b.c: Likewise.
72073         * elf/tst-auditmod5b.c: Likewise.
72074         * elf/tst-auditmod6b.c: Likewise.
72075         * elf/tst-auditmod6c.c: Likewise.
72076         * elf/tst-auditmod7b.c: Likewise.
72077         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
72078         * sysdeps/x86_64/preconfigure.in: Likewise.
72079         * sysdeps/x86_64/preconfigure: Regenerated.
72080
72081 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
72082
72083         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
72084         __ILP32__.
72085
72086 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
72087
72088         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
72089         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
72090
72091 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
72092
72093         [BZ #13973]
72094         * locale/iso-639.def: Fix gl language name. Spotted by
72095         Yaron Shahrabani.
72096
72097 2012-04-12  Roland McGrath  <roland@hack.frob.com>
72098
72099         [BZ #2074]
72100         * libio/libio.h (__io_write_fn): Update comment.
72101
72102 2012-04-12  Petr Baudis  <pasky@ucw.cz>
72103
72104         [BZ #2074]
72105         * stdio.texi (Hook Functions): The user provided writer function
72106         is not allowed to return -1.
72107
72108 2012-04-11  David S. Miller  <davem@davemloft.net>
72109
72110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72111
72112 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
72113
72114         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
72115         Add a leading slash to rtkaio.
72116
72117 2012-04-11  Jim Meyering  <meyering@redhat.com>
72118
72119         [BZ #11959]
72120         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
72121         It is not necessarily an error to ignore fwrite's return
72122         value.  One can reliably use ferror to test for errors after
72123         the fact.
72124
72125 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
72126
72127         * bits/types.h (__snseconds_t): New type.
72128         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
72129
72130         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
72131         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72132         (__SNSECONDS_T_TYPE): Likewise.
72133         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
72134         (__SNSECONDS_T_TYPE): Likewise.
72135         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72136         (__SNSECONDS_T_TYPE): Likewise.
72137
72138 2012-04-10  Andreas Jaeger  <aj@suse.de>
72139
72140         [BZ #2636]
72141         * manual/time.texi (Processor Time): Return type of times is
72142         elapsed real time since an arbitrary point in the past.
72143         (CPU Time): Move CLK_TCK from here...
72144         (Processor Time): ...to here.  Correct description.
72145         * manual/conf.texi (Constants for Sysconf): Correct description of
72146         _SC_CLK_TCK.
72147
72148 2012-04-10  David S. Miller  <davem@davemloft.net>
72149
72150         [BZ #13967]
72151         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
72152         where the is a gap between DT_REL(A) and DT_JMPREL.
72153
72154 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
72155
72156         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
72157         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72158         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72159
72160 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
72161
72162         * elf/dl-support.c (_dl_inhibit_cache): New variable.
72163         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
72164         (dl_main): Handle --inhibit-cache.
72165         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
72166         _dl_inhibit_cache.
72167         * elf/dl-load.c (_dl_map_object): Use it.
72168         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
72169
72170 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
72171
72172         [BZ #13872]
72173         * sysdeps/i386/fpu/e_powl.S (p78): New object.
72174         (__ieee754_powl): Saturate large exponents rather than testing for
72175         overflow of y*log2(x).
72176         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72177         * math/libm-test.inc (pow_test): Do not permit spurious overflow
72178         exceptions.
72179
72180         [BZ #11521]
72181         * math/s_ctan.c: Include <float.h>.
72182         (__ctan): Avoid internal overflow or cancellation in calculating
72183         denominator.
72184         * math/s_ctanf.c: Likewise.
72185         * math/s_ctanl.c: Likewise.
72186         * math/s_ctanh.c: Likewise.
72187         * math/s_ctanhf.c: Likewise.
72188         * math/s_ctanhl.c: Likewise.
72189         * math/libm-test.inc (ctan_test): Add more tests.
72190         (ctanh_test): Likewise.
72191         * sysdeps/i386/fpu/libm-test-ulps: Update.
72192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72193
72194 2012-04-09  Andreas Jaeger  <aj@suse.de>
72195
72196         [BZ #6894]
72197         * manual/filesys.texi (Directory Entries): Mention that d_namlen
72198         is an optional BSD extension.
72199
72200         [BZ #10254]
72201         * manual/stdio.texi (Opening Streams): Document additional fopen
72202         parameters.
72203
72204 2012-04-09  Roland McGrath  <roland@hack.frob.com>
72205
72206         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
72207         %eax without telling the compiler.
72208
72209 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
72210
72211         [BZ # 13963]
72212         * manual/install.texi: Use sourceware.org.
72213
72214 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
72215
72216         [BZ #13873]
72217         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
72218         (__ieee754_pow): Generate overflow and underflow using huge*huge
72219         and tiny*tiny rather than just returning constant infinity or zero
72220         for large exponents.
72221         * math/libm-test.inc (pow_test): Require overflow exceptions for
72222         applicable cases of large exponents.
72223
72224         [BZ #706]
72225         * sysdeps/i386/fpu/e_pow.S (p10): New object.
72226         (__ieee754_pow): Use iterative multiplication algorithm only for
72227         integer exponents with absolute value below 1024.  Check for odd
72228         integer exponents when using algorithm for real exponents.
72229         * math/libm-test.inc (pow_test): Add more tests.
72230         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72231
72232 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
72233
72234         [BZ #13705]
72235         * math/libm-test.inc (exp_test): Do not allow overflow exception
72236         on underflow test.
72237
72238 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
72239
72240         [BZ #13705]
72241         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
72242         instead of __kernel_standard_f.
72243
72244 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
72245
72246         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
72247         * sysdeps/x86_64/memset_chk.S: Likewise.
72248
72249 2012-04-08  Andreas Jaeger  <aj@suse.de>
72250
72251         [BZ #10153]
72252         * manual/startup.texi (Environment Access): Describe return value
72253         for putenv and setenv.
72254
72255         [BZ #6895]
72256         * manual/filesys.texi (Directory Entries): Add description for
72257         DT_LNK.
72258
72259         [BZ #6890]
72260         * manual/filesys.texi (Directory Entries): Clarify that it's file
72261         system not operating system in the description of DT_UNKNOWN.
72262
72263         [BZ #6578]
72264         * manual/syslog.texi (closelog): Fix reference, it's openlog.
72265
72266 2012-04-08  Stephen Compall  <s11@member.fsf.org>
72267
72268         [BZ #6649]
72269         * manual/llio.texi (Opening and Closing Files): Add cross
72270         reference to explain mode argument.
72271
72272 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
72273
72274         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
72275         * sysdeps/x86_64/memset_chk.S: Likewise.
72276
72277 2012-04-07  David S. Miller  <davem@davemloft.net>
72278
72279         * elf/elf.h (R_SPARC_WDISP10): Define.
72280         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
72281         R_SPARC_SIZE32.
72282         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
72283         R_SPARC_SIZE64 and R_SPARC_H34.
72284
72285 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
72286
72287         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
72288         conditions and remove no longer applicable assertion.
72289
72290 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72291
72292         * bits/byteswap.h: Include <features.h>.
72293         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72294         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72295
72296 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72297
72298         * bits/byteswap.h (__bswap_16): Removed.
72299         Include <bits/byteswap-16.h> to get __bswap_16.
72300         * sysdeps/i386/bits/byteswap.h: Likewise.
72301         * sysdeps/s390/bits/byteswap.h: Likewise.
72302         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72303         * bits/byteswap-16.h: New file.
72304         * sysdeps/i386/bits/byteswap-16.h: Likewise.
72305         * sysdeps/s390/bits/byteswap-16.h: Likewise.
72306         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
72307         * string/Makefile (headers): Add bits/byteswap-16.h.
72308
72309 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
72310
72311         [BZ #13895]
72312         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
72313         extra indirection.
72314         * nss/Makefile (tests-static, tests): Add tst-nss-static.
72315         * nss/tst-nss-static.c: New.
72316
72317 2012-04-06  Robert Millan  <rmh@gnu.org>
72318
72319         [BZ #6486]
72320         * manual/llio.texi (File Position Primitive): lseek
72321         refers to WHENCE when it really means OFFSET.
72322
72323 2012-04-06  Andreas Jaeger  <aj@suse.de>
72324
72325         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
72326         strncmp declarations.
72327
72328         * abilist/libc.abilist: Add __poll and __ppoll.
72329
72330 2012-04-05  David S. Miller  <davem@davemloft.net>
72331
72332         * scripts/check-local-headers.sh: Accept a host triplet in the
72333         path matched by the exclude regexp.
72334
72335         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
72336         definition.
72337         * sysdeps/powerpc/powerpc32/dl-machine.h
72338         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
72339         * sysdeps/s390/s390-32/dl-machine.h
72340         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72341         * sysdeps/sparc/sparc32/dl-machine.h
72342         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72343         * sysdeps/sparc/sparc64/dl-machine.h
72344         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72345
72346         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
72347         lazy binding.
72348         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
72349         undefined symbol errors.
72350
72351         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
72352         DT_NEEDED entries.
72353
72354 2012-04-05  Michael Matz  <matz@suse.de>
72355
72356         [BZ #13592]
72357         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
72358
72359 2012-04-05  Andreas Jaeger  <aj@suse.de>
72360
72361         [BZ #13908]
72362         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
72363         comment.
72364
72365 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72366
72367         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
72368         which ROUND is no valid rounding mode.
72369
72370 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72371
72372         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
72373         read again.
72374         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
72375
72376 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72377
72378         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
72379         an exception using FPU order intentionally.
72380
72381 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72382
72383         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
72384         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
72385         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
72386         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
72387
72388 2012-04-05  Simon Josefsson  <simon@josefsson.org>
72389
72390         [BZ #12340]
72391         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
72392         EINVAL when BUFLEN is too smal.
72393
72394 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
72395
72396         [BZ #13553]
72397         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
72398         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
72399
72400 2012-04-03  Andreas Jaeger  <aj@suse.de>
72401
72402         [BZ #13938]
72403         * manual/setjmp.texi (System V contexts): Fix sentence.
72404
72405         [BZ #13926]
72406         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
72407         New macro for this case.
72408         [!__GNUC__] (__bswap_64): New inline function for this case.
72409         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72410         * bits/byteswap.h: Likewise.
72411         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
72412         ull, guard with __GLIBC_HAVE_LONG_LONG.
72413
72414         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
72415         __GLIBC_HAVE_LONG_LONG.
72416
72417         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
72418         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
72419
72420 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
72421
72422         [BZ #13691]
72423         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
72424         inptr and inend, rather than using last_ch.
72425
72426 2012-04-02  David S. Miller  <davem@davemloft.net>
72427
72428         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
72429         * stdio-common/printf-parse.h (read_int): Change return type to
72430         'int', return -1 on INT_MAX overflow.
72431         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
72432         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
72433         overflows INT_MAX.  Check for overflow of in-format-string precision
72434         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
72435         SIZE_MAX not INT_MAX for integer overflow test.
72436         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
72437         skip the construct in the format string but do not record anything.
72438         * stdio-common/bug22.c: Adjust to test both width/prevision
72439         INT_MAX overflow as well as total length INT_MAX overflow.  Check
72440         explicitly for proper errno values.
72441
72442 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
72443
72444         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
72445         CHAR_MAX.
72446         * string/test-strcmp.c [! WIDE]: Likewise.
72447         * time/tst-mktime2.c: Likewise for INT_MAX.
72448         * string/test-string.h: #include <sys/param.h> for MIN.
72449
72450         * csu/init-first.c (__libc_init_first): Call __ctype_init.
72451         * sysdeps/i386/init-first.c (init): Likewise.
72452         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
72453         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
72454         * sysdeps/sh/init-first.c (init): Likewise.
72455
72456 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
72457
72458         * po/ru.po: Update from translation team.
72459         * po/vi.po: Likewise.
72460
72461 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
72462
72463         * resolv/nss_dns/dns-host.c: Merge copyright years.
72464
72465 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72466
72467         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
72468         Optimize memcpy with prefetch if
72469         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
72470         src, dst pointers have unequal 16 byte alignments.
72471
72472 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
72473
72474         [BZ #13928]
72475         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
72476         from a CNAME entry and return the minimum ttl for the query.
72477         (gaih_getanswer_slice): Likewise.
72478
72479 2012-03-30  Jeff Law  <law@redhat.com>
72480
72481         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
72482         due to long keys.
72483         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
72484         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
72485
72486         * resolv/nss_dns/dns-host.c: Update copyright year.
72487
72488 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
72489
72490         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
72491         requests to save a system call.  Fix check that all bytes are sent.
72492
72493         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
72494         comments for sendmmsg.
72495
72496 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
72497
72498         [BZ #13691]
72499         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
72500         with only 1 character between 0x0041 and 0x01b0.
72501         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
72502         * wcsmbs/tst-mbsnrtowcs.c: New file.
72503
72504 2012-03-29  David S. Miller  <davem@davemloft.net>
72505
72506         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
72507         small copies by hand.
72508
72509 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
72510
72511         [BZ #13761]
72512         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
72513         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
72514         group memberships.
72515
72516 2012-03-28  David S. Miller  <davem@davemloft.net>
72517
72518         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
72519         that branches into memcpy.
72520         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
72521         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
72522         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
72523         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
72524         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
72525         bits.
72526         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
72527         implementation too.
72528         * sysdeps/sparc/mempcpy.S: New file.
72529
72530         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
72531         the IFUNC routine in the libc case.
72532         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72533
72534         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
72535         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
72536         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
72537         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
72538         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
72539         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
72540         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
72541         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
72542
72543         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
72544         loop to 256 bytes instead of 64 bytes and fix test signedness.
72545
72546         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
72547         * sysdeps/sparc/sparc32/Makefile: rather than here...
72548         * sysdeps/sparc/sparc64/Makefile: and here.
72549
72550 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72551
72552         * malloc/mallocbug.c: Avoid warnings about unused variables.
72553
72554 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72555
72556         [BZ #13760]
72557         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72558         in the right place. Discard and retry query if response is
72559         larger than input buffer size.
72560
72561 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72562
72563         [BZ #369]
72564         [BZ #2678]
72565         [BZ #3866]
72566         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72567         x for large integer exponent.
72568         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72569         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72570         sign of result as needed afterwards.
72571         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72572         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72573         result for underflowing pow the same as for overflow.
72574         (__kernel_standard_l): Handle powl overflow and underflow here
72575         rather than calling __kernel_standard.
72576         * math/libm-test.inc (pow_test): Add more tests.
72577
72578         [BZ #3868]
72579         [BZ #13879]
72580         [BZ #13910]
72581         [BZ #13911]
72582         [BZ #13912]
72583         [BZ #13913]
72584         [BZ #13915]
72585         [BZ #13916]
72586         [BZ #13917]
72587         [BZ #13918]
72588         [BZ #13919]
72589         [BZ #13920]
72590         [BZ #13921]
72591         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72592         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72593         (__kernel_standard_l): New function.
72594         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72595         __kernel_standard.
72596         * math/w_acosl.c (__acosl): Likewise.
72597         * math/w_asinl.c (__asinl): Likewise.
72598         * math/w_atan2l.c (__atan2l): Likewise.
72599         * math/w_atanhl.c (__atanhl): Likewise.
72600         * math/w_coshl.c (__coshl): Likewise.
72601         * math/w_exp10l.c (__exp10l): Likewise.
72602         * math/w_exp2l.c (__exp2l): Likewise.
72603         * math/w_fmodl.c (__fmodl): Likewise.
72604         * math/w_hypotl.c (__hypotl): Likewise.
72605         * math/w_j0l.c (__j0l, __y0l): Likewise.
72606         * math/w_j1l.c (__j1l, __y1l): Likewise.
72607         * math/w_jnl.c (__jnl, __ynl): Likewise.
72608         * math/w_lgammal.c (__lgammal): Likewise.
72609         * math/w_log10l.c (__log10l): Likewise.
72610         * math/w_log2l.c (__log2l): Likewise.
72611         * math/w_logl.c (__logl): Likewise.
72612         * math/w_powl.c (__powl): Likewise.
72613         * math/w_remainderl.c (__remainderl): Likewise.
72614         * math/w_scalbl.c (sysv_scalbl): Likewise.
72615         * math/w_sinhl.c (__sinhl): Likewise.
72616         * math/w_sqrtl.c (__sqrtl): Likewise.
72617         * math/w_tgammal.c (__tgammal): Likewise.
72618         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72619         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72620         * math/libm-test.inc (acos_test): Add more tests.
72621         (acosh_test): Likewise.
72622         (asin_test): Likewise.
72623         (atanh_test): Likewise.
72624         (exp_test): Likewise.
72625         (exp10_test): Likewise.
72626         (exp2_test): Likewise.
72627         (expm1_test): Likewise.
72628         (lgamma_test): Likewise.
72629         (log_test): Likewise.
72630         (log10_test): Likewise.
72631         (log1p_test): Likewise.
72632         (log2_test): Likewise.
72633         (pow_test): Do not allow some spurious overflow exceptions.
72634         (sqrt_test): Add more tests.
72635         (tgamma_test): Likewise.
72636         (y0_test): Likewise.
72637         (y1_test): Likewise.
72638         (yn_test): Likewise.
72639
72640 2012-03-27  Anton Blanchard  <anton@samba.org>
72641
72642         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72643         MAP_HUGETLB.
72644         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72645         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72646         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72647
72648 2012-03-27  David S. Miller  <davem@davemloft.net>
72649
72650         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72651
72652         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72653         have-as-vis3 check.
72654
72655 2012-03-27  Andreas Jaeger  <aj@suse.de>
72656
72657         * sysdeps/x86_64/elf/configure.in: Moved to ...
72658         * sysdeps/x86_64/configure.in: ... here.
72659         * sysdeps/x86_64/elf/start.S: Moved to ...
72660         * sysdeps/x86_64/start.S: ... here.
72661         * sysdeps/x86_64/elf/configure: Delete.
72662
72663         * sysdeps/x86_64/configure.in: Merge contents from
72664         sysdeps/i386/configure.in (without i686 check).
72665
72666         * sysdeps/i386/elf/Versions: Merge into ...
72667         * sysdeps/i386/Versions: ... this.
72668         * sysdeps/i386/elf/Versions: Delete file.
72669         * sysdeps/i386/elf/start.S: Moved to ...
72670         * sysdeps/i386/start.S: ...here.
72671         * sysdeps/i386/elf/configure.in: Merge into...
72672         * sysdeps/i386/configure.in: ...here.
72673         * sysdeps/i386/elf/configure.in: Delete file.
72674         * sysdeps/i386/elf/configure: Delete file.
72675
72676         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72677         * debug/backtracesyms.c: ... here.
72678         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72679         * debug/backtracesymsfd.c: ... here.
72680         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72681         * sysdeps/generic/ifunc-sel.h: ... here.
72682
72683         * sysdeps/unix/i386/start.c: Delete file.
72684         * sysdeps/unix/sparc/start.c: Delete file.
72685         * sysdeps/unix/start.c: Delete file.
72686
72687         * sysdeps/sh/elf/configure.in: Moved to ...
72688         * sysdeps/sh/configure.in: ... here.
72689         * sysdeps/sh/elf/start.S: Moved to ...
72690         * sysdeps/sh/start.S: ... here.
72691         * sysdeps/sh/elf/configure: Delete file.
72692
72693         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72694         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72695         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72696         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72697         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72698         * sysdeps/powerpc/powerpc64/start.S: here.
72699         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72700         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72701         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72702         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72703         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72704
72705         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72706         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72707         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72708         * sysdeps/powerpc/powerpc32/start.S: ... here.
72709         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72710         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72711         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72712
72713         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72714         * sysdeps/powerpc/ifunc-sel.h: ... here.
72715         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72716         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72717
72718         * sysdeps/sparc/elf/configure.in: Moved to ...
72719         * sysdeps/sparc/configure.in: ... here.
72720         * sysdeps/sparc/elf/configure: Delete file.
72721         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72722         * sysdeps/sparc/sparc32/start.S: ... here.
72723         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72724         * sysdeps/sparc/sparc64/start.S: ... here.
72725         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72726         * sysdeps/sparc/sparc32/Makefile: ... this.
72727         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72728         * sysdeps/sparc/sparc64/Makefile: ... this.
72729
72730         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72731         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72732         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72733         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72734         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72735         * sysdeps/s390/s390-32/setjmp.S: ... here.
72736         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72737         * sysdeps/s390/s390-32/configure.in: ... here.
72738         * sysdeps/s390/s390-32/elf/configure: Delete file.
72739         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72740         * sysdeps/s390/s390-32/start.S: ... here.
72741
72742         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72743         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72744         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72745         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72746         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72747         * sysdeps/s390/s390-64/setjmp.S: ... here.
72748         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72749         * sysdeps/s390/s390-64/configure.in: ... here
72750         * sysdeps/s390/s390-64/elf/configure: Delete file.
72751         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72752         * sysdeps/s390/s390-64/start.S: ... here.
72753         * sysdeps/s390/s390-64/elf/configure: Delete.
72754
72755         * configure.in: Remove support for elf directories in sysdeps.
72756
72757         * configure: Regenerated.
72758         * sysdeps/i386/configure: Regenerated.
72759         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72760         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72761         * sysdeps/s390/s390-32/configure: Regenerated.
72762         * sysdeps/s390/s390-64/configure: Regenerated.
72763         * sysdeps/sh/configure: Regenerated.
72764         * sysdeps/sparc/configure: Regenerated.
72765         * sysdeps/x86_64/configure: Regenerated.
72766
72767 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72768
72769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72770
72771         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72772         denormal result into account.
72773
72774 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72775
72776         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72777         Reported by Allan McRae <allan@archlinux.org>.
72778
72779 2012-03-23  Jeff Law  <law@redhat.com>
72780
72781         * nss/getnssent.c (__nss_getent): Fix typo.
72782
72783 2012-03-23  David S. Miller  <davem@davemloft.net>
72784
72785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72786
72787 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72788
72789         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72790         to pad to uint64_t for each field.
72791         (dl_tls_index): Replace unsigned long with uint64_t.
72792
72793 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72794         Paul Pluzhnikov  <ppluzhnikov@google.com>
72795
72796         [BZ #6528]
72797         * grp/Makefile (otherlibs): Don't set it.
72798         * inet/Makefile (otherlibs): Likewise.
72799         * login/Makefile (otherlibs): Likewise.
72800         * nscd/Makefile (otherlibs): Likewise.
72801         * posix/Makefile (otherlibs): Likewise.
72802         * pwd/Makefile (otherlibs): Likewise.
72803         * rt/Makefile (otherlibs): Likewise.
72804         * sunrpc/Makefile (otherlibs): Likewise.
72805         * nss/Makefile (otherlibs): Likewise.
72806         Add libnss_files to routines and static-only-routines.
72807         ($(objpfx)getent): Remove rule.
72808         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72809         static-only-routines.
72810
72811 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72812
72813         [BZ #13892]
72814         * math/s_cexp.c: Include <float.h>.
72815         (__cexp): Handle exp result overflowing not necessarily
72816         overflowing both real and imaginary parts of result.
72817         * math/s_cexpf.c: Likewise.
72818         * math/s_cexpl.c: Likewise.
72819         * math/libm-test.inc (cexp_test): Add more tests.
72820         * sysdeps/i386/fpu/libm-test-ulps: Update.
72821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72822
72823 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72824
72825         * include/link.h (ELFW): New macro.
72826         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72827         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72828
72829 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72830
72831         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72832         with uint64_t.
72833
72834 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72835
72836         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72837         declaration.
72838         (struct La_x32_retval): Likewise.
72839
72840 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72841
72842         * sysdeps/x86_64/preconfigure.in: New file.
72843         * sysdeps/x86_64/preconfigure: New generated file.
72844
72845 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72846
72847         [BZ #13824]
72848         * math/e_exp2l.c: Include <float.h>.
72849         (__ieee754_exp2l): Handle overflow and underflow cases
72850         separately.  Only pass fractional part of argument to
72851         __ieee754_expl.
72852         * math/libm-test.inc (exp2_test): Add more tests.
72853
72854         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72855         negating x to take absolute value.
72856         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72857         Likewise.
72858         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72859         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72860         Likewise.
72861         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72862         computing low part if x was negated.
72863         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72864
72865 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72866
72867         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72868         la_x32_gnu_pltexit.
72869         (pltexit): Cast int_retval to ptrdiff_t.
72870         * elf/tst-auditmod3b.c: Likewise.
72871         * elf/tst-auditmod4b.c: Likewise.
72872         * elf/tst-auditmod5b.c: Likewise.
72873         * elf/tst-auditmod6b.c: Likewise.
72874         * elf/tst-auditmod6c.c: Likewise.
72875         * elf/tst-auditmod7b.c: Likewise.
72876
72877         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72878         and x32_gnu_pltexit.
72879
72880         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72881         __ELF_NATIVE_CLASS.
72882         (La_x32_regs): New macro.
72883         (La_x32_retval): Likewise.
72884         (la_x32_gnu_pltenter): New function prototype.
72885         (la_x32_gnu_pltexit): Likewise.
72886
72887 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72888
72889         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72890         exponent.
72891
72892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72893
72894         * configure.in (libc_cv_cc_nofma): Check for option to disable
72895         generation of FMA instructions.
72896         * configure: Regenerate.
72897         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72898         * sysdeps/ieee754/dbl-64/Makefile: New file.
72899         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72900         Remove brandred-fma4.
72901         (CFLAGS-brandred-fma4.c): Remove.
72902         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72903         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72904         define.
72905         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72906         define.
72907
72908 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72909
72910         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72911         LLONG_MAX != LONG_MAX.
72912         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72913         (_fitoa_word): Likewise.
72914         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72915         LLONG_MAX != LONG_MAX.
72916         * stdio-common/_itowa.h: Include <_itoa.h>.
72917         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72918         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72919         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72920         only if not defined.
72921         (_ITOA_WORD_TYPE): Likewise.
72922         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72923         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72924
72925 2012-03-21  David S. Miller  <davem@davemloft.net>
72926
72927         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72928
72929 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72930
72931         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72932         of x86_64 when setting libc_cv_slibdir, libdir and
72933         libc_cv_localedir.
72934         * sysdeps/unix/sysv/linux/configure: Regenerated.
72935
72936 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72937
72938         * manual/lang.texi (Old Varargs): Remove section.
72939         (How Variadic): Update menu.
72940         (va_start): Do not mention varargs.h.
72941
72942 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72943             Joseph Myers  <joseph@codesourcery.com>
72944
72945         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72946         link test.
72947         * configure: Regenerated.
72948
72949 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72950
72951         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72952         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72953         conformtest.pl
72954
72955 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72956
72957         * NOTES: Remove.
72958         * Makefile (files-for-dist): Remove NOTES.
72959         (NOTES): Remove rule.
72960         * README: Don't refer to NOTES.
72961         * manual/creature.texi: Don't include macros.texi.
72962         * manual/intro.texi (creature.texi): Remove comment referring to
72963         NOTES.
72964
72965         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72966         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72967         * configure: Regenerated.
72968         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72969         LIBC_TRY_CC_OPTION.
72970         (libc_cv_as_i686): Likewise.
72971         (libc_cv_cc_avx): Likewise.
72972         (libc_cv_cc_sse2avx): Likewise.
72973         (libc_cv_cc_fma4): Likewise.
72974         (libc_cv_cc_novzeroupper): Likewise.
72975         * sysdeps/i386/configure: Regenerated.
72976
72977         [BZ #13883]
72978         * sysdeps/i386/fpu/s_cexp.S: Remove.
72979         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72980         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72981         * math/libm-test.inc (cexp_test): Add more tests.
72982         * sysdeps/i386/fpu/libm-test-ulps: Update.
72983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72984
72985 2012-03-21  Allan McRae  <allan@archlinux.org>
72986
72987         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72988
72989 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72990
72991         [BZ #13871]
72992         * math/w_exp2.c: Do not include <float.h>.
72993         (o_threshold, u_threshold): Remove.
72994         (__exp2): Calculate result before checking finiteness and calling
72995         __kernel_standard.
72996         * math/w_exp2f.c: Likewise.
72997         * math/w_exp2l.c: Likewise.
72998         * math/libm-test.inc (exp2_test): Require overflow exception for
72999         1e6 input.
73000
73001         [BZ #3866]
73002         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
73003         range of signed 64-bit integers before using fistpll.  Remove
73004         checks for whether integers fit in mantissa bits.
73005         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
73006         the range of signed 32-bit integers before using fistpl.  Remove
73007         checks for whether integers fit in mantissa bits.
73008         * sysdeps/i386/fpu/e_powl.S (p64): New object.
73009         (__ieee754_powl): Test for y outside the range of signed 64-bit
73010         integers before using fistpll.  Reduce 64-bit values to 63-bit
73011         ones as needed.
73012         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
73013         divide-by-zero is raised for zero to large negative powers.
73014         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
73015         (__ieee754_powl): Test for y outside the range of signed 64-bit
73016         integers before using fistpll.  Reduce 64-bit values to 63-bit
73017         ones as needed.
73018         * math/libm-test.inc (pow_test): Add more tests.
73019
73020 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73021
73022         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
73023         <stdio-common/_itoa.h>.
73024         * debug/segfault.c: Likewise.
73025         * elf/dl-cache.c: Likewise.
73026         * elf/dl-minimal.c: Likewise.
73027         * elf/dl-misc.c: Likewise.
73028         * elf/dl-sysdep.c: Likewise.
73029         * elf/dl-version.c: Likewise.
73030         * elf/rtld.c: Likewise.
73031         * hurd/hurdsock.c: Likewise.
73032         * hurd/lookup-retry.c: Likewise.
73033         * malloc/malloc.c: Likewise.
73034         * malloc/mtrace.c: Likewise.
73035         * nscd/nscd_getgr_r.c: Likewise.
73036         * nscd/nscd_getpw_r.c: Likewise.
73037         * nscd/nscd_getserv_r.c: Likewise.
73038         * posix/getopt_init.c: Likewise.
73039         * posix/wordexp.c: Likewise.
73040         * stdio-common/_itoa.c: Likewise.
73041         * stdio-common/printf_fphex.c: Likewise.
73042         * stdio-common/vfprintf.c: Likewise.
73043         * string/_strerror.c: Likewise.
73044         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
73045         * sysdeps/i386/i686/hp-timing.h: Likewise.
73046         * sysdeps/mach/_strerror.c: Likewise.
73047         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
73048         * sysdeps/mach/hurd/sethostid.c: Likewise.
73049         * sysdeps/mach/hurd/xmknodat.c: Likewise.
73050         * sysdeps/mach/xpg-strerror.c: Likewise.
73051         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
73052         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
73053         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
73054         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
73055         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
73056         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
73057         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
73058         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
73059         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
73060         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
73061         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
73062         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
73063         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
73064         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
73065         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
73066         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
73067         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
73068         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
73069         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
73070         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
73071         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
73072
73073         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
73074
73075         * stdio-common/_itoa.h: Moved to ...
73076         * sysdeps/generic/_itoa.h: Here.
73077
73078         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
73079
73080         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
73081         instead of "_itoa.h" and "_itowa.h".
73082         * stdio-common/vfprintf.: Likewise.
73083
73084 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73085
73086         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
73087         <bits/wordsize.h>.
73088         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
73089         (__signbit): Likwise.
73090         (llrintf): Likwise.
73091         (llrint): Likwise.
73092
73093 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73094
73095         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
73096         __WORDSIZE != 64.
73097
73098 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
73099
73100         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
73101         OVERFLOW_EXCEPTION_OK.
73102         * math/libm-test.inc ("Philosophy"): Update comment about
73103         exception testing.
73104         (OVERFLOW_EXCEPTION): Define.
73105         (OVERFLOW_EXCEPTION_OK): Likewise.
73106         (INVALID_EXCEPTION_OK): Renumber.
73107         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
73108         (IGNORE_ZERO_INF_SIGN): Likewise.
73109         (test_exceptions): Handle FE_OVERFLOW.
73110         (exp10_test): Expect overflow exceptions.
73111         (exp2_test): Likewise.
73112         (expm1_test): Likewise.
73113         (nextafter_test): Likewise.
73114         (pow_test): Likewise.
73115         (scalbn_test): Likewise.
73116         (scalbln_test): Likewise.
73117
73118 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73119
73120         * sysdeps/x86_64/bits/atomic.h
73121         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
73122         64bit integer.
73123         (atomic_exchange_acq): Likewise.
73124         (__arch_exchange_and_add_body): Likewise.
73125         (__arch_add_body): Likewise.
73126         (atomic_add_negative): Likewise.
73127         (atomic_add_zero): Likewise.
73128
73129 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73130
73131         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
73132         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
73133
73134 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73135
73136         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
73137         Check __x86_64__ instead of __WORDSIZE.
73138
73139 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73140
73141         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
73142
73143 2012-03-19  David S. Miller  <davem@davemloft.net>
73144
73145         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73146
73147         * sysdeps/sparc/fpu/fenv_private.h: New file.
73148         * sysdeps/sparc/fpu/math_private.h: Use it.
73149         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
73150         Remove.
73151         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
73152         (libc_feholdexcept_setroundl): Remove.
73153         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
73154         Remove.
73155         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
73156         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
73157
73158 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73159
73160         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
73161         int64_t instead of long int.
73162         (INSERT_WORDS64): Likwise.
73163
73164 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73165
73166         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
73167         _Unwind_GetCFA return to _Unwind_Ptr first.
73168
73169 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
73170
73171         [BZ #13629]
73172         * math/s_clog.c: Include <float.h>.
73173         (__clog): Scale large or subnormal inputs.
73174         * math/s_clogf.c: Likewise.
73175         * math/s_clogl.c: Likewise.
73176         * math/s_clog10.c: Include <float.h>.
73177         (M_LOG10_2): Define.
73178         (__clog10): Scale large or subnormal inputs.
73179         * math/s_clog10f.c: Likewise.
73180         * math/s_clog10l.c: Likewise.
73181         * math/libm-test.inc (clog_test): Add more tests.
73182         (clog10_test): Likewise.
73183         * sysdeps/i386/fpu/libm-test-ulps: Update.
73184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73185
73186         [BZ #11451]
73187         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
73188         x and y.
73189         * math/libm-test.inc (atan2_test): Add another test.
73190
73191         * Makerules (common-objdir-compile): Remove.
73192         * sysdeps/unix/Makefile (config-generated): Do not add
73193         $(unix-generated) to variable.
73194         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
73195         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
73196         Remove rule.
73197         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
73198         Likewise.
73199         [generic bits/local_lim.h] (before-compile): Do not append to
73200         variable.
73201         [generic bits/local_lim.h] (common-generated): Likewise.
73202         [generic sys/param.h] (before-compile): Do not append to variable.
73203         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
73204         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
73205         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
73206         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
73207         include.
73208         [generic sys/param.h] (sys/param.h-includes): Remove variable.
73209         [generic sys/param.h] (sys/param.h-includes): Remove rule.
73210         [generic sys/param.h] ($(addprefix
73211         $(common-objpfx),$(sys/param.h-includes))): Likewise.
73212         [generic sys/param.h] (common-generated): Do not append to
73213         variable.
73214         [generic sys/param.h] (sysdep_headers): Likewise.
73215         [generic bits/errno.h] (before-compile): Do not append to
73216         variable.
73217         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
73218         rule.
73219         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
73220         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
73221         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
73222         [generic bits/errno.h] (common-generated): Do not append to
73223         variable.
73224         [generic bits/ioctls.h] (before-compile): Do not append to
73225         variable.
73226         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
73227         rule.
73228         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
73229         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
73230         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
73231         rule.
73232         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
73233         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
73234         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
73235         [generic bits/ioctls.h] (common-generated): Do not append to
73236         variable.
73237         [generic sys/syscall.h] (syscall.h): Remove variable.
73238         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
73239         rule.
73240         [generic sys/syscall.h] (before-compile): Do not append to
73241         variable.
73242         [generic sys/syscall.h] (common-generated): Likewise.
73243         * sysdeps/unix/errnos-tmpl.c: Remove file.
73244         * sysdeps/unix/errnos.awk: Likewise.
73245         * sysdeps/unix/ioctls-tmpl.c: Likewise.
73246         * sysdeps/unix/ioctls.awk: Likewise.
73247         * sysdeps/unix/mk-local_lim.c: Likewise.
73248         * sysdeps/unix/snarf-ioctls: Likewise.
73249
73250 2012-03-19  Richard Henderson  <rth@twiddle.net>
73251
73252         * sysdeps/i386/fpu/fenv_private.h: New file.
73253         * sysdeps/i386/fpu/math_private.h: Use it.
73254         (math_opt_barrier, math_force_eval): Remove.
73255         (libc_feholdexcept_setround_53bit): Remove.
73256         (libc_feupdateenv_53bit): Remove.
73257         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73258         (math_opt_barrier, math_force_eval): Remove.
73259         (libc_feholdexcept): Remove.
73260         (libc_feholdexcept_setround): Remove.
73261         (libc_fetestexcept, libc_fesetenv): Remove.
73262         (libc_feupdateenv_test): Remove.
73263         (libc_feupdateenv, libc_feholdsetround): Remove.
73264         (libc_feresetround): Remove.
73265
73266         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
73267         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
73268
73269         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
73270         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
73271         (libc_feupdateenv_testl): New.
73272         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
73273         (libc_feupdateenv_testf): New.
73274         (libc_feupdateenv): Use libc_feupdateenv_test.
73275         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
73276         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
73277
73278         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
73279         (libc_feholdsetroundf, libc_feholdsetroundl): New.
73280         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
73281         (libc_feresetround_noex): New.
73282         (libc_feresetround_noexf): New.
73283         (libc_feresetround_noexl): New.
73284         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
73285         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
73286         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
73287         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
73288         SET_RESTORE_ROUND.
73289         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
73290         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
73291         (__cos): Likewise.
73292         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
73293         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
73294         SET_RESTORE_ROUND_NOEX.
73295         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
73296         SET_RESTORE_ROUND_NOEXF.
73297         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
73298         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
73299         (libc_feholdsetroundf): New.
73300         (libc_feresetround, libc_feresetroundf): New.
73301
73302         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
73303         (libc_feholdexcept_setround_53bit): Convert from macro to function.
73304         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
73305
73306         * sysdeps/generic/math_private.h: Include <fenv.h>.
73307         (default_libc_feholdexcept): New.
73308         (default_libc_feholdexcept_setround): New.
73309         (default_libc_fesetenv, default_libc_feupdateenv): New.
73310         (libc_feholdexcept): Only define if undefined.
73311         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
73312         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
73313         (libc_feholdexcept_setroundl): Likewise.
73314         (libc_feholdexcept_setround_53bit): Likewise.
73315         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
73316         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
73317         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
73318         (libc_feupdateenv_53bit): Likewise.
73319         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
73320         (libc_feholdexcept): Convert from macro to inline function.
73321         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
73322         (libc_fesetenv, libc_feupdateenv): Likewise.
73323
73324         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
73325         not previously defined.
73326         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
73327         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
73328         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
73329         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
73330         * sysdeps/ieee754/flt-32/math_private.h: New file.
73331         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
73332         math_private.h below SET_FLOAT_WORD.
73333         (__isnan, __isinf_ns, __finite): Remove.
73334         (__isnanf, __isinf_nsf, __finitef): Remove.
73335
73336 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
73337
73338         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73339
73340 2012-03-17  David S. Miller  <davem@davemloft.net>
73341
73342         [BZ #6471]
73343         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
73344         for 2.16.
73345
73346 2012-03-16  David S. Miller  <davem@davemloft.net>
73347
73348         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
73349         warnings.
73350
73351         [BZ #6471]
73352         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
73353         properly.
73354         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
73355         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
73356         sysdep_routines when subdir is sysvipc.
73357         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
73358         __getshmlba helper.
73359
73360         * sysdeps/sparc/fpu/libm-test/ulps: Update.
73361
73362 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73363
73364         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
73365         [__LP64__].
73366
73367 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73368
73369         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
73370         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
73371         (__lround): Renamed to ...
73372         (__llround): This.  Replace long int with long long int.
73373         Define lround functions as aliases of llround functions.
73374         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
73375
73376 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73377
73378         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
73379         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
73380         adresses to uintptr_t.  Replace "long int" and "unsigned long
73381         int" with "greg_t" on va_arg.
73382
73383 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73384
73385         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
73386         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
73387
73388         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
73389         Move e_machine check before EI_CLASS check.  Handle x32
73390         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
73391         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
73392         SKIP_EM_IA_64 and include
73393         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
73394
73395         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
73396         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
73397         (add_system_dir): New macro.
73398
73399         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
73400         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
73401
73402 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73403
73404         [BZ #2551]
73405         [BZ #2552]
73406         [BZ #2553]
73407         [BZ #2554]
73408         [BZ #2562]
73409         [BZ #2563]
73410         [BZ #2565]
73411         [BZ #2566]
73412         [BZ #2576]
73413         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
73414         (y0): Likewise.
73415         * math/w_j0f.c (j0f): Likewise.
73416         (y0f): Likewise.
73417         * math/w_j0l.c (__j0l): Likewise.
73418         (__y0l): Likewise.
73419         * math/w_j1.c (j1): Likewise.
73420         (y1): Likewise.
73421         * math/w_j1f.c (j1f): Likewise.
73422         (y1f): Likewise.
73423         * math/w_j1l.c (__j1l): Likewise.
73424         (__y1l): Likewise.
73425         * math/w_jn.c (jn): Likewise.
73426         (yn): Likewise.
73427         * math/w_jnf.c (jnf): Likewise.
73428         (ynf): Likewise.
73429         * math/w_jnl.c (__jnl): Likewise.
73430         (__ynl): Likewise.
73431         * math/libm-test.inc (j0_test): Add more tests.
73432         (j1_test): Likewise.
73433         (jn_test): Likewise.  Add trailing semicolon to existing test.
73434         (y0_test): Likewise.
73435         (y1_test): Likewise.
73436         * sysdeps/i386/fpu/libm-test-ulps: Update.
73437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73438
73439         [BZ #13851]
73440         [BZ #13854]
73441         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
73442         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
73443         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
73444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
73445         (__tanl): Set errno for infinite argument.
73446         * sysdeps/i386/fpu/mptan.c: Remove.
73447         * sysdeps/i386/fpu/s_tan.S: Likewise.
73448         * sysdeps/i386/fpu/s_tanl.S: Likewise.
73449         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
73450         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
73451         * math/libm-test.inc (tan_test): Add more tests and enable more
73452         tests for double and long double.
73453         * sysdeps/i386/fpu/libm-test-ulps: Update.
73454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73455
73456 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
73457
73458         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
73459         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
73460
73461 2012-03-16  Roland McGrath  <roland@hack.frob.com>
73462
73463         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
73464         * configure.in: Use it for both main tree and add-ons.
73465         * configure: Regenerated.
73466
73467 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73468
73469         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
73470
73471 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73472
73473         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
73474         in comment.
73475
73476         [BZ #13851]
73477         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
73478         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
73479         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
73480         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
73481         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
73482         infinite argument.
73483         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
73484         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
73485         != 0 for prec == 2.
73486         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
73487         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
73488         * sysdeps/i386/fpu/s_cosl.S: Likewise.
73489         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
73490         * sysdeps/i386/fpu/s_sinl.S: Likewise.
73491         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
73492         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
73493         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
73494         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
73495         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
73496         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
73497         * math/libm-test.inc (cos_test): Add more tests and enable more
73498         tests for long double.
73499         (sin_test): Likewise.
73500         (sincos_test): Likewise.
73501         * sysdeps/i386/fpu/libm-test-ulps: Update.
73502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73503
73504 2012-03-16  David S. Miller  <davem@davemloft.net>
73505
73506         * sysdeps/sparc/fpu/math_private.h: New file.
73507
73508 2012-03-15  David S. Miller  <davem@davemloft.net>
73509
73510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
73511         file.
73512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
73513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
73514         file.
73515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
73516         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
73517         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
73518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
73519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
73520         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
73521         sysdep routines.
73522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73523
73524         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
73525         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
73526
73527         * sysdeps/sparc/sparc-ifunc.h: New file.
73528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
73529         sparc-ifunc.h
73530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
73531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
73532         Likewise.
73533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
73534         Likewise.
73535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
73536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
73537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
73538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
73539         Likewise.
73540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
73541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
73542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
73544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
73545         Likewise.
73546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
73547         Likewise.
73548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
73549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
73550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73552         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73553         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73554         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73555         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73556         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73557         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73558         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73562         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73563         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73564         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73565         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73566         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73567         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73568         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73569         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73571         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73572
73573 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73574
73575         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73576         scaling.
73577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73578
73579 2012-03-15  Andreas Jaeger  <aj@suse.de>
73580
73581         [BZ #13852]
73582         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73583         ieee754/flt-32 implementation for sin, cos and sincos.
73584         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73585         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73586         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73587         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73588         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73589         ieee754/flt-32 implementation for tan.
73590
73591         * math/libm-test.inc (cos_test): Enable some large input tests for
73592         float as well
73593         (sin_test): Likewise.
73594         (sincos_test): Likewise.
73595         (tan_test): Add tests for large input.
73596
73597         * sysdeps/i386/fpu/libm-test-ulps: Update.
73598
73599 2012-03-15  Andreas Jaeger  <aj@suse.de>
73600
73601         [BZ #13658]
73602         * math/libm-test.inc (cos_test): Add more test cases.
73603         (sin_test): Likewise.
73604         (sincos_test): Likewise.
73605
73606 2012-03-15  Andreas Jaeger  <aj@suse.de>
73607
73608         [BZ #13837]
73609         * math/libm-test.inc (cos_test): Add a test case for large input
73610         value.
73611         (sin_test): Likewise.
73612         (sincos_test): Likewise.
73613
73614 2012-03-15  Andreas Jaeger  <aj@suse.de>
73615             Joseph Myers  <joseph@codesourcery.com>
73616
73617         [BZ #13658]
73618         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73619         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73620         * sysdeps/i386/fpu/branred.c: Likewise.
73621         * sysdeps/i386/fpu/dosincos.c: Likewise.
73622         * sysdeps/i386/fpu/mpa.c: Likewise.
73623         * sysdeps/i386/fpu/s_cos.S: Likewise.
73624         * sysdeps/i386/fpu/s_sin.S: Likewise.
73625         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73626         * sysdeps/i386/fpu/sincos32.c: Likewise.
73627
73628         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73629         Define.
73630         (libc_feupdateenv_53bit): Define.
73631         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73632         Define.
73633         (libc_feupdateenv_53bit): Define.
73634
73635         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73636         53 bit (without extend i386 double precision).
73637
73638         * math/libm-test.inc (sincos_test): Add tests for large input.
73639         (sin): Likewise.
73640         (cos): Likewise.
73641
73642         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73643
73644 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73645
73646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73647
73648 2012-03-15  David S. Miller  <davem@davemloft.net>
73649
73650         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73651         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73652         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73653         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73659         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73660         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73661         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73662         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73666         file.
73667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73669         file.
73670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73672         file.
73673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73675         file.
73676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73677         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73678         fmin/fmax sysdep routines.
73679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73680
73681 2012-03-14  David S. Miller  <davem@davemloft.net>
73682
73683         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73684         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73686         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73687         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73688         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73689         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73690         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73691         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73692         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73693         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73694         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73695         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73696         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73697         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73698         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73699         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73700         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73702         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73703         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73704         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73705         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73706         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73707         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73708         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73709         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73710         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73711         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73712         routines.
73713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73714         file.
73715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73717         file.
73718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73720         file.
73721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73723         file.
73724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73726         file.
73727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73729         file.
73730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73731         file.
73732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73733         file.
73734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73735         file.
73736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73737         New file.
73738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73739         file.
73740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73741         file.
73742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73744         file.
73745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73747         file.
73748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73750         file.
73751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73753         VIS3 routines.
73754
73755         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73756         New file.
73757
73758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73759
73760         * sysdeps/sparc/configure.in: New file.
73761         * sysdeps/sparc/configure: Generate.
73762         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73763         * configure: Regenerate.
73764         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73765         * config.make.in (have-as-vis3): New.
73766         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73767         available use -Av9d instead of -Av9a.
73768         * sysdeps/sparc/sparc64/Makefile: Likewise.
73769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73771         New file.
73772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73773         file.
73774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73775         New file.
73776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73777         file.
73778         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73779         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73780         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73781         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73782         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73783
73784         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73785         fzeros/fnegs to load 0x80000000 into a float register instead of
73786         using the stack.
73787         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73788
73789 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73790
73791         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73792         bits/syscall.h.
73793         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73794         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73795         ($(inst_includedir)/bits/syscall.h): Remove rule.
73796         ($(objpfx)bits/syscall.d): Include instead of
73797         $(objpfx)syscall-list.d.
73798         (generated): Change syscall-list.h and syscall-list.d to
73799         bits/syscall.h and bits/syscall.d.
73800
73801 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73802
73803         [BZ #13846]
73804         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73805
73806 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73807
73808         [BZ #13841]
73809         * math/s_csqrt.c: Include <float.h>.
73810         (__csqrt): Scale large or subnormal inputs.
73811         * math/s_csqrtf.c: Likewise.
73812         * math/s_csqrtl.c: Likewise.
73813         * math/libm-test.inc (csqrt_test): Add more tests.
73814         * sysdeps/i386/fpu/libm-test-ulps: Update.
73815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73816
73817         [BZ #13840]
73818         * math/libm-test.inc (hypot_test): Add more tests.
73819
73820 2012-03-13  David S. Miller  <davem@davemloft.net>
73821
73822         [BZ #13840]
73823         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73824         double-precision for the calculation instead of scaling.
73825
73826 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73827
73828         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73829         manipulate bits before adding and subtracting TWO52[sx].
73830         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73831         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73832         Likewise.
73833         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73834
73835 2012-03-13  David S. Miller  <davem@davemloft.net>
73836
73837         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73838         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73839         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73840         rtld-global-offsets.h
73841         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73842
73843         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73844         large parameters.
73845
73846         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73847
73848         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73849         'err' in the ifdef scope in which it is actually used.
73850
73851         * nss/nss_db/db-init.c: Include string.h
73852
73853 2012-03-12  David S. Miller  <davem@davemloft.net>
73854
73855         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73856         masking out of the most significant byte of random value used.
73857         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73858         Fix coding style in previous change.
73859
73860         * sysdeps/unix/sysv/linux/kernel-features.h
73861         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73862         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73863         expression.
73864         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73865         later.
73866
73867 2012-03-11  David S. Miller  <davem@davemloft.net>
73868
73869         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73870         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73871         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73872         for 'resultvar' otherwise things get truncated on 64-bit.
73873
73874         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73875         Fix masking out of the most significant byte of random value used.
73876
73877         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73878
73879 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73880
73881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73882
73883 2012-03-09  David S. Miller  <davem@davemloft.net>
73884
73885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73886         variables with appropriate CPP guards.
73887         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73888         from the frame pointer, not the stack pointer.  Correct layout
73889         comments.  Fix test on resulting framesize and the management of
73890         the outregs buffer for pltexit.  Preserve floating point return
73891         values across _dl_call_pltexit call.
73892         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73893         framesize and the management of the outregs buffer for pltexit.
73894         Preserve floating point return values across _dl_call_pltexit
73895         call.
73896         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73897         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73898         (la_sparc64_gnu_pltexit): New functions.
73899         (print_exit): Fix format string for return register value.
73900
73901 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73902
73903         * sunrpc/Makefile (others): Add rpcgen.
73904         ($(objpfx)rpcgen): Remove special build rule and dependency on
73905         libc.
73906         * sunrpc/rpcgen.c: New file.
73907
73908 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         [BZ #13673]
73911         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73912         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73913         * sysdeps/i386/crti.S: Likewise.
73914         * sysdeps/i386/crtn.S: Likewise.
73915         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73916         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73917         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73918         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73919         * sysdeps/sh/crti.S: Likewise.
73920         * sysdeps/sh/crtn.S: Likewise.
73921         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73922
73923         [BZ #13673]
73924         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73925         with URL.
73926         * locale/programs/locfile-kw.gperf: Likewise.
73927         * locale/programs/charmap-kw.h: Regenerated.
73928         * locale/programs/locfile-kw.h: Likewise.
73929
73930         [BZ #13673]
73931         * intl/plural.y: Replace FSF snail mail address with URL.
73932         * intl/plural.c: Regenerated.
73933
73934 2012-03-09  Richard Henderson  <rth@twiddle.net>
73935
73936         * include/math_private.h: Remove file.
73937         * math/math_private.h: Move file ...
73938         * sysdeps/generic/math_private.h: ... here.
73939
73940         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73941         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73942         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73943
73944         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73945         and <math_private.h>.
73946         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73947         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73948         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73949         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73950         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73951         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73952         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73953         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73954         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73955         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73956         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73957         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73958         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73959         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73960         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73961         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73962         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73963         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73964         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73965         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73966         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73967         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73968         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73969         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73970         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73971         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73972         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73973         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73974         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73975         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73976         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73977         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73978         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73979         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73980         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73981         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73982         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73983         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73984         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73985         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73986         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73987         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73988         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73989         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73990         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73991         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73992         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73993         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73994         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73995         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73996         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73997         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73998         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73999         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
74000         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
74001         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
74002         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74003         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
74004         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
74005         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
74006         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
74007         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
74008         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74009         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
74010         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
74011         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
74012         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
74013         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
74014         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
74015         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
74016         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
74017         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
74018         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
74019         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
74020         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
74021         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
74022         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
74023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
74024         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
74025         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
74026         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
74027         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
74028         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
74029         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
74030         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
74031         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
74032         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
74033         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
74034         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
74035         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
74036         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
74037         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
74038         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
74039         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
74040         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
74041         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
74042         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
74043         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
74044         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
74045         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
74046         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
74047         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
74048         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
74049         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
74050         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
74051         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
74052         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
74053         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
74054         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
74055         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
74056         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
74057         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
74058         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
74059         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
74060         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
74061         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
74062         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
74063         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
74064         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
74065         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74066         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
74067         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
74068         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
74069         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
74070         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
74071         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
74072         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
74073         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
74074         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
74075         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
74076         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
74077         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
74078         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
74079         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
74080         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
74081         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
74082         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
74083         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
74084         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
74085         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
74086         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74087         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
74088         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
74089         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
74090         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
74091         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
74092         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
74093         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
74094         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
74095         * sysdeps/ieee754/k_standard.c: Likewise.
74096         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
74097         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
74098         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
74099         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
74100         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
74101         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
74102         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
74103         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
74104         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
74105         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
74106         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
74107         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
74108         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
74109         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
74110         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
74111         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
74112         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
74113         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
74114         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
74115         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
74116         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
74117         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
74118         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
74119         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
74120         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
74121         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
74122         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
74123         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
74124         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
74125         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
74126         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
74127         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
74128         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
74129         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
74130         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
74131         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
74132         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
74133         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
74134         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
74135         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
74136         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
74137         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
74138         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
74139         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
74140         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
74141         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
74142         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
74143         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
74144         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
74145         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
74146         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
74147         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
74148         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
74149         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
74150         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
74151         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
74152         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
74153         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
74154         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
74155         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
74156         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
74157         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
74158         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
74159         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
74160         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
74161         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
74162         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
74163         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
74164         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
74165         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
74166         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
74167         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
74168         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
74169         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
74170         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
74171         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
74172         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
74173         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
74174         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74175         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
74176         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
74177         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
74178         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
74179         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
74180         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
74181         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
74182         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
74183         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
74184         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
74185         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
74186         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
74187         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
74188         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
74189         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
74190         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
74191         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
74192         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
74193         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
74194         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
74195         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
74196         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
74197         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
74198         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
74199         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
74200         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
74201         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
74202         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
74203         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
74204         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
74205         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
74206         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
74207         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
74208         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
74209         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
74210         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
74211         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
74212         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
74213         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
74214         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
74215         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
74216         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
74217         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
74218         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
74219         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
74220         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
74221         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
74222         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
74223         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
74224         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
74225         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
74226         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
74227         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
74228         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
74229         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
74230         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
74231         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
74232         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
74233         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
74234         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
74235         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
74236         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
74237         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
74238         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
74239         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
74240         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
74241         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
74242         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
74243         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
74244         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
74245         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
74246         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
74247         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
74248         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
74249         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
74250         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
74251         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
74252         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
74253         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
74254         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
74255         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
74256         * sysdeps/ieee754/s_lib_version.c: Likewise.
74257         * sysdeps/ieee754/s_matherr.c: Likewise.
74258         * sysdeps/ieee754/s_signgam.c: Likewise.
74259         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
74260         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
74261         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
74262         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
74263         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
74264         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74265         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
74266         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
74267         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
74268         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
74269         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
74270         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
74271         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
74272         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
74273         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
74274         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
74275         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
74276         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
74277         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
74278         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
74279         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
74280
74281 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74282
74283         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
74284         * sunrpc/rpc_main.c: Likewise.
74285         * sunrpc/rpc_svcout.c: Likewise.
74286
74287 2012-03-09  David S. Miller  <davem@davemloft.net>
74288
74289         * include/math_private.h: New file.
74290
74291 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74292
74293         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
74294         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
74295         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
74296         from <bits/socket_type.h>.
74297         (enum __socket_type): Don't define here.
74298         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
74299         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74300         bits/socket_type.h.
74301
74302         [BZ #13566]
74303         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
74304         checking __USE_GNU.
74305
74306         * Makerules ($(inst_includedir)/%.h): New rule.
74307         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
74308         (install-others): Remove variable setting.
74309         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
74310
74311 2012-03-08  Richard Henderson  <rth@twiddle.net>
74312
74313         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
74314         from macro to inline function; merge with the
74315         !__LIBC_INTERNAL_MATH_INLINES version.
74316         (__ieee754_sqrtf): Likewise.
74317
74318         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
74319         to inline function.
74320         (__rintf, __floor, __floorf): Likewise.
74321
74322         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
74323         macro to inline function.
74324         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
74325
74326         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
74327         not <math/math_private.h>.
74328
74329 2012-03-08  David S. Miller  <davem@davemloft.net>
74330
74331         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
74332         copyright year.
74333         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
74334
74335 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
74336
74337         * resolv/gai_misc.c (handle_requests): Fix struct timespec
74338         normalization.
74339         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
74340         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
74341
74342 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
74343
74344         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
74345         be defined individually, they must be defined as a block.  Define
74346         S for printing a string instead of hidint the different by using a
74347         macro for adding the 'l'.
74348         * stdio-common/tst-fphex-wide.c: Adjust.
74349
74350 2012-03-07  Marek Polacek  <polacek@redhat.com>
74351
74352         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
74353
74354 2012-03-08  Marek Polacek  <polacek@redhat.com>
74355
74356         [BZ #13806]
74357         * stdio-common/Makefile (tests): Add tst-fphex-wide.
74358         * stdio-common/tst-fphex.c: Define a few macros to make the
74359         test reusable.  Use them.
74360         * stdio-common/tst-fphex-wide.c: New file.
74361
74362 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
74363
74364         [BZ #6911]
74365         * manual/macros.texi (gnusystems): New macro.
74366         (nongnusystems): Likewise.
74367         (gnulinuxhurdsystems): Likewise.
74368         (gnuhurdsystems): Likewise..
74369         (gnulinuxsystems): Likewise.
74370         * manual/charset.texi: Use new macros or @theglibc{} to refer to
74371         variants of the GNU system, not "GNU system".
74372         * manual/conf.texi: Likewise.
74373         * manual/errno.texi: Likewise.  Update example of errno macro
74374         expansion.
74375         * manual/filesys.texi: Likewise.
74376         (getumask): Document as specific to GNU/Hurd.
74377         * manual/install.texi: Likewise.  Reword some references to
74378         GNU/Linux.
74379         * manual/intro.texi: Likewise.
74380         * manual/io.texi: Likewise.
74381         (File Name Portability): Detail which constraints are inapplicable
74382         to all GNU systems and which are only inapplicable to GNU/Hurd.
74383         * manual/job.texi: Likewise.
74384         * manual/llio.texi: Likewise.
74385         (O_NOCTTY): Document as present on GNU/Linux.
74386         * manual/maint.texi: Likewise.
74387         * manual/memory.texi: Likewise.
74388         * manual/pattern.texi: Likewise.
74389         * manual/pipe.texi: Likewise.
74390         * manual/process.texi: Likewise.
74391         * manual/resource.texi: Likewise.
74392         (RUSAGE_CHILDREN): Remove statement about specifying a particular
74393         child on GNU/Hurd.
74394         * manual/setjmp.texi: Likewise.
74395         * manual/signal.texi: Likewise.
74396         * manual/startup.texi: Likewise.
74397         * manual/stdio.texi: Likewise.
74398         * manual/terminal.texi: Likewise.
74399         (ONLCR): Document as POSIX.
74400         (OXTABS): Document availability on GNU/Linux as XTABS.
74401         (ONOEOT): Document availability separately from other bits.
74402         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
74403         * manual/time.texi: Likewise.
74404         * manual/users.texi: Likewise.
74405         * INSTALL: Regenerated.
74406         * sysdeps/gnu/errlist.c: Regenerated.
74407
74408         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
74409         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
74410         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
74411         puts.
74412         * configure: Regenerated.
74413
74414 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
74415
74416         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
74417         default includes instead of AC_HEADER_CHECK.
74418         * sysdeps/i386/configure: Regenerated.
74419
74420         [BZ #10716]
74421         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
74422         * math/s_cacoshf.c (__cacoshf): Likewise.
74423         * math/s_cacoshl.c (__cacoshl): Likewise.
74424         * math/s_casinh.c (__casinh): Set signs of result from argument.
74425         * math/s_casinhf.c (__casinhf): Likewise.
74426         * math/s_casinhl.c (__casinhl): Likewise.
74427         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
74428         (casinh_test): Add more tests.
74429         * sysdeps/i386/fpu/libm-test-ulps: Update.
74430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74431
74432 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
74433
74434         * po/zh_TW.po: Update from translation team.
74435
74436         * login/Makefile (distribute): Remove variable.
74437         * catgets/Makefile: Likewise.
74438         * mach/Makefile: Likewise.
74439         * malloc/Makefile: Likewise.
74440         * misc/Makefile: Likewise.
74441         * iconv/Makefile: Likewise.
74442         * nscd/Makefile: Likewise.
74443         * hurd/Makefile: Likewise.
74444         * manual/Makefile: Likewise.
74445         * locale/Makefile: Likewise.
74446         * intl/Makefile: Likewise.
74447         * conform/Makefile: Likewise.
74448         * nss/Makefile: Likewise.
74449         * time/Makefile: Likewise.
74450         * soft-fp/Makefile: Likewise.
74451         * dirent/Makefile: Likewise.
74452         * gmon/Makefile: Likewise.
74453         * po/Makefile: Likewise.
74454         * rt/Makefile: Likewise.
74455         * socket/Makefile: Likewise.
74456         * math/Makefile: Likewise.
74457         * signal/Makefile: Likewise.
74458         * debug/Makefile: Likewise.
74459         * elf/Makefile: Likewise.
74460         * timezone/Makefile: Likewise.
74461         * stdlib/Makefile: Likewise.
74462         * iconvdata/Makefile: Likewise.
74463         * sunrpc/Makefile: Likewise.
74464         * io/Makefile: Likewise.
74465         * argp/Makefile: Likewise.
74466         * inet/Makefile: Likewise.
74467         * hesiod/Makefile: Likewise.
74468         * grp/Makefile: Likewise.
74469         * csu/Makefile: Likewise.
74470         * wctype/Makefile: Likewise.
74471         * crypt/Makefile: Likewise.
74472         * libio/Makefile: Likewise.
74473         * string/Makefile: Likewise.
74474         * nis/Makefile: Likewise.
74475         * resolv/Makefile: Likewise.
74476         * stdio-common/Makefile: Likewise.
74477         * wcsmbs/Makefile: Likewise.
74478         * dlfcn/Makefile: Likewise.
74479         * posix/Makefile: Likewise.
74480
74481         [BZ #6959]
74482         * timezone/Makefile: Don't install timezone files, just the programs
74483         and scripts.
74484
74485 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
74486
74487         * nss/databases.def: Add missing gshadow entry.
74488
74489         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
74490
74491 2012-03-06  Marek Polacek  <polacek@redhat.com>
74492
74493         [BZ #13726]
74494         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
74495         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
74496         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
74497         * stdio-common/tst-long-dbl-fphex.c: New file.
74498
74499 2012-03-06  David S. Miller  <davem@davemloft.net>
74500
74501         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
74502         (set_obp_int): New function.
74503         (get_obp_int): New function.
74504         (__get_clockfreq_via_dev_openprom): Likewise.
74505         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
74506         Avoid unused variable warnings on 'val' and use builtin_expect.
74507         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
74508         __builtin_expect.
74509         (INLINE_CLONE_SYSCALL): Likewise.
74510
74511 2012-03-05  David S. Miller  <davem@davemloft.net>
74512
74513         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74514
74515 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
74516
74517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74518
74519         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
74520         only for |x| >= 40.
74521         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74522
74523 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
74524
74525         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
74526         Replace gettimeofday with __vdso_gettimeofday.
74527
74528         * sysdeps/unix/sysv/linux/x86_64/init-first.c
74529         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
74530         __vdso_clock_gettime and __vdso_getcpu.
74531
74532         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
74533         time with __vdso_time.
74534
74535 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74536
74537         * manual/lang.texi (size_t): Note types to which size_t may be
74538         equivalent with the GNU C Library, but do not describe when
74539         differences between them are significant.
74540
74541 2012-03-05  Andreas Jaeger  <aj@suse.de>
74542
74543         * sysdeps/i386/fpu/libm-test-ulps: Update.
74544
74545 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74546
74547         [BZ #3976]
74548         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
74549         (__ieee754_pow): Save and restore rounding mode and use
74550         round-to-nearest for main computations.
74551         * math/libm-test.inc (pow_test_tonearest): New function.
74552         (pow_test_towardzero): Likewise.
74553         (pow_test_downward): Likewise.
74554         (pow_test_upward): Likewise.
74555         (main): Call the new functions.
74556         * sysdeps/i386/fpu/libm-test-ulps: Update.
74557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74558
74559         [BZ #3976]
74560         * math/libm-test.inc (cosh_test_tonearest): New function.
74561         (cosh_test_towardzero): Likewise.
74562         (cosh_test_downward): Likewise.
74563         (cosh_test_upward): Likewise.
74564         (sinh_test_tonearest): Likewise.
74565         (sinh_test_towardzero): Likewise.
74566         (sinh_test_downward): Likewise.
74567         (sinh_test_upward): Likewise.
74568         (main): Call the new functions.
74569         * sysdeps/i386/fpu/libm-test-ulps: Update.
74570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74571
74572 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74573
74574         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74575         default stack guard is set in last bytes.
74576         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74577
74578 2012-03-05  Kees Cook  <keescook@chromium.org>
74579
74580         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74581
74582         [BZ #13656]
74583         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74584         possibly allocate from heap instead of stack.
74585         * stdio-common/bug-vfprintf-nargs.c: New file.
74586         * stdio-common/Makefile (tests): Add nargs overflow test.
74587
74588 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74589
74590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74591
74592 2012-03-03  Marek Polacek  <polacek@redhat.com>
74593
74594         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74595         * math/math_private.h: Likewise.
74596         * stdlib/tst-strtod.c: Likewise.
74597         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74598         * sysdeps/x86_64/bits/atomic.h: Likewise.
74599
74600 2012-03-02  David S. Miller  <davem@davemloft.net>
74601
74602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74606         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74607         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74608         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74609         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74610
74611 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74612
74613         [BZ #13792]
74614         * manual/examples/README: New file, says the example source files
74615         can be used under GPL>=2.
74616         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74617         line containing just "*/".
74618         * manual/examples/add.c: Add copyright header (GPL>=2).
74619         * manual/examples/argp-ex1.c: Likewise.
74620         * manual/examples/argp-ex2.c: Likewise.
74621         * manual/examples/argp-ex3.c: Likewise.
74622         * manual/examples/argp-ex4.c: Likewise.
74623         * manual/examples/atexit.c: Likewise.
74624         * manual/examples/db.c: Likewise.
74625         * manual/examples/dir.c: Likewise.
74626         * manual/examples/dir2.c: Likewise.
74627         * manual/examples/execinfo.c: Likewise.
74628         * manual/examples/filecli.c: Likewise.
74629         * manual/examples/filesrv.c: Likewise.
74630         * manual/examples/fmtmsgexpl.c: Likewise.
74631         * manual/examples/genpass.c: Likewise.
74632         * manual/examples/inetcli.c: Likewise.
74633         * manual/examples/inetsrv.c: Likewise.
74634         * manual/examples/isockad.c: Likewise.
74635         * manual/examples/longopt.c: Likewise.
74636         * manual/examples/memopen.c: Likewise.
74637         * manual/examples/memstrm.c: Likewise.
74638         * manual/examples/mkfsock.c: Likewise.
74639         * manual/examples/mkisock.c: Likewise.
74640         * manual/examples/mygetpass.c: Likewise.
74641         * manual/examples/pipe.c: Likewise.
74642         * manual/examples/popen.c: Likewise.
74643         * manual/examples/rprintf.c: Likewise.
74644         * manual/examples/search.c: Likewise.
74645         * manual/examples/select.c: Likewise.
74646         * manual/examples/setjmp.c: Likewise.
74647         * manual/examples/sigh1.c: Likewise.
74648         * manual/examples/sigusr.c: Likewise.
74649         * manual/examples/stpcpy.c: Likewise.
74650         * manual/examples/strdupa.c: Likewise.
74651         * manual/examples/strftim.c: Likewise.
74652         * manual/examples/strncat.c: Likewise.
74653         * manual/examples/subopt.c: Likewise.
74654         * manual/examples/swapcontext.c: Likewise.
74655         * manual/examples/termios.c: Likewise.
74656         * manual/examples/testopt.c: Likewise.
74657         * manual/examples/testpass.c: Likewise.
74658         * manual/examples/timeval_subtract.c: Likewise.
74659
74660         [BZ #13792]
74661         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74662         function to ...
74663         * manual/timeval_subtract.c.texi: ... here, new file.
74664
74665 2012-03-02  David S. Miller  <davem@davemloft.net>
74666
74667         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74668
74669 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74670
74671         [BZ #3976]
74672         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74673         (__sin): Save and restore rounding mode and use round-to-nearest
74674         for all computations.
74675         (__cos): Save and restore rounding mode and use round-to-nearest
74676         for all computations.
74677         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74678         <fenv.h>.
74679         (tan): Save and restore rounding mode and use round-to-nearest for
74680         all computations.
74681         * math/libm-test.inc (cos_test_tonearest): New function.
74682         (cos_test_towardzero): Likewise.
74683         (cos_test_downward): Likewise.
74684         (cos_test_upward): Likewise.
74685         (sin_test_tonearest): Likewise.
74686         (sin_test_towardzero): Likewise.
74687         (sin_test_downward): Likewise.
74688         (sin_test_upward): Likewise.
74689         (tan_test_tonearest): Likewise.
74690         (tan_test_towardzero): Likewise.
74691         (tan_test_downward): Likewise.
74692         (tan_test_upward): Likewise.
74693         (main): Call the new functions.
74694         * sysdeps/i386/fpu/libm-test-ulps: Update.
74695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74696
74697         [BZ #10135]
74698         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74699         small n, then large n, before computing and testing k+n.
74700         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74701         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74702         Likewise.
74703         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74704         Likewise.
74705         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74706         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74707         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74708         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74709         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74710         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74711         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74712         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74713         * math/libm-test.inc (scalbn_test): Add more tests.
74714         (scalbln_test): Likewise.
74715
74716         * manual/filesys.texi (mode_t): Describe constraints on size and
74717         signedness, not exact equivalence to a particular type.
74718         (ino_t): Likewise.
74719         (ino64_t): Likewise.
74720         (dev_t): Likewise.
74721         (nlink_t): Likewise.
74722         (blkcnt_t): Likewise.
74723         (blkcnt64_t): Likewise.
74724         * manual/llio.texi (off_t): Likewise.
74725
74726         [BZ #3976]
74727         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74728         (__ieee754_exp): Save and restore rounding mode and use
74729         round-to-nearest for all computations.
74730         * math/libm-test.inc (exp_test_tonearest): New function.
74731         (exp_test_towardzero): Likewise.
74732         (exp_test_downward): Likewise.
74733         (exp_test_upward): Likewise.
74734         (main): Call the new functions.
74735         * sysdeps/i386/fpu/libm-test-ulps: Update.
74736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74737
74738 2012-03-01  Chris Demetriou  <cgd@google.com>
74739
74740         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74741         have predictable order.
74742
74743 2012-03-01  David S. Miller  <davem@davemloft.net>
74744
74745         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74746
74747         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74748         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74749         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74750         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74751
74752         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74753         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74754         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74756         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74757         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74758         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74759         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74760         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74761
74762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74763
74764         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74765         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74766         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74767
74768         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74769         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74770         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74771         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74772         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74773         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74774         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74775         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74776         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74777         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74778         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74779         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74780         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74781         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74782         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74783         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74784         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74785         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74786         * sysdeps/sparc/elf/configure: Regenerated.
74787
74788 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74789
74790         * configure.in (AS, LD): Require binutils 2.20 or later.
74791         * configure: Regenerated.
74792         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74793         as required minimum version.
74794         * INSTALL: Regenerated.
74795
74796         [BZ #2541]
74797         [BZ #4108]
74798         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74799         before squaring exponent.
74800         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74801         bottom long double and 27 bits of top long double before squaring
74802         exponent.
74803         * math/libm-test.inc (erfc_test): Add more tests.
74804         * sysdeps/i386/fpu/libm-test-ulps: Update.
74805         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74807
74808 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74809
74810         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74811         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74812         containing bit-fields.
74813         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74814         * soft-fp/single.h (_FP_UNION_S): Likewise.
74815         * soft-fp/double.h (_FP_UNION_D): Likewise.
74816
74817 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74818
74819         [BZ #13786]
74820         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74821         not include ../strcmp.S.
74822         [USE_AS_STRNCASECMP_L]: Likewise.
74823         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74824         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74825         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74826         (__strncasecmp_l_ia32): Define as alias to
74827         __strncasecmp_l_nonascii.
74828
74829         [BZ #5794]
74830         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74831         * sysdeps/i386/fpu/libm-test-ulps: Update.
74832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74833
74834         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74836
74837 2012-02-29  Jeff Law  <law@redhat.com>
74838
74839         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74840         out of bounds read.
74841
74842 2012-02-29  Marek Polacek  <polacek@redhat.com>
74843
74844         [BZ #13706]
74845         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74846         * elf/Makefile: Add rules to run tst-unused-dep.out.
74847
74848 2012-02-28  David S. Miller  <davem@davemloft.net>
74849
74850         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74851         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74852         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74853         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74854         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74855         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74856
74857 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74858
74859         * math/libm-test.inc (llround_test): Move one test from
74860         lround_test.  Use TEST_f_L in moved test.
74861         (lround_test): Move misplaced test to llround_test.  Add testcase
74862         from bug 2561.
74863
74864 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74865
74866         * sysdeps/x86_64/fpu/e_expf.S: New file.
74867         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74868
74869 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74870
74871         [BZ #13637]
74872         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74873         of remain_len that may cause incomplete multi-byte character and
74874         false match.
74875         * posix/bug-regex33.c: New file.
74876         * posix/Makefile (tests): Add bug-regex33.
74877
74878 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74879
74880         * manual/macros.texi: New file.
74881         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74882         * manual/libc.texinfo: Include macros.texi.
74883         * manual/creatute.texi: Likewise.
74884         * manual/install.texi: Likewise.
74885         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74886         @glibcadj{} in references to the GNU C Library.
74887         * manual/charset.texi: Likewise.
74888         * manual/conf.texi: Likewise.
74889         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74890         when not using those macros.
74891         * manual/creature.texi: Likewise.
74892         * manual/crypt.texi: Likewise.
74893         * manual/errno.texi: Likewise.
74894         * manual/filesys.texi: Likewise.
74895         * manual/header.texi: Likewise.
74896         * manual/install.texi: Likewise.
74897         * manual/intro.texi: Likewise.
74898         * manual/io.texi: Likewise.
74899         * manual/job.texi: Likewise.
74900         * manual/lang.texi: Likewise.
74901         * manual/libc.texiinfo: Likewise.
74902         * manual/llio.texi: Likewise.
74903         * manual/locale.texi: Likewise.
74904         * manual/maint.texi: Likewise.
74905         * manual/math.texi: Likewise.
74906         * manual/memory.texi: Likewise.
74907         * manual/message.texi: Likewise.
74908         * manual/nss.texi: Likewise.
74909         * manual/pattern.texi: Likewise.
74910         * manual/process.texi: Likewise.
74911         * manual/resource.texi: Likewise.
74912         * manual/search.texi: Likewise.
74913         * manual/setjmp.texi: Likewise.
74914         * manual/signal.texi: Likewise.
74915         * manual/socket.texi: Likewise.
74916         * manual/startup.texi: Likewise.
74917         * manual/stdio.texi: Likewise.
74918         * manual/string.texi: Likewise.
74919         * manual/sysinfo.texi: Likewise.
74920         * manual/syslog.texi: Likewise.
74921         * manual/terminal.texi: Likewise.
74922         * manual/time.texi: Likewise.
74923         * manual/users.texi: Likewise.
74924         * INSTALL: Regenerated.
74925         * NOTES: Regenerated.
74926         * sysdeps/gnu/errlist.c: Regenerated.
74927
74928 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74929
74930         * include/dirent.h: Include <dirstream.h> before
74931         <dirent/dirent.h>.
74932
74933 2012-02-28  David S. Miller  <davem@davemloft.net>
74934
74935         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74936         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74937         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74938         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74939
74940 2012-02-27  David S. Miller  <davem@davemloft.net>
74941
74942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74944         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74945         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74946
74947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74948         frame pointer instead of stack pointer relative arg slot.
74949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74950         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74951         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74952
74953 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74954
74955         [BZ #3992]
74956         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74957
74958 2012-02-27  David S. Miller  <davem@davemloft.net>
74959
74960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74964         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74965         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74966         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74967         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74968
74969 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74970
74971         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74972         later.  Allow versions 5-9.
74973         * configure: Regenerated.
74974         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74975         required minimum version and 4.6 as recommended version.  Do not
74976         mention bugs in GCC 2.7 and 2.8.
74977         * INSTALL: Regenerated.
74978
74979 2012-02-27  David S. Miller  <davem@davemloft.net>
74980
74981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74985         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74986         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74987         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74988         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74989
74990         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74991         manipulate bits before adding and subtracting TWO112[sx].
74992         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74993
74994 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74995
74996         [BZ #13775]
74997         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74998         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74999         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
75000         being in POSIX, because they are in 1003.1-2008.
75001
75002         * rt/tst-aio.c: Include <fcntl.h>.
75003         * rt/tst-aio7.c: Likewise.
75004         * rt/tst-aio64.c: Likewise.
75005
75006         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
75007
75008 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
75009
75010         * manual/install.texi (--with-headers): Describe headers as
75011         interface headers, not private headers.
75012         (Specific advice for GNU/Linux systems): Describe use of headers
75013         from "make headers_install", not private headers from older
75014         kernels.
75015         * INSTALL: Regenerated.
75016         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
75017         Change to 2.6.19.
75018         * sysdeps/unix/sysv/linux/configure: Regenerated.
75019
75020         * manual/llio.texi (fclean): Remove documentation.
75021
75022         * manual/Makefile (libc-texi-generated): New variable.  Include
75023         version.texi.
75024         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
75025         $(libc-texi-generated), not duplicated list of files.
75026         (version.texi, stamp-version): New rules.
75027         (realclean): Remove $(libc-texi-generated), not individual files
75028         from that list.  Do not remove dir-add.texinfo.
75029         * manual/libc.texinfo: Comment out uses of edition numbers and
75030         references to printed manual.  Remove last-updated dates.
75031         (EDITION): Comment out.
75032         (ISBN): Likewise.
75033         (VERSION, UPDATED): Remove.
75034         (version.texi): Include.
75035
75036 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
75037
75038         * sysdeps/posix/spawni.c: Include <signal.h>.
75039         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
75040         * sysdeps/pthread/aio_fsync.c: Likewise.
75041
75042 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
75043
75044         * conform/Makefile (tests): Run only when not cross-compiling and
75045         when fast-check is not defined.
75046
75047         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
75048         * conform/data/limits.h-data: Fixes for POSIX2008.
75049         * conform/run-conformtest.sh: Run all tests.
75050         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
75051         headers.
75052         * include/bits/dlfcn.h: Likewise.
75053         * include/langinfo.h: Likewise.
75054         * include/monetary.h: Likewise.
75055         * include/sys/poll.h: Likewise.
75056
75057         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
75058         for __USE_GNU.
75059         * posix/spawn.h: Define __need_sigset_t.
75060         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
75061         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
75062         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
75063         to get sigevent_t only.
75064         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
75065         only for __USE_GNU.
75066         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75067         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
75068         process_vm_writev only for __USE_GNU.
75069         * termios/termios.h: Declare tcgetsid also for POSIX2008.
75070
75071         * conform/Makefile: For now ignore errors from run-conformtest.
75072         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
75073         POSIX to avoid namespace pollution.  Don't prepend headers.
75074         * conform/data/aio.h-data: Fixes for POSIX testing.
75075         * conform/data/fcntl.h-data: Likewise.
75076         * conform/data/glob.h-data: Likewise.
75077         * conform/data/grp.h-data: Likewise.
75078         * conform/data/pthread.h-data: Likewise.
75079         * conform/data/pwd.h-data: Likewise.
75080         * conform/data/signal.h-data: Likewise.
75081         * conform/data/spawn.h-data: Likewise.
75082         * conform/data/stdio.h-data: Likewise.
75083         * conform/data/stdlib.h-data: Likewise.
75084         * conform/data/stropts.h-data: Likewise.
75085         * conform/data/sys/mman.h-data: Likewise.
75086         * conform/data/sys/stat.h-data: Likewise.
75087         * conform/data/sys/types.h-data: Likewise.
75088         * conform/data/sys/wait.h-data: Likewise.
75089         * conform/data/time.h-data: Likewise.
75090         * conform/data/unistd.h-data: Likewise.
75091         * conform/data/utime.h-data: Likewise.
75092
75093         * io/sys/stat.h: fchmod was always in POSIX.
75094         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
75095         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
75096         * rt/aio.h: Define __need_timespec before including <time.h>.
75097         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
75098         struct.  Add forward declaration of pthread_attr_t and use it in
75099         sigevent.
75100         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
75101         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
75102         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
75103         always remove CLK_TCK definition.
75104
75105 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
75106
75107         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
75108
75109 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
75110
75111         * conform/run-conformtest.sh: New file.
75112         * conform/Makefile: Run run-conformtest for tests.
75113         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
75114         support.
75115
75116         * conform/data/uchar.h-data: New file.
75117         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
75118         * conform/data/arpa/inet.h-data: Likewise.
75119         * conform/data/assert.h-data: Likewise.
75120         * conform/data/complex.h-data: Likewise.
75121         * conform/data/cpio.h-data: Likewise.
75122         * conform/data/ctype.h-data: Likewise.
75123         * conform/data/dirent.h-data: Likewise.
75124         * conform/data/dlfcn.h-data: Likewise.
75125         * conform/data/errno.h-data: Likewise.
75126         * conform/data/fcntl.h-data: Likewise.
75127         * conform/data/float.h-data: Likewise.
75128         * conform/data/fmtmsg.h-data: Likewise.
75129         * conform/data/fnmatch.h-data: Likewise.
75130         * conform/data/ftw.h-data: Likewise.
75131         * conform/data/glob.h-data: Likewise.
75132         * conform/data/grp.h-data: Likewise.
75133         * conform/data/iconv.h-data: Likewise.
75134         * conform/data/inttypes.h-data: Likewise.
75135         * conform/data/langinfo.h-data: Likewise.
75136         * conform/data/libgen.h-data: Likewise.
75137         * conform/data/limits.h-data: Likewise.
75138         * conform/data/locale.h-data: Likewise.
75139         * conform/data/math.h-data: Likewise.
75140         * conform/data/monetary.h-data: Likewise.
75141         * conform/data/mqueue.h-data: Likewise.
75142         * conform/data/ndbm.h-data: Likewise.
75143         * conform/data/net/if.h-data: Likewise.
75144         * conform/data/netdb.h-data: Likewise.
75145         * conform/data/netinet/in.h-data: Likewise.
75146         * conform/data/nl_types.h-data: Likewise.
75147         * conform/data/poll.h-data: Likewise.
75148         * conform/data/pthread.h-data: Likewise.
75149         * conform/data/pwd.h-data: Likewise.
75150         * conform/data/regex.h-data: Likewise.
75151         * conform/data/sched.h-data: Likewise.
75152         * conform/data/search.h-data: Likewise.
75153         * conform/data/semaphore.h-data: Likewise.
75154         * conform/data/setjmp.h-data: Likewise.
75155         * conform/data/signal.h-data: Likewise.
75156         * conform/data/spawn.h-data: Likewise.
75157         * conform/data/stdarg.h-data: Likewise.
75158         * conform/data/stdio.h-data: Likewise.
75159         * conform/data/stdlib.h-data: Likewise.
75160         * conform/data/string.h-data: Likewise.
75161         * conform/data/strings.h-data: Likewise.
75162         * conform/data/stropts.h-data: Likewise.
75163         * conform/data/sys/ipc.h-data: Likewise.
75164         * conform/data/sys/mman.h-data: Likewise.
75165         * conform/data/sys/msg.h-data: Likewise.
75166         * conform/data/sys/resource.h-data: Likewise.
75167         * conform/data/sys/select.h-data: Likewise.
75168         * conform/data/sys/sem.h-data: Likewise.
75169         * conform/data/sys/shm.h-data: Likewise.
75170         * conform/data/sys/socket.h-data: Likewise.
75171         * conform/data/sys/stat.h-data: Likewise.
75172         * conform/data/sys/statvfs.h-data: Likewise.
75173         * conform/data/sys/time.h-data: Likewise.
75174         * conform/data/sys/timeb.h-data: Likewise.
75175         * conform/data/sys/times.h-data: Likewise.
75176         * conform/data/sys/types.h-data: Likewise.
75177         * conform/data/sys/uio.h-data: Likewise.
75178         * conform/data/sys/un.h-data: Likewise.
75179         * conform/data/sys/utsname.h-data: Likewise.
75180         * conform/data/sys/wait.h-data: Likewise.
75181         * conform/data/syslog.h-data: Likewise.
75182         * conform/data/tar.h-data: Likewise.
75183         * conform/data/termios.h-data: Likewise.
75184         * conform/data/utime.h-data: Likewise.
75185         * conform/data/utmpx.h-data: Likewise.
75186         * conform/data/varargs.h-data: Likewise.
75187         * conform/data/wchar.h-data: Likewise.
75188         * conform/data/wctype.h-data: Likewise.
75189         * conform/data/wordexp.h-data: Likewise.
75190
75191         * include/stropts.h: New file.
75192         * include/uchar.h: New file.
75193         * include/aio.h: Changes to allow conformtest.pl to use the headers.
75194         * include/assert.h: Likewise.
75195         * include/ctype.h: Likewise.
75196         * include/dirent.h: Likewise.
75197         * include/dlfcn.h: Likewise.
75198         * include/fcntl.h: Likewise.
75199         * include/fnmatch.h: Likewise.
75200         * include/glob.h: Likewise.
75201         * include/grp.h: Likewise.
75202         * include/libio.h: Likewise.
75203         * include/locale.h: Likewise.
75204         * include/math.h: Likewise.
75205         * include/net/if.h: Likewise.
75206         * include/netdb.h: Likewise.
75207         * include/netinet/in.h: Likewise.
75208         * include/pthread.h: Likewise.
75209         * include/pwd.h: Likewise.
75210         * include/regex.h: Likewise.
75211         * include/sched.h: Likewise.
75212         * include/search.h: Likewise.
75213         * include/setjmp.h: Likewise.
75214         * include/signal.h: Likewise.
75215         * include/stdio.h: Likewise.
75216         * include/stdlib.h: Likewise.
75217         * include/string.h: Likewise.
75218         * include/sys/cdefs.h: Likewise.
75219         * include/sys/mman.h: Likewise.
75220         * include/sys/msg.h: Likewise.
75221         * include/sys/resource.h: Likewise.
75222         * include/sys/select.h: Likewise.
75223         * include/sys/socket.h: Likewise.
75224         * include/sys/stat.h: Likewise.
75225         * include/sys/statvfs.h: Likewise.
75226         * include/sys/time.h: Likewise.
75227         * include/sys/times.h: Likewise.
75228         * include/sys/uio.h: Likewise.
75229         * include/sys/utsname.h: Likewise.
75230         * include/sys/wait.h: Likewise.
75231         * include/termios.h: Likewise.
75232         * include/time.h: Likewise.
75233         * include/ulimit.h: Likewise.
75234         * include/unistd.h: Likewise.
75235         * include/utime.h: Likewise.
75236         * include/wchar.h: Likewise.
75237         * include/wctype.h: Likewise.
75238         * include/wordexp.h: Likewise.
75239
75240         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
75241
75242         * time/time.h: TIME_UTC must be a macro.
75243         Make timespec_get available for ISO C11 only as well.
75244
75245 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
75246
75247         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
75248         Reported by Peng Haitao <penght@cn.fujitsu.com>.
75249
75250 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75251
75252         * configure.in: Use -o not -a in test for unsupported multi-arch.
75253
75254 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75255
75256         * manual/texinfo.tex: Update to version 2012-01-19.16.
75257
75258 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75259
75260         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
75261
75262 2012-02-24  Roland McGrath  <roland@hack.frob.com>
75263
75264         [BZ #13738]
75265         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
75266         * manual/fdl-1.3.texi: New file.
75267         * manual/fdl-1.1.texi: File removed.
75268
75269         [BZ #13738]
75270         * manual/libc.texinfo (FDL_VERSION): New @set.
75271         Use it for mention of FDL in cover text.
75272         (Documentation License): Use it in @include file name.
75273
75274 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75275             Roland McGrath  <roland@hack.frob.com>
75276
75277         [BZ #5461]
75278         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
75279         (not LONG_LONG_MAX and LONG_LONG_MIN.
75280         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
75281         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
75282         name.
75283         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
75284
75285 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75286
75287         [BZ #2547]
75288         [BZ #11365]
75289         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
75290         manipulate bits before adding and subtracting TWO23[sx].
75291         * math/libm-test.inc (nearbyint_test): Add more tests.
75292
75293 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75294
75295         [BZ #2548]
75296         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
75297         bits before adding and subtracting TWO23[sx].
75298         * math/libm-test.inc (rint_test): Add more tests.
75299         (rint_test_tonearest): Likewise.
75300         (rint_test_towardzero): Likewise.
75301         (rint_test_downward): Likewise.
75302         (rint_test_upward: Likewise.
75303
75304 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75305
75306         [BZ #10110]
75307         * include/stdc-predef.h: New file.  Extracted from features.h.
75308         * include/features.h: Include stdc-predef.h.
75309         * Makefile (headers): Add stdc-predef.h.
75310         * CONFORMANCE (Compiler limitations): Update.
75311
75312 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75313
75314         * manual/libc.texinfo (VERSION, UPDATED): Revert.
75315
75316 2012-02-21  David S. Miller  <davem@davemloft.net>
75317
75318         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
75319         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75320
75321 2012-02-20  David S. Miller  <davem@davemloft.net>
75322
75323         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
75324         using a normal save/restore sequence, rather than allocating a
75325         dummy stack frame just to store a frame pointer and restore.
75326         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75327
75328 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75329
75330         * manual/install.texi: Fix stray word in line-wrapped comment.
75331
75332 2012-02-20  David S. Miller  <davem@davemloft.net>
75333
75334         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
75335         both binutils and gcc support GOTDATA.
75336
75337         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
75338         "rd %pc" in the PIC register setup sequences.
75339
75340         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
75341         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
75342         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75343         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
75344         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75345         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
75346         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
75347         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75348         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
75349         (SYSCALL_ERROR_HANDLER): Likewise.
75350         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75351         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75352         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
75353         (SYSCALL_ERROR_HANDLER): Likewise.
75354
75355         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
75356         (HAVE_GCC_GOTDATA): New.
75357         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
75358         relocation support in both binutils and gcc.
75359         * sysdeps/sparc/elf/configure: Regenerate.
75360
75361         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
75362         * sysdeps/sparc/sparc32/elf/configure: Delete.
75363         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
75364         * sysdeps/sparc/sparc64/elf/configure: Delete.
75365         * sysdeps/sparc/elf/configure.in: New file.
75366         * sysdeps/sparc/elf/configure: Generate.
75367
75368         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
75369         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
75370         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75371         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
75372         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
75373
75374 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75375
75376         * manual/install.texi: Do not mention specific glibc version
75377         numbers.
75378         * manual/libc.texinfo (VERSION, UPDATED): Update.
75379         (@copying): Use @copyright{} and range of years.
75380
75381 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75382
75383         [BZ #13695]
75384         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
75385         [crti.S not in sysdirs] (generated): Do not append.
75386         [crti.S not in sysdirs] (omit-deps): Likewise.
75387         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
75388         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
75389         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
75390         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
75391         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
75392         Likewise.
75393         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
75394         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
75395         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
75396         * csu/defs.awk: Remove file.
75397         * sysdeps/generic/initfini.c: Likewise.
75398         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
75399         variable.
75400         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
75401         Likewise.
75402
75403 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75404
75405         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
75406         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
75407         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
75408         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
75409         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
75410         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
75411         <bits/epoll.h>.
75412         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
75413         (__EPOLL_PACKED): Define to empty if not defined by
75414         <bits/epoll.h>.
75415         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
75416         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75417         bits/epoll.h.
75418
75419 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75420
75421         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
75422         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
75423         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
75424         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
75425         <bits/timerfd.h>.
75426         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
75427         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75428         bits/timerfd.h.
75429
75430 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75431
75432         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
75433         in C locale.
75434         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75435         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
75436         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
75437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75438
75439 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
75440
75441         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75442         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75443
75444 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
75445
75446         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
75447         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
75448         defined.
75449         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
75450         Likewise.
75451         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
75452         entry for 2.16.
75453
75454 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
75455
75456         * math/w_acos.c: Use non-signaling floating-point comparisons.
75457         * math/w_acosf.c: Likewise.
75458         * math/w_acosh.c: Likewise.
75459         * math/w_acoshf.c: Likewise.
75460         * math/w_acoshl.c: Likewise.
75461         * math/w_acosl.c: Likewise.
75462         * math/w_asin.c: Likewise.
75463         * math/w_asinf.c: Likewise.
75464         * math/w_asinl.c: Likewise.
75465         * math/w_atanh.c: Likewise.
75466         * math/w_atanhf.c: Likewise.
75467         * math/w_atanhl.c: Likewise.
75468         * math/w_exp2.c: Likewise.
75469         * math/w_exp2f.c: Likewise.
75470         * math/w_exp2l.c: Likewise.
75471         * math/w_j0.c: Likewise.
75472         * math/w_j0f.c: Likewise.
75473         * math/w_j0l.c: Likewise.
75474         * math/w_j1.c: Likewise.
75475         * math/w_j1f.c: Likewise.
75476         * math/w_j1l.c: Likewise.
75477         * math/w_jn.c: Likewise.
75478         * math/w_jnf.c: Likewise.
75479         * math/w_log.c: Likewise.
75480         * math/w_log10.c: Likewise.
75481         * math/w_log10f.c: Likewise.
75482         * math/w_log10l.c: Likewise.
75483         * math/w_log2.c: Likewise.
75484         * math/w_log2f.c: Likewise.
75485         * math/w_log2l.c: Likewise.
75486         * math/w_logf.c: Likewise.
75487         * math/w_logl.c: Likewise.
75488         * math/w_sqrt.c: Likewise.
75489         * math/w_sqrtf.c: Likewise.
75490         * math/w_sqrtl.c: Likewise.
75491         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75492         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
75493         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75494         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75495         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75496
75497 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75498
75499         [BZ #9739]
75500         * manual/string.texi (strnlen): Use correct parameter name in
75501         equivalent expression.
75502
75503 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75504
75505         [BZ #11174]
75506         * manual/users.texi (seteuid): Consistently use neweuid for
75507         argument name.
75508
75509 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75510
75511         [BZ #13704]
75512         * manual/nss.texi (Services in the NSS configuration): Correct
75513         list of services in example configuration file.
75514
75515 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
75516
75517         [BZ #11322]
75518         * manual/arith.texi: Remove statements about negative zero
75519         behaving identically to zero.
75520
75521 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75522
75523         [BZ #5993]
75524         * manual/install.texi: Do not document upgrading from libc5.
75525
75526 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75527
75528         [BZ #4596]
75529         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
75530
75531 2012-02-18  David S. Miller  <davem@davemloft.net>
75532
75533         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
75534         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
75535         %o7 across the call.
75536         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
75537         instead.
75538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
75539         SETUP_PIC_REG_LEAF.
75540         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75541         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
75542         * sysdeps/sparc/crtn.S: Likewise.
75543
75544 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
75545
75546         * aout/Makefile: Remove.
75547
75548 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
75549
75550         [BZ #13058]
75551         * manual/examples/argp-ex1.c (main): Format definition in GNU
75552         style.
75553         * manual/examples/argp-ex2.c (main): Likewise.
75554         * manual/examples/argp-ex3.c (main): Likewise.
75555         * manual/examples/argp-ex4.c (main): Likewise.
75556         * manual/examples/longopt.c (main): Use new-style prototype
75557         definition.
75558         * manual/examples/strncat.c (main): Specify return type and use
75559         (void) for arguments.
75560         * manual/examples/subopt.c (main): Use char **argv argument.
75561
75562 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75563
75564         [BZ #5077]
75565         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75566         rounding modes.
75567
75568 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75569
75570         [BZ #6907]
75571         * manual/string.texi (strchr): Change when strchrnul is
75572         recommended.
75573
75574 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75575
75576         [BZ #174]
75577         * manual/locale.texi (setlocale): Document LOCPATH.
75578
75579 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75580
75581         [BZ #10210]
75582         * manual/process.texi (execle): Move @dots{} before last argument.
75583
75584 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75585
75586         [BZ #12047]
75587         * manual/charset.texi (Generic Charset Conversion): Fix typo
75588         (LC_TYPE -> LC_CTYPE).
75589
75590 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75591
75592         [BZ #5805]
75593         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75594         (scalbnf): Likewise.
75595         (scalbnl): Likewise.
75596         (scalbln): Likewise.
75597         (scalblnf): Likewise.
75598         (scalblnl): Likewise.
75599         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75600         (vwarnx): Likewise.
75601         (verr): Likewise.
75602         (verrx): Likewise.
75603         * manual/filesys.texi (telldir): Use braces around return type.
75604         * manual/llio.texi (mmap): Add space after comma.
75605         (mmap64): Likewise.
75606         * manual/math.texi (jn): Use @var{} on parameter names.
75607         (jnf): Likewise.
75608         (jnl): Likewise.
75609         (yn): Likewise.
75610         (ynf): Likewise.
75611         (ynl): Likewise.
75612         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75613         line.
75614         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75615         "...".
75616         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75617         (sched_get_priority_max): Likewise.
75618         * manual/signal.texi (sigvec): Add space after comma.
75619         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75620         names.
75621         (if_indextoname): Likewise.
75622         (if_freenameindex): Likewise.
75623         (sendto): Use ',' instead of '.' in prototype.
75624         * manual/startup.texi (syscall): Use @dots{} instead of literal
75625         "...".
75626         * manual/stdio.texi (__fpending): Separate initial words of
75627         paragraph from @deftypefun line.
75628         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75629         "...".
75630         (vsyslog): Use @var{} on parameter names.
75631         * manual/terminal.texi (stty): Use @var{} on parameter names.
75632         * manual/users.texi (getutmp): Use @var{} on parameter names.
75633         (getutmpx): Likewise.
75634
75635 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75636
75637         [BZ #6884]
75638         * manual/stdio.texi (fopen): Fix typos in description of
75639         ",ccs=STRING".
75640
75641 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75642
75643         [BZ #4026]
75644         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75645         get clock_id definition.
75646
75647 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75648
75649         [BZ #4822]
75650         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75651         (madvise): Cast every argument to void on its own.
75652
75653 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75654
75655         [BZ #9902]
75656         * manual/startup.texi (Exit Status): Fix typo.
75657
75658 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75659
75660         [BZ #10140]
75661         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75662         * manual/examples/argp-ex2.c: Likewise.
75663         * manual/examples/argp-ex3.c: Likewise.
75664
75665 2012-02-16  Richard Henderson  <rth@redhat.com>
75666
75667         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75668         * sysdeps/s390/s390-32/initfini.c: Remove.
75669         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75670         * sysdeps/s390/s390-64/initfini.c: Remove.
75671
75672 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75673
75674         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75675         compiler output for sysdeps/generic/initfini.c.
75676         * sysdeps/sh/elf/initfini.c: Remove file.
75677
75678 2012-02-16  David S. Miller  <davem@davemloft.net>
75679
75680         [BZ #11494]
75681         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75682
75683         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75684         * sysdeps/sparc/crti.S: New file.
75685         * sysdeps/sparc/crtn.S: New file.
75686         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75687         * sysdeps/sparc/sparc64/Makefile: Likewise.
75688
75689 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75690
75691         [BZ #3335]
75692         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75693
75694 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75695
75696         [BZ #4822]
75697         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75698
75699         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75700         (write, read, close): Likewise.
75701         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75702
75703 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75704
75705         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75706         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75707         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75708         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75709         <bits/signalfd.h>.
75710         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75711         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75712         bits/signalfd.h.
75713
75714 2012-02-14  Marek Polacek  <polacek@redhat.com>
75715
75716         * sysdeps/x86_64/crti.S: New file.
75717         * sysdeps/x86_64/crtn.S: New file.
75718         * sysdeps/x86_64/elf/initfini.c: Remove file.
75719
75720 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75721
75722         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75723         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75724         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75725         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75726         <bits/inotify.h>.
75727         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75728         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75729         bits/inotify.h.
75730
75731 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75732
75733         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75734         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75735         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75736         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75737         <bits/eventfd.h>.
75738         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75739         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75740         bits/eventfd.h.
75741
75742 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75743
75744         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75745         __feraiseexcept instead of feraiseexcept.
75746
75747         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75748         nanosleep invocations.
75749         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75750         strings, and add error checking for a nanosleep invocations.
75751
75752 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         Replace FSF snail mail address with URLs, as per GNU coding standards.
75755         Most of the snail mail addresses were wrong anyway, and omitting
75756         them makes the source code easier to maintain.  Almost all of the
75757         changes are to license notices and to locale LC_IDENTIFICATION
75758         addresses, except for this one:
75759         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75760         not its snail mail address.
75761
75762 2012-02-09  Richard Henderson  <rth@twiddle.net>
75763
75764         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75765         of kernel-features.h.
75766
75767         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75768
75769 2012-02-08  Marek Polacek  <polacek@redhat.com>
75770
75771         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75772         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75773         * sysdeps/gnu/_G_config.h: Likewise.
75774         * sysdeps/generic/_G_config.h: Likewise.
75775
75776 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75777
75778         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75779         tests.
75780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75781
75782         * sysdeps/powerpc/powerpc32/crti.S: New file.
75783         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75784         * sysdeps/powerpc/powerpc64/crti.S: New file.
75785         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75786
75787         * Makeconfig (have-initfini): Don't set.
75788         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75789         * configure.in (nopic_initfini): Don't substitute.
75790         * config.h.in (HAVE_INITFINI): Don't #undef.
75791         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75792         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75793
75794 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75795
75796         Support crti.S and crtn.S provided directly by architectures.
75797         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75798         [crti.S in sysdirs] (omit-deps): Likewise.
75799         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75800         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75801         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75802         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75803         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75804         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75805         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75806         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75807         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75808         compiler output for sysdeps/generic/initfini.c.
75809         * sysdeps/i386/elf/Makefile: Remove file.
75810         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75811
75812 2012-02-07  Marek Polacek  <polacek@redhat.com>
75813
75814         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75815         * sysdeps/gnu/_G_config.h: Likewise.
75816         * sysdeps/mach/hurd/_G_config.h: Likewise.
75817
75818 2012-02-07  Marek Polacek  <polacek@redhat.com>
75819
75820         * math/Makefile (tests): Add tst-CMPLX2.
75821         * math/tst-CMPLX2.c: New file.
75822
75823 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75824
75825         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75826
75827         * math/libm-test.inc (jn_test): Add missing L suffix.
75828
75829 2012-02-06  Marek Polacek  <polacek@redhat.com>
75830
75831         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75832         * sysdeps/i386/fpu/e_powf.S: Likewise.
75833         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75834         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75835         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75836         * sysdeps/i386/fpu/e_pow.S: Likewise.
75837         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75838         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75839         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75840         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75841         * sysdeps/i386/fpu/e_log2.S: Likewise.
75842         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75843         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75844         * sysdeps/i386/fpu/e_powl.S: Likewise.
75845         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75846         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75847         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75848         * sysdeps/i386/fpu/e_logl.S: Likewise.
75849         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75850         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75851         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75852         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75853         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75854         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75855         * sysdeps/i386/fpu/e_log.S: Likewise.
75856         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75857         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75858         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75859         * sysdeps/i386/fpu/e_logf.S: Likewise.
75860         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75861         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75862         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75863         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75864         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75865         * sysdeps/i386/fpu/e_log10.S: Likewise.
75866         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75867         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75868         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75869         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75870         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75871         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75872         * sysdeps/i386/asm-syntax.h: Likewise.
75873         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75874         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75875         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75876         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75877         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75878         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75879         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75880         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75881         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75882         * sysdeps/powerpc/sysdep.h: Likewise.
75883         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75884         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75885
75886 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75887
75888         [BZ #411]
75889         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75890
75891 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75892
75893         * sysdeps/i386/sysdep.h: Include <features.h>.
75894         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75895         version.
75896
75897 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75898
75899         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75900         Define.
75901         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75902         LOAD_PIC_REG_STR.
75903
75904 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75905
75906         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75907         (SETUP_PIC_REG): Use GET_PC_THUNK.
75908         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75909         macro.
75910
75911 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75912
75913         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75914         for non-PIC compilation.
75915         (SETUP_PIC_REG): Add .p2align directive.
75916         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75917         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75918         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75919         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75920         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75921         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75922         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75923         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75924         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75925         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75926         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75927         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75928         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75929         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75930         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75931         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75932         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75933         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75934         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75935         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75936         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75937         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75938         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75939         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75940         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75941         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75942         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75943         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75944         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75945         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75946         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75947         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75948         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75949         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75950         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75951         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75952         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75953         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75954         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75955         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75956         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75957
75958 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75959
75960         * math/tst-CMPLX.c: Include <stdio.h>.
75961
75962 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75963
75964         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75965         float.
75966         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75967         * sysdeps/sparc/bits/mathdef.h: Likewise.
75968
75969 2012-01-31  Marek Polacek  <polacek@redhat.com>
75970
75971         * libio/libio.h: Don't define _PARAMS.
75972         * locale/programs/config.h: Don't define PARAMS.
75973         * stdlib/strtol_l.c: Likewise.
75974         (__strtol_l): Remove PARAMS from the prototype.
75975
75976 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75977
75978         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75979         names.  Just use the correct names.  Remove unnecessary wrapper
75980         functions.
75981         * malloc/arena.c: Likewise.
75982         * malloc/hooks.c: Likewise.
75983
75984         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75985         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75986         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75987
75988 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75989
75990         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75991         into tail calls.
75992         (update_get_addr): New function.
75993         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75994         GET_ADDR_MODULE parameter.
75995
75996 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75997
75998         * crypt/cert.c: Remove __STDC__ conditionals.
75999         * crypt/crypt-entry.c: Likewise.
76000         * crypt/crypt_util.c: Likewise.
76001         * libio/filedoalloc.c: Likewise.
76002         * libio/fileops.c: Likewise.
76003         * libio/genops.c: Likewise.
76004         * libio/iofclose.c: Likewise.
76005         * libio/iofdopen.c: Likewise.
76006         * libio/iofopen.c: Likewise.
76007         * libio/iofopen64.c: Likewise.
76008         * libio/iogetdelim.c: Likewise.
76009         * libio/iopopen.c: Likewise.
76010         * libio/obprintf.c: Likewise.
76011         * libio/oldfileops.c: Likewise.
76012         * libio/oldiofclose.c: Likewise.
76013         * libio/oldiofdopen.c: Likewise.
76014         * libio/oldiofopen.c: Likewise.
76015         * libio/oldiopopen.c: Likewise.
76016         * libio/wfiledoalloc.c: Likewise.
76017         * libio/wgenops.c: Likewise.
76018         * locale/programs/xmalloc.c: Likewise.
76019         * misc/syslog.c: Likewise.
76020         * stdio-common/xbug.c: Likewise.
76021         * string/memchr.c: Likewise.
76022         * string/memcmp.c: Likewise.
76023         * string/memrchr.c: Likewise.
76024         * string/rawmemchr.c: Likewise.
76025         * sysdeps/posix/getcwd.c: Likewise.
76026         * time/strftime_l.c: Likewise.
76027
76028 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
76029
76030         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
76031         * config.make.in (config-cflags-sse2avx): Define.
76032         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
76033         Fix typo.
76034
76035 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
76036
76037         * scripts/config.guess: Update from upstream config git repository.
76038         * scripts/config.sub: Likewise.
76039
76040 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
76041
76042         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
76043         (EM_NUM): Update.
76044         (R_TILEPRO_*, R_TILEGX_*): New macros.
76045
76046         * scripts/firstversions.awk: Fix bug in version range handling.
76047
76048         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
76049
76050         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
76051
76052         * include/sys/epoll.h: New file.
76053         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
76054         libc_hidden_def.
76055
76056 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
76057
76058         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
76059         Avoid unnecessary __WORDSIZE == 64 test.
76060         (fmaxf): Use VEX format if possible.
76061         (fmax): Likewise.
76062         (fminf): Likewise.
76063         (fmin): Likewise.
76064
76065         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
76066         * math/math_private.h: Remove libc_fegetround* and
76067         libc_fesetround*.
76068         * sysdeps/i386/configure.in: Check for -msse2avx.
76069         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
76070         also if SSE2AVX is defined.
76071         Remove libc_fegetround* and libc_fesetround*.
76072         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
76073         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
76074         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
76075         of HAS_YMM_USABLE.
76076         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76077         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76078         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76079         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76080         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76081
76082         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
76083
76084 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76085
76086         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
76087         size is not set.
76088         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76089
76090 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
76091
76092         [BZ #13618]
76093         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
76094         relocation.
76095         * Makeconfig (libm): Define.
76096         * elf/Makefile: Add rules to build and run tst-relsort1.
76097         * elf/tst-relsort1.c: New file.
76098         * elf/tst-relsort1mod1.c: New file.
76099         * elf/tst-relsort1mod2.c: New file.
76100
76101 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
76102
76103         * math/s_ldexp.c: Remove __STDC__ conditionals.
76104         * math/s_ldexpf.c: Likewise.
76105         * math/s_ldexpl.c: Likewise.
76106         * math/s_nextafter.c: Likewise.
76107         * math/s_nexttowardf.c: Likewise.
76108         * math/s_significand.c: Likewise.
76109         * math/s_significandf.c: Likewise.
76110         * math/s_significandl.c: Likewise.
76111         * math/w_jnl.c: Likewise.
76112         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
76113         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
76114         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
76115         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
76116         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
76117         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
76118         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
76119         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
76120         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
76121         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
76122         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
76123         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
76124         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
76125         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
76126         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
76127         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
76128         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
76129         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
76130         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
76131         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
76132         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
76133         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
76134         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
76135         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
76136         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
76137         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
76138         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
76139         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
76140         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
76141         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
76142         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
76143         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
76144         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
76145         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
76146         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
76147         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
76148         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
76149         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
76150         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
76151         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
76152         * sysdeps/ieee754/k_standard.c: Likewise.
76153         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
76154         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
76155         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
76156         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
76157         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
76158         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
76159         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
76160         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
76161         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
76162         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
76163         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
76164         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
76165         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
76166         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
76167         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
76168         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
76169         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
76170         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
76171         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
76172         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
76173         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
76174         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
76175         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
76176         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
76177         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
76178         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
76179         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
76180         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
76181         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
76182         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
76183         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
76184         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
76185         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
76186         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
76187         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
76188         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
76189         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
76190         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
76191         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
76192         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
76193         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
76194         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
76195         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
76196         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
76197         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
76198         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
76199         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
76200         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
76201         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
76202         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
76203         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
76204         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
76205         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
76206         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
76207         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
76208         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
76209         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
76210         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
76211         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
76212         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
76213         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
76214         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
76215         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
76216         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
76217         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
76218         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
76219         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
76220         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
76221         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
76222         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
76223         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
76224         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
76225         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
76226         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
76227         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
76228         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
76229         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
76230         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
76231         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
76232         * sysdeps/ieee754/s_matherr.c: Likewise.
76233         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
76234         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
76235         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
76236         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
76237
76238 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76239
76240         * crypt/md5.h: Remove __STDC__ conditionals.
76241         * libio/libioP.h: Likewise.
76242         * locale/programs/config.h: Likewise.
76243         * sysdeps/generic/sysdep.h: Likewise.
76244         * sysdeps/i386/asm-syntax.h: Likewise.
76245         * sysdeps/s390/asm-syntax.h: Likewise.
76246         * sysdeps/unix/sysdep.h: Likewise.
76247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
76248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
76249
76250 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76251
76252         * libio/libio.h: Remove __STDC__ conditionals.
76253         * malloc/obstack.h: Likewise.
76254         * math/complex.h: Likewise.
76255         * math/math.h: Likewise.
76256         * sysdeps/generic/_G_config.h: Likewise.
76257         * sysdeps/gnu/_G_config.h: Likewise.
76258         * sysdeps/mach/hurd/_G_config.h: Likewise.
76259         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76260         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76261         * sysdeps/sparc/bits/mathdef.h: Likewise.
76262
76263 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
76264
76265         [BZ #13583]
76266         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
76267         Clean up HAS_* macros.
76268         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
76269         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
76270         possible.
76271         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
76272         HAS_AVX.
76273         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76274         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76275         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76276         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76277         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76278
76279 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
76280
76281         * elf/tst-unique3.cc (gets): Remove declaration.
76282         * elf/tst-unique3lib.cc (gets): Likewise.
76283         * elf/tst-unique3lib2.cc (gets): Likewise.
76284         * elf/tst-unique4.cc (gets): Likewise.
76285
76286 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
76287
76288         * include/stdio.h: Add C++ protection.  Add gets declarations and
76289         definitions.
76290         * debug/tst-chk1.c: Don't declare gets here.
76291         * stdio-common/tst-gets.c: Likewise.
76292
76293 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76294
76295         * posix/glob: Remove directory.
76296
76297 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76298
76299         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
76300
76301 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
76302
76303         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
76304         of the non-standard EPFNOSUPPORT.
76305
76306 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76307
76308         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
76309         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
76310         ANYWHERE set to 1 only on KERN_NO_SPACE error.
76311
76312 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
76313
76314         * wcsmbs/uchar.h: Test __STDC_VERSION__.
76315
76316 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
76317
76318         * nscd/aicache.c (addhstaiX): Do not cache negative results of
76319         transient errors.
76320         * nscd/grpcache.c (cache_addgr): Likewise.
76321         * nscd/hstcache.c (cache_addhst): Likewise.
76322         * nscd/initgrcache.c (addinitgroupsX): Likewise.
76323         * nscd/pwdcache.c (cache_addpw): Likewise.
76324         * nscd/servicescache.c (cache_addserv): Likewise.
76325
76326 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
76327
76328         * malloc/malloc.c: Various cleanups.
76329         * malloc/hooks.c: Likewise.
76330
76331         * stdlib/Makefile (tests): Add bug-fmtmsg1.
76332         * stdlib/bug-fmtmsg1.c: New file.
76333
76334         * stdlib/fmtmsg.c (init): Add missing unlock.
76335         Patch by Peng Haitao <penght@cn.fujitsu.com>.
76336
76337 2012-01-12  Marek Polacek  <polacek@redhat.com>
76338
76339         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
76340         and _GNU_SOURCE.
76341
76342 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76343
76344         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
76345         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
76346         macro to ensure uniqueness of label name.
76347         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76348         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76349
76350 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
76351
76352         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
76353
76354         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
76355         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
76356         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
76357         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
76358
76359 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
76360
76361         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
76362
76363         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
76364         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
76365         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
76366
76367         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
76368
76369         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
76370         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
76371         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
76372         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
76373
76374         * math/bits/math-finite.h: Add ldexp support.
76375
76376 2012-01-10  Marek Polacek  <polacek@redhat.com>
76377
76378         * locale/programs/localedef.h (show_archive_content): Add noreturn
76379         attribute.
76380
76381 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
76382
76383         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
76384
76385 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76386
76387         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
76388
76389         * io/Makefile (headers): Add bits/poll2.h.
76390
76391 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
76392
76393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
76394         typo #include statement.
76395
76396 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76397
76398         * include/sys/cdefs.h: Define __attribute_alloc_size.
76399         * catgets/gencat.c: Add alloc_size attribute and apply consistently
76400         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
76401         * elf/pldd.c: Likewise.
76402         * iconv/iconv_charmap.c: Likewise.
76403         * iconv/iconvconfig.c: Likewise.
76404         * iconv/strtab.c: Likewise.
76405         * locale/programs/locale.c: Likewise.
76406         * locale/programs/localedef.h: Likewise.
76407         * locale/programs/simple-hash.c: Likewise.
76408         * nscd/nscd.h: Likewise.
76409         * nss/makedb.c: Likewise.
76410         * sysdeps/generic/ldconfig.h: Likewise.
76411         * locale/programs/localedef.c: Remove xmalloc prototype.
76412         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
76413
76414 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
76415
76416         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
76417         appropriate.
76418
76419 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76420
76421         * math/Makefile (tests): Add tst-CMPLX.
76422         * math/tst-CMPLX.c: New file.
76423
76424         * math/complex.h (CMPLXL): Fix typo.
76425
76426         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
76427         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
76428         GLIBC_2.16.
76429         * debug/tst-chk1.c: Add poll and ppoll tests.
76430         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
76431         * include/sys/poll.h: Add hidden proto for ppoll.
76432         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
76433         * sysdeps/mach/hurd/ppoll.c: Likewise.
76434         * io/ppoll.c: Likewise.
76435         * debug/poll_chk.c: New file.
76436         * debug/ppoll_chk.c: New file.
76437         * include/bits/poll2.h: New file.
76438         * io/bits/poll2.h: New file.
76439
76440         [BZ #1350]
76441         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
76442
76443         * configure.in: static is always set to yes.  Remove.
76444         * config.make.in: Don't set build-static.
76445         * Makeconfig: Remove use of build-static.
76446         * dlfcn/Makefile: Likewise.
76447         * elf/Makefile: Likewise.
76448         * math/Makefile: Likewise.
76449         * misc/Makefile: Likewise.
76450         * nptl/Makefile: Likewise.
76451         * sysdeps/mach/hurd/Makefile: Likewise.
76452
76453         * configure.in: PWD_P is not used anymore.
76454         * config.make.in: Remove PWD_P entry.
76455
76456         * configure.in: Remove last remnants of RANLIB.
76457         No need to check for signed size_t anymore.
76458         Don't set libc_commonpagesize and libc_relro_required here for Alpha
76459         and IA-64.
76460         Remove __builtin_expect test because we require at least gcc 3.4.
76461         * aclocal.m4: Likewise.
76462
76463         * wcsmbs/mbrtoc16.c: Implement using towc function.
76464         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
76465         * wcsmbs/wcsmbsload.c: Likewise.
76466         * iconv/gconv_simple.c: Likewise.
76467         * iconv/gconv_int.h: Likewise.
76468         * iconv/gconv_builtin.h: Likewise.
76469         * iconv/iconv_prog.c: Remove CHAR16 handling.
76470
76471         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
76472
76473         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
76474
76475         * configure.in: Remove --with-elf and --enable-bounded options.
76476         Dont set base_machine for ia64.  More non-ELF conditions removed.
76477         Remove testing and setting of leading underscore information.
76478         * config.make.in (build-bounded): Set to no.
76479         * config.h.in: Remove NO_UNDERSCORES entry.
76480         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
76481         them.
76482         * csu/start.c: Remove !NO_UNDERSCORE code.
76483         * locale/localeinfo.h: Likewise.
76484         * sysdeps/generic/machine-gmon.h: Likewise.
76485         * sysdeps/generic/sysdep.h: Likewise.
76486         * sysdeps/i386/sysdep.h: Likewise.
76487         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76488         * sysdeps/mach/sysdep.h: Likewise.
76489         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76490         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76491         * sysdeps/sh/sysdep.h: Likewise.
76492         * sysdeps/sparc/sparc32/alloca.S: Likewise.
76493         * sysdeps/unix/i386/sysdep.S: Likewise.
76494         * sysdeps/unix/sparc/start.c: Likewise.
76495         * sysdeps/unix/sparc/sysdep.S: Likewise.
76496         * sysdeps/unix/sparc/sysdep.h: Likewise.
76497         * sysdeps/unix/start.c: Likewise.
76498         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76499         * sysdeps/x86_64/sysdep.h: Likewise.
76500
76501 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
76502
76503         [BZ #13553]
76504         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
76505         for non-gcc.
76506         * argp/argp-fmtstream.h: Use const instead __const.
76507         * argp/argp.h: Likewise.
76508         * assert/assert.h: Likewise.
76509         * bits/fenv.h: Likewise.
76510         * bits/sched.h: Likewise.
76511         * bits/sigset.h: Likewise.
76512         * bits/sigthread.h: Likewise.
76513         * catgets/nl_types.h: Likewise.
76514         * conform/data/pthread.h-data: Likewise.
76515         * crypt/crypt-private.h: Likewise.
76516         * crypt/crypt.h: Likewise.
76517         * crypt/crypt_util.c: Likewise.
76518         * ctype/ctype.h: Likewise.
76519         * debug/execinfo.h: Likewise.
76520         * debug/mbsnrtowcs_chk.c: Likewise.
76521         * debug/mbsrtowcs_chk.c: Likewise.
76522         * debug/wcsnrtombs_chk.c: Likewise.
76523         * debug/wcsrtombs_chk.c: Likewise.
76524         * debug/wcstombs_chk.c: Likewise.
76525         * dirent/dirent.h: Likewise.
76526         * dlfcn/dlfcn.h: Likewise.
76527         * elf/neededtest4.c: Likewise.
76528         * grp/grp.h: Likewise.
76529         * gshadow/gshadow.h: Likewise.
76530         * iconv/gconv.h: Likewise.
76531         * iconv/gconv_int.h: Likewise.
76532         * iconv/gconv_simple.c: Likewise.
76533         * iconv/iconv.h: Likewise.
76534         * iconv/loop.c: Likewise.
76535         * iconv/skeleton.c: Likewise.
76536         * include/aio.h: Likewise.
76537         * include/aliases.h: Likewise.
76538         * include/argz.h: Likewise.
76539         * include/arpa/inet.h: Likewise.
76540         * include/assert.h: Likewise.
76541         * include/dirent.h: Likewise.
76542         * include/dlfcn.h: Likewise.
76543         * include/execinfo.h: Likewise.
76544         * include/fcntl.h: Likewise.
76545         * include/fenv.h: Likewise.
76546         * include/glob.h: Likewise.
76547         * include/grp.h: Likewise.
76548         * include/libintl.h: Likewise.
76549         * include/mntent.h: Likewise.
76550         * include/netdb.h: Likewise.
76551         * include/pwd.h: Likewise.
76552         * include/rpc/netdb.h: Likewise.
76553         * include/sched.h: Likewise.
76554         * include/search.h: Likewise.
76555         * include/shadow.h: Likewise.
76556         * include/signal.h: Likewise.
76557         * include/stdio.h: Likewise.
76558         * include/stdlib.h: Likewise.
76559         * include/string.h: Likewise.
76560         * include/sys/socket.h: Likewise.
76561         * include/sys/stat.h: Likewise.
76562         * include/sys/statfs.h: Likewise.
76563         * include/sys/statvfs.h: Likewise.
76564         * include/sys/syslog.h: Likewise.
76565         * include/sys/time.h: Likewise.
76566         * include/sys/uio.h: Likewise.
76567         * include/time.h: Likewise.
76568         * include/unistd.h: Likewise.
76569         * include/utmp.h: Likewise.
76570         * include/wchar.h: Likewise.
76571         * include/wctype.h: Likewise.
76572         * inet/aliases.h: Likewise.
76573         * inet/arpa/inet.h: Likewise.
76574         * inet/netinet/ether.h: Likewise.
76575         * inet/netinet/in.h: Likewise.
76576         * intl/libintl.h: Likewise.
76577         * io/bits/fcntl2.h: Likewise.
76578         * io/fcntl.h: Likewise.
76579         * io/ftw.h: Likewise.
76580         * io/sys/poll.h: Likewise.
76581         * io/sys/stat.h: Likewise.
76582         * io/sys/statfs.h: Likewise.
76583         * io/sys/statvfs.h: Likewise.
76584         * io/utime.h: Likewise.
76585         * libio/bits/stdio.h: Likewise.
76586         * libio/bits/stdio2.h: Likewise.
76587         * libio/libio.h: Likewise.
76588         * libio/libioP.h: Likewise.
76589         * libio/stdio.h: Likewise.
76590         * locale/lc-ctype.c: Likewise.
76591         * locale/locale.h: Likewise.
76592         * login/utmp.h: Likewise.
76593         * malloc/arena.c: Likewise.
76594         * malloc/malloc.c: Likewise.
76595         * malloc/malloc.h: Likewise.
76596         * malloc/mcheck.c: Likewise.
76597         * malloc/mtrace.c: Likewise.
76598         * math/bits/mathcalls.h: Likewise.
76599         * math/fenv.h: Likewise.
76600         * math/math_private.h: Likewise.
76601         * misc/bits/error.h: Likewise.
76602         * misc/bits/syslog.h: Likewise.
76603         * misc/err.h: Likewise.
76604         * misc/error.h: Likewise.
76605         * misc/fstab.h: Likewise.
76606         * misc/mntent.h: Likewise.
76607         * misc/regexp.h: Likewise.
76608         * misc/search.h: Likewise.
76609         * misc/sgtty.h: Likewise.
76610         * misc/sys/mman.h: Likewise.
76611         * misc/sys/syslog.h: Likewise.
76612         * misc/sys/uio.h: Likewise.
76613         * misc/sys/xattr.h: Likewise.
76614         * misc/ttyent.h: Likewise.
76615         * nis/rpcsvc/ypclnt.h: Likewise.
76616         * nss/nss.h: Likewise.
76617         * posix/bits/unistd.h: Likewise.
76618         * posix/fnmatch.h: Likewise.
76619         * posix/glob.h: Likewise.
76620         * posix/sched.h: Likewise.
76621         * posix/spawn.h: Likewise.
76622         * posix/sys/wait.h: Likewise.
76623         * posix/unistd.h: Likewise.
76624         * posix/wordexp.h: Likewise.
76625         * pwd/pwd.h: Likewise.
76626         * resolv/netdb.h: Likewise.
76627         * resource/sys/resource.h: Likewise.
76628         * rt/aio.h: Likewise.
76629         * rt/bits/mqueue2.h: Likewise.
76630         * rt/mqueue.h: Likewise.
76631         * shadow/shadow.h: Likewise.
76632         * signal/signal.h: Likewise.
76633         * socket/send.c: Likewise.
76634         * socket/sendto.c: Likewise.
76635         * socket/sys/socket.h: Likewise.
76636         * stdio-common/printf.h: Likewise.
76637         * stdlib/bits/stdlib.h: Likewise.
76638         * stdlib/fmtmsg.h: Likewise.
76639         * stdlib/monetary.h: Likewise.
76640         * stdlib/stdlib.h: Likewise.
76641         * stdlib/ucontext.h: Likewise.
76642         * streams/stropts.h: Likewise.
76643         * string/argz.h: Likewise.
76644         * string/bits/string2.h: Likewise.
76645         * string/string.h: Likewise.
76646         * string/strings.h: Likewise.
76647         * sunrpc/rpc/auth.h: Likewise.
76648         * sunrpc/rpc/auth_des.h: Likewise.
76649         * sunrpc/rpc/clnt.h: Likewise.
76650         * sunrpc/rpc/netdb.h: Likewise.
76651         * sunrpc/rpc/pmap_clnt.h: Likewise.
76652         * sunrpc/rpc/xdr.h: Likewise.
76653         * sysdeps/generic/inttypes.h: Likewise.
76654         * sysdeps/generic/net/if.h: Likewise.
76655         * sysdeps/generic/sys/swap.h: Likewise.
76656         * sysdeps/gnu/net/if.h: Likewise.
76657         * sysdeps/gnu/utmpx.h: Likewise.
76658         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76659         * sysdeps/i386/i486/bits/string.h: Likewise.
76660         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76661         * sysdeps/s390/bits/string.h: Likewise.
76662         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76663         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76664         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76665         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76666         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76667         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76668         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76669         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76670         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76671         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76672         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76673         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76674         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76675         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76676         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76677         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76678         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76680         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76681         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76682         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76683         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76684         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76685         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76686         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76687         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76688         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76689         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76690         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76691         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76692         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76693         * sysvipc/sys/ipc.h: Likewise.
76694         * sysvipc/sys/msg.h: Likewise.
76695         * sysvipc/sys/sem.h: Likewise.
76696         * sysvipc/sys/shm.h: Likewise.
76697         * termios/termios.h: Likewise.
76698         * time/sys/time.h: Likewise.
76699         * time/time.h: Likewise.
76700         * wcsmbs/bits/wchar2.h: Likewise.
76701         * wcsmbs/uchar.h: Likewise.
76702         * wcsmbs/wchar.h: Likewise.
76703         * wctype/wctype.h: Likewise.
76704
76705         [BZ #13551]
76706         * Makeconfig: Remove all but ELF support including AIX support.
76707         * Makerules: Likewise.
76708         * config.h.in: Likewise.
76709         * config.make.in: Likewise.
76710         * configure: Likewise.
76711         * configure.in: Likewise.
76712         * csu/Makefile: Likewise.
76713         * csu/version.c: Likewise.
76714         * debug/Makefile: Likewise.
76715         * dlfcn/Makefile: Likewise.
76716         * elf/Makefile: Likewise.
76717         * extra-lib.mk: Likewise.
76718         * iconv/Makefile: Likewise.
76719         * include/libc-symbols.h: Likewise.
76720         * include/shlib-compat.h: Likewise.
76721         * resolv/Makefile: Likewise.
76722         * resolv/res_libc.c: Likewise.
76723         * rt/Makefile: Likewise.
76724         * sysdeps/i386/asm-syntax.h: Likewise.
76725         * sysdeps/i386/sysdep.h: Likewise.
76726         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76727         * sysdeps/mach/sysdep.h: Likewise.
76728         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76729         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76730         * sysdeps/s390/asm-syntax.h: Likewise.
76731         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76732         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76733         * sysdeps/sh/sysdep.h: Likewise.
76734         * sysdeps/unix/sparc/sysdep.h: Likewise.
76735         * sysdeps/wordsize-32/divdi3.c: Likewise.
76736         * sysdeps/x86_64/sysdep.h: Likewise.
76737
76738         * argp/Versions: Remove _argp_unlock_xxx.
76739
76740         [BZ #13559]
76741         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76742         * abilist/libBrokenLocale.abilist: Likewise.
76743         * abilist/libanl.abilist: Likewise.
76744         * abilist/libc.abilist: Likewise.
76745         * abilist/libcrypt.abilist: Likewise.
76746         * abilist/libdl.abilist: Likewise.
76747         * abilist/libm.abilist: Likewise.
76748         * abilist/libnsl.abilist: Likewise.
76749         * abilist/libpthread.abilist: Likewise.
76750         * abilist/libresolv.abilist: Likewise.
76751         * abilist/librt.abilist: Likewise.
76752         * abilist/libthread_db.abilist: Likewise.
76753         * abilist/libutil.abilist: Likewise.
76754         * abilist/libnss_db.abilist: New file.
76755
76756         * scripts/abilist.awk: Add support for indirect functions.
76757
76758         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76759
76760         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76761
76762         * shlib-versions: Remove entries for ports architectures.
76763
76764         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76765         files in ports.
76766         * elf/stackguard-macros.h: Remove support for IA-64.
76767         * elf/tst-auditmod1.c: Likewise.
76768         * sysdeps/generic/ldsodefs.h: Likewise.
76769
76770         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76771         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76772         configure files.
76773
76774         [BZ #13552]
76775         * configure.in: Remove --enable-omitfp support.
76776         * FAQ.in: Adjust.
76777         * config.make.in: Likewise.
76778         * Makeconfig: Likewise.
76779         * manual/install.texi: Likewise.
76780
76781         In case anyone cares, the IA-64 architecture could move to ports.
76782         * sysdeps/ia64/*: Removed.
76783         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76784         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76785
76786         [BZ #13555]
76787         * configure.in: Remove entries for unsupported architectures.
76788
76789         [BZ #13533]
76790         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76791         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76792         routines.
76793         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76794         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76795         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76796         fall back to using wcrtomb.
76797         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76798         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76799         renaming.
76800         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76801         * wcsmbs/tst-c16c32-1.c: New file.
76802
76803         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76804         local variable.
76805
76806         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76807
76808         * elf/tst-unique3.cc: Add explicit declaration of gets.
76809         * elf/tst-unique3lib.cc: Likewise.
76810         * elf/tst-unique3lib2.cc: Likewise.
76811         * elf/tst-unique4.cc: Likewise.
76812
76813         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76814
76815 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76816
76817         [BZ #13566]
76818         * assert/assert.h (static_assert): Don't define for C++.
76819         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76820         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76821
76822 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76823
76824         * iconv/loop.c (single loop): Fix assertion in storing of
76825         remaining bytes.
76826
76827         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76828
76829 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76830
76831         * posix/getconf.c: Update copyright year.
76832         * nss/getent.c: Likewise.
76833         * nss/makedb.c: Likewise.
76834         * iconv/iconvconfig.c: Likewise.
76835         * iconv/iconv_prog.c: Likewise.
76836         * elf/ldconfig.c: Likewise.
76837         * elf/pldd.c: Likewise.
76838         * elf/sotruss.ksh: Likewise.
76839         * catgets/gencat.c: Likewise.
76840         * csu/version.c: Likewise.
76841         * elf/ldd.bash.in: Likewise.
76842         * elf/sprof.c (print_version): Likewise.
76843         * locale/programs/locale.c: Likewise.
76844         * locale/programs/localedef.c: Likewise.
76845         * login/programs/pt_chown.c: Likewise.
76846         * nscd/nscd.c (print_version): Likewise.
76847         * debug/xtrace.sh: Likewise.
76848         * malloc/memusage.sh: Likewise.
76849         * malloc/mtrace.pl: Likewise.
76850         * debug/catchsegv.sh: Likewise.
76851
76852 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76853
76854         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76855         pure attribute.
76856
76857 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76858
76859         [BZ #13533]
76860         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76861         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76862         transformations.
76863         * iconv/gconv_int.h: Likewise.
76864         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76865         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76866         from libc for GLIBC_2.16.
76867         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76868         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76869         * wcsmbs/uchar.h: Really define mbstate_t.
76870         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76871         * wcsmbs/c16rtomb.c: New file.
76872         * wcsmbs/mbrtoc16.c: New file.
76873         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76874         for C/POSIX locale.
76875         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76876         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76877
76878         * wcsmbs/wchar.h: Add missing __restrict.
76879
76880 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76881
76882         [BZ #13532]
76883         * time/Makefile (routines): Add timespec_get.
76884         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76885         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76886         timespec for ISO C11.
76887         * time/timespec_get.c: New file.
76888         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76889         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76890
76891         [BZ #13531]
76892         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76893         * stdlib/stdlib.h: Declare aligned_alloc.
76894         * Versions.def: Add GLIBC_2.16 for libc.
76895         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76896
76897         [BZ 13527]
76898         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76899         ISO C11.
76900
76901         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76902         code.
76903
76904         [BZ #13528]
76905         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76906
76907         [BZ #13529]
76908         * assert/assert.h (static_assert): Define.
76909
76910         * version.h: Update for 2.16 development version.
76911
76912         [BZ #13526]
76913         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76914         _ISOC11_SOURCE.
76915
76916         * version.h (RELEASE): Bump for 2.15 release.
76917         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76918
76919         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76920         Patch by Marek Polacek <mpolacek@redhat.com>.
76921
76922         * bits/byteswap.h: Protect long long constants with __extension__.
76923         * sysdeps/i386/bits/byteswap.h: Likewise.
76924         * sysdeps/ia64/bits/byteswap.h: Likewise.
76925         * sysdeps/s390/bits/byteswap.h: Likewise.
76926         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76927
76928 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76929
76930         [BZ #13540]
76931         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76932         destination buffer.
76933         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76934
76935 2011-12-23  Marek Polacek  <polacek@redhat.com>
76936
76937         * elf/dl-addr.c (determine_info): Add inline keyword.
76938         * elf/tst-auditmod4b.c (check_avx): Likewise.
76939         * elf/tst-auditmod6b.c (check_avx): Likewise.
76940         * elf/tst-auditmod6c.c (check_avx): Likewise.
76941         * elf/tst-auditmod7b.c (check_avx): Likewise.
76942
76943 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76944
76945         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76946         !__SSE_MATH__.
76947
76948 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76949
76950         [BZ #13540]
76951         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76952         processing for last bytes.
76953
76954 2011-08-06  Bruno Haible  <bruno@clisp.org>
76955
76956         [BZ #13061]
76957         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76958         U+0385, not to U+1FEE.
76959
76960         [BZ #13062]
76961         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76962         entry for U+00A5 U+0301.
76963
76964 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76965
76966         [BZ #13166]
76967         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76968         buffer for the output is too small.
76969
76970         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76971         optimization.
76972
76973         [BZ #13185]
76974         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76975         SSE flags if possible.
76976
76977 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76978
76979         [BZ #13540]
76980         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76981         processing for last bytes.
76982
76983 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76984
76985         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76986         (syscall-list-default-options, syscall-list-default-condition)
76987         (syscall-list-includes): Define.
76988         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76989         list of ABIs and options and #if conditions for each ABI.  Do not
76990         handle common syscalls between ABIs specially.
76991         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76992         Remove.
76993         (syscall-list-variants, syscall-list-32bit-options)
76994         (syscall-list-32bit-condition, syscall-list-64bit-options)
76995         (syscall-list-64bit-condition): Define.
76996         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
76997         (syscall-list-variants, syscall-list-32bit-options)
76998         (syscall-list-32bit-condition, syscall-list-64bit-options)
76999         (syscall-list-64bit-condition): Define.
77000         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
77001         Remove.
77002         (syscall-list-variants, syscall-list-32bit-options)
77003         (syscall-list-32bit-condition, syscall-list-64bit-options)
77004         (syscall-list-64bit-condition): Define.
77005         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
77006         Remove.
77007         (syscall-list-variants, syscall-list-32bit-options)
77008         (syscall-list-32bit-condition, syscall-list-64bit-options)
77009         (syscall-list-64bit-condition): Define.
77010
77011 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
77012
77013         * locale/iso-639.def: Add brx entry.
77014
77015         [BZ #13328]
77016         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
77017         Proposed by Mariusz_Cukr <marcukr@op.pl>.
77018
77019         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
77020         __feraiseexcept_renamed.
77021
77022 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
77023
77024         [BZ #13538]
77025         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
77026         EPOLLET with unsigned values.
77027         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
77028         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
77029
77030         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
77031         to large cancellation.
77032         * math/s_cacoshf.c: Likewise.
77033         * math/s_cacoshl.c: Likewise.
77034
77035 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
77036
77037         [BZ #13305]
77038         [BZ #12786]
77039         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
77040         * math/s_cacoshf.c: Likewise.
77041         * math/s_cacoshl.c: Likewise.
77042
77043 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
77044
77045         [BZ #13439]
77046         * iconv/gconv.h: Define __GCONV_SWAP.
77047         * iconvdata/unicode.c: The swap bit must be stored in __flags.
77048         * iconvdata/utf-16.c: Likewise.
77049         * iconvdata/utf-32.c: Likewise.
77050
77051 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
77052
77053         [BZ #13524]
77054         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
77055         numerator after shifting it by one limb.
77056
77057 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
77058
77059         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
77060         under [__USE_EXTERN_INLINES].
77061
77062 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
77063
77064         [BZ #13446]
77065         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
77066
77067 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77068
77069         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
77070         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
77071         optimized code.
77072         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
77073         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
77074         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
77075         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
77076         for strncasecmp/strncasecmp_l compilation.
77077         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
77078         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
77079
77080 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
77081
77082         [BZ #13484]
77083         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
77084         of __asm__.
77085
77086 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
77087
77088         [BZ #13506]
77089         * time/tzfile.c (__tzfile_read): Check values from file header.
77090
77091 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
77092
77093         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
77094         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
77095         * powerpc/powerpc32/dl-start.S: Likewise.
77096         * powerpc/powerpc32/elf/start.S: Likewise.
77097         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
77098         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
77099         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
77100         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
77101         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
77102         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
77103         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
77104         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
77105         * powerpc/powerpc32/fpu/s_round.S: Likewise.
77106         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
77107         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
77108         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
77109         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
77110         * powerpc/powerpc32/memset.S: Likewise.
77111         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
77112         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
77113         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
77114         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
77115         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
77116         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
77117         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
77118         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
77119         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
77120         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
77121         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
77122         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
77123         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
77124
77125 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77126
77127         * math/libm-test.inc: Added more nearbyint tests.
77128         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
77129         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
77130         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
77131         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
77132
77133 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
77134
77135         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
77136         FD_CLOEXEC.
77137
77138 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77139
77140         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
77141         Add wcscpy-ssse3 wcscpy-c.
77142         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
77143         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
77144         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
77145         * sysdeps/x86_64/wcschr.S: New file.
77146         * sysdeps/x86_64/wcsrchr.S: New file.
77147         * string/test-strcmp.c: Remove checking of wcscmp function for
77148         wrong alignments.
77149         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
77150         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
77151         wcsrchr-sse2 wcsrchr-c.
77152         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
77153         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
77154         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
77155         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
77156         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
77157         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
77158         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
77159         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
77160         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
77161         * wcsmbc/wcschr.c (WCSCHR): New macro.
77162
77163 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77164
77165         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
77166         * wcsmbs/test-wcsrchr.c: New file.
77167         * string/test-strrchr.c: Add wcsrchr support.
77168         (WIDE): New macro.
77169         * wcsmbs/test-wcscpy.c: New file.
77170         * string/test-strcpy.c: Add wcscpy support.
77171         (WIDE): New macro.
77172
77173 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
77174
77175         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
77176         the inner loop.
77177
77178 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
77179
77180         [BZ #13472]
77181         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
77182
77183 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
77184
77185         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
77186         Minor optimizations.
77187
77188         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
77189         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
77190         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
77191
77192 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
77193
77194         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
77195         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
77196         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
77197         for gcc to avoid warnings.
77198         * inet/Makefile (tests): Add tst-checks.
77199         * inet/tst-checks.c: New file.
77200
77201         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
77202         warning.
77203
77204         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
77205         __wmemcmp_sse2.
77206
77207         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
77208         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
77209
77210         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
77211
77212 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
77213
77214         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
77215         problem.
77216
77217         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
77218
77219 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
77220
77221         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
77222         conditional on GCC version.
77223         (__arch_compare_and_exchange_val_8_acq)
77224         (__arch_compare_and_exchange_val_16_acq)
77225         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
77226         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
77227         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
77228
77229 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
77230
77231         * sysdeps/sh/backtrace.c: New file.
77232
77233 2011-12-02  Andreas Schwab  <schwab@redhat.com>
77234
77235         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
77236         parenthesis.
77237
77238 2011-12-01  Andreas Schwab  <schwab@redhat.com>
77239
77240         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
77241         falling back to utime.
77242
77243 2011-11-30  Andreas Schwab  <schwab@redhat.com>
77244
77245         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
77246         expectations for float.
77247
77248 2011-11-29  Andreas Schwab  <schwab@redhat.com>
77249
77250         * locale/weight.h (findidx): Add parameter len.
77251         * locale/weightwc.h (findidx): Likewise.
77252         * posix/fnmatch_loop.c (FCT): Adjust caller.
77253         * posix/regcomp.c (build_equiv_class): Likewise.
77254         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
77255         * posix/regexec.c (check_node_accept_bytes): Likewise.
77256         * string/strcoll_l.c (STRCOLL): Likewise.
77257         * string/strxfrm_l.c (STRXFRM): Likewise.
77258
77259 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
77260
77261         * Makefile.in: Remove CVSOPT handling.
77262         * configure.in: Remove use of AC_REVISION.
77263         * iconvdata/Makefile (distribute): No need to filter out CVS.
77264         * scripts/list-sources.sh: Remove CVS, subversion and monotone
77265         handling.
77266
77267 2011-11-16  Andreas Schwab  <schwab@redhat.com>
77268
77269         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
77270         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
77271         [USE_AS_STRNCASECMP_L]: Likewise.
77272         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
77273         NO_TLS_DIRECT_SEG_REFS.
77274         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
77275         Fix argument offsets for non-PIC.
77276         [USE_AS_STRNCASECMP_L]: Likewise.
77277         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
77278         NO_TLS_DIRECT_SEG_REFS.
77279
77280 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77281
77282         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
77283         O_CLOEXEC.
77284         * locale/loadlocale.c (_nl_load_locale): Likewise.
77285
77286 2011-11-15  Andreas Schwab  <schwab@redhat.com>
77287
77288         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
77289         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
77290         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
77291         (SYSCALL_GETTIME): Set errno on error.
77292
77293         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
77294         count references to noai6ai_cached.
77295
77296 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77297
77298         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
77299
77300         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
77301         FD_CLOEXEC for /proc/self/maps.
77302
77303         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
77304         FD_CLOEXEC for /proc/meminfo.
77305
77306         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
77307         gai.conf.
77308
77309         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
77310         FD_CLOEXEC for given file.
77311
77312         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
77313
77314         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
77315         FD_CLOEXEC for /etc/hosts.
77316         (_gethtent): Likewise.
77317
77318         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
77319
77320         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
77321         cancellation and set FD_CLOEXEC for /etc/netgroup.
77322
77323         * nss/nss_files/files-key.c (search): Don't allow cancellation when
77324         reading /etc/publickey.
77325
77326         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
77327         allow cancellation when reading /etc/group.
77328
77329         * nss/nss_files/files-alias.c (internal_setent): Don't allow
77330         cancellation.
77331         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
77332
77333         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
77334         when using data file.
77335
77336         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
77337
77338         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
77339         (write_nis_obj): Use "c" and "e" in fopen.
77340
77341         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
77342
77343         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
77344
77345         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
77346
77347         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
77348
77349         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
77350         locale.alias.
77351
77352         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
77353
77354         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
77355
77356         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
77357
77358         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
77359         file parsing and set FD_CLOEXEC.
77360
77361 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77362
77363         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
77364
77365 2011-11-14  Andreas Schwab  <schwab@redhat.com>
77366
77367         * malloc/arena.c (arena_get2): Don't call reused_arena when
77368         _int_new_arena failed.
77369
77370 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77371
77372         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
77373         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
77374         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
77375         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
77376         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
77377         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
77378         to compile strcasecmp and strncasecmp.
77379         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
77380         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
77381
77382         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
77383
77384 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
77385
77386         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
77387         locale-defines.sym to gen-as-const-headers.
77388         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
77389         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
77390         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
77391         to compile strcasecmp and strncasecmp.
77392         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
77393         strcasecmp_l and strncasecmp_l.
77394         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
77395         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
77396         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
77397         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
77398         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
77399         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
77400         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
77401         * sysdeps/i386/i686/multiarch/strncase.S: New file.
77402         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
77403         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
77404         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
77405
77406 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
77407
77408         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
77409         result of SYSDEP_GETTIME_CPU to retval.
77410         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
77411         parameter list to macro.  Remove trailing semicolon.  Adjust users.
77412
77413         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
77414         variable.
77415
77416         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
77417         mantissa words.
77418         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
77419
77420         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
77421         from unused variable.
77422
77423         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
77424         DWARF definitions.
77425         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
77426         for assembling.
77427
77428         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
77429         over namespaces.
77430
77431         * sunrpc/rpc_prot.c (rejected): Fix case value.
77432
77433         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
77434         unsigned long long int to avoid warnings in shift.
77435
77436         * posix/regex_internal.c (re_string_reconstruct): Actually use result
77437         of use of trans.
77438         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
77439         variable tmp.
77440
77441         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
77442         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
77443         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
77444
77445         * nis/nis_table.c (nis_list): Use variable of correct type for
77446         result of __follow_path call.
77447
77448 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77449
77450         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
77451         of math functions ceil, trunc, floor, round, and sqrt, when
77452         avaliable on the platform.
77453         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
77454         name clash.
77455         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
77456         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
77457         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
77458
77459 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
77460
77461         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
77462         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
77463
77464 2011-11-11  Roland McGrath  <roland@hack.frob.com>
77465
77466         * include/unistd.h: Fix __readlink return type.
77467         Reported by Chris Metcalf <cmetcalf@tilera.com>.
77468
77469 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
77470
77471         * stdlib/ucontext.h: Undo last change for makecontext.
77472
77473 2011-11-11  Andreas Schwab  <schwab@redhat.com>
77474
77475         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
77476
77477         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
77478         * setjmp/setjmp.h: Mark functions as non-leaf.
77479         * setjmp/bits/setjmp2.h: Likewise.
77480         * stdlib/ucontext.h: Likewise.
77481
77482 2011-11-10  Andreas Schwab  <schwab@redhat.com>
77483
77484         * malloc/arena.c (_int_new_arena): Don't increment narenas.
77485         (reused_arena): Don't check arena limit.
77486         (arena_get2): Atomically check arena limit.
77487
77488 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
77489
77490         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
77491         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
77492
77493         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
77494         instructions.
77495
77496 2011-11-07  Andreas Schwab  <schwab@redhat.com>
77497
77498         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
77499         handler when locking.
77500
77501         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
77502         Fix size of allocated buffer.
77503
77504 2011-11-04  Andreas Schwab  <schwab@redhat.com>
77505
77506         [BZ #10103]
77507         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
77508         declarations for long double functions.
77509         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
77510
77511         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
77512
77513 2011-11-03  Andreas Schwab  <schwab@redhat.com>
77514
77515         * nscd/nscd.c (main): Don't start AVC thread until credentials are
77516         installed.
77517
77518         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
77519         is disabled.
77520
77521 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77522
77523         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
77524
77525 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
77526
77527         * include/alloca.h (stackinfo_alloca_round): Define.
77528         (extend_alloca): Use it.
77529         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
77530         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
77531         here.
77532
77533         * scripts/check-local-headers.sh: Ignore libaudit.h.
77534
77535         * nscd/Makefile (extra-objs): Make recursively expanded.
77536
77537 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
77538
77539         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
77540         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
77541
77542         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
77543         * posix/tst-rfc3484-2.c: Likewise.
77544         * posix/tst-rfc3484-3.c: Likewise.
77545
77546         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
77547         process_vm_writev.
77548         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
77549         process_vm_writev.
77550         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77551         process_vm_writev from libc using GLIBC_2.15 version.
77552
77553         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77554
77555 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77556
77557         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77558         stack usage.
77559
77560 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77561
77562         [BZ #13367]
77563         * nss/getent.c (initgroups_keys): Show error message in case no group
77564         names are given.
77565
77566         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77567         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77568         __bump_nl_timestamp.
77569         * nscd/connections (nscd_init): When host database is served open
77570         netlink socket and request notification about configuration changes.
77571         (main_loop_poll): Track netlink file descriptor and bump timestamp
77572         in case data becomes available.
77573         (main_loop_epoll): Likewise.
77574         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77575         (database_pers_head): Add extra_data fileds.
77576         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77577         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77578         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77579         Adjust caller.
77580         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77581         in6ai data, call __free_in6ai.
77582         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77583         Add -DHAVE_NETLINK.
77584         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77585         interface information.  Reuse previous data if netlink timestamp
77586         is not changed.
77587         (__bump_nl_timestamp): New function.
77588         (__free_in6ai): New function.
77589
77590 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77591
77592         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77593         close_not_cancel_no_status here.
77594         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77595
77596 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77597
77598         [BZ #13276]
77599         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77600         return value.
77601
77602         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77603         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77604         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77605
77606 2011-07-03  Andreas Jaeger  <aj@suse.de>
77607
77608         [BZ #10709]
77609         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77610         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77611         * math/libm-test.inc (sin_test): Add test case.
77612
77613 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77614
77615         [BZ #13337]
77616         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77617         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77618
77619         * elf/chroot_canon.c (chroot_canon): Cleanups.
77620
77621         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77622
77623         [BZ #13335]
77624         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77625         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77626
77627         * string/test-strchr.c: Make usable for strchrnul testing.
77628         * string/test-strchrnul.c: New file.
77629         * string/Makefile (strop-tests): Add strchrnul.
77630
77631         * po/it.po: Update from translation team.
77632         * po/es.po: Likewise.
77633
77634 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77635
77636         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77637         the three constants needed as parameters.  Drop the others.
77638         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77639         __m128i_strloadu_tolower.
77640         Create and initialize variable zero and use it in all the places
77641         where _mm_setzero_si128 was used.
77642
77643         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77644         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77645         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77646         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77647         anymore.
77648         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77649         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77650         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77651         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77652         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77653         __mpranred, __mptan.
77654         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77655         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77656         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77657         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77658         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77659         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77660         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77661         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77662         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77663
77664 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77665
77666         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77667         redefine if SHARED.
77668         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77669
77670         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77671         wide char related routines to wcsmbs subdir.
77672
77673 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77674
77675         [BZ #13344]
77676         * misc/sys/cdefs.h (__THROWNL): Define.
77677         * posix/unistd.h: Use __THREADNL instead of __THREAD
77678         for memory synchronization functions.
77679
77680 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77681
77682         [BZ #13349]
77683         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77684         doesn't exist.
77685         * manual/stdio.texi (Obstack Streams): Node removed.
77686
77687 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77688
77689         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77690         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77691         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77692
77693         * math/math_private.h (math_force_eval): Allow non-addressable
77694         arguments.
77695         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77696
77697 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77698
77699         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77700         file is not needed.
77701
77702         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77703         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77704         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77705         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77706         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77707         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77708         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77709         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77710         Add AVX variants.
77711         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77712         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77713         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77714         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77715         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77716         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77717         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77718         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77719         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77720         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77721         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77722         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77723         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77724         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77725         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77726         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77727         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77728         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77729         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77730
77731         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77732         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77733
77734         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77735         place.  Use VEX encoding when compiling for AVX.
77736
77737 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77738
77739         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77740         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77741
77742         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77743
77744 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77745
77746         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77747         useless if() expression.
77748         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77749         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77750         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77751         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77752         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77753         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77754         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77755         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77756         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77757         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77758         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77759         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77760         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77761         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77762         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77763         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77764         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77765         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77766         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77767
77768         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77769
77770 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77771
77772         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77773         condition.
77774         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77775
77776 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77777
77778         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77779         .text section.  Avoid duplicate constants.
77780         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77781         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77782         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77783         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77784         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77785         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77786         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77787         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77788         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77789         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77790         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77791         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77792         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77793         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77794         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77795         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77796         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77797         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77798         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77799         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77800         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77801         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77802         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77803         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77804         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77805         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77806         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77807         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77808         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77809         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77810         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77811         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77812         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77813         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77814         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77815         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77816         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77817         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77818         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77819         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77820         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77821         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77822         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77823         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77824         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77825
77826 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77827
77828         * sysdeps/x86_64/dla.h: Move to ...
77829         * sysdeps/x86_64/fpu/dla.h: ...here.
77830         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77831         situations.  Use __builtin_fma only for gcc 4.6 and up.
77832
77833         * config.make.in: Add have-mfma4 entry.
77834         * configure.in: Substitute libc_cv_cc_fma4.
77835         * math/Makefile (dbl-only-routines): Add sincostab.
77836         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77837         Use __sincostab not sincos.
77838         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77839         name is a macro.
77840         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77841         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77842         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77843         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77844         using __copysign.
77845         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77846         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77847         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77848         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77849         and __inv.
77850         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77851         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77852         __copysign.
77853         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77854         define aliases when function name is a macro.
77855         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77856         sysdeps/ieee754/dbl-64/sincos.tbl.
77857         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77858         fma4-enabled routines.
77859         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77860         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77861         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77862         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77863         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77864         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77865         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77866         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77867         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77868         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77869         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77870         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77871         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77872         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77873         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77874         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77875         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77876         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77877         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77878         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77879         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77880         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77881         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77882         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77883         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77884         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77885         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77886         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77887         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77888         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77889
77890         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77891         rename.
77892         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77893         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77894         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77897         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77898         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77899         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77900
77901 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77902
77903         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77904
77905 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77906
77907         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77908
77909         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77910         prediction.
77911         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77912
77913         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77914         Remove unused variable magic_bits.
77915         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77916
77917         * string/strnlen.c: Define and use STRNLEN macro.
77918         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77919         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77920         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77921         * wcsmbs/wcslen.c: Define and use WCSLEN.
77922         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77923         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77924         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77925         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77926         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77927         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77928         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77929
77930 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77931
77932         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77933         strnlen-sse2-no-bsf.
77934         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77935         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77936         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77937         Add strnlen support.
77938         (USE_AS_STRNLEN): New macro.
77939         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77940         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77941         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77942         * sysdeps/x86_64/wcslen.S: New file.
77943
77944 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77945
77946         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77947         XMM-moves are used for copying on small sizes.
77948
77949 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77950
77951         * wcsmbs/Makefile (strop-tests): Add wcschr.
77952         * wcsmbs/test-wcschr.c: New file.
77953         * string/test-strchr.c: Update.
77954         Add wcschr support.
77955         (WIDE): New macro.
77956
77957 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77958
77959         * wcsmbs/Makefile (strop-tests): Add wcslen.
77960         * wcsmbs/test-wcslen.c: New file.
77961         * string/test-strlen.c: Update.
77962         Add wcslen support.
77963         (WIDE): New macro.
77964
77965 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77966
77967         * po/it.po: Update from translation team.
77968
77969 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77970
77971         * sysdeps/x86_64/wcscmp.S: Update.
77972         Fix wrong comparison semantics.
77973         wcscmp shall use signed comparison not unsigned.
77974         Don't use substraction to avoid overflow bug.
77975         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77976         * wcsmbc/wcscmp.c: Likewise.
77977         * string/test-strcmp.c: Likewise.
77978         Add new tests to check cases with negative values.
77979
77980 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77981
77982         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77983         * sysdeps/x86_64/dla.h: ...here.  New file.
77984         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77985         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77986         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77987         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77988         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77989         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77990         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77991         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77992         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77993
77994 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77995
77996         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77997         __ynl_finite aliases.
77998
77999 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
78000
78001         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78002
78003         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
78004         define DLA_FMA.
78005         [DLA_FMA] (EMULV): Use DLA_FMA.
78006         [DLA_FMA] (MUL12): Use EMULV.
78007         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
78008         that are not needed.
78009         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78010         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78011         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78012         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78013         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78014         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
78015         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
78016
78017 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
78018
78019         * math/s_nan.c: Undef __nan.
78020         * math/s_nanf.c: Undef __nanf.
78021         * math/s_nanl.c: Undef __nanl.
78022         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
78023         "math_private.h".
78024
78025 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
78026
78027         * math/s_catan.c: Add branch predictions.
78028         * math/s_catanf.c: Likewise.
78029         * math/s_catanh.c: Likewise.
78030         * math/s_catanhf.c: Likewise.
78031         * math/s_catanhl.c: Likewise.
78032         * math/s_catanl.c: Likewise.
78033         * math/s_cexp.c: Likewise.
78034         * math/s_cexpf.c: Likewise.
78035         * math/s_cexpl.c: Likewise.
78036         * math/s_clog.c: Likewise.
78037         * math/s_clog10.c: Likewise.
78038         * math/s_clog10f.c: Likewise.
78039         * math/s_clog10l.c: Likewise.
78040         * math/s_clogf.c: Likewise.
78041         * math/s_clogl.c: Likewise.
78042         * math/s_csqrt.c: Likewise.
78043         * math/s_csqrtf.c: Likewise.
78044         * math/s_csqrtl.c: Likewise.
78045         * math/s_ctanf.c: Likewise.
78046         * math/s_ctanh.c: Likewise.
78047         * math/s_ctanhf.c: Likewise.
78048         * math/s_ctanhl.c: Likewise.
78049         * math/s_ctanl.c: Likewise.
78050
78051         * math/math_private.h: Define __nan, __nanf, __nanl.
78052         * math/s_cacosh.c: Include <math_private.h>.
78053         * math/s_cacoshl.c: Likewise.
78054         * math/s_casinh.c: Likewise.
78055         * math/s_casinhf.c: Likewise.
78056         * math/s_casinhl.c: Likewise.
78057         * math/s_ccos.c: Rely entire on ccosh.
78058         * math/s_ccosf.c: Rely entire on ccoshf.
78059         * math/s_ccosl.c: Rely entirely on ccoshl.
78060         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
78061         Remove tests for FE_INVALID.
78062         * math/s_ccoshf.c: Likewise.
78063         * math/s_ccoshl.c: Likewise.
78064         * math/s_csin.c: Likewise.
78065         * math/s_csinf.c: Likewise.
78066         * math/s_csinh.c Likewise.
78067         * math/s_csinhf.c: Likewise.
78068         * math/s_csinhl.c: Likewise.
78069         * math/s_csinl.c: Likewise.
78070         * math/s_ctan.c: Likewise.
78071         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
78072         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
78073         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
78074
78075 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
78076
78077         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
78078         compilation problems.
78079
78080         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
78081         __builtin_expect.
78082
78083 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
78084
78085         * sysdeps/i386/configure.in: Test for -mfma4 option.
78086         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
78087         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
78088         COMMON_CPUID_INDEX_80000001.
78089         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
78090         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
78091         use it if FMA3 is not supported.
78092         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
78093
78094         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
78095         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
78096
78097 2011-10-20  Andreas Schwab  <schwab@redhat.com>
78098
78099         [BZ #12892]
78100         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
78101         it would create a cycle with a link time dependency.
78102
78103 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
78104
78105         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
78106         instruction.
78107         * string/Makefile (strop-tests): Add rawmemchr.
78108         * string/test-rawmemchr.c: New file.
78109
78110         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
78111         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
78112         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
78113         when compiling str{,n}casecmp and when AVX is available.  Hook up
78114         new optimized code in initializers.
78115
78116 2011-10-19  Andreas Schwab  <schwab@redhat.com>
78117
78118         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
78119         __feraiseexcept instead of feraiseexcept.
78120
78121 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
78122
78123         * math/math_private.h: Define defaults for libc_fetestexcept and
78124         libc_feupdateenv.
78125         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
78126         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
78127         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78128         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78129         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
78130         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
78131         libc_fetestexcept and libc_feupdateenv.
78132
78133         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
78134         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
78135         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
78136         * sysdeps/x86_64/fpu/math_private.h: Define special version of
78137         libc_feholdexcept_setround.
78138
78139         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
78140         Add s_nearbyint-c and s_nearbyintf-c.
78141         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
78142         nearbyintf inlines.
78143         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
78144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
78145         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
78146         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
78147
78148         * math/math_private.h: Define defaults for libc_fegetround,
78149         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
78150         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
78151         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
78152         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
78153         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
78154         standard functions.
78155         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78156         Remove comments and hacks for old compiler versions.
78157         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
78158         libc_fegetround, libc_fesetround, libc_feholdexcept, and
78159         libc_feholdexceptl.
78160
78161 2011-10-18  Andreas Schwab  <schwab@redhat.com>
78162
78163         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
78164         (__feraiseexcept_renamed): Add __NTH.
78165         (feraiseexcept): Add __NTH.  Rename local variables to fix
78166         namespace violations.
78167
78168 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
78169
78170         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
78171
78172         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
78173
78174         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
78175         recently added interfaces.
78176         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
78177
78178         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
78179         about macro parameter expansion.
78180
78181         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
78182         __NO_MATH_INLINES is defined.  Cleanups.
78183
78184         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
78185         and __floorf is target has SSE4.1.
78186         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
78187         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
78188         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
78189         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
78190
78191         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
78192         name.
78193         (floorf): Likewise.
78194
78195         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
78196
78197 2011-10-17  Andreas Schwab  <schwab@redhat.com>
78198
78199         * misc/sys/cdefs.h: Fix last change.
78200
78201         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
78202         database lookup.
78203
78204 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
78205
78206         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
78207
78208         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
78209         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
78210         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
78211         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
78212         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
78213         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
78214         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
78215         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
78216         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
78217         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
78218         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
78219         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
78220         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
78221         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
78222         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
78223         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
78224         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
78225         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
78226         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
78227         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
78228         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
78229         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
78230
78231         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
78232         ceil, ceilf, floor, floorf.
78233
78234         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
78235         Perform IRELATIVE relocations last.
78236
78237         * elf/do-rel.h: Add another parameter nrelative, replacing the
78238         local variable with the same name.  Change name of the function
78239         to end in Rel or Rela (uppercase).
78240         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
78241         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
78242         elf_dynamic_do_##reloc function.
78243
78244 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78245
78246         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
78247         is sufficient, at least on modern CPUs.
78248
78249         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
78250
78251         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
78252         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
78253
78254         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
78255         __expl_finite.
78256         * math/bits/math-finite.h: Add entries for exp.
78257         * math/e_expl.c: Add __*_finite alias.
78258         * sysdeps/i386/fpu/e_exp.S: Likewise.
78259         * sysdeps/i386/fpu/e_expf.S: Likewise.
78260         * sysdeps/i386/fpu/e_expl.c: Likewise.
78261         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78262         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78263         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
78264         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
78265         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
78266         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
78267         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
78268
78269         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
78270         is sufficient, at least on modern CPUs.
78271
78272         * ctype/ctype-info.c (__ctype_init): Define.
78273         * include/ctype.h (__ctype_init): Declare.
78274         (__ctype_b_loc): The variable is always initialized.
78275         (__ctype_toupper_loc): Likewise.
78276         (__ctype_tolower_loc): Likewise.
78277         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
78278         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
78279
78280 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
78281
78282         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
78283
78284         * configure.in: Also look in $cxxmachine/include for C++ system
78285         headers.
78286
78287 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78288
78289         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
78290         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
78291         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
78292         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
78293         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
78294         (USE_AS_WMEMCMP): New macro.
78295         Fixing indents.
78296         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
78297         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
78298         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
78299         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
78300         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78301         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
78302         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
78303         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
78304         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
78305         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
78306         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
78307         (USE_AS_WMEMCMP): New macro.
78308         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
78309         * sysdeps/string/test-memcmp.c: Update.
78310         Fix simple_wmemcmp.
78311         Add new tests.
78312         * wcsmbs/wmemcmp.c: Update.
78313         (WMEMCMP): New macro.
78314         Fix overflow bug.
78315
78316 2011-10-12  Andreas Jaeger  <aj@suse.de>
78317
78318         [BZ #13268]
78319         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
78320
78321 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78322
78323         * libio/iofwide.c (do_length): Avoid warning.
78324
78325         * ctype/ctype.h (__isctype_f): Add missing __THROW.
78326
78327 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
78328
78329         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
78330
78331         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
78332         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
78333         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
78334         * sysdeps/i386/i686/fpu/e_log.S: New file.
78335         * sysdeps/i386/i686/fpu/e_logf.S: New file.
78336         * sysdeps/i386/i686/fpu/e_logl.S: New file.
78337
78338         * ctype/ctype.h: Add support for inlined isXXX functions when
78339         compiling C++ code.
78340
78341 2011-10-14  Andreas Schwab  <schwab@redhat.com>
78342
78343         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78344
78345         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
78346
78347 2011-10-13  Roland McGrath  <roland@hack.frob.com>
78348
78349         [BZ #13291]
78350         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
78351
78352 2011-10-13  Andreas Schwab  <schwab@redhat.com>
78353
78354         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
78355         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
78356         feraiseexcept.
78357
78358         * sysdeps/x86_64/memrchr.S: Check for zero size.
78359
78360         * string/stratcliff.c: Add memrchr tests.
78361
78362 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78363
78364         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78365         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
78366         rawmemchr-sse2 rawmemchr-sse2-bsf.
78367         * sysdeps/i386/i686/multiarch/memchr.S: New file.
78368         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
78369         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
78370         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
78371         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
78372         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
78373         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
78374         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
78375         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
78376         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
78377         * string/memrchr.c (MEMRCHR): New macro.
78378
78379 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
78380
78381         Add integration with gcc's -ffinite-math-only and optimize wrapper
78382         functions in libm.
78383         * Versions.def: Define GLIBC_2.15 version for libm.
78384         * math/Makefile (headers): Add bits/math-finite.h.
78385         * math/bits/math-finite.h: New file.
78386         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
78387         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
78388         * math/e_acoshl.c: Add __*_finite alias.
78389         * math/e_acosl.c: Likewise.
78390         * math/e_asinl.c: Likewise.
78391         * math/e_atan2l.c: Likewise.
78392         * math/e_atanhl.c: Likewise.
78393         * math/e_coshl.c: Likewise.
78394         * math/e_exp10.c: Likewise.
78395         * math/e_exp10f.c: Likewise.
78396         * math/e_exp10l.c: Likewise.
78397         * math/e_exp2l.c: Likewise.
78398         * math/e_fmodl.c: Likewise.
78399         * math/e_gammal_r.c: Likewise.
78400         * math/e_hypotl.c: Likewise.
78401         * math/e_j0l.c: Likewise.
78402         * math/e_j1l.c: Likewise.
78403         * math/e_jnl.c: Likewise.
78404         * math/e_lgammal_r.c: Likewise.
78405         * math/e_log10l.c: Likewise.
78406         * math/e_log2l.c: Likewise.
78407         * math/e_logl.c: Likewise.
78408         * math/e_powl.c: Likewise.
78409         * math/e_sinhl.c: Likewise.
78410         * math/e_sqrtl.c: Likewise.
78411         * math/e_scalb.c: Completely rewritten and optimized.
78412         * math/e_scalbf.c: Likewise.
78413         * math/e_scalbl.c: Likewise.
78414         * math/w_acos.c: Likewise.
78415         * math/w_acosf.c: Likewise.
78416         * math/w_acosl.c: Likewise.
78417         * math/w_acosh.c: Likewise.
78418         * math/w_acoshf.c: Likewise.
78419         * math/w_acoshl.c: Likewise.
78420         * math/w_asin.c: Likewise.
78421         * math/w_asinf.c: Likewise.
78422         * math/w_asinl.c: Likewise.
78423         * math/w_atan2.c: Likewise.
78424         * math/w_atan2f.c: Likewise.
78425         * math/w_atan2l.c: Likewise.
78426         * math/w_atanh.c: Likewise.
78427         * math/w_atanhf.c: Likewise.
78428         * math/w_atanhl.c: Likewise.
78429         * math/w_exp10.c: Likewise.
78430         * math/w_exp10f.c: Likewise.
78431         * math/w_exp10l.c: Likewise.
78432         * math/w_fmod.c: Likewise.
78433         * math/w_fmodf.c: Likewise.
78434         * math/w_fmodl.c: Likewise.
78435         * math/w_j0.c: Likewise.
78436         * math/w_j0f.c: Likewise.
78437         * math/w_j0l.c: Likewise.
78438         * math/w_j1.c: Likewise.
78439         * math/w_j1f.c: Likewise.
78440         * math/w_j1l.c: Likewise.
78441         * math/w_jn.c: Likewise.
78442         * math/w_jnf.c: Likewise.
78443         * math/w_log.c: Likewise.
78444         * math/w_logf.c: Likewise.
78445         * math/w_logl.c: Likewise.
78446         * math/w_log10.c: Likewise.
78447         * math/w_log10f.c: Likewise.
78448         * math/w_log10l.c: Likewise.
78449         * math/w_log2.c: Likewise.
78450         * math/w_log2f.c: Likewise.
78451         * math/w_log2l.c: Likewise.
78452         * math/w_pow.c: Likewise.
78453         * math/w_powf.c: Likewise.
78454         * math/w_powl.c: Likewise.
78455         * math/w_remainder.c: Likewise.
78456         * math/w_remainderf.c: Likewise.
78457         * math/w_remainderl.c: Likewise.
78458         * math/w_scalb.c: Likewise.
78459         * math/w_scalbf.c: Likewise.
78460         * math/w_scalbl.c: Likewise.
78461         * math/w_sqrt.c: Likewise.
78462         * math/w_sqrtf.c: Likewise.
78463         * math/w_sqrtl.c: Likewise.
78464         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
78465         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
78466         used.
78467         * math/math_private.h: Declare __kernel_standard_f.
78468         * math/w_cosh.c: Remove cruft and optimize a bit.
78469         * math/w_coshf.c: Likewise.
78470         * math/w_coshl.c: Likewise.
78471         * math/w_exp2.c: Likewise.
78472         * math/w_exp2f.c: Likewise.
78473         * math/w_exp2l.c: Likewise.
78474         * math/w_hypot.c: Likewise.
78475         * math/w_hypotf.c: Likewise.
78476         * math/w_hypotl.c: Likewise.
78477         * math/w_lgamma.c: Likewise.
78478         * math/w_lgamma_r.c: Likewise.
78479         * math/w_lgammaf.c: Likewise.
78480         * math/w_lgammaf_r.c: Likewise.
78481         * math/w_lgammal.c: Likewise.
78482         * math/w_lgammal_r.c: Likewise.
78483         * math/w_sinh.c: Likewise.
78484         * math/w_sinhf.c: Likewise.
78485         * math/w_sinhl.c: Likewise.
78486         * math/w_tgamma.c: Likewise.
78487         * math/w_tgammaf.c: Likewise.
78488         * math/w_tgammal.c: Likewise.
78489         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
78490         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78491         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
78492         Minor optimizations.  Pretty printing.  Remove cruft.
78493         * sysdeps/i386/fpu/e_acosf.S: Likewise.
78494         * sysdeps/i386/fpu/e_acosh.S: Likewise.
78495         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
78496         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
78497         * sysdeps/i386/fpu/e_acosl.c: Likewise.
78498         * sysdeps/i386/fpu/e_asin.S: Likewise.
78499         * sysdeps/i386/fpu/e_asinf.S: Likewise.
78500         * sysdeps/i386/fpu/e_atan2.S: Likewise.
78501         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
78502         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
78503         * sysdeps/i386/fpu/e_atanh.S: Likewise.
78504         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
78505         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
78506         * sysdeps/i386/fpu/e_exp10.S: Likewise.
78507         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
78508         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
78509         * sysdeps/i386/fpu/e_exp2.S: Likewise.
78510         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
78511         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
78512         * sysdeps/i386/fpu/e_fmod.S: Likewise.
78513         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
78514         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78515         * sysdeps/i386/fpu/e_hypot.S: Likewise.
78516         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
78517         * sysdeps/i386/fpu/e_log.S: Likewise.
78518         * sysdeps/i386/fpu/e_log10.S: Likewise.
78519         * sysdeps/i386/fpu/e_log10f.S: Likewise.
78520         * sysdeps/i386/fpu/e_log10l.S: Likewise.
78521         * sysdeps/i386/fpu/e_log2.S: Likewise.
78522         * sysdeps/i386/fpu/e_log2f.S: Likewise.
78523         * sysdeps/i386/fpu/e_log2l.S: Likewise.
78524         * sysdeps/i386/fpu/e_logf.S: Likewise.
78525         * sysdeps/i386/fpu/e_logl.S: Likewise.
78526         * sysdeps/i386/fpu/e_pow.S: Likewise.
78527         * sysdeps/i386/fpu/e_powf.S: Likewise.
78528         * sysdeps/i386/fpu/e_powl.S: Likewise.
78529         * sysdeps/i386/fpu/e_remainder.S: Likewise.
78530         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
78531         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
78532         * sysdeps/i386/fpu/e_scalb.S: Likewise.
78533         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
78534         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
78535         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
78536         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
78537         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
78538         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
78539         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78540         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78541         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
78542         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78543         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
78544         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
78545         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
78546         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78547         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
78548         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
78549         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
78550         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78551         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78552         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78553         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78554         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78555         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78556         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78558         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78559         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78560         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78561         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78562         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78563         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78564         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78565         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78566         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78567         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78568         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78569         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78570         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78571         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78572         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78573         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78574         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78575         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78576         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78577         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78578         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78579         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78580         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78581         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78582         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78583         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78584         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78585         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78586         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78587         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78588         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78589         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78590         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78591         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78592         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78593         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78594         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78595         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78596         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78597         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78598         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78599         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78600         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78601         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78602         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78603         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78604         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78605         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78606         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78607         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78608         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78609         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78610         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78611         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78612         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78613         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78614         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78615         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78616         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78617         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78618         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78619         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78620         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78621         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78622         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78623         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78624         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78625         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78626         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78627         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78628         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78629         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78630         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78631         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78632         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78633         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78634         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78635         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78636         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78637         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78638         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78639         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78640         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78641         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78642         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78643         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78644         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78645         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78646         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78647         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78648         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78649         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78650         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78651         (__isnanf): Likewise.
78652         (__isinf_ns): Likewise.
78653         (__isinf_nsf): Likewise.
78654         (__finite): Likewise.
78655         (__finitef): Likewise.
78656         (__ieee754_sqrt): Define as macro.
78657         (__ieee754_sqrtf): Define as macro.
78658         (__ieee754_sqrtl): Define as macro.
78659         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78660         inlined copy.
78661         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78662         __FINITE_MATH_ONLY__ consistent.
78663         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78664
78665 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78666
78667         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78668         of rawmemchr.
78669
78670         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78671
78672 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78673
78674         * po/ja.po: Update from translation team.
78675
78676 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78677
78678         * locale/programs/locarchive.c (prepare_address_space): New function.
78679         (create_archive, enlarge_archive, open_archive): Use it.
78680
78681         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78682         inside [SHARED], where it is used.
78683
78684         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78685
78686         * nss/getent.c (netgroup_keys): Remove unused variable.
78687         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78688
78689 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78690
78691         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78692         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78693         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78694         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78695         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78696         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78697         * math/Makefile (libm-calls): Add s_isinf_ns.
78698         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78699         * math/multc3.c: Likewise.
78700         * math/s_casin.c: Likewise.
78701         * math/s_casinf.c: Likewise.
78702         * math/s_casinl.c: Likewise.
78703         * math/s_ccos.c: Likewise.
78704         * math/s_ccosf.c: Likewise.
78705         * math/s_ccosl.c: Likewise.
78706         * math/s_ctan.c: Likewise.
78707         * math/s_ctanf.c: Likewise.
78708         * math/s_ctanh.c: Likewise.
78709         * math/s_ctanhf.c: Likewise.
78710         * math/s_ctanhl.c: Likewise.
78711         * math/s_ctanl.c: Likewise.
78712         * math/w_fmod.c: Likewise.
78713         * math/w_fmodf.c: Likewise.
78714         * math/w_fmodl.c: Likewise.
78715         * math/w_remainder.c: Likewise.
78716         * math/w_remainderf.c: Likewise.
78717         * math/w_remainderl.c: Likewise.
78718         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78719         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78720         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78721         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78722         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78723         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78724         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78725         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78726
78727         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78728         of the number.
78729         * stdio-common/printf_fphex.c: Likewise.
78730         * stdio-common/printf_size.c: Likewise.
78731
78732         * math/e_exp10.c: Include math_private.h using <...> not "...".
78733         * math/e_exp10f.c: Likewise.
78734         * math/e_exp10l.c: Likewise.
78735         * math/e_exp2l.c: Likewise.
78736         * math/e_j0l.c: Likewise.
78737         * math/e_j1l.c: Likewise.
78738         * math/e_jnl.c: Likewise.
78739         * math/e_lgammal_r.c: Likewise.
78740         * math/e_rem_pio2l.c: Likewise.
78741         * math/e_scalb.c: Likewise.
78742         * math/e_scalbf.c: Likewise.
78743         * math/e_scalbl.c: Likewise.
78744         * math/k_cosl.c: Likewise.
78745         * math/k_sinl.c: Likewise.
78746         * math/k_tanl.c: Likewise.
78747         * math/s_cacoshf.c: Likewise.
78748         * math/s_catan.c: Likewise.
78749         * math/s_catanf.c: Likewise.
78750         * math/s_catanh.c: Likewise.
78751         * math/s_catanhf.c: Likewise.
78752         * math/s_catanhl.c: Likewise.
78753         * math/s_catanl.c: Likewise.
78754         * math/s_ccosh.c: Likewise.
78755         * math/s_ccoshf.c: Likewise.
78756         * math/s_ccoshl.c: Likewise.
78757         * math/s_cexp.c: Likewise.
78758         * math/s_cexpf.c: Likewise.
78759         * math/s_cexpl.c: Likewise.
78760         * math/s_clog.c: Likewise.
78761         * math/s_clog10.c: Likewise.
78762         * math/s_clog10f.c: Likewise.
78763         * math/s_clog10l.c: Likewise.
78764         * math/s_clogf.c: Likewise.
78765         * math/s_clogl.c: Likewise.
78766         * math/s_csin.c: Likewise.
78767         * math/s_csinf.c: Likewise.
78768         * math/s_csinh.c: Likewise.
78769         * math/s_csinhf.c: Likewise.
78770         * math/s_csinhl.c: Likewise.
78771         * math/s_csinl.c: Likewise.
78772         * math/s_csqrt.c: Likewise.
78773         * math/s_csqrtf.c: Likewise.
78774         * math/s_csqrtl.c: Likewise.
78775         * math/s_ctan.c: Likewise.
78776         * math/s_ctanf.c: Likewise.
78777         * math/s_ctanh.c: Likewise.
78778         * math/s_ctanhf.c: Likewise.
78779         * math/s_ctanhl.c: Likewise.
78780         * math/s_ctanl.c: Likewise.
78781         * math/s_ldexp.c: Likewise.
78782         * math/s_ldexpf.c: Likewise.
78783         * math/s_ldexpl.c: Likewise.
78784         * math/s_significand.c: Likewise.
78785         * math/s_significandf.c: Likewise.
78786         * math/s_significandl.c: Likewise.
78787         * math/w_acos.c: Likewise.
78788         * math/w_acosf.c: Likewise.
78789         * math/w_acosh.c: Likewise.
78790         * math/w_acoshf.c: Likewise.
78791         * math/w_acoshl.c: Likewise.
78792         * math/w_acosl.c: Likewise.
78793         * math/w_asin.c: Likewise.
78794         * math/w_asinf.c: Likewise.
78795         * math/w_asinl.c: Likewise.
78796         * math/w_atan2.c: Likewise.
78797         * math/w_atan2f.c: Likewise.
78798         * math/w_atan2l.c: Likewise.
78799         * math/w_atanh.c: Likewise.
78800         * math/w_atanhf.c: Likewise.
78801         * math/w_atanhl.c: Likewise.
78802         * math/w_cosh.c: Likewise.
78803         * math/w_coshf.c: Likewise.
78804         * math/w_coshl.c: Likewise.
78805         * math/w_dremf.c: Likewise.
78806         * math/w_exp10.c: Likewise.
78807         * math/w_exp10f.c: Likewise.
78808         * math/w_exp10l.c: Likewise.
78809         * math/w_exp2.c: Likewise.
78810         * math/w_exp2f.c: Likewise.
78811         * math/w_fmod.c: Likewise.
78812         * math/w_fmodf.c: Likewise.
78813         * math/w_fmodl.c: Likewise.
78814         * math/w_hypot.c: Likewise.
78815         * math/w_hypotf.c: Likewise.
78816         * math/w_hypotl.c: Likewise.
78817         * math/w_j0.c: Likewise.
78818         * math/w_j0f.c: Likewise.
78819         * math/w_j0l.c: Likewise.
78820         * math/w_j1.c: Likewise.
78821         * math/w_j1f.c: Likewise.
78822         * math/w_j1l.c: Likewise.
78823         * math/w_jn.c: Likewise.
78824         * math/w_jnf.c: Likewise.
78825         * math/w_jnl.c: Likewise.
78826         * math/w_lgamma.c: Likewise.
78827         * math/w_lgamma_r.c: Likewise.
78828         * math/w_lgammaf.c: Likewise.
78829         * math/w_lgammaf_r.c: Likewise.
78830         * math/w_lgammal.c: Likewise.
78831         * math/w_lgammal_r.c: Likewise.
78832         * math/w_log.c: Likewise.
78833         * math/w_log10.c: Likewise.
78834         * math/w_log10f.c: Likewise.
78835         * math/w_log10l.c: Likewise.
78836         * math/w_log2.c: Likewise.
78837         * math/w_log2f.c: Likewise.
78838         * math/w_log2l.c: Likewise.
78839         * math/w_logf.c: Likewise.
78840         * math/w_logl.c: Likewise.
78841         * math/w_pow.c: Likewise.
78842         * math/w_powf.c: Likewise.
78843         * math/w_powl.c: Likewise.
78844         * math/w_remainder.c: Likewise.
78845         * math/w_remainderf.c: Likewise.
78846         * math/w_remainderl.c: Likewise.
78847         * math/w_scalb.c: Likewise.
78848         * math/w_scalbf.c: Likewise.
78849         * math/w_scalbl.c: Likewise.
78850         * math/w_sinh.c: Likewise.
78851         * math/w_sinhf.c: Likewise.
78852         * math/w_sinhl.c: Likewise.
78853         * math/w_sqrt.c: Likewise.
78854         * math/w_sqrtf.c: Likewise.
78855         * math/w_sqrtl.c: Likewise.
78856         * math/w_tgamma.c: Likewise.
78857         * math/w_tgammaf.c: Likewise.
78858         * math/w_tgammal.c: Likewise.
78859
78860         * po/ja.po: Update from translation team.
78861
78862 2011-09-29  Andreas Jaeger  <aj@suse.de>
78863
78864         [BZ #13179]
78865         * sunrpc/netname.c (netname2host): Fix logic.
78866
78867         [BZ #6779]
78868         [BZ #6783]
78869         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78870         correctly.
78871         * math/w_remainder.c (__remainder): Likewise.
78872         * math/w_remainderf.c (__remainderf): Likewise.
78873         * math/libm-test.inc (remainder_test): Add test cases.
78874
78875 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78876
78877         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78878         sdiv_qrnnd.
78879
78880 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78881
78882         * string/test-memcmp.c: Avoid unncessary #defines.
78883         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78884
78885 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78886
78887         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78888         Use new sse2 version for core i3 - i7 as it's faster
78889         than sse42 version.
78890         (bit_Prefer_PMINUB_for_stringop): New.
78891         * sysdeps/x86_64/rawmemchr.S: Update.
78892         Replace with faster SSE2 version.
78893         * sysdeps/x86_64/memrchr.S: New file.
78894         * sysdeps/x86_64/memchr.S: Update.
78895         Replace with faster SSE2 version.
78896
78897 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78898
78899         * elf/dl-load.c (lose): Add cast to avoid warning.
78900
78901 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78902
78903         * po/ca.po: Update from translation team.
78904
78905         * inet/getnetgrent_r.c: Hook up nscd.
78906         * nscd/Makefile (routines): Add nscd_netgroup.
78907         (nscd-modules): Add netgroupcache.
78908         (CFLAGS-netgroupcache.c): Define.
78909         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78910         (cache_search): Add const to second parameter.
78911         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78912         INNETGR.
78913         (dbs): Add netgrdb entry.
78914         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78915         (verify_persistent_db): Handle netgrdb.
78916         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78917         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78918         GETFDNETGR.
78919         (netgroup_response_header): Define.
78920         (innetgroup_response_header): Define.
78921         (datahead): Add netgroup_response_header and innetgroup_response_header
78922         elements.
78923         * nscd/nscd.conf: Add entries for netgroup cache.
78924         * nscd/nscd.h (dbtype): Add netgrdb.
78925         (_PATH_NSCD_NETGROUP_DB): Define.
78926         (netgroup_iov_disabled): Declare.
78927         (xmalloc, xcalloc, xrealloc): Move declarations here.
78928         (cache_search): Adjust prototype.
78929         Add netgroup-related prototypes.
78930         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78931         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78932         (__nscd_innetgr): Declare.
78933         * nscd/selinux.c (perms): Use access_vector_t as element type and
78934         add netgroup-related initializers.
78935         * nscd/netgroupcache.c: New file.
78936         * nscd/nscd_netgroup.c: New file.
78937         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78938         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78939         For four parameters use innetgr.
78940         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78941         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78942         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78943         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78944
78945         * nscd/connections.c (register_traced_file): Don't register file
78946         for disabled databases.
78947
78948 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78949
78950         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78951
78952         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78953         from tree and freeing node.
78954
78955 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78956
78957         * nss/nsswitch.c (__nss_database_lookup): Handle
78958         nss_parse_service_list out of memory case.
78959
78960 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78961
78962         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78963         out of memory case.
78964
78965 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78966
78967         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78968         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78969         pass it down.
78970         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78971         elf_machine_rela, elf_machine_lazy_rel.
78972         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78973         (ELF_DYNAMIC_DO_REL): Likewise.
78974         (ELF_DYNAMIC_DO_RELA): Likewise.
78975         (ELF_DYNAMIC_RELOCATE): Likewise.
78976         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78977         to ELF_DYNAMIC_DO_REL.
78978         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78979         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78980         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78981         elf_machine_rela.
78982         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78983         skip_ifunc, don't call ifunc function if non-zero.
78984         (elf_machine_rela): Likewise.
78985         (elf_machine_lazy_rel): Likewise.
78986         (elf_machine_lazy_rela): Likewise.
78987         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78988         (elf_machine_lazy_rel): Likewise.
78989         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78990         Likewise.
78991         (elf_machine_lazy_rel): Likewise.
78992         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78993         Likewise.
78994         (elf_machine_lazy_rel): Likewise.
78995         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78996         (elf_machine_lazy_rel): Likewise.
78997         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78998         (elf_machine_lazy_rel): Likewise.
78999         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
79000         (elf_machine_lazy_rel): Likewise.
79001         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
79002         (elf_machine_lazy_rel): Likewise.
79003         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
79004         (elf_machine_lazy_rel): Likewise.
79005         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
79006         (elf_machine_lazy_rel): Likewise.
79007
79008 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
79009
79010         * nss/nss_files/files-init.c (_nss_files_init): Use static
79011         initialization for all the *_traced_file variables.
79012
79013 2011-09-28  Andreas Schwab  <schwab@redhat.com>
79014
79015         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79016
79017 2011-09-27  Roland McGrath  <roland@hack.frob.com>
79018
79019         [BZ #13226]
79020         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
79021
79022 2011-09-27  Andreas Schwab  <schwab@redhat.com>
79023
79024         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
79025         Reread the line before reparsing it.
79026
79027 2011-09-26  Andreas Schwab  <schwab@redhat.com>
79028
79029         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
79030
79031 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
79032             Maxim Kuvyrkov  <maxim@codesourcery.com>
79033             Joseph Myers  <joseph@codesourcery.com>
79034
79035         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
79036         if needed for __stack_chk_guard.
79037
79038 2011-09-19  Roland McGrath  <roland@hack.frob.com>
79039
79040         * sysdeps/posix/spawni.c (script_execute): Always define it.
79041         It will be optimized away if unused.
79042         (maybe_script_execute): New function.
79043         (__spawni): Call it.
79044
79045         * Makerules: Don't include tls.make.
79046         (config-tls): Always set to thread.
79047         * tls.make.c: File removed.
79048
79049 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
79050
79051         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
79052         * config.make.in (CPPFLAGS-config): New substituted variable.
79053
79054 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
79055
79056         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
79057
79058         [BZ #13192]
79059         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
79060         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
79061
79062 2011-09-15  Roland McGrath  <roland@hack.frob.com>
79063
79064         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
79065         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
79066         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
79067         (CALL_FAIL): Likewise.
79068         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
79069         (CALL_FAIL): Macro removed.
79070         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
79071
79072 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
79073
79074         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
79075         for __FINITE_MATH_ONLY__ == 1.
79076
79077 2011-09-15  Andreas Schwab  <schwab@redhat.com>
79078
79079         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
79080         __ieee754_sqrt instead of sqrt.
79081         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
79082         __ieee754_sqrtf instead of sqrtf.
79083         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
79084         __floorf instead of floorf.
79085         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
79086         __floorf, __truncf instead of floorf, truncf.
79087
79088 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
79089
79090         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
79091
79092         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
79093         __extern_always_inline.
79094         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
79095         32-bit.
79096
79097 2011-09-14  Andreas Schwab  <schwab@redhat.com>
79098
79099         * elf/rtld.c (dl_main): Also relocate in dependency order when
79100         doing symbol dependency testing.
79101
79102 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
79103
79104         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
79105         Always define `refsym'.
79106
79107 2011-09-13  Andreas Schwab  <schwab@redhat.com>
79108
79109         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
79110         (__FD_ELT): Renamed from __FDELT.
79111         * misc/bits/select2.h (__FD_ELT): Likewise.
79112         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
79113         __FD_MASK instead of __FDELT, __FDMASK.
79114         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
79115         Likewise.
79116         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
79117         Likewise.
79118
79119         * elf/Makefile (gen-ldd): Fix pattern.
79120
79121         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
79122         (init_tls): Likewise.
79123
79124 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
79125
79126         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
79127
79128 2011-09-12  Andreas Schwab  <schwab@redhat.com>
79129
79130         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
79131         `struct cmsghdr *' instead of `void *'.
79132         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
79133         Likewise.
79134
79135 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
79136
79137         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
79138         if non-absolute.
79139         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
79140         ldd_rewrite_script.
79141
79142 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
79143
79144         * configure.in: Remove --with-tls option.
79145         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
79146         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
79147         out in case it is missing.
79148         * sysdeps/ia64/elf/configure.in: Likewise.
79149         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
79150         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
79151         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
79152         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
79153         * sysdeps/sh/elf/configure.in: Likewise.
79154         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
79155         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
79156         * sysdeps/x86_64/elf/configure.in: Likewise.
79157         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
79158         * sysdeps/mach/hurd/tls.h: Likewise.
79159
79160         [BZ #13067]
79161         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
79162
79163         [BZ #13090]
79164         * configure.in: Fix use of AC_INIT.
79165
79166         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
79167
79168 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
79169
79170         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
79171         __set_errno.
79172         * malloc/hooks.c: Likewise.
79173
79174         [BZ #11929]
79175         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
79176         variables statically.
79177         (narenas): Initialize.
79178         (list_lock): Initialize.
79179         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
79180         initializtion of main_arena and list_lock.  Small cleanups.
79181         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
79182         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
79183         Add initializers to main_arena and mp_.
79184         (malloc_state): Remove pagesize member.  Change all users to use
79185         GLRO(dl_pagesize).
79186
79187         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
79188         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
79189         is always initialized.
79190
79191         * malloc/malloc.c: Removed unused configurations and dead code.
79192         * malloc/arena.c: Likewise.
79193         * malloc/hooks.c: Likewise.
79194         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
79195
79196         * include/tls.h: Removed.  USE___THREAD must always be defined.
79197         * bits/libc-tsd.h: Don't handle !USE___THREAD.
79198         * elf/dl-libc.c: Likewise.
79199         * elf/dl-tsd.c: Likewise.
79200         * include/errno.h: Likewise.
79201         * include/netdb.h: Likewise.
79202         * include/resolv.h: Likewise.
79203         * inet/herrno-loc.c: Likewise.
79204         * inet/herrno.c: Likewise.
79205         * malloc/arena.c: Likewise.
79206         * malloc/hooks.c: Likewise.
79207         * malloc/malloc.c: Likewise.
79208         * resolv/res-state.c: Likewise.
79209         * resolv/res_libc.c: Likewise.
79210         * sysdeps/i386/dl-machine.h: Likewise.
79211         * sysdeps/ia64/dl-machine.h: Likewise.
79212         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
79213         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
79214         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
79215         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
79216         * sysdeps/sh/dl-machine.h: Likewise.
79217         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
79218         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
79219         * sysdeps/unix/i386/sysdep.S: Likewise.
79220         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
79221         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
79222         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
79223         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
79224         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
79225         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
79226         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
79227         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
79228         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
79229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
79230         * sysdeps/unix/x86_64/sysdep.S: Likewise.
79231         * sysdeps/x86_64/dl-machine.h: Likewise.
79232         * tls.make.c: Likewise.
79233
79234         * configure.in: Remove --with-__thread option.  Make tests for
79235         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
79236         tls_model attribute fail if no support is available.  Remove
79237         USE_IN_LIBIO.
79238         * Makeconfig: Adjust for dropped configure option.  All features are
79239         now mandatory.
79240         * Makerules: Likewise.
79241         * Versions.def: Likewise.
79242         * argp/argp-fmtstream.c: Likewise.
79243         * argp/argp-fmtstream.h: Likewise.
79244         * argp/argp-help.c: Likewise.
79245         * assert/assert.c: Likewise.
79246         * config.h.in: Likewise.
79247         * config.make.in: Likewise.
79248         * configure: Likewise.
79249         * configure.in: Likewise.
79250         * csu/Versions: Likewise.
79251         * csu/init.c: Likewise.
79252         * elf/tst-audit2.c: Likewise.
79253         * elf/tst-tls10.c: Likewise.
79254         * elf/tst-tls10.h: Likewise.
79255         * elf/tst-tls11.c: Likewise.
79256         * elf/tst-tls12.c: Likewise.
79257         * elf/tst-tls14.c: Likewise.
79258         * elf/tst-tlsmod11.c: Likewise.
79259         * elf/tst-tlsmod12.c: Likewise.
79260         * elf/tst-tlsmod13.c: Likewise.
79261         * elf/tst-tlsmod13a.c: Likewise.
79262         * elf/tst-tlsmod14a.c: Likewise.
79263         * elf/tst-tlsmod15b.c: Likewise.
79264         * elf/tst-tlsmod16a.c: Likewise.
79265         * elf/tst-tlsmod16b.c: Likewise.
79266         * elf/tst-tlsmod7.c: Likewise.
79267         * elf/tst-tlsmod8.c: Likewise.
79268         * elf/tst-tlsmod9.c: Likewise.
79269         * gmon/gmon.c: Likewise.
79270         * grp/fgetgrent_r.c: Likewise.
79271         * grp/putgrent.c: Likewise.
79272         * hurd/fopenport.c: Likewise.
79273         * include/libc-symbols.h: Likewise.
79274         * include/tls.h: Likewise.
79275         * intl/gettextP.h: Likewise.
79276         * intl/loadinfo.h: Likewise.
79277         * locale/global-locale.c: Likewise.
79278         * locale/localeinfo.h: Likewise.
79279         * mach/devstream.c: Likewise.
79280         * malloc/arena.c: Likewise.
79281         * malloc/set-freeres.c: Likewise.
79282         * misc/err.c: Likewise.
79283         * misc/getttyent.c: Likewise.
79284         * misc/mntent_r.c: Likewise.
79285         * posix/getopt.c: Likewise.
79286         * posix/wordexp.c: Likewise.
79287         * pwd/fgetpwent_r.c: Likewise.
79288         * resolv/Versions: Likewise.
79289         * resolv/res_hconf.c: Likewise.
79290         * shadow/fgetspent_r.c: Likewise.
79291         * shadow/putspent.c: Likewise.
79292         * stdio-common/printf_fphex.c: Likewise.
79293         * stdio-common/tmpfile.c: Likewise.
79294         * stdlib/abort.c: Likewise.
79295         * stdlib/fmtmsg.c: Likewise.
79296         * sunrpc/auth_unix.c: Likewise.
79297         * sunrpc/clnt_perr.c: Likewise.
79298         * sunrpc/clnt_tcp.c: Likewise.
79299         * sunrpc/clnt_udp.c: Likewise.
79300         * sunrpc/clnt_unix.c: Likewise.
79301         * sunrpc/openchild.c: Likewise.
79302         * sunrpc/svc_simple.c: Likewise.
79303         * sunrpc/svc_tcp.c: Likewise.
79304         * sunrpc/svc_udp.c: Likewise.
79305         * sunrpc/svc_unix.c: Likewise.
79306         * sunrpc/xdr.c: Likewise.
79307         * sunrpc/xdr_array.c: Likewise.
79308         * sunrpc/xdr_rec.c: Likewise.
79309         * sunrpc/xdr_ref.c: Likewise.
79310         * sunrpc/xdr_stdio.c: Likewise.
79311
79312 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79313
79314         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79315
79316 2011-07-03  Andreas Jaeger  <aj@suse.de>
79317
79318         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
79319         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
79320         regenerate with gen-libm-tests.pl.
79321
79322 2010-05-12  Petr Baudis  <pasky@suse.cz>
79323
79324         [BZ #11589]
79325         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
79326         around j0() zero points by switching to j1().
79327         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79328         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79329         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
79330         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79331
79332 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79333
79334         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
79335         instead of 0.
79336         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
79337         instead of 0.
79338         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79339         Patch in part by Pavel Roskin <proski@gnu.org>.
79340
79341         [BZ #13138]
79342         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
79343         realloc.
79344         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
79345         Free memory block if necessary.
79346
79347         [BZ #12847]
79348         * libio/genops.c (INTDEF): For string streams the _lock pointer can
79349         be NULL.  Don't lock in this case.
79350
79351 2011-09-09  Roland McGrath  <roland@hack.frob.com>
79352
79353         * elf/elf.h (ELFOSABI_GNU): New macro.
79354         (ELFOSABI_LINUX): Define to that.
79355
79356 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
79357
79358         * string/strncat.c (strncat): Undef the symbol in case it has been
79359         defined in bits/string.h.
79360
79361 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79362
79363         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
79364
79365         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
79366         link map.
79367
79368 2011-08-17  Andreas Jaeger  <aj@suse.de>
79369
79370         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
79371
79372 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
79373             Ian Lance Taylor  <iant@google.com>
79374
79375         * math/libm-test.inc (lround_test): New testcase.
79376         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
79377
79378 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
79379
79380         * Makefile: Remove support for automatic cvs check-ins.
79381         * Makerules: Likewise.
79382         * config.make.in: Likewise.
79383         * configure.in: Likewise.
79384         * intl/Makefile: Likewise.
79385         * locale/Makefile: Likewise.
79386         * po/Makefile: Likewise.
79387         * posix/Makefile: Likewise.
79388         * sysdeps/gnu/Makefile: Likewise.
79389         * sysdeps/mach/hurd/Makefile: Likewise.
79390         * sysdeps/sparc/sparc32/Makefile: Likewise.
79391
79392         [BZ #13118]
79393         * posix/Makefile (bug-regex32-ENV): Define.
79394         Patch by John Stanley <jpsinthemix@verizon.net>.
79395
79396         * misc/Makefile (headers): Add bits/select2.h.
79397         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
79398         * misc/bits/select2.h: New file.
79399         * include/bits/select2.h: New file.
79400         * debug/Makefile (routines): Add fdelt_chk.
79401         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
79402         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
79403         FD_ISSET.
79404         * debug/fdelt_chk.c: New file.
79405
79406         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
79407         * wcsmbs/test-wmemcmp.c: Likewise.
79408         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
79409         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
79410
79411 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79412
79413         * string/Makefile (strop-tests): Add memcmp.
79414         * string/test-wmemcmp.c: New file.
79415         * string/test-memcmp.c: Add wmemcmp support.
79416
79417 2011-09-08  Roland McGrath  <roland@hack.frob.com>
79418
79419         [BZ #13153]
79420         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
79421         2011-07-19 change.
79422
79423         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
79424         garbage value in a __mach_port_mod_refs call in the cases of the
79425         task-self and thread-self ports.
79426
79427 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79428
79429         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
79430
79431 2011-09-08  Andreas Schwab  <schwab@redhat.com>
79432
79433         * elf/dl-load.c (lose): Check for non-null L.
79434
79435 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79436
79437         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
79438
79439         * elf/dl-libc.c (dlerror_run): Pass back error code from
79440         dl_catch_error.
79441
79442         [BZ #13123]
79443         * elf/dl-load.c (lose): Free l_origin if it is valid.
79444
79445         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
79446         names.
79447         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
79448         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79449         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79450         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79451         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
79452         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
79453
79454 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79455
79456         * sysdeps/powerpc/fpu/e_hypot.c: New file.
79457         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
79458         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
79459         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
79460         * sysdeps/powerpc/fpu/k_cosf.c: New file.
79461         * sysdeps/powerpc/fpu/k_sinf.c: New file.
79462         * sysdeps/powerpc/fpu/s_cosf.c: New file.
79463         * sysdeps/powerpc/fpu/s_sinf.c: New file.
79464         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
79465         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
79466
79467 2011-08-15  Alan Modra  <amodra@gmail.com>
79468
79469         [BZ #13092]
79470         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
79471         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
79472         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
79473         ppc_mcount to static-only-routines.
79474         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
79475         __mcount_internal.
79476         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
79477         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
79478
79479 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
79480
79481         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
79482         for finite and infinity parameters.
79483
79484 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
79485
79486         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
79487         and add nop instructions for throughput optimization.
79488         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
79489
79490 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
79491
79492         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
79493         aligned copy for power7 with vector-scalar instructions.
79494         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
79495
79496 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
79497
79498         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
79499         AVX check.
79500
79501 2011-09-07  Andreas Schwab  <schwab@redhat.com>
79502
79503         [BZ #13144]
79504         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
79505         last change.
79506
79507 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79508
79509         * sysdeps/unix/sysv/linux/x86_64/init-first.c
79510         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
79511         syscall wrapper around clock_gettime in __vdso_clock_gettime.
79512         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
79513         clock_gettime.
79514
79515 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79516
79517         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
79518         Forgot to demangle the pointer.
79519
79520         * sysdeps/i386/sysdep.h: Define atom_text_section.
79521         * sysdeps/x86_64/sysdep.h: Likewise.
79522         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
79523         section with atom_text_section.
79524         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79525         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79526         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
79527         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79528         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
79529
79530         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
79531         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
79532         already be defined.  Change to take two parameters and don't assign
79533         result to variable.  Adjust all users.
79534         Define INTERNAL_GETTIME if not already defined.
79535         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
79536         call.
79537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
79538         HAVE_CLOCK_GETTIME_VSYSCALL.
79539         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
79540
79541         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
79542         gettimeofday vsyscall, just use time.
79543
79544 2011-09-06  Andreas Schwab  <schwab@redhat.com>
79545
79546         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
79547         <errno.h>.
79548
79549 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79550
79551         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79552         syscall on x86-64.
79553         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79554         syscall.
79555         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79556         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79557         syscall if possible.
79558
79559 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79560
79561         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79562         e_ident.  Don't pass to find_mapsXX.
79563         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79564
79565 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79566
79567         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79568         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79569         * sysdeps/x86_64/multiarch/strchr.S: Update.
79570         Check bit_slow_BSF bit.
79571         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79572         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79573         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79574
79575 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79576
79577         [BZ #13134]
79578         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79579         before glibc 2.15.
79580         (tryshell): Define.
79581         (__spawni): Change last parameter to be flag.  Test
79582         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79583         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79584         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79585         * posix/spawni.c: Likewise.
79586         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79587         * posix/spawnp.c: Likewise.  Change normal version to use
79588         SPAWN_XFLAGS_USE_PATH.
79589         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79590         SPAWN_XFLAGS_TRY_SHELL.
79591
79592         [BZ #13150]
79593         * posix/glob.h: Remove gcc 1.x support.
79594
79595         [BZ #13068]
79596         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79597
79598 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79599
79600         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79601         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79602         strrchr-sse2-bsf
79603         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79604         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79605         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79606         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79607         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79608         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79609
79610 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79611
79612         * sysdeps/x86_64/wcscmp.S: New file.
79613
79614         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79615         wcscmp-c wcscmp-sse2
79616         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79617         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79618         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79619         * wcsmbs/wcscmp.c: Allow renaming.
79620
79621 2011-09-05  David S. Miller  <davem@davemloft.net>
79622
79623         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79624         stack slot, rather than the struct return pointer slot.
79625         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79626         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79628         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79629
79630 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79631
79632         * po/ja.po: Update from translation team.
79633
79634         [BZ #13144]
79635         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79636         kernel in 64-bit binaries.
79637
79638 2011-09-01  David S. Miller  <davem@davemloft.net>
79639
79640         * elf/elf.h (HWCAP_SPARC_*): Move to..
79641         * sysdeps/sparc/sysdep.h: this new file and add new values.
79642         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79643         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79644         _DL_HWCAP_COUNT to 24.
79645         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79646         entries.
79647         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79648         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79649         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79650         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79651         instead of magic constants.
79652         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79653
79654 2011-08-31  David S. Miller  <davem@davemloft.net>
79655
79656         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79657         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79658         Reimplement to do errno handling inline.
79659         (SYSCALL_ERROR_HANDLER): New macro.
79660         (__SYSCALL_STRING): Do not do errno handling in asm.
79661         (__CLONE_SYSCALL_STRING): Delete.
79662         (__INTERNAL_SYSCALL_STRING): Delete.
79663         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79664         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79665         (PSEUDO): Reimplement to do errno handling inline.
79666         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79667         (SYSCALL_ERROR_HANDLER): New macro.
79668         (__SYSCALL_STRING): Do not do errno handling in asm.
79669         (__CLONE_SYSCALL_STRING): Delete.
79670         (__INTERNAL_SYSCALL_STRING): Delete.
79671         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79672         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79673         i386.
79674         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79675         (inline_syscall*): Add 'err' argument.
79676         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79677         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79678         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79679         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79680
79681         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79682         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79683
79684 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79685
79686         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79687
79688 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79689
79690         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79691         directive.
79692
79693 2011-08-24  David S. Miller  <davem@davemloft.net>
79694
79695         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79696
79697 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79698
79699         * elf/Makefile: Add rules to build and run unload8 test.
79700         * elf/unload8.c: New file.
79701         * elf/unload8mod1.c: New file.
79702         * elf/unload8mod1x.c: New file.
79703         * elf/unload8mod2.c: New file.
79704         * elf/unload8mod3.c: New file.
79705
79706         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79707         it wasn't used.
79708
79709 2011-08-23  David S. Miller  <davem@davemloft.net>
79710
79711         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79712         subtract stack bias.
79713         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79714         %sp not %fp in calculations.
79715         (_JMPBUF_UNWINDS_ADJ): Likewise.
79716
79717         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79718         (aio_suspend): Call it to force an exception region around the
79719         AIO_MISC_WAIT() invocation.
79720
79721 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79722
79723         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79724         backslash.
79725
79726 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79727
79728         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79729         protection macro.
79730         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79731         and <dl-machine.h>.
79732         (Elf64_FuncDesc): Remove.
79733
79734 2011-08-22  David S. Miller  <davem@davemloft.net>
79735
79736         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79737         sigaltstack check, add missing cfi directives.
79738         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79739         missing cfi directives, and sigaltstack handling.
79740
79741 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79742
79743         [BZ #11724]
79744         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79745         object is seen twice.
79746         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79747
79748         * elf/Makefile (distribute): Add tst-initorder2.c.
79749         (tests): Add tst-initorder2.
79750         (modules-names): Add tst-initorder2a tst-initorder2b
79751         tst-initorder2c tst-initorder2d.  Add rules to build them.
79752         ($(objpfx)tst-initorder2.out): New rule.
79753         * elf/tst-initorder2.c: New file.
79754         * elf/tst-initorder2.exp: New file.
79755
79756 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79757
79758         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79759
79760         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79761         dependencies back to end of function.
79762
79763         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79764         $(elfobjdir)/ld.so.
79765
79766 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79767
79768         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79769         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79770         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79771         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79772         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79773         of __vdso_gettimeofday.
79774         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79775         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79776         attribute_hidden.
79777         (_libc_vdso_platform_setup): Remove initialization of
79778         __vdso_gettimeofday and __vdso_time.
79779
79780 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79781
79782         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79783         and fgetc_unlocked.
79784         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79785         getc_unlocked.
79786
79787         * elf/dl-open.c (add_to_global): Report additions to the global scope
79788         for LD_DEBUG=scopes.
79789         (dl_open_worker): Also print scope of newly loaded dependencies.
79790         (_dl_show_scope): Indicate if there is no scope.
79791
79792         [BZ #13114]
79793         * stdio-common/Makefile (tests): Add bug24.
79794         * stdio-common/bug24.c: New file.
79795
79796 2011-08-19  Andreas Jaeger  <aj@suse.de>
79797
79798         [BZ #13114]
79799         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79800         non-existant file when using close-on-exec mode.
79801
79802 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79803
79804         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79805         the very first instruction.
79806
79807         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79808         the CFI state in the end.
79809         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79810         inclusion of dl-trampoline.h.
79811         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79812
79813 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79814
79815         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79816         expectations for long double.
79817
79818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79819         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79820
79821 2011-08-14  David S. Miller  <davem@davemloft.net>
79822
79823         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79824         artificual limit depends upon the system page size.
79825
79826 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79827
79828         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79829         * resolv/Makefile: Define CFLAGS-libresolv.
79830
79831 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79832
79833         * nss/makedb.c (compute_tables): Make variables used in nested
79834         function static.
79835
79836 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79837
79838         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79839         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79840         if buffer was too small.
79841
79842         * elf/pldd.c (main): Attach to all threads in the process.
79843         Rewrite /proc handling to use *at functions.
79844
79845 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79846
79847         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79848         specifies first scope to show.
79849         (dl_open_worker): Update callers.  Move printing scope of new
79850         object to before the relocation.
79851         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79852         * sysdeps/generic/ldsodefs.h: Update declaration.
79853
79854         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79855         string for the scope number.
79856
79857 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79858
79859         * nscd/servicescache.c (cache_addserv): Make sure written is always
79860         initialized.
79861
79862 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79863
79864         * sysdeps/i386/i486/bits/atomic.h
79865         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79866         statement expression, so as to suppress "set but not used" warning.
79867         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79868
79869         * string/strncat.c (STRNCAT): Use prototype definition.
79870
79871         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79872         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79873         -Iprograms here.
79874         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79875         (localedef-modules): Add localedef.
79876         (locale-modules): Add locale.
79877
79878         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79879         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79880         to avoid a warning.
79881
79882 2011-08-14  David S. Miller  <davem@davemloft.net>
79883
79884         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79885         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79886
79887 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79888
79889         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79890         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79891         * elf/rtld.c (dl_main): Set l_name of vDSO.
79892         Call _dl_show_scope when DL_DEBUG_SCOPES.
79893         (process_dl_debug): Recognize scopes flag and also set it for all.
79894         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79895         Declare _dl_show_scope.
79896
79897         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79898         (do_dlopen): Pass caller_dlopen to dl_open.
79899         (__libc_dlopen_mode): Initialize caller_dlopen.
79900
79901         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79902         of libc.  Make tolower call locale-independent.  Optimize a bit by
79903         using isdigit instead of isalnum.
79904         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79905
79906 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79907
79908         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79909         was a dependency or dynamically loaded.
79910
79911 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79912
79913         * intl/l10nflist.c: Allow architecture-specific pop function.
79914         * sysdeps/x86_64/l10nflist.c: New file.
79915
79916         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79917         classification.
79918
79919 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79920
79921         * include/dirent.h: Add libc_hidden_proto for scandirat and
79922         scandirat64.  Don't declare __scandirat64.
79923         * dirent/scandirat.c: Add libc_hidden_def.
79924         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79925         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79926
79927 2011-08-10  David S. Miller  <davem@davemloft.net>
79928
79929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79930         enum.
79931         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79932         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79933         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79934
79935 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79936
79937         * Versions.def [libc]: Add GLIBC_2.15.
79938         * dirent/Makefile (routines): Add scandirat and scandirat64.
79939         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79940         GLIBC_2.15.
79941         * dirent/dirent.h: Declare scandirat and scandirat64.
79942         * dirent/scandirat.c: New file.
79943         * dirent/scandirat64.c: New file.
79944         * sysdeps/wordsize-64/scandirat.c: New file.
79945         * sysdeps/wordsize-64/scandirat64.c: New file.
79946         * dirent/opendir.c: Define opendirat.
79947         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79948         using scandirat.
79949         * dirent/scandir64.c: Adjust for scandir.c change.
79950         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79951         __scandirat64, and __scandir_cancel_handler.
79952         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79953         additional parameter and use openat instead of open (outside of ld.so).
79954         Add new __opendir as wrapper around __opendirat.
79955         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79956         here without requiring old scandirat implementation.
79957
79958 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79959
79960         * dirent/scandir.c (cancel_handler): Renamed to
79961         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79962         defined.  Adjust users.
79963         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79964         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79965
79966 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79967
79968         * string/test-string.h (IMPL): Use __STRING to expand name and then
79969         stringify it.
79970
79971         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79972         of cleanups.
79973
79974 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79975
79976         * string/Makefile: Update.
79977         (strop-tests): Append strncat.
79978         * string/test-wcscmp.c: New file.
79979         New comprehensive test for wcscmp.
79980         * string/test-strcmp.c: Update.
79981         (WIDE): New define.
79982
79983 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79984
79985         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79986         line.
79987
79988 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79989
79990         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79991         encoding to ACE if AI_IDN.
79992
79993 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79994
79995         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79996         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79997
79998 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79999
80000         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
80001         Fix overflow bug in strncat.
80002         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
80003
80004         * string/test-strncat.c: Update.
80005         Add new tests for checking overflow bugs.
80006
80007 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80008
80009         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80010         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
80011         * sysdeps/i386/i686/multiarch/strcat.S: New file.
80012         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
80013         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
80014         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
80015         * sysdeps/i386/i686/multiarch/strncat.S: New file.
80016         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
80017         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
80018
80019         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
80020         (USE_AS_STRCAT): Define.
80021         Add strcat and strncat support.
80022         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
80023
80024 2011-07-25  Andreas Schwab  <schwab@redhat.com>
80025
80026         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
80027         __n bigger than INT_MAX+1.
80028         (__strncmp_g): Likewise.
80029
80030 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
80031
80032         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
80033         * libio/stido.h: Likewise.
80034
80035         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
80036         (AF_NFC): Define.
80037         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
80038         (AF_NFC): Define.
80039
80040         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
80041         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
80042         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
80043         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
80044         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
80045
80046         [BZ #13021]
80047         * scripts/test-installation.pl: Don't expect libnss_test1 to be
80048         installed.
80049
80050         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
80051         typo.
80052         (_dl_x86_64_save_sse): Likewise.
80053
80054 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
80055
80056         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
80057         OSXSAVE.
80058         (_dl_x86_64_save_sse): Likewise.
80059
80060         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
80061
80062         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
80063
80064 2011-07-21  Andreas Schwab  <schwab@redhat.com>
80065
80066         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
80067         change.
80068         (_dl_x86_64_save_sse): Use correct AVX check.
80069
80070 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80071
80072         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
80073         bug in strncpy/strncat.
80074         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
80075
80076 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
80077
80078         * string/tester.c (test_strcat): Add tests for different alignments
80079         of source and destination.
80080         (test_strncat): Likewise.
80081
80082 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
80083
80084         [BZ #12852]
80085         * posix/glob.c (glob): Check passed in values before using them in
80086         expressions to avoid some overflows.
80087         (glob_in_dir): Likewise.
80088
80089         [BZ #13007]
80090         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
80091         check for AVX enablement so that we don't crash with old kernels and
80092         new hardware.
80093         * elf/tst-audit4.c: Add same checks here.
80094         * elf/tst-audit6.c: Likewise.
80095
80096         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
80097
80098 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
80099
80100         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
80101
80102 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
80103
80104         * po/cs.po: Update from translation team.
80105         * po/bg.po: Likewise.
80106
80107 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
80108
80109         * misc/sys/cdefs.h: Add support for const attribute.
80110         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
80111         to gnu_dev_{major,minor,makedev} functions.
80112
80113 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
80114
80115         * intl/dcigettext.c (get_output_charset): Add missing bracket.
80116
80117 2011-07-20  Andreas Schwab  <schwab@redhat.com>
80118
80119         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
80120         strlen results.
80121
80122 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80123
80124         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
80125         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
80126         register in order to avoid conflicts with the soft frame pointer
80127         being held in r11 when necessary.
80128         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
80129         (INTERNAL_VSYSCALL_NCS): Likewise.
80130
80131 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
80132
80133         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
80134         * elf/dl-fini.c (_dl_fini): Adjust caller.
80135         * elf/dl-close.c (_dl_close_worker): Likewise.
80136         * sysdeps/generic/ldsodefs.h: Adjust declaration.
80137
80138 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
80139
80140         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
80141         "aux_cache->nlibs < 0".
80142
80143         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
80144         in the reload-count case.
80145
80146 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80147
80148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80149         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
80150         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
80151         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
80152         * sysdeps/x86_64/multiarch/strcat.S: New file.
80153         * sysdeps/x86_64/multiarch/strncat.S: New file.
80154         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
80155         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
80156         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
80157         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
80158         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
80159         (USE_AS_STRCAT): Define.
80160         Add strcat and strncat support.
80161         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
80162         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
80163         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
80164         * string/strncat.c: Update.
80165         (USE_AS_STRNCAT): Define.
80166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80167         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
80168         and i7.
80169         * sysdeps/x86_64/multiarch/init-arch.h
80170         (bit_Prefer_PMINUB_for_stringop): New.
80171         (index_Prefer_PMINUB_for_stringop): Likewise.
80172         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
80173         bit_Prefer_PMINUB_for_stringop.
80174
80175 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
80176
80177         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
80178         buffer64.
80179         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
80180         of casting of buffer.
80181         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
80182         buffer32 and buffer64.
80183         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
80184         writes instead of casting of buffer.
80185         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
80186         buffer32.
80187         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
80188         casting of buffer.
80189
80190 2011-07-19  Andreas Schwab  <schwab@redhat.com>
80191
80192         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
80193
80194 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
80195
80196         * nscd/nscd.c (termination_handler): Don't do anything for a database
80197         if it has not yet been initialized.
80198
80199 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80200
80201         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80202
80203 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
80204
80205         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80206
80207 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80208
80209         * po/nl.po: Update from translation team.
80210         * po/sv.po: Likewise.
80211
80212 2011-07-16  Roland McGrath  <roland@hack.frob.com>
80213
80214         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
80215         now disallowed by GCC.
80216
80217         * configure.in (use-default-link): Default to yes if a test -shared
80218         link meets our qualifications.
80219         * configure: Regenerated.
80220
80221         * config.make.in (output-format): New variable.
80222         * configure.in: Check for ld --print-output-format support.
80223         * configure: Regenerated.
80224         * Makerules ($(common-objpfx)format.lds)
80225         [$(output-format) != unknown]: Just use $(output-format),
80226         instead of the linker-script munging.
80227
80228 2011-07-14  Roland McGrath  <roland@hack.frob.com>
80229
80230         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
80231         of $(common-objpfx)shlib.lds.
80232         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
80233
80234         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
80235         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
80236
80237         * configure.in (-z relro check): Adjust test code to add a large
80238         writable data section after it.
80239         * configure: Regenerated.
80240
80241 2011-07-11  Roland McGrath  <roland@hack.frob.com>
80242
80243         * configure.in (-z relro check): Fix test code to make the variable
80244         truly const.
80245         * configure: Regenerated.
80246
80247 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
80248
80249         * nscd/nscd.h (struct traced_file): Define.
80250         (struct database_dyn): Remove inotify_descr, reset_res, and filename
80251         elements.  Add traced_files.
80252         (inotify_fd): Declare.
80253         (register_traced_file): Declare.
80254         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
80255         (inotify_fd): Export.
80256         (resolv_conf_descr): Remove.
80257         (nscd_init): Move inotify descriptor creation to main.
80258         Don't register files for notification here.
80259         (register_traced_file): New function.
80260         (invalidate_cache): Don't use reset_res to determine whether to call
80261         res_init, go through the list of registered files.
80262         (main_loop_poll): The inotify descriptors are now stored in the
80263         structures for the traced files.
80264         (main_loop_epoll): Likewise.
80265         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
80266         to __nss_disable_nscd.
80267         * nscd/cache.c (prune_cache): There is no single inotify descriptor
80268         for a database anymore.  Check the records for all the registered
80269         files instead.
80270         * nss/Makefile (libnss_files-routines): Add files-init.
80271         (libnss_db-routines): Add db-init.
80272         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
80273         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
80274         * nss/nss_db/db-init.c: New file.
80275         * nss/nss_files/files-init.c: New file.
80276         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
80277         __nss_lookup_function.
80278         (__nss_lookup_function): Call nss_load_library.
80279         (nss_load_all_libraries): New function.
80280         (__nss_disable_nscd): Take parameter with callback function for files
80281         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
80282         used for the cached services.
80283         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
80284         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
80285         options for features to all the files in nscd.
80286
80287         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
80288
80289 2011-07-10  Roland McGrath  <roland@hack.frob.com>
80290
80291         * csu/elf-init.c (__libc_csu_init): Comment typo.
80292
80293 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
80294
80295         * po/pl.po: Update from translation team.
80296         * po/ja.po: Likewise.
80297         * po/ru.po: Likewise.
80298         * po/ko.po: Likewise.
80299         * po/fr.po: Likewise.
80300
80301 2011-07-09  Roland McGrath  <roland@hack.frob.com>
80302
80303         * configure.in (.ctors/.dtors header and trailer check):
80304         Use an empirical test on a built program.
80305         * configure: Regenerated.
80306
80307         * configure.in (-z relro check): Use an empirical test on a built DSO.
80308         Detect, but do not require, on ia64.
80309         * configure: Regenerated.
80310
80311         * configure.in (READELF): Find it with AC_CHECK_TOOL.
80312         Update tests that use readelf to use $READELF instead.
80313         * configure: Regenerated.
80314
80315 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
80316
80317         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
80318         if the result is not used.
80319
80320 2011-07-05  Andreas Jaeger  <aj@suse.de>
80321
80322         [BZ#9696]
80323         * stdlib/tst-strtod.c: Add testcase.
80324
80325 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
80326
80327         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
80328         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
80329         The latter has a higher limit.  Take additional parameter to pass to
80330         the new function.
80331         (__pathconf): Pass file to __statfs_link_max.
80332         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
80333         __statfs_link_max.
80334         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
80335         __statfs_link_max.
80336
80337         [BZ #12868]
80338         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
80339         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80340         Handle Lustre.
80341         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
80342         (__statfs_filesize_max): Likewise.
80343         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
80344
80345 2011-07-05  Andreas Jaeger  <aj@suse.de>
80346
80347         * resolv/res_comp.c (dn_skipname): Remove unused variable.
80348
80349 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
80350
80351         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
80352         `status' variable.
80353         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
80354         Likewise.
80355
80356 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
80357
80358         * Makefile (strop-tests): Add strncat.
80359         * string/test-strncat.c: New file.
80360
80361 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
80362
80363         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
80364
80365 2011-06-21  Andreas Jaeger  <aj@suse.de>
80366
80367         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
80368         Copy rule from iconvdata/Makefile.
80369
80370 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80371
80372         [BZ #12922]
80373         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
80374         but no long options are defined, just return 'W'.
80375
80376 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
80377
80378         [BZ #9696]
80379         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
80380
80381 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80382
80383         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
80384         netgroups to read.
80385         (innetgr): Likewise.
80386
80387 2011-07-05  Roland McGrath  <roland@hack.frob.com>
80388
80389         * config.make.in (install_root): Default to $(DESTDIR).
80390
80391 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
80392
80393         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
80394
80395 2011-07-02  Roland McGrath  <roland@hack.frob.com>
80396
80397         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
80398
80399         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
80400         containing directory rather than embedding absolute directory names.
80401
80402         * scripts/check-local-headers.sh: Rewritten using awk.
80403         Match by word, not by line.  Print error messages for matches.
80404         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
80405
80406         * Makerules [shlib-lds-flags empty]:
80407         ($(common-objpfx)libc_pic.opts): New target.
80408         ($(common-objpfx)libc_pic.os.clean): New target.
80409         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
80410
80411         * config.make.in (OBJCOPY): New variable.
80412         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
80413         * configure: Regenerated.
80414
80415         * config.make.in (use-default-link): New variable.
80416         * configure.in (use_default_link): Grok --with-default-link to set it.
80417         * configure: Regenerated.
80418         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
80419         (shlib-lds, shlib-lds-flags): Define to empty.
80420
80421         * Makerules (shlib-lds): New variable.
80422         (shlib-lds-flags): New variable.
80423         (build-shlib, build-moduile, build-module-asneeded): Use it.
80424         ($(common-objpfx)libc.so): Use $(shlib-lds).
80425         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
80426         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
80427
80428         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
80429         DT_FLAGS/DT_FLAGS_1 with zero flags.
80430
80431         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
80432         linker script munging.
80433
80434 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
80435
80436         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
80437         as 128-bit value.
80438         * crypt/sha512.c (sha512_process_block): Perform total addition using
80439         128-bit if possible.
80440         (__sha512_finish_ctx): Likewise.
80441         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
80442         as 64-bit value.
80443         * crypt/sha256.c (SWAP64): Define.
80444         (sha256_process_block): Perform total addition using 64-bit if
80445         possible.
80446         (__sha256_finish_ctx): Likewise.
80447
80448 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
80449
80450         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
80451         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80452         * nscd/hstcache.c (cache_addhst): Likewise.
80453         * nscd/grpcache.c (cache_addgr): Likewise.
80454         * nscd/aicache.c (addhstaiX): Likewise.
80455         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
80456
80457 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
80458
80459         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
80460         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80461         * nscd/hstcache.c (cache_addhst): Likewise.
80462         * nscd/grpcache.c (cache_addgr): Likewise.
80463         * nscd/aicache.c (addhstaiX): Likewise.
80464
80465 2011-07-01  Andreas Schwab  <schwab@redhat.com>
80466
80467         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
80468         domain only when needed.
80469
80470 2011-06-30  Andreas Schwab  <schwab@redhat.com>
80471
80472         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
80473         is always restored.
80474
80475 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
80476
80477         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
80478         are re-adding the entry.
80479         * nscd/servicescache.c (cache_addserv): Likewise.
80480
80481 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
80482
80483         * sysdeps/generic/dl-irel.h: fix protection against multiple
80484         inclusions.
80485         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
80486
80487 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
80488
80489         [BZ #12935]
80490         * malloc/memusage.sh: Fix quoting in message.
80491         * debug/xtrace.sh: Likewise.
80492
80493         * configure.in: Remove support for --experimental-malloc option, make
80494         it the default.
80495         * config.make.in: Likewise.
80496         * malloc/Makefile: Likewise.
80497
80498 2011-06-27  Andreas Schwab  <schwab@redhat.com>
80499
80500         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
80501         two-byte characters.
80502
80503 2011-06-27  Roland McGrath  <roland@hack.frob.com>
80504
80505         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
80506         AC_CACHE_CHECK invocation.
80507         * configure: Regenerated.
80508
80509         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
80510
80511 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
80512
80513         [BZ #12350]
80514         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
80515         bit from old_res_options.
80516
80517         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
80518
80519         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
80520         value type for setfct.
80521
80522 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
80523
80524         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80525         __gettimeofday instead of gettimeofday.
80526
80527 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
80528
80529         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
80530
80531 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
80532
80533         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
80534
80535         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
80536         info.
80537
80538 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80539
80540         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80541         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80542         strcpy-sse2-unaligned strncpy-sse2-unaligned
80543         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
80544         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
80545         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
80546         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
80547         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
80548         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
80549         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
80550         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80551         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80552         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80553         (STRCPY): Support SSE2 and SSSE3 versions.
80554
80555 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80556
80557         [BZ #12874]
80558         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80559         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80560         kernels which artificially limit size of requests.
80561
80562 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80563
80564         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80565         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80566         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80567         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80568         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80569         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80570         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80571         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80572         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80573         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80574         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80575         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80576         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80577         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80578         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80580         Enable unaligned load optimization for Intel Core i3, i5 and i7
80581         processors.
80582         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80583         Define.
80584         (index_Fast_Unaligned_Load): Define.
80585         (HAS_FAST_UNALIGNED_LOAD): Define.
80586
80587 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80588
80589         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80590
80591 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80592
80593         [BZ #12907]
80594         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80595         until it is clear that the information is realy needed.
80596         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80597
80598 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80599
80600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80601
80602 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80603
80604         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80605         /sys/devices/system/cpu/online if it is usable.
80606
80607         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80608         reading the information from the /proc filesystem to once a second.
80609
80610 2011-06-21  Andreas Jaeger  <aj@suse.de>
80611
80612         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80613         NULL after inclusion of kernel headers.
80614
80615 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80616
80617         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80618         calls to internal_setent.
80619
80620         [BZ #12885]
80621         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80622         addresses using gethostbyname4_r ignore IPv4 addresses.
80623
80624         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80625         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80626
80627         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80628
80629 2011-06-20  David S. Miller  <davem@davemloft.net>
80630
80631         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80632         inclusions.
80633         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80634
80635         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80636         (elf_irel): Use it.
80637         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80638         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80639         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80640         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80641         * sysdeps/x86_64/dl-irel.h: Likewise.
80642
80643         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80644         * elf/dl-sym.c: Likewise.
80645
80646 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80647
80648         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80649         need to dereference resplen2.
80650
80651 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80652
80653         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80654
80655 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80656
80657         * Makeconfig: Define vardbdir and inst_vardbdir.
80658         * nss/Makefile: Add rules to install db-Makefile.
80659
80660         * nss/nss_db/db-XXX.c: Cleanup.
80661
80662         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80663         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80664         GLIBC_PRIVATE.
80665         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80666         * nss/makedb.c: Implement -g option to specify that value strings
80667         are generated and should not be added to table iterated over for
80668         get*ent calls.
80669         * nss/nss_db/db-initgroups.c: New file.
80670
80671         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80672         interface.
80673
80674         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80675         (internal_getgrouplist): Adjust to name change.
80676         Update use_initgroups_entry if this is not the first call.
80677         * nss/databases.def: Add initgroups entry.
80678
80679         * nss/makedb.c (compute_tables): Check result of multiple hash table
80680         sizes to minimize maximum chain length.
80681
80682 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80683
80684         * Versions.def: Add entry for libnss_db.
80685         * shlib-versions: Likewise.
80686         * nss/Makefile: Add rules to build libnss_db.
80687         * nss/Versions: Add libnss_db information.  Organize libnss_files
80688         entries better.
80689         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80690         makedb progra.  Some minor improvements to generate smaller files.
80691         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80692         here from...
80693         * nss/makedb.c: ...here.
80694         Improve database format to be smaller and require less memory at
80695         runtime.
80696         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80697         db anymore.
80698         * nss/nss_db/db-netgrp.c: Likewise.
80699         * nss/nss_db/db-open.c: Likewise.
80700         * nss/nss_files/flies-XXX.x: Adjust comments.
80701         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80702         * nss/nss_files/files-grp.c: Likewise.
80703         * nss/nss_files/files-hosts.c: Likewise.
80704         * nss/nss_files/files-network.c: Likewise.
80705         * nss/nss_files/files-proto.c: Likewise.
80706         * nss/nss_files/files-pwd.c: Likewise.
80707         * nss/nss_files/files-rpc.c: Likewise.
80708         * nss/nss_files/files-service.c: Likewise.
80709         * nss/nss_files/files-sgrp.c: Likewise.
80710         * nss/nss_files/files-spwd.c: Likewise.
80711         * nss/nss_db/db-alias.c: Removed.
80712         * nss/nss_db/dummy-db.h: Removed.
80713
80714 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80715
80716         * nss/makedb.c: Rewritten to not use database library.
80717         * nss/Makefile: Update to build new makedb program.
80718
80719 2011-06-14  Andreas Jaeger  <aj@suse.de>
80720
80721         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80722         memset declaration.
80723
80724 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80725
80726         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80727         tmpbuf.
80728
80729 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80730
80731         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80732         * elf/Makefile ($(objpfx)ld.so): Likewise.
80733
80734         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80735         Don't list ld.so twice in dependencies.
80736
80737         * posix/bug-regex31.c: Include <stdlib.h>.
80738
80739         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80740
80741         * nis/nss_compat/compat-spwd.c
80742         (getspent_next_nss_netgr): Remove unused variable.
80743         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80744
80745         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80746         nonmembers" output to use the right array.
80747
80748         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80749
80750         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80751
80752         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80753         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80754         * catgets/gencat.c (read_input_file): Likewise.
80755         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80756
80757         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80758         variable definition inside #if's controlling its use.
80759
80760         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80761
80762         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80763
80764         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80765
80766         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80767         unreachable code.
80768
80769         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80770
80771         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80772         * configure: Regenerated.
80773
80774         * Makerules: Revert last change.
80775         * elf/Makefile: Likewise.
80776
80777 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80778
80779         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80780         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80781         (reloc-link): Likewise.
80782
80783 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80784
80785         * elf/Makefile: Add rules to build pldd.
80786         * elf/pldd.c: New file.
80787         * elf/pldd-xx.c: New file.
80788
80789 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80790
80791         * version.h: Update for 2.15 development version.
80792
80793 2011-06-07  David S. Miller  <davem@davemloft.net>
80794
80795         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80796         ifuncs.
80797         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80798         elf_machine_lazy_rel): Likewise.
80799         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80800         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80801         elf_machine_lazy_rel): Likewise.
80802         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80803         dl_hwcap via passed in argument.
80804         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80805         Likewise.
80806
80807 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80808
80809         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80810
80811 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80812
80813         [BZ #12849]
80814         * manual/fdl-1.1.texi: New file, verbatim from:
80815         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80816         * manual/lgpl-2.1.texi: New file, verbatim from:
80817         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80818         * manual/Makefile (licenses): New variable, list those new file names.
80819         (texis): Use it.
80820         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80821
80822         * manual/fdl.texi: File removed.
80823         * manual/lesser.texi: File removed.
80824         * manual/libc.texinfo (Copying, Documentation License):
80825         Use new @include file names, put @appendix directive before @include.
80826
80827 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80828
80829         [BZ #12841]
80830         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80831         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80832         (mq_open): Add __NTH.
80833
80834 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80835
80836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80837         Assume Intel Core i3/i5/i7 processor if AVX is available.
80838
80839 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80840
80841         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80842         typo.
80843
80844 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80845
80846         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80847         memory.  Use alloca_account.  Fix memory leak when retrying.
80848
80849 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80850
80851         * version.h (RELEASE): Bump for 2.14 release.
80852         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80853
80854         * config.make.in (RANLIB): Remove entry.
80855
80856 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80857
80858         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80859         (libc.pot): Work around missing support for .ksh extension in xgettext.
80860
80861         [BZ #12684]
80862         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80863         if both request failed.
80864         (send_dg): In case of server errors clear resplen or *resplen2.
80865
80866         [BZ #12454]
80867         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80868         when there are multiple maps.
80869         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80870         (_dl_fini): Remove test here.
80871
80872         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80873
80874 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80875
80876         [BZ #12350]
80877         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80878         bit from old_res_options.
80879         (gaih_inet): Likewise.
80880
80881         [BZ #11099]
80882         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80883         as signed.
80884
80885         * resolv/res_init.c (res_setoptions): Make the code more compact.
80886
80887         [BZ #11558]
80888         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80889         set RES_USEVC.
80890
80891         [BZ #11634]
80892         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80893
80894         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80895
80896         [BZ #11781]
80897         * malloc/malloc.h: Declare malloc hook variables as volatile.
80898
80899         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80900         in last patch.
80901
80902         [BZ #11799]
80903         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80904         raise in the comment.
80905         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80906         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80907         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80908
80909 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80910
80911         [BZ #12811]
80912         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80913         grow the buffers more if it already has to be sufficient.
80914         (build_wcs_upper_buffer): Likewise.
80915         * posix/regexec.c (check_matching): Likewise.
80916         (clean_state_log_if_needed): Likewise.
80917         (extend_buffers): Don't enlarge buffers beyond size of the input
80918         buffer.
80919         Patches mostly by Emil Wojak <emil@wojak.eu>.
80920         * posix/bug-regex32.c: New file.
80921         * posix/Makefile (tests): Add bug-regex32.
80922
80923         * locale/findlocale.c (_nl_find_locale): Return right away if
80924         _nl_explode_name failed.
80925         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80926
80927         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80928
80929         * debug/xtrace.sh: Unify messages.
80930         * malloc/memusage.sh: Likewise.
80931
80932         [BZ #12813]
80933         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80934         time symbol from vDSO.  Substitute with vsyscall if not available.
80935         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80936         __vdso_time.
80937
80938         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80939         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80940         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80941         Add sendmmsg and internal_sendmmsg.
80942         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80943         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80944         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80945
80946         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80947         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80948         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80949
80950 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80951
80952         [BZ #12813]
80953         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80954         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80955         available.
80956         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80957         __vdso_getcpu.
80958
80959         [BZ #12814]
80960         * iconvdata/Makefile (tests): Add bug-iconv9.
80961         * iconvdata/bug-iconv9.c: New file.
80962
80963 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80964
80965         [BZ #12814]
80966         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80967
80968 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80969
80970         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80971         (struct user_regs_struct): Change intcs field back to cs.
80972
80973 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80974
80975         * po/ja.po: Update from translation team.
80976
80977 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80978
80979         [BZ #12795]
80980         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80981         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80982
80983 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80984
80985         * stdlib/longlong.h: Update from GCC.
80986
80987 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80988
80989         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80990         parameter name.
80991         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80992         Add parameter name.
80993         (__sysconf): Pass it down.
80994
80995 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80996
80997         [BZ #12671]
80998         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80999         some situations.
81000         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
81001         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
81002         add in in __libc_use_alloca calls.  Adjust callers.
81003         (glob): Use malloc in some situations.
81004
81005         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
81006         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
81007         pltexit.
81008
81009 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
81010
81011         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
81012         and CLOCK_BOOTTIME_ALARM.
81013
81014         [BZ #12782]
81015         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
81016         is returned.
81017
81018         * string/_strerror.c (__strerror_r): Print negative errors as signed
81019         numbers.
81020
81021         [BZ #12777]
81022         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
81023         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
81024         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
81025
81026         * configure.in: Fix typo in redirection and correct removal of test
81027         files in two cases.
81028
81029         [BZ #12788]
81030         * locale/setlocale.c (new_composite_name): Fix test to check for
81031         identical name of all categories.
81032
81033         [BZ #12792]
81034         * libio/filedoalloc.c (local_isatty): New function.
81035         (_IO_file_doallocate): Use local_isatty.
81036         * stdio-common/perror.c (perror): In case a new stream is used
81037         forward the stream error.
81038         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
81039         error flag.
81040
81041 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
81042
81043         [BZ #11884]
81044         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
81045         alloca.
81046         * include/alloca.h (extend_alloca_account): Define.
81047
81048         [BZ #11857]
81049         * posix/regex.h: Fix comments with documentation of user-accessible
81050         fields after compilation and describe correct free'ing of pattern
81051         after re_compile_pattern.
81052         Patch by Reuben Thomas <rrt@sc3d.org>.
81053
81054 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
81055
81056         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
81057         and -mno-altivec to prevent the compiler from using Altivec and/or
81058         VSX instructions when the corresponding registers are not available.
81059
81060 2011-05-19  Andreas Schwab  <schwab@redhat.com>
81061
81062         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
81063
81064 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
81065
81066         * libio/freopen.c (freopen): Use __dup2, not dup2.
81067         * libio/freopen64.c (freopen64): Likewise.
81068
81069 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
81070
81071         [BZ #12775]
81072         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
81073         * math/Makefile (tests): Add test-powl.
81074         (CFLAGS-test-powl.c): Define.
81075         * math/test-powl.c: New file.
81076
81077 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
81078
81079         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
81080
81081 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
81082
81083         [BZ #11837]
81084         * iconvdata/gb18030.c: Update to GB18020-2005.
81085
81086 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
81087
81088         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
81089         RE_SYNTAX_POSIX_AWK): Update to match recent development.
81090         Patch by Aharon Robbins <arnold@skeeve.com>.
81091
81092         [BZ #11892]
81093         * stdlib/putenv.c (putenv): Don't always create copy of the variable
81094         on the stack.
81095
81096         [BZ #11895]
81097         * misc/pselect.c (__pselect): Handle timeout value errors hidden
81098         through underflows.
81099
81100         [BZ #12766]
81101         * misc/error.c (error_at_line): Ensure file_name and old_file_name
81102         point to strings before performing equality test for error_one_per_line
81103         mode.
81104
81105         [BZ #11697]
81106         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
81107
81108         [BZ #11820]
81109         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
81110         (struct user_fpregs_struct): Avoid __uint*_t types.
81111
81112         [BZ #6420]
81113         * malloc/mtrace.c (tr_where): Add additional parameter to point to
81114         symbol info.  Use it instead of calling _dl_addr locally.
81115         (lock_and_info): New function.
81116         (tr_freehook): Call lock_and_info and pass symbol info as additional
81117         parameter to tr_where.
81118         (tr_mallochook): Likewise.
81119         (tr_reallochook): Likewise.
81120         (tr_memalignhook): Likewise.
81121
81122         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
81123         used and couldn't be at all thread-safe.
81124
81125 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
81126
81127         * libio/freopen.c (freopen): Don't close old file descriptor
81128         before the new one is opened.  Instead dup the new file descriptor
81129         to the old one after the new stream is created.
81130         * libio/freopen64.c (freopen64): Likewise.
81131         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
81132         * libio/fileops.c (_IO_new_file_close_it): Handle new
81133         _IO_FLAGS2_NOCLOSE flag.
81134         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
81135         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
81136         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
81137         _IO_FLAGS2_NOCLOSE flag.
81138         * include/unistd.h: Add hidden_proto for dup3.
81139         Define __have_dup3.
81140         * io/dup3.c: Define hidden symbol.
81141         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
81142
81143         [BZ #7101]
81144         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
81145         when an incomplete long option is used.
81146         * posix/tst-getopt_long1.c: New file.
81147         * posix/Makefile (tests): Add tst-getopt_long1.
81148
81149         [BZ #10138]
81150         * scripts/config.guess: Update from autoconf-2.68.
81151         * scripts/config.sub: Likewise.
81152
81153         [BZ #10157]
81154         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
81155         tests into ...
81156         (has_cpuclock): ...this.  New function.
81157         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
81158         macro here based on has_cpuclock code.
81159
81160         [BZ #10149]
81161         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81162         First byte (not low byte) is now always NUL.
81163         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
81164
81165         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81166         Use non-cancelable interfaces.
81167
81168         [BZ #9809]
81169         * locale/iso-639.def: Add entry for Sorani.
81170
81171         [BZ #11901]
81172         * include/stdlib.h: Move include protection to the right place.
81173         Define abort_msg_s.  Declare __abort_msg with it.
81174         * stdlib/abort.c (__abort_msg): Adjust type.
81175         * assert/assert.c (__assert_fail_base): New function.  Majority
81176         of code from __assert_fail.  Allocate memory for __abort_msg with
81177         mmap.
81178         (__assert_fail): Now call __assert_fail_base.
81179         * assert/assert-perr.c: Remove bulk of implementation.  Use
81180         __assert_fail_base.
81181         * include/assert.hL Declare __assert_fail_base.
81182         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
81183         mmap.
81184         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
81185
81186 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
81187
81188         [BZ #11952]
81189         [BZ #12453]
81190         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
81191         until all modules are registered in the DTV.
81192         * elf/Makefile: Add rules to build and run tst-tls19.
81193         * elf/tst-tls19.c: New file.
81194         * elf/tst-tls19mod1.c: New file.
81195         * elf/tst-tls19mod2.c: New file.
81196         * elf/tst-tls19mod3.c: New file.
81197         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
81198
81199         [BZ #12083]
81200         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
81201         correctly.
81202
81203         [BZ #12601]
81204         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
81205         two-byte sequence errors.
81206         * iconvdata/Makefile (tests): Add bug-iconv8.
81207         * iconvdata/bug-iconv8.c: New file.
81208
81209         [BZ #12626]
81210         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
81211         buf2 definition.
81212
81213         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
81214
81215         [BZ #12432]
81216         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
81217         (dummy_getcfa): New function.
81218         (init): Get _Unwind_GetCFA address, use dummy if not found.
81219         (backtrace_helper): In recursion check, also check whether CFA changes.
81220         (__backtrace): Completely initialize arg.
81221
81222         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
81223         storing incomplete byte sequence in state object.  Avoid testing for
81224         guaranteed too small input if we know there is enough data available.
81225
81226 2011-05-11  Andreas Schwab  <schwab@redhat.com>
81227
81228         * Makeconfig (+link-pie): Indent.
81229         * Rules (binaries-pie): Define if $(have-fpie) and
81230         $(build-shared).
81231         (binaries-shared): Also filter out $(binaries-pie).
81232         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
81233         * nscd/Makefile (others-pie): Add nscd.
81234         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
81235         ($(objpfx)nscd): Remove command override.
81236         * login/Makefile (others-pie): Add pt_chown.
81237         ($(objpfx)pt_chown): Remove command override.
81238         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
81239         remove command overrides.
81240
81241 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
81242
81243         * libio/tst_putwc.c: Fix error messages.
81244
81245         [BZ #12724]
81246         * libio/fileops.c (_IO_new_file_close_it): Always flush when
81247         currently writing and seek to current position when not.
81248         * libio/Makefile (tests): Add bug-fclose1.
81249         * libio/bug-fclose1.c: New file.
81250
81251 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
81252
81253         [BZ #12511]
81254         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
81255         don't set DF_1_NODELETE here.
81256         (do_lookup_x): When entering new entry test for copy relocation
81257         and if necessary set DF_1_NODELETE flag.
81258         * elf/tst-unique4.cc: New file.
81259         * elf/tst-unique4.h: New file.
81260         * elf/tst-unique4lib.cc: New file.
81261         * elf/Makefile: Add rules to build and run tst-unique4.
81262         Patch by Piotr Bury <pbury@goahead.com>.
81263
81264 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
81265
81266         [BZ #12052]
81267         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
81268
81269         [BZ #12625]
81270         * misc/mntent_r.c (addmntent): Flush the stream after the output
81271
81272         [BZ #12393]
81273         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
81274         (is_trusted_path_normalize): Skip initial colon.  Append slash
81275         to empty buffer.  Duplicate is_trusted_path code but allow
81276         constructed patch to be prefix.
81277         (is_dst): Allow $ORIGIN followed by /.
81278         (_dl_dst_substitute): Correct clearing of check_for_trusted.
81279         Correct testing of result of is_trusted_path_normalize
81280         (decompose_rpath): Fix warning.
81281
81282 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
81283
81284         [BZ #11257]
81285         * grp/initgroups.c (internal_getgrouplist): When we found the service
81286         list through the initgroups entry in nsswitch.conf do not always
81287         continue on a successful lookup.  Don't always use the
81288         __nss_group_database value if it is set.
81289         * nss/nsswitch.conf (initgroups): Change action for successful db
81290         lookup to continue for compatibility.
81291
81292 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
81293
81294         [BZ #11532]
81295         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
81296         and CP774 modules.
81297         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
81298         and CP774 modules.
81299         * iconvdata/tst-tables.sh: Likewise.
81300         * iconvdata/cp770.c: New file.
81301         * iconvdata/cp771.c: New file.
81302         * iconvdata/cp772.c: New file.
81303         * iconvdata/cp773.c: New file.
81304         * iconvdata/cp774.c: New file.
81305         * iconvdata/testdata/CP770: New file.
81306         * iconvdata/testdata/CP770..UTF8: New file.
81307         * iconvdata/testdata/CP771: New file.
81308         * iconvdata/testdata/CP771..UTF8: New file.
81309         * iconvdata/testdata/CP772: New file.
81310         * iconvdata/testdata/CP772..UTF8: New file.
81311         * iconvdata/testdata/CP773: New file.
81312         * iconvdata/testdata/CP773..UTF8: New file.
81313         * iconvdata/testdata/CP774: New file.
81314         * iconvdata/testdata/CP774..UTF8: New file.
81315
81316         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
81317         END CHARMAP line.
81318         * iconvdata/gen-8bit-gap.sh: Likewise.
81319         * iconvdata/gen-8bit.sh: Likewise.
81320
81321         * locale/iso-639.def: Add ary entry.
81322
81323         [BZ #11258]
81324         * locale/C-translit.h.in: Add U20A1 transliteration.
81325
81326         [BZ #12178]
81327         * locale/iso-639.def: Add wae entry.
81328         Patch by Kevin Bortis <bortis@translate-wae.ch>.
81329
81330         [BZ #12545]
81331         * locale/programs/localedef.c (construct_output_path): Use ssize_t
81332         for n.
81333
81334         [BZ #12711]
81335         * locale/C-translit.h.in: Add entry for U20B9.
81336         Patch by pravin.d.s@gmail.com.
81337
81338 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
81339
81340         [BZ #12713]
81341         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
81342         ENAMETOOLONG use generic getcwd.
81343         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
81344         in rtld.  Use *stat64.
81345         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
81346         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
81347         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
81348         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
81349         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
81350         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
81351         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
81352         __fstatat64 macros.
81353         * include/dirent.h: Add libc_hidden_proto for rewinddir.
81354         * dirent/rewinddir.c: Add libc_hidden_def.
81355         * sysdeps/mach/hurd/rewinddir.c: Likewise.
81356         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
81357
81358         * include/dirent.h (__alloc_dir): Add flags parameter.
81359         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
81360         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
81361         __alloc_dir.
81362         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
81363         from fdopendir if O_CLOEXEC is already set.
81364
81365 2011-03-15  Alan Modra  <amodra@gmail.com>
81366
81367         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
81368         l_tls_firstbyte_offset non-zero.  Save padding offset in
81369         l_tls_firstbyte_offset for later use.
81370         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
81371         freeing static tls block.
81372
81373 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
81374
81375         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
81376         where #ifdef was intended.  The intent is to prevent ARG_MAX from
81377         being defined by the kernel headers.
81378
81379 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
81380
81381         [BZ #12734]
81382         * resolv/resolv.h: Define RES_NOTLDQUERY.
81383         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
81384         no-tld-query and set RES_NOTLDQUERY.
81385         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
81386         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
81387         modern BIND to search name as TLD unless forbidden.
81388
81389 2011-05-07  Petr Baudis  <pasky@suse.cz>
81390             Ulrich Drepper  <drepper@gmail.com>
81391
81392         [BZ #12393]
81393         * elf/dl-load.c (fillin_rpath): Move trusted path check...
81394         (is_trusted_path): ...to here.
81395         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
81396         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
81397         using is_trusted_path_normalize() in setuid scripts.
81398
81399 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
81400
81401         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
81402         __BEGIN/__END_DECLS.
81403
81404 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
81405
81406         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
81407         NSS_STATUS_NOTFOUND if no record was found.
81408
81409 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81410
81411         * sunrpc/Makefile (headers): Add rpc/netdb.h.
81412         (headers-not-in-tirpc): Remove rpc/netdb.h
81413         * resolv/netdb.h: Revert last change.
81414
81415 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
81416
81417         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
81418         circular dependency between libgcc.a and libc.a.
81419
81420 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81421
81422         * resolv/netdb.h: Don't include <rpc/netdb.h>.
81423         * nis/Makefile: Don't install rpcsvc/*.
81424         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
81425         instead of <rpc/types.h>.
81426         (MAXHOSTNAMELEN): Define.
81427
81428 2011-05-03  Andreas Schwab  <schwab@redhat.com>
81429
81430         * elf/ldconfig.c (add_dir): Don't crash on empty path.
81431
81432 2011-04-28  Maciej Babinski  <mbabinski@google.com>
81433
81434         [BZ #12714]
81435         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
81436         gethostbyname4_r when IPv6 results are possible.
81437
81438 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
81439
81440         [BZ #12723]
81441         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
81442         _PC_PIPE_BUF handling.
81443
81444 2011-04-30  Bruno Haible  <bruno@clisp.org>
81445
81446         [BZ #12717]
81447         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
81448         * resolv/netdb.h (getnameinfo): Change type of flags parameter
81449         to 'int'.
81450         * inet/getnameinfo.c (getnameinfo): Likewise.
81451
81452 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
81453
81454         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
81455         to groups setting in database lookup.
81456         * nss/nsswitch.conf: Add initgroups entry.
81457
81458 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
81459
81460         [BZ #12685]
81461         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
81462         mode string.
81463         Patch by Eric Blake <eblake@redhat.com>.
81464
81465 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
81466
81467         * sunrpc/Makefile (need-export-routines): Add svc_run.
81468         (routines): Remove svc_run.
81469         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
81470         * sunrpc/clnt_perr.c (clnt_perrno): Export.
81471         * sunrpc/svc_run.c (svc_run): Likewise.
81472         * sunrpc/svc_udp.c (svcudp_create): Likewise.
81473
81474 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
81475
81476         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
81477         problem in reallocation in last patch.
81478
81479 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
81480
81481         * sunrpc/Makefile: Move inclusion of Rules.
81482
81483 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81484
81485         * nss/nss_files/files-initgroups.c: New file.
81486         * nss/Makefile (libnss_files-routines): Add files-initgroups.
81487         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
81488         _nss_files_initgroups_dyn.
81489
81490 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
81491
81492         * elf/elf.h (R_ARM_IRELATIVE): Define.
81493
81494 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81495
81496         * po/ru.po: Update from translation team.
81497
81498 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81499
81500         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
81501         dependencies.
81502
81503 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
81504
81505         [BZ #12653]
81506         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
81507         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
81508         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
81509         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
81510         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
81511
81512 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
81513
81514         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
81515         differing bytes.
81516         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
81517         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
81518         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
81519
81520 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81521
81522         [BZ #12420]
81523         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
81524         storing it.
81525         * stdlib/bug-getcontext.c: New file.
81526         * stdlib/Makefile: Add rules to build and run bug-getcontext.
81527
81528 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81529
81530         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
81531         instructions into .machine "z9-109".
81532         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
81533         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
81534
81535 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81536
81537         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
81538         between environment variables and auxiliary vector.
81539
81540 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
81541
81542         * Makefile: Add rules to build linkobj/libc.so.
81543         * include/libc-symbols.h: Define libc_hidden_nolink.
81544         * include/rpc/auth.h: Mark functions which are to be hidden.
81545         * include/rpc/auth_des.h: Likewise.
81546         * include/rpc/auth_unix.h: Likewise.
81547         * include/rpc/clnt.h: Likewise.
81548         * include/rpc/des_crypt.h: Likewise.
81549         * include/rpc/key_prot.h: Likewise.
81550         * include/rpc/pmap_clnt.h: Likewise.
81551         * include/rpc/pmap_prot.h: Likewise.
81552         * include/rpc/pmap_rmt.h: Likewise.
81553         * include/rpc/rpc_msg.h: Likewise.
81554         * include/rpc/svc.h: Likewise.
81555         * include/rpc/svc_auth.h: Likewise.
81556         * include/rpc/xdr.h: Likewise.
81557         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81558         * nss/Makefile: Likewise.
81559         * sunrpc/Makefile: Don't install headers.  Build library with normal
81560         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81561         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81562         for the compat linking library.  Remove use of INTDEF/INTUSE.
81563         * sunrpc/auth_none.c: Likewise.
81564         * sunrpc/auth_unix.c: Likewise.
81565         * sunrpc/authdes_prot.c: Likewise.
81566         * sunrpc/authuxprot.c: Likewise.
81567         * sunrpc/clnt_gen.c: Likewise.
81568         * sunrpc/clnt_perr.c: Likewise.
81569         * sunrpc/clnt_raw.c: Likewise.
81570         * sunrpc/clnt_simp.c: Likewise.
81571         * sunrpc/clnt_tcp.c: Likewise.
81572         * sunrpc/clnt_udp.c: Likewise.
81573         * sunrpc/clnt_unix.c: Likewise.
81574         * sunrpc/des_crypt.c: Likewise.
81575         * sunrpc/des_soft.c: Likewise.
81576         * sunrpc/get_myaddr.c: Likewise.
81577         * sunrpc/key_call.c: Likewise.
81578         * sunrpc/key_prot.c: Likewise.
81579         * sunrpc/netname.c: Likewise.
81580         * sunrpc/pm_getmaps.c: Likewise.
81581         * sunrpc/pm_getport.c: Likewise.
81582         * sunrpc/pmap_clnt.c: Likewise.
81583         * sunrpc/pmap_prot.c: Likewise.
81584         * sunrpc/pmap_prot2.c: Likewise.
81585         * sunrpc/pmap_rmt.c: Likewise.
81586         * sunrpc/publickey.c: Likewise.
81587         * sunrpc/rpc_cmsg.c: Likewise.
81588         * sunrpc/rpc_common.c: Likewise.
81589         * sunrpc/rpc_dtable.c: Likewise.
81590         * sunrpc/rpc_prot.c: Likewise.
81591         * sunrpc/rpc_thread.c: Likewise.
81592         * sunrpc/rtime.c: Likewise.
81593         * sunrpc/svc.c: Likewise.
81594         * sunrpc/svc_auth.c: Likewise.
81595         * sunrpc/svc_authux.c: Likewise.
81596         * sunrpc/svc_raw.c: Likewise.
81597         * sunrpc/svc_run.c: Likewise.
81598         * sunrpc/svc_simple.c: Likewise.
81599         * sunrpc/svc_tcp.c: Likewise.
81600         * sunrpc/svc_udp.c: Likewise.
81601         * sunrpc/svc_unix.c: Likewise.
81602         * sunrpc/svcauth_des.c: Likewise.
81603         * sunrpc/xcrypt.c: Likewise.
81604         * sunrpc/xdr.c: Likewise.
81605         * sunrpc/xdr_array.c: Likewise.
81606         * sunrpc/xdr_float.c: Likewise.
81607         * sunrpc/xdr_intXX_t.c: Likewise.
81608         * sunrpc/xdr_mem.c: Likewise.
81609         * sunrpc/xdr_rec.c: Likewise.
81610         * sunrpc/xdr_ref.c: Likewise.
81611         * sunrpc/xdr_sizeof.c: Likewise.
81612         * sunrpc/xdr_stdio.c: Likewise.
81613
81614 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81615
81616         [BZ #12650]
81617         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81618         * sysdeps/ia64/dl-tls.h: Likewise.
81619         * sysdeps/powerpc/dl-tls.h: Likewise.
81620         * sysdeps/s390/dl-tls.h: Likewise.
81621         * sysdeps/sh/dl-tls.h: Likewise.
81622         * sysdeps/sparc/dl-tls.h: Likewise.
81623         * sysdeps/x86_64/dl-tls.h: Likewise.
81624         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81625
81626 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81627
81628         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81629         rpath element also skip the following colon.
81630         (expand_dynamic_string_token): Add is_path parameter and pass
81631         down to DL_DST_REQUIRED and _dl_dst_substitute.
81632         (decompose_rpath): Call expand_dynamic_string_token with
81633         non-zero is_path.  Ignore empty rpaths.
81634         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81635         with zero is_path.
81636
81637 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81638
81639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81640         Make cancelable.
81641
81642 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81643
81644         [BZ #12655]
81645         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81646         Patch by Filipe David Manana <fdmanana@apache.org>.
81647
81648 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81649
81650         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81651         Maintain aligned stack.
81652         (CHECK_RSP): Remove unused macro.
81653
81654 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81655
81656         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81657         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81658
81659 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81660
81661         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81662
81663         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81664
81665 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81666
81667         [BZ #12518]
81668         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81669         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81670         * sysdeps/x86_64/memmove.c: New file.
81671         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81672         (memcpy): Renamed to ...
81673         (__new_memcpy): This.
81674         (memcpy): Provide GLIBC_2_14 memcpy.
81675         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81676         (memcpy): Provide GLIBC_2_2_5 memcpy.
81677
81678 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81679
81680         [BZ #12631]
81681         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81682
81683 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81684
81685         * misc/syncfs.c: New file.
81686         * misc/Makefile (routines): Add syncfs.
81687         * posix/unistd.h: Declare syncfs.
81688         * sysdeps/unix/syscalls.list: Add syncfs.
81689
81690 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81691
81692         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81693         open_by_handle_at.
81694         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81695         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81696         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81697         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81698         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81699         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81700         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81701
81702 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81703
81704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81705         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81707         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81708         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81711
81712         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81713         sync_file_range.c with -fexceptions.
81714         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81715         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81716         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81717         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81718         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81719         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81720         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81721         sync_file_range as cancellation point
81722         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81723         now a wrapper around __call_sync_file_range with cancellation handling.
81724         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81725         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81726         function name to __call_sync_file_range.
81727         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81728         Add call_sync_file_range.
81729
81730 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81731
81732         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81733         bits/timex.h.
81734
81735 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81736
81737         * iconv/iconv.h: Fix typo in comment.
81738         * io/fcntl.h: Likewise.
81739         * libio/stdio.h: Likewise.
81740         * posix/spawn.h: Likewise.
81741         * posix/unistd.h: Likewise.
81742         * stdlib/stdlib.h: Likewise.
81743         * time/time.h: Likewise.
81744         * wcsmbs/wchar.h: Likewise.
81745
81746         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81747         open_by_handle): Add.
81748         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81749         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81750         Augment a few comments.
81751         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81752         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81753         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81754         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81755         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81756         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81757         open_by_handle.
81758
81759         * io/fcntl.h (AT_EMPTY_PATH): Define.
81760
81761 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81762
81763         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81764         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81765         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81766         to...
81767         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81768         * Versions.def: Add GLIBC_2.14.
81769         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81770         Export.
81771
81772 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81773
81774         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81775         round counter.
81776         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81777
81778 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81779
81780         [BZ #12597]
81781         * string/test-strncmp.c (do_page_test): New function.
81782         (check2): Likewise.
81783         (test_main): Call check2.
81784         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81785
81786 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81787
81788         [BZ #12587]
81789         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81790         Handle cache information in CPU leaf 4.
81791         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81792
81793 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81794
81795         [BZ #12583]
81796         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81797         character representation.
81798         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81799
81800 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81801
81802         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81803         END(__isnan) to END(__isnanf) to match function entry point/label
81804         EALIGN(__isnanf,...).
81805
81806 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81807
81808         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81809
81810 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81811
81812         [BZ #12510]
81813         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81814         copy from the symbol referenced in the relocation to initialize the
81815         used variable.
81816         Patch by Piotr Bury <pbury@goahead.com>.
81817         * elf/Makefile: Add rules to build and tst-unique3.
81818         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81819         * elf/tst-unique3.cc: New file.
81820         * elf/tst-unique3.h: New file.
81821         * elf/tst-unique3lib.cc: New file.
81822         * elf/tst-unique3lib2.cc: New file.
81823
81824         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81825
81826 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81827
81828         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81829         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81830         to _start.
81831
81832 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81833
81834         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81835         to-be-loaded object along a path to loader is ld.so.
81836
81837 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81838             Ulrich Drepper  <drepper@gmail.com>
81839
81840         * sysdeps/x86_64/memset.S: After aligning destination, code
81841         branches to different locations depending on the value of
81842         misalignment, when multiarch is enabled. Fix this.
81843
81844 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81845
81846         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81847         Set _x86_64_preferred_memory_instruction for AMD processsors.
81848         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81849         Set bit_Prefer_SSE_for_memop for AMD processors.
81850
81851 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81852
81853         * libio/fmemopen.c (fmemopen): Optimize a bit.
81854
81855 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81856
81857         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81858
81859 2011-03-03  Roland McGrath  <roland@redhat.com>
81860
81861         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81862
81863 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81864
81865         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81866         __bzero_ultra1 instead of __memset_ultra1.
81867
81868 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81869             Ulrich Drepper  <drepper@gmail.com>
81870
81871         [BZ #12509]
81872         * include/link.h (struct link_map): Add l_orig_initfini.
81873         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81874         returning unsuccessfully.
81875         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81876         close of a file loaded at startup, restore the original l_initfini
81877         list.
81878         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81879         list, store the pointer.
81880         * elf/Makefile ($(objpfx)noload-mem): New rule.
81881         (noload-ENV): Define.
81882         (tests): Add $(objpfx)noload-mem.
81883         * elf/noload.c: Include <memcheck.h>.
81884         (main): Call mtrace.  Close all opened handles.
81885
81886 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81887
81888         [BZ #12454]
81889         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81890         dependencies are missing.
81891
81892 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81893
81894         Fix __if_freereq crash: Unlike the generic version which uses free,
81895         Hurd needs munmap.
81896         * sysdeps/mach/hurd/ifreq.h: New file.
81897
81898 2011-01-27  Petr Baudis  <pasky@suse.cz>
81899             Ulrich Drepper  <drepper@gmail.com>
81900
81901         [BZ 12445]#
81902         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81903         to extend_alloca().
81904         * stdio-common/bug23.c: New file.
81905         * stdio-common/Makefile (tests): Add bug23.
81906
81907 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81908             Ulrich Drepper  <drepper@gmail.com>
81909
81910         [BZ #12489]
81911         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81912         before performing relro protection.  At old place add assertion
81913         to make sure nothing changed.
81914
81915 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81916             Glauber de Oliveira Costa  <glommer@gmail.com>
81917
81918         * elf/elf.h: Add new ARM TLS relocs.
81919
81920 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81921
81922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81923         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81924         cast from r3.
81925         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81926         'tests' variable.
81927         * sysdeps/wordsize-64/tst-writev.c: New file.
81928
81929 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81930
81931         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81932         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81933         insns in _dl_start to prevent a TOC reference before relocs are
81934         resolved.
81935
81936 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81937
81938         [BZ #12469]
81939         * Makeconfig: Remove RANLIB definition.
81940         * Makerules: Don't use RANLIB.
81941         * aclocal.m4: Remove ranlib test.
81942         * configure.in: No need to check for ranlib.
81943         * elf/rtld-Rules: Don't use RANLIB.
81944
81945 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81946
81947         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81948         protection macro.
81949         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81950         inclusion protection macro.
81951
81952         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81953         SIGRTMIN and SIGRTMAX and print information in that case only when
81954         SIGRTMIN is defined.
81955
81956 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81957
81958         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81959         arginfo fn returning -1.
81960
81961         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81962         and thousands string is zero terminated.
81963
81964 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81965
81966         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81967         sysdeps/unix/sysv/linux/bits/socket.h.
81968
81969 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81970
81971         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81972         (__CPU_COUNT): Remove old macros.
81973         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81974         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81975         (__CPU_ALLOC, __CPU_FREE): Add macros.
81976         (__sched_cpualloc, __sched_cpufree): Add declarations.
81977
81978 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81979
81980         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81981         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81982         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81983         (readdhstai): Return value of addhstaiX call.
81984         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81985         (addgrbyX): Return value returned by cache_addgr.
81986         (readdgrbyname): Return value returned by addgrbyX.
81987         (readdgrbygid): Likewise.
81988         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81989         (addpwbyX): Return value returned by cache_addpw.
81990         (readdpwbyname): Return value returned by addhstbyX.
81991         (readdpwbyuid): Likewise.
81992         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81993         (addservbyX): Return value returned by cache_addserv.
81994         (readdservbyname): Return value returned by addservbyX:
81995         (readdservbyport): Likewise.
81996         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81997         (addhstbyX): Return value returned by cache_addhst.
81998         (readdhstbyname): Return value returned by addhstbyX.
81999         (readdhstbyaddr): Likewise.
82000         (readdhstbynamev6): Likewise.
82001         (readdhstbyaddrv6): Likewise.
82002         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
82003         (readdinitgroups): Return value returned by addinitgroupsX.
82004         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
82005         (prune_cache): Keep track of timeout value of re-added entries.
82006         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
82007         * nscd/nscd.h: Adjust prototypes of readd* functions.
82008
82009 2011-02-04  Roland McGrath  <roland@redhat.com>
82010
82011         * nis/nis_server.c (nis_servstate): Use the right name for 0.
82012         (nis_stats): Likewise.
82013         * nis/nis_modify.c (nis_modify): Likewise.
82014         * nis/nis_remove.c (nis_remove): Likewise.
82015         * nis/nis_add.c (nis_add): Likewise.
82016
82017         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
82018
82019         * posix/fnmatch_loop.c: Add some consts.
82020
82021         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
82022
82023 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
82024
82025         [BZ #12460]
82026         * config.make.in (config-cflags-novzeroupper): Define.
82027         * configure.in: Substitute libc_cv_cc_novzeroupper.
82028         * elf/Makefile (AVX-CFLAGS): Define.
82029         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
82030         (CFLAGS-tst-auditmod4a.c): Likewise.
82031         (CFLAGS-tst-auditmod4b.c): Likewise.
82032         (CFLAGS-tst-auditmod6b.c): Likewise.
82033         (CFLAGS-tst-auditmod6c.c): Likewise.
82034         (CFLAGS-tst-auditmod7b.c): Likewise.
82035         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
82036
82037 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
82038
82039         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
82040         function to the callback.
82041         Patch partly by Jiri Olsa <jolsa@redhat.com>.
82042
82043 2011-02-02  Andreas Schwab  <schwab@redhat.com>
82044
82045         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
82046         of errno.
82047
82048 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
82049
82050         [BZ #11724]
82051         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
82052         of constructors.
82053         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
82054         of destructors.
82055         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
82056
82057         [BZ #11724]
82058         * elf/Makefile: Add rules to build and run new test.
82059         * elf/tst-initorder.c: New file.
82060         * elf/tst-initorder.exp: New file.
82061         * elf/tst-initordera1.c: New file.
82062         * elf/tst-initordera2.c: New file.
82063         * elf/tst-initordera3.c: New file.
82064         * elf/tst-initordera4.c: New file.
82065         * elf/tst-initorderb1.c: New file.
82066         * elf/tst-initorderb2.c: New file.
82067         * elf/tst-order-a1.c: New file.
82068         * elf/tst-order-a2.c: New file.
82069         * elf/tst-order-a3.c: New file.
82070         * elf/tst-order-a4.c: New file.
82071         * elf/tst-order-b1.c: New file.
82072         * elf/tst-order-b2.c: New file.
82073         * elf/tst-order-main.c: New file.
82074         New test case by George Gensure <werkt0@gmail.com>.
82075
82076 2010-10-01  Andreas Schwab  <schwab@redhat.com>
82077
82078         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
82079         decoding ACE if AI_CANONIDN.
82080
82081 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
82082
82083         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
82084
82085 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
82086
82087         * version.h (RELEASE): Bump for 2.13 release.
82088         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
82089
82090         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
82091
82092         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
82093         MADV_NOHUGEPAGE.
82094         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
82095         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
82096         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
82097         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
82098         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
82099         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82100
82101         * posix/getconf.c: Update copyright year.
82102         * catgets/gencat.c: Likewise.
82103         * csu/version.c: Likewise.
82104         * debug/catchsegv.sh: Likewise.
82105         * debug/xtrace.sh: Likewise.
82106         * elf/ldconfig.c: Likewise.
82107         * elf/ldd.bash.in: Likewise.
82108         * elf/sprof.c (print_version): Likewise.
82109         * iconv/iconv_prog.c: Likewise.
82110         * iconv/iconvconfig.c: Likewise.
82111         * locale/programs/locale.c: Likewise.
82112         * locale/programs/localedef.c: Likewise.
82113         * malloc/memusage.sh: Likewise.
82114         * malloc/mtrace.pl: Likewise.
82115         * nscd/nscd.c (print_version): Likewise.
82116         * nss/getent.c: Likewise.
82117
82118         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
82119         PF_CAIF, and PF_ALG.
82120         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82121
82122 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
82123
82124         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
82125         (modules-names): Use them.
82126         (ifunc-test-modules, ifunc-pie-tests): Define.
82127         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
82128         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
82129         (test-extras): Likewise.
82130         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
82131         $(compile-command.c).
82132         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
82133         (all-built-dso): Define.
82134         (check-textrel.out, check-execstack.out): Depend on it.
82135
82136         * configure.in: Don't override --enable-multi-arch.
82137
82138 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
82139
82140         [BZ #6812]
82141         * nscd/hstcache.c (tryagain): Define.
82142         (cache_addhst): Return tryagain not notfound for temporary errors.
82143         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
82144         failed.
82145
82146 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
82147
82148         [BZ #10563]
82149         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
82150         to make the syscall.
82151         * sysdeps/unix/sysv/linux/setgroups.c: New file.
82152
82153         [BZ #12378]
82154         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
82155         and fall back to matching as normal character if the string ends before
82156         the matching ']' is found.  This is what POSIX requires.
82157         * posix/testfnm.c: Adjust test result.
82158         * posix/globtest.sh: Adjust test result.  Add new test.
82159         * posix/tst-fnmatch.input: Likewise.
82160         * posix/tst-fnmatch2.c: Add new test.
82161
82162 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
82163
82164         * elf/Makefile (check-execstack): Revert last change.  Depend on
82165         check-execstack.h.
82166         (check-execstack.h): New target.
82167         (generated): Add check-execstack.h.
82168         * elf/check-execstack.c: Include "check-execstack.h".
82169         (main): Revert last change.
82170         (handle_file): Return zero if GNU_STACK is absent and
82171         DEFAULT_STACK_PERMS doesn't include PF_X.
82172
82173 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
82174
82175         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
82176         in child fails because the descriptor is already closed.
82177         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
82178         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
82179         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
82180
82181         [BZ #12397]
82182         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
82183         syscall.
82184
82185         [BZ #10484]
82186         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
82187         temporary buffer used to handle multi lookups locally.
82188         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
82189
82190 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
82191
82192         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
82193         loader is ld.so.
82194
82195 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
82196
82197         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
82198         alignment for SSE2.
82199
82200 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
82201
82202         [BZ #12394]
82203         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
82204         characters.  When rounding increased number of integer digits recompute
82205         number of groups.
82206         * stdio-common/tst-grouping.c: New file.
82207         * stdio-common/Makefile: Add rules to build and run tst-grouping.
82208
82209 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
82210
82211         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
82212         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
82213
82214         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
82215         void.
82216         * bits/select.h: Likewise.
82217
82218 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
82219
82220         * po/ja.po: Update from translation team.
82221
82222 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
82223
82224         [BZ #11155]
82225         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
82226         implementation just like for lxstat, fxstatat, et al.
82227
82228 2010-12-27  Jim Meyering  <meyering@redhat.com>
82229
82230         [BZ #12348]
82231         * posix/regexec.c (build_trtable): Return failure indication upon
82232         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
82233
82234 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
82235
82236         [BZ #12201]
82237         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
82238         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
82239         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
82240         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
82241
82242         [BZ #12207]
82243         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
82244
82245         [BZ #12204]
82246         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
82247         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
82248
82249 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
82250
82251         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
82252         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
82253         script has SORT_BY_INIT_PRIORITY.
82254         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
82255         NO_CTORS_DTORS_SECTIONS is defined.
82256         * elf/soinit.c: Likewise.
82257         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
82258         NO_CTORS_DTORS_SECTIONS is defined.
82259         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
82260         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
82261         * sysdeps/sh/init-first.c: Likewise.
82262         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
82263
82264 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
82265
82266         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
82267         always use the slow path.
82268
82269 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
82270
82271         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
82272         similar rule which adds the sysdep directories to the header search in
82273         order to pick up the correct platform stackinfo.h.
82274         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
82275         perform test if it is, otherwise return successfully without testing.
82276         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
82277         DEFAULT_STACK_PERMS define in stackinfo.h.
82278         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
82279         defined in stackinfo.h.
82280         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
82281         DEFAULT_STACK_PERMS defined in stackinfo.h.
82282         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
82283         * sysdeps/ia64/stackinfo.h: Likewise.
82284         * sysdeps/s390/stackinfo.h: Likewise.
82285         * sysdeps/sh/stackinfo.h: Likewise.
82286         * sysdeps/sparc/stackinfo.h: Likewise.
82287         * sysdeps/x86_64/stackinfo.h: Likewise.
82288         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
82289         PF_X for powerpc64.  Retain PF_X for powerpc32.
82290
82291 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
82292
82293         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
82294         accurately.
82295         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
82296         GETDENTS_64BIT_ALIGNED.
82297
82298 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
82299
82300         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
82301
82302 2010-12-10  Andreas Schwab  <schwab@redhat.com>
82303
82304         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
82305         _GNU_SOURCE.
82306
82307         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
82308         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
82309         Remove __restrict.
82310         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
82311         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
82312
82313 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
82314
82315         [BZ #11655]
82316         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
82317         are initialized.
82318
82319 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
82320
82321         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
82322
82323 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
82324
82325         * po/it.po: Update from translation team.
82326
82327 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
82328
82329         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
82330         unused codes.
82331
82332 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
82333
82334         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
82335
82336 2010-11-24  Andreas Schwab  <schwab@redhat.com>
82337
82338         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
82339         specially.
82340         (gaih_getanswer_slice): Likewise.
82341
82342 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
82343
82344         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
82345
82346 2010-05-31  Petr Baudis  <pasky@suse.cz>
82347
82348         [BZ #11149]
82349         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
82350         silently even in the chroot mode.
82351
82352 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
82353
82354         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
82355         last patch a bit.  Pretty printing
82356
82357 2010-05-31  Petr Baudis <pasky@suse.cz>
82358
82359         [BZ #10085]
82360         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
82361         initialization of skip_initgroups_dyn.
82362
82363 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
82364
82365         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
82366         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82367
82368 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
82369
82370         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
82371
82372 2010-11-11  Andreas Schwab  <schwab@redhat.com>
82373
82374         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
82375         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
82376         (tst-fnmatch-ENV): Set MALLOC_TRACE.
82377         ($(objpfx)tst-fnmatch-mem): New rule.
82378         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
82379         * posix/tst-fnmatch.c (main): Call mtrace.
82380
82381 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
82382
82383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82384         Support Intel processor model 6 and model 0x2c.
82385
82386 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
82387
82388         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
82389           signed comparison.
82390
82391 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
82392
82393         [BZ #12205]
82394         * string/test-strncasecmp.c (check_result): New function.
82395         (do_one_test): Use it.
82396         (check1): New function.
82397         (test_main): Use it.
82398         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
82399         Support strcasecmp and strncasecmp.
82400
82401 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
82402
82403         [BZ #12194]
82404         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
82405         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82406
82407 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
82408
82409         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
82410         IFUNC support.
82411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82412         memset-x86-64.
82413         * sysdeps/x86_64/multiarch/bzero.S: New file.
82414         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
82415         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
82416         * sysdeps/x86_64/multiarch/memset.S: New file.
82417         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
82418         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82419         Set bit_Prefer_SSE_for_memop for Intel processors.
82420         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
82421         Define.
82422         (index_Prefer_SSE_for_memop): Define.
82423         (HAS_PREFER_SSE_FOR_MEMOP): Define.
82424
82425 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
82426
82427         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
82428         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
82429
82430 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
82431
82432         [BZ #12191]
82433         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82434         (__x86_64_raw_data_cache_size_half): Likewise.
82435         (__x86_64_raw_shared_cache_size): Likewise.
82436         (__x86_64_raw_shared_cache_size_half): Likewise.
82437
82438         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82439         (__x86_64_raw_data_cache_size_half): Likewise.
82440         (__x86_64_raw_shared_cache_size): Likewise.
82441         (__x86_64_raw_shared_cache_size_half): Likewise.
82442         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
82443         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
82444         and __x86_64_raw_shared_cache_size_half.  Round
82445         __x86_64_data_cache_size_half, __x86_64_data_cache_size
82446         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
82447         to multiple of 256 bytes.
82448
82449 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
82450
82451         [BZ #12167]
82452         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
82453         of inacessible symlinks.  Verify result of symlink before returning it.
82454         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
82455         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
82456
82457 2010-10-28  Erich Ritz  <erichritz@gmail.com>
82458
82459         * math/math.h (isinf): Fix typo in comment.
82460
82461 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
82462
82463         * po/da.po: Update from translation team.
82464
82465 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
82466
82467         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
82468         is added to the list.
82469
82470 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82471             Ulrich Drepper  <drepper@gmail.com>
82472
82473         * elf/dl-object.c (_dl_new_object): Don't append the new object to
82474         the global list here.  Move code to...
82475         (_dl_add_to_namespace_list): ...here.  New function.
82476         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
82477         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
82478         * elf/dl-load.c (lose): Don't remove the element from the list.
82479         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
82480         (_dl_map_object): Likewise.
82481
82482 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
82483
82484         [BZ #12159]
82485         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
82486         into all bytes of SSE register.
82487         Patch by Richard Li <richardpku@gmail.com>.
82488
82489 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
82490
82491         [BZ #12140]
82492         * malloc/malloc.c (_int_free): Fill correct number of bytes when
82493         perturbing.
82494
82495 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
82496
82497         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
82498         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
82499         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
82500         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
82502         submachine.
82503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
82504
82505 2010-10-22  Andreas Schwab  <schwab@redhat.com>
82506
82507         * include/dlfcn.h (__RTLD_SECURE): Define.
82508         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
82509         mode & __RTLD_SECURE instead.
82510         (open_path): Rename preloaded parameter to secure.
82511         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
82512         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
82513         * elf/dl-deps.c (openaux): Likewise.
82514         * elf/rtld.c (struct map_args): Remove is_preloaded.
82515         (map_doit): Don't use it.
82516         (dl_main): Likewise.
82517         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
82518         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
82519
82520 2010-09-09  Andreas Schwab  <schwab@redhat.com>
82521
82522         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
82523         (sysd-rules-targets): Remove duplicates.
82524         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
82525         rtld-%.$o dependency.
82526
82527 2010-10-18  Andreas Schwab  <schwab@redhat.com>
82528
82529         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
82530         _dl_map_object do it.
82531
82532 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
82533
82534         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
82535         fast fma builtins, define the macros in the C99 standard.
82536         (FP_FAST_FMAF): Likewise.
82537         (FP_FAST_FMAL): Likewise.
82538         * sysdeps/x86_64/bits/mathdef.h: Likewise.
82539
82540         * bits/mathdef.h: Update copyright year.
82541         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82542
82543 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
82544
82545         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
82546         builtins, define the macros in the C99 standard.
82547         (FP_FAST_FMAF): Likewise.
82548         (FP_FAST_FMAL): Likewise.
82549         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
82550         multiply/add.
82551         (FP_FAST_FMAF): Likewise.
82552
82553 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82554
82555         [BZ #3268]
82556         * math/libm-test.inc (fma_test): Some new testcases.
82557         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82558         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82559         y and infinite z.  Do multiplication by C already in long double.
82560         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82561         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82562         y and infinite z.  Do bitwise or of inexact bit into u.d.
82563         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82564         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82565         * sysdeps/i386/fpu/s_fma.S: Removed.
82566         * sysdeps/i386/fpu/s_fmal.S: Removed.
82567
82568 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82569
82570         [BZ #3268]
82571         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82572         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82573         computation is not scheduled after fetestexcept.  Fix value
82574         of minimum denormal long double.
82575
82576 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82577
82578         [BZ #3268]
82579         * math/libm-test.inc (fma_test): Add some more tests.
82580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82581         correctly.
82582
82583 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82584
82585         * scripts/data/localplt-s390-linux-gnu.data: New file.
82586         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82587
82588 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82589
82590         [BZ #3268]
82591         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82592         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82593         instead of dbl-64.
82594         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82595         inlines.
82596         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82597         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82598         if one of x and y is very large and the other is subnormal.
82599         * sysdeps/s390/fpu/s_fmaf.c: New file.
82600         * sysdeps/s390/fpu/s_fma.c: New file.
82601         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82602         * sysdeps/powerpc/fpu/s_fma.S: New file.
82603         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82604         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82605         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82606
82607 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82608
82609         [BZ #3268]
82610         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82611         fma tests.
82612         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82613         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82614         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82615         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82616         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82617         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82618         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82619
82620 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82621
82622         [BZ #12078]
82623         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82624         * posix/bug-regex31.input: Add test case.
82625
82626 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82627
82628         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82629         * posix/bug-regex31.input: New file.
82630
82631         [BZ #12078]
82632         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82633         (parse_sub_exp): Fix last change, use postorder.
82634
82635         * posix/bug-regex31.c: New file.
82636         * posix/Makefile: Add rules to build and run bug-regex31.
82637
82638         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82639
82640         [BZ #12078]
82641         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82642
82643         [BZ #12108]
82644         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82645         to have entries in sys_siglist.
82646
82647         [BZ #12093]
82648         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82649         be NULL.
82650
82651 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82652
82653         [BZ #3268]
82654         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82655         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82656         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82657         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82658         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82659         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82660         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82661         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82662         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82663         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82664         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82665         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82666         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82667         * math/ftestexcept.c (fetestexcept): Likewise.
82668         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82669         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82670         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82671         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82672         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82673         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82674         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82675
82676 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82677
82678         [BZ #12107]
82679         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82680         newline.
82681
82682 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82683
82684         * string/bug-strstr1.c: New file.
82685         * string/Makefile: Add rules to build and run bug-strstr1.
82686
82687 2010-10-05  Eric Blake  <eblake@redhat.com>
82688
82689         [BZ #12092]
82690         * string/str-two-way.h (two_way_long_needle): Always clear memory
82691         when skipping input due to the shift table.
82692
82693 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82694
82695         [BZ #12005]
82696         * malloc/mcheck.c: Handle large requests.
82697
82698         [BZ #12077]
82699         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82700         for strncmp and strncasecmp.
82701         * string/stratcliff.c: Add tests for strcmp and strncmp.
82702         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82703
82704 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82705
82706         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82707         __set_fpscr.
82708
82709 2010-09-30  Andreas Jaeger  <aj@suse.de>
82710
82711         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82712         (CGROUP_SUPER_MAGIC): Define.
82713         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82714         Handle btrfs and cgroup file systems.
82715         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82716         Likewise.
82717
82718 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82719
82720         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82721         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82722
82723 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82724
82725         [BZ #12067]
82726         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82727         trying to locate the ELF header.
82728
82729 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82730
82731         [BZ #11611]
82732         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82733         Mask out sign-bit copies when constructing f_fsid.
82734
82735 2010-09-24  Petr Baudis <pasky@suse.cz>
82736
82737         * debug/stack_chk_fail_local.c: Add missing licence exception.
82738         * debug/warning-nop.c: Likewise.
82739
82740 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82741
82742         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82743         implementing getdents64 using getdents syscall, set d_type if
82744         __ASSUME_GETDENTS32_D_TYPE.
82745
82746 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82747
82748         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82749         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82750
82751 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82752
82753         [BZ #12037]
82754         * posix/unistd.h: Undo change of feature selection for ftruncate from
82755         2010-01-11.
82756
82757 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82758
82759         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82760         detection.
82761
82762 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82763
82764         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82765         fanotify_mark.
82766         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82767
82768 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82769
82770         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82771         variables after CHECK_SP call.
82772         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82773
82774 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82775             Ulrich Drepper  <drepper@redhat.com>
82776
82777         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82778         re-relocationg ld.so.
82779         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82780         _dl_init_paths call.
82781         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82782         here anymore.
82783
82784 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82785
82786         * resolv/res_init.c (__res_vinit): Count the default server we added.
82787
82788 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82789             Ulrich Drepper  <drepper@redhat.com>
82790
82791         [BZ #11968]
82792         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82793         (____longjmp_chk): Use %ebx for saving value across system call.
82794         Add unwind info.
82795
82796 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82797
82798         * manual/Makefile: Don't mix pattern rules with normal rules.
82799
82800 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82801
82802         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82803         operation.
82804         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82805         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82806         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82807         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82809         Likewise.
82810
82811 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82812
82813         [BZ #11979]
82814         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82815         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82816
82817 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82818
82819         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82820         * sysdeps/x86_64/addmul_1.S: Likewise.
82821         * sysdeps/x86_64/lshift.S: Likewise.
82822         * sysdeps/x86_64/mul_1.S: Likewise.
82823         * sysdeps/x86_64/rshift.S: Likewise.
82824         * sysdeps/x86_64/sub_n.S: Likewise.
82825         * sysdeps/x86_64/submul_1.S: Likewise.
82826
82827 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82828
82829         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82830         Define __sched_param instead of SCHED_* and sched_param when
82831         <bits/sched.h> is included with __need_schedparam defined.
82832         * bits/sched.h [__need_schedparam]
82833         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82834         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82835         (__defined_schedparam): Define to 1.
82836         (__sched_param): New structure, identical to sched_param.
82837         (__need_schedparam): Undefine.
82838
82839 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82840
82841         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82842         (epoll_create1): Declare.
82843
82844         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82845
82846 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82847
82848         [BZ #7066]
82849         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82850         shifting retval into place.
82851
82852 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82853
82854         * nis/rpcsvc/nis.h: Update copyright notice.
82855         * nis/rpcsvc/nis.x: Likewise.
82856         * nis/rpcsvc/nis_callback.h: Likewise.
82857         * nis/rpcsvc/nis_callback.x: Likewise.
82858         * nis/rpcsvc/nis_object.x: Likewise.
82859         * nis/rpcsvc/nis_tags.h: Likewise.
82860         * nis/rpcsvc/yp.h: Likewise.
82861         * nis/rpcsvc/yp.x: Likewise.
82862         * nis/rpcsvc/ypupd.h: Likewise.
82863         * nis/yp_xdr.c: Likewise.
82864         * nis/ypupdate_xdr.c: Likewise.
82865
82866         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82867         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82868         (pmap_getport): Use __libc_rpc_getport.
82869         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82870         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82871         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82872
82873 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82874
82875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82876         fanotify_mark.
82877
82878 2010-08-27  Roland McGrath  <roland@redhat.com>
82879
82880         * sysdeps/i386/i686/multiarch/Makefile
82881         (CFLAGS-varshift.c): New variable.
82882
82883 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82884
82885         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82886         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82887
82888         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82889
82890         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82891
82892 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82893
82894         * sysdeps/x86_64/strlen.S: Unroll the loop.
82895         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82896         strlen-sse2 strlen-sse2-bsf.
82897         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82898         __strlen_no_bsf if bit_Slow_BSF is set.
82899         (__strlen_sse42): Removed.
82900         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82901         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82902
82903 2010-08-25  Roland McGrath  <roland@redhat.com>
82904
82905         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82906         * sysdeps/x86_64/multiarch/varshift.c: New file.
82907         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82908         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82909         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82910         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82911
82912 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82913
82914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82915         strlen-sse2 strlen-sse2-bsf.
82916         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82917         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82918         (__strlen_sse2): Removed.
82919         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82920         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82922         bit_Slow_BSF for Atom.
82923         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82924         (index_Slow_BSF): Define.
82925         (HAS_SLOW_BSF): Define.
82926
82927 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82928
82929         [BZ #10851]
82930         * resolv/res_init.c (__res_vinit): When no server address at all
82931         is given default to loopback.
82932
82933 2010-08-24  Roland McGrath  <roland@redhat.com>
82934
82935         * configure.in: Remove config-name.h generation.
82936         * configure: Regenerated.
82937         * config-name.in: File removed.
82938         * scripts/config-uname.sh: New file.
82939         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82940         ($(objdir)config-name.h): New target.
82941
82942         * sunrpc/rpc_parse.h: Avoid nested comment.
82943
82944 2010-08-24  Richard Henderson  <rth@redhat.com>
82945             Ulrich Drepper  <drepper@redhat.com>
82946             H.J. Lu  <hongjiu.lu@intel.com>
82947
82948         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82949         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82950         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82951         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82952         _mm_alignr_epi8 with _mm_loadu_si128.
82953         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82954         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82955         (__m128i_shift_right): Removed.
82956         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82957         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82958         * sysdeps/x86_64/multiarch/varshift.h: New file.
82959         * sysdeps/x86_64/multiarch/varshift.S: New file.
82960
82961 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82962
82963         * configure.in: Move assembler checks to before sysdep dir checking.
82964
82965 2010-08-20  Petr Baudis  <pasky@suse.cz>
82966
82967         * LICENSES: Sync the sunrpc license.
82968
82969 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82970
82971         * sunrpc/auth_des.c: Update copyright notice once again.
82972         * sunrpc/auth_none.c: Likewise.
82973         * sunrpc/auth_unix.c: Likewise.
82974         * sunrpc/authdes_prot.c: Likewise.
82975         * sunrpc/authuxprot.c: Likewise.
82976         * sunrpc/bindrsvprt.c: Likewise.
82977         * sunrpc/clnt_gen.c: Likewise.
82978         * sunrpc/clnt_perr.c: Likewise.
82979         * sunrpc/clnt_raw.c: Likewise.
82980         * sunrpc/clnt_simp.c: Likewise.
82981         * sunrpc/clnt_tcp.c: Likewise.
82982         * sunrpc/clnt_udp.c: Likewise.
82983         * sunrpc/clnt_unix.c: Likewise.
82984         * sunrpc/des_crypt.c: Likewise.
82985         * sunrpc/des_soft.c: Likewise.
82986         * sunrpc/get_myaddr.c: Likewise.
82987         * sunrpc/getrpcport.c: Likewise.
82988         * sunrpc/key_call.c: Likewise.
82989         * sunrpc/key_prot.c: Likewise.
82990         * sunrpc/openchild.c: Likewise.
82991         * sunrpc/pm_getmaps.c: Likewise.
82992         * sunrpc/pm_getport.c: Likewise.
82993         * sunrpc/pmap_clnt.c: Likewise.
82994         * sunrpc/pmap_prot.c: Likewise.
82995         * sunrpc/pmap_prot2.c: Likewise.
82996         * sunrpc/pmap_rmt.c: Likewise.
82997         * sunrpc/rpc/auth.h: Likewise.
82998         * sunrpc/rpc/auth_unix.h: Likewise.
82999         * sunrpc/rpc/clnt.h: Likewise.
83000         * sunrpc/rpc/des_crypt.h: Likewise.
83001         * sunrpc/rpc/key_prot.h: Likewise.
83002         * sunrpc/rpc/netdb.h: Likewise.
83003         * sunrpc/rpc/pmap_clnt.h: Likewise.
83004         * sunrpc/rpc/pmap_prot.h: Likewise.
83005         * sunrpc/rpc/pmap_rmt.h: Likewise.
83006         * sunrpc/rpc/rpc.h: Likewise.
83007         * sunrpc/rpc/rpc_des.h: Likewise.
83008         * sunrpc/rpc/rpc_msg.h: Likewise.
83009         * sunrpc/rpc/svc.h: Likewise.
83010         * sunrpc/rpc/svc_auth.h: Likewise.
83011         * sunrpc/rpc/types.h: Likewise.
83012         * sunrpc/rpc/xdr.h: Likewise.
83013         * sunrpc/rpc_clntout.c: Likewise.
83014         * sunrpc/rpc_cmsg.c: Likewise.
83015         * sunrpc/rpc_common.c: Likewise.
83016         * sunrpc/rpc_cout.c: Likewise.
83017         * sunrpc/rpc_dtable.c: Likewise.
83018         * sunrpc/rpc_hout.c: Likewise.
83019         * sunrpc/rpc_main.c: Likewise.
83020         * sunrpc/rpc_parse.c: Likewise.
83021         * sunrpc/rpc_parse.h: Likewise.
83022         * sunrpc/rpc_prot.c: Likewise.
83023         * sunrpc/rpc_sample.c: Likewise.
83024         * sunrpc/rpc_scan.c: Likewise.
83025         * sunrpc/rpc_scan.h: Likewise.
83026         * sunrpc/rpc_svcout.c: Likewise.
83027         * sunrpc/rpc_tblout.c: Likewise.
83028         * sunrpc/rpc_util.c: Likewise.
83029         * sunrpc/rpc_util.h: Likewise.
83030         * sunrpc/rpcinfo.c: Likewise.
83031         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
83032         * sunrpc/rpcsvc/key_prot.x: Likewise.
83033         * sunrpc/rpcsvc/klm_prot.x: Likewise.
83034         * sunrpc/rpcsvc/mount.x: Likewise.
83035         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
83036         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
83037         * sunrpc/rpcsvc/rex.x: Likewise.
83038         * sunrpc/rpcsvc/rstat.x: Likewise.
83039         * sunrpc/rpcsvc/rusers.x: Likewise.
83040         * sunrpc/rpcsvc/sm_inter.x: Likewise.
83041         * sunrpc/rpcsvc/spray.x: Likewise.
83042         * sunrpc/rpcsvc/yppasswd.x: Likewise.
83043         * sunrpc/rtime.c: Likewise.
83044         * sunrpc/svc.c: Likewise.
83045         * sunrpc/svc_auth.c: Likewise.
83046         * sunrpc/svc_authux.c: Likewise.
83047         * sunrpc/svc_raw.c: Likewise.
83048         * sunrpc/svc_run.c: Likewise.
83049         * sunrpc/svc_simple.c: Likewise.
83050         * sunrpc/svc_tcp.c: Likewise.
83051         * sunrpc/svc_udp.c: Likewise.
83052         * sunrpc/svc_unix.c: Likewise.
83053         * sunrpc/svcauth_des.c: Likewise.
83054         * sunrpc/xcrypt.c: Likewise.
83055         * sunrpc/xdr.c: Likewise.
83056         * sunrpc/xdr_array.c: Likewise.
83057         * sunrpc/xdr_float.c: Likewise.
83058         * sunrpc/xdr_mem.c: Likewise.
83059         * sunrpc/xdr_rec.c: Likewise.
83060         * sunrpc/xdr_ref.c: Likewise.
83061         * sunrpc/xdr_sizeof.c: Likewise.
83062         * sunrpc/xdr_stdio.c: Likewise.
83063
83064         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
83065         handling.
83066
83067 2010-08-19  Andreas Schwab  <schwab@redhat.com>
83068
83069         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
83070
83071 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
83072
83073         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
83074         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
83075         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
83076         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
83077         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
83078         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
83079         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
83080         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
83081         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
83082         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
83083         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
83084         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
83085         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
83086         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
83087
83088 2010-07-26  Anton Blanchard  <anton@samba.org>
83089
83090         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
83091         * malloc/arena.c (heap_trim): Likewise.
83092
83093 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
83094
83095         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
83096         here.  Not...
83097         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
83098         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
83099
83100 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
83101
83102         * sysdeps/i386/elf/Makefile: New file.
83103
83104 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
83105
83106         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
83107         from fanotify_init.
83108         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
83109         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
83110
83111 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
83112
83113         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
83114         of strncasecmp_l.
83115         * sysdeps/multiarch/strcmp.S: Likewise.
83116
83117 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
83118
83119         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83120         strncase_l-nonascii.
83121         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83122         Add strncase_l-ssse3.
83123         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
83124         * sysdeps/x86_64/strcmp.S: Likewise.
83125         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
83126         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
83127         * sysdeps/x86_64/strncase.S: New file.
83128         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
83129         * sysdeps/x86_64/strncase_l.S: New file.
83130         * string/Makefile (strop-tests): Add strncasecmp.
83131         * string/test-strncasecmp.c: New file.
83132
83133         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
83134         warning.
83135
83136         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
83137         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
83138
83139 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
83140
83141         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
83142
83143 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
83144
83145         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
83146         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
83147         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
83148
83149 2010-05-01  Alan Modra  <amodra@gmail.com>
83150
83151         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
83152         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
83153         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
83154         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
83155         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
83156         tidying.  Don't tail-call __sigjmp_save for static lib.
83157         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
83158         save location.
83159         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
83160         (CALL_MCOUNT): Add eh info, and nop after bl.
83161         (TAIL_CALL_SYSCALL_ERROR): New macro.
83162         (PSEUDO_RET): Use it.
83163         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
83164         Correct save location of integer regs and cr.
83165         (_dl_profile_resolve): Correct cr save location.  Delete nops
83166         after bl when SHARED.  Reduce cfi size a little by better
83167         placement of cfi directives.
83168         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
83169         make a stack frame.  Instead use parm save area as a temp.
83170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
83171         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
83172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
83173         Don't make a stack frame for parent, use parm save area.
83174         Increase child stack frame to 112 bytes.  Don't save unused reg,
83175         and adjust reg usage.  Set up cfi on error recovery and
83176         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
83177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
83178         (__makecontext): Add dummy nop after jump to exit.
83179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
83180         Use correct parm save area and cr save, reduce stack frame.
83181         Correct cfi for possible PSEUDO_RET frame setup.
83182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
83183         Branch to local label emitted by PSEUDO_RET rather than
83184         __syscall_error.
83185
83186 2010-08-12  Andreas Schwab  <schwab@redhat.com>
83187
83188         [BZ #11904]
83189         * locale/programs/locale.c (print_assignment): New function.
83190         (show_locale_vars): Use it.
83191
83192 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
83193
83194         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
83195         field.
83196         (struct statfs64): Likewise.
83197         (_STATFS_F_FLAGS): Define.
83198         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
83199         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
83200         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
83201         (ST_VALID): Define locally.
83202         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
83203         __statvfs_getflags, use the provided value.
83204         * sysdeps/unix/sysv/linux/kernel-features.h: Define
83205         __ASSUME_STATFS_F_FLAGS.
83206
83207         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
83208
83209         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
83210         Add sys/fanotify.h.
83211         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
83212         fanotify_mask for GLIBC_2.13.
83213         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
83214         fanotify_init and fanotify_mark.
83215         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
83216         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
83217
83218         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
83219         Add prlimit.
83220         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
83221         prlimit64 for GLIBC_2.13.
83222         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
83223         prlimit64.
83224         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
83225         syscall.
83226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
83227         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
83228         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
83229         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
83230         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
83231         add prlimit alias.
83232         * sysdeps/unix/sysv/linux/prlimit.c: New file.
83233
83234         [BZ #11903]
83235         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
83236         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
83237
83238         * nss/Makefile: Add rules to build and run tst-nss-test1.
83239         * shlib-versions: Add entry for libnss_test1.
83240         * nss/nss_test1.c: New file.
83241         * nss/tst-nss-test1.c: New file.
83242
83243         * nss/nsswitch.c (__nss_database_custom): Define new variable.
83244         (__nss_configure_lookup): Set appropriate entry in
83245         __nss_configure_lookup to true.
83246         * nss/nsswitch.h: Define enum with indeces of databases in
83247         databases and __nss_database_custom arrays.  Declare
83248         __nss_database_custom.
83249         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
83250         to avoid using nscd when custom rules are installed.
83251         * nss/getXXbyYY_r.c: Likewise.
83252         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
83253
83254         * nss/nss_files/files-parse.c: Whitespace fixes.
83255
83256 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
83257
83258         [BZ #11883]
83259         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
83260         * posix/fnmatch_loop.c: Likewise.
83261
83262 2010-07-17  Andi Kleen  <ak@linux.intel.com>
83263
83264         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
83265         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
83266         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
83267         * Versions.def [GLIBC_2.13]: Add.
83268
83269 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
83270
83271         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83272         Also fail if tpwd after pwuid call is NULL.
83273
83274 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83275
83276         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
83277         when converting to ms.
83278
83279 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83280
83281         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
83282         EOPNOTSUPP errors with ENOTTY.
83283         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
83284         EOPNOTSUPP errors with ENOTTY.
83285
83286 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
83287
83288         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83289         Add strcasecmp_l-ssse3.
83290         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
83291         strcasecmp.
83292         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
83293         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
83294         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
83295
83296 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
83297
83298         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
83299
83300         * string/Makefile (strop-tests): Add strcasecmp.
83301         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83302         strcasecmp_l-nonascii.
83303         (gen-as-const-headers): Add locale-defines.sym.
83304         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
83305         * sysdeps/x86_64/strcasecmp.S: New file.
83306         * sysdeps/x86_64/strcasecmp_l.S: New file.
83307         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
83308         * sysdeps/x86_64/locale-defines.sym: New file.
83309         * string/test-strcasecmp.c: New file.
83310
83311         * string/test-strcasestr.c: Test both ends of the range of characters.
83312         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83313
83314 2010-07-29  Roland McGrath  <roland@redhat.com>
83315
83316         [BZ #11856]
83317         * manual/locale.texi (Yes-or-No Questions): Fix example code.
83318
83319 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
83320
83321         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
83322         for ld.so.
83323
83324 2010-07-27  Andreas Schwab  <schwab@redhat.com>
83325
83326         * manual/memory.texi (Malloc Tunable Parameters): Document
83327         M_PERTURB.
83328
83329 2010-07-26  Roland McGrath  <roland@redhat.com>
83330
83331         [BZ #11840]
83332         * configure.in (-fgnu89-inline check): Set and substitute
83333         gnu89_inline, not libc_cv_gnu89_inline.
83334         * configure: Regenerated.
83335         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
83336
83337 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
83338
83339         * string/test-strnlen.c: New file.
83340         * string/Makefile (strop-tests): Add strnlen.
83341         * string/tester.c (test_strnlen): Add a few more test cases.
83342         * string/tst-strlen.c: Better error reporting.
83343
83344         * sysdeps/x86_64/strnlen.S: New file.
83345
83346 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
83347
83348         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
83349         lower-latency instructions.
83350
83351 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
83352
83353         * string/test-strcasestr.c: New file.
83354         * string/test-strstr.c: New file.
83355         * string/Makefile (strop-tests): Add strstr and strcasestr.
83356         * string/str-two-way.h: Don't undefine MAX.
83357         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
83358
83359 2010-07-21  Andreas Schwab  <schwab@redhat.com>
83360
83361         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83362         strcasestr-nonascii.
83363         (CFLAGS-strcasestr-nonascii.c): Define.
83364         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
83365         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
83366         Remove unused attribute.
83367
83368 2010-07-20  Roland McGrath  <roland@redhat.com>
83369
83370         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
83371         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
83372         ld.so.cache was broken.  With it, there is no way to disable dsocaps
83373         like LD_HWCAP_MASK can disable hwcaps.
83374
83375 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83376
83377         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
83378
83379 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
83380
83381         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
83382         call in strcasestr.
83383         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
83384         __strcasestr_sse42_nonascii.
83385         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
83386         strcasestr-nonascii.c.
83387         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
83388
83389 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
83390
83391         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
83392         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
83393         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
83394         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
83395
83396 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
83397
83398         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
83399         fcntl.
83400
83401 2010-07-06  Andreas Schwab  <schwab@redhat.com>
83402
83403         [BZ #11577]
83404         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
83405         dl_signal_cerror.
83406
83407 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
83408
83409         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
83410         _PC_PIPE_BUF using F_GETPIPE_SZ.
83411
83412 2010-07-05  Roland McGrath  <roland@redhat.com>
83413
83414         * manual/arith.texi (Rounding Functions): Fix rint description
83415         implicit in round description.
83416
83417 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
83418
83419         * elf/Makefile: Fix linking for a few tests to make recent linker
83420         happy.
83421
83422 2010-06-30  Andreas Schwab  <schwab@redhat.com>
83423
83424         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
83425         $(common-objpfx)libc_nonshared.a.
83426
83427 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
83428
83429         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
83430         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
83431         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83432         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83433         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
83434         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
83435         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83436         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
83438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
83439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
83440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
83442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
83444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
83445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
83446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
83447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
83449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
83451         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
83452         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
83453         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
83454         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
83455         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
83456         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
83457         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
83458         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
83459         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
83460         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
83461         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
83462         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
83463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
83464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
83465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
83466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
83467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
83468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
83469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
83470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
83471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
83472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
83473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
83474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
83475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
83476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
83477
83478 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
83479
83480         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
83481         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
83482         * string/memmove.c (memmove): Renamed to ...
83483         (MEMMOVE): ...this.  Default to memmove.
83484         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
83485         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
83486         (END_CHK): Define.
83487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83488         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
83489         mempcpy-ssse3-back memmove-ssse3-back.
83490         * sysdeps/x86_64/multiarch/bcopy.S: New file .
83491         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
83492         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
83493         * sysdeps/x86_64/multiarch/memcpy.S: New file.
83494         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
83495         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
83496         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
83497         * sysdeps/x86_64/multiarch/memmove.c: New file.
83498         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
83499         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
83500         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
83501         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
83502         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
83503         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
83504         Define.
83505         (index_Fast_Copy_Backward): Define.
83506         (HAS_ARCH_FEATURE): Define.
83507         (HAS_FAST_REP_STRING): Define.
83508         (HAS_FAST_COPY_BACKWARD): Define.
83509
83510 2010-06-21  Andreas Schwab  <schwab@redhat.com>
83511
83512         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83513         Restore proper fallback handling.
83514
83515 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
83516
83517         [BZ #11701]
83518         * posix/group_member.c (__group_member): Correct checking loop.
83519
83520         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
83521         OOM in getpwuid_r correctly.  Return error number when the caller
83522         should return, otherwise -1.
83523         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
83524         call returning > 0 value.
83525         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
83526
83527 2010-06-07  Andreas Schwab  <schwab@redhat.com>
83528
83529         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
83530         libc_nonshared.a from targets in modules-names.
83531
83532 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
83533
83534         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
83535         requires it.
83536
83537 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
83538
83539         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
83540         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
83541         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
83542         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
83543
83544 2010-06-02  Andreas Schwab  <schwab@redhat.com>
83545
83546         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
83547
83548 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
83549
83550         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83551         and F_GETPIPE_SZ.
83552         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83554         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83556         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83557         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83558
83559 2010-06-14  Roland McGrath  <roland@redhat.com>
83560
83561         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83562
83563 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83564
83565         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83566         __REDIRECT followed by __THROW.
83567         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83568         * posix/getopt.h (getopt): Likewise.
83569
83570 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83571
83572         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83573         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83574         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83575         in AT_FLAGS.
83576         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83577         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83578
83579 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83580
83581         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83582
83583 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83584
83585         [BZ #11640]
83586         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83587         Properly check family and model.
83588
83589 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83590
83591         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83592
83593 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83594
83595         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83596
83597 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83598
83599         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83600         symbol reference.
83601
83602 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83603
83604         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83605         symbol reference.
83606
83607 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83608
83609         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83610         and internal_recvmmsg.
83611         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83612         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83613         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83614         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83615
83616         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83617         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83618         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83619
83620 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83621
83622         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83623
83624 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83625
83626         POWER7 optimizations.
83627         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83628         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83629
83630 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83631
83632         * version.h: Update for 2.13 development version.
83633
83634 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83635
83636         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83637         exceptions.  Return 0.
83638
83639 2010-05-07  Roland McGrath  <roland@redhat.com>
83640
83641         * elf/ldconfig.c (main): Add a const.
83642
83643 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83644
83645         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83646         (args_options): Add no-idn option.
83647         (ahosts_keys_int): Add idn_flags to ai_flags.
83648         (parse_option): Handle 'i' option to clear idn_flags.
83649
83650         * malloc/malloc.c (_int_free): Possible race in the most recently
83651         added check.  Only act on the data if no current modification
83652         happened.
83653
83654 See ChangeLog.17 for earlier changes.